Class FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>
- java.lang.Object
-
- org.terrier.structures.collections.FSArrayFile.ArrayFileIterator<V>
-
- Type Parameters:
V
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<V>
,Skipable
- Direct Known Subclasses:
FSADocumentIndex.FSADocumentIndexIterator
- Enclosing class:
- FSArrayFile<V extends org.apache.hadoop.io.Writable>
public static class FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable> extends java.lang.Object implements java.util.Iterator<V>, java.io.Closeable, Skipable
ArrayFileIterator class
-
-
Constructor Summary
Constructors Constructor Description ArrayFileIterator(java.lang.String filename, FixedSizeWriteableFactory<V> _valueFactory)
constructorArrayFileIterator(IndexOnDisk index, java.lang.String structureName)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
V
next()
void
remove()
void
skip(int numEntries)
-
-
-
Constructor Detail
-
ArrayFileIterator
public ArrayFileIterator(IndexOnDisk index, java.lang.String structureName) throws java.io.IOException
constructor- Parameters:
index
-structureName
-- Throws:
java.io.IOException
-
ArrayFileIterator
public ArrayFileIterator(java.lang.String filename, FixedSizeWriteableFactory<V> _valueFactory) throws java.io.IOException
constructor- Parameters:
filename
-_valueFactory
-- Throws:
java.io.IOException
-
-
Method Detail
-
skip
public void skip(int numEntries) throws java.io.IOException
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<V extends org.apache.hadoop.io.Writable>
-
next
public V next()
- Specified by:
next
in interfacejava.util.Iterator<V extends org.apache.hadoop.io.Writable>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<V extends org.apache.hadoop.io.Writable>
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-