|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.collections.FSArrayFile.ArrayFileIterator<V>
V
- public static class FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>
ArrayFileIterator class
Constructor Summary | |
---|---|
FSArrayFile.ArrayFileIterator(Index index,
java.lang.String structureName)
constructor |
|
FSArrayFile.ArrayFileIterator(java.lang.String filename,
FixedSizeWriteableFactory<V> _valueFactory)
constructor |
Method Summary | |
---|---|
void |
close()
|
boolean |
hasNext()
|
V |
next()
|
void |
remove()
|
void |
skip(int numEntries)
Skip forward the specified number of entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSArrayFile.ArrayFileIterator(Index index, java.lang.String structureName) throws java.io.IOException
index
- structureName
-
java.io.IOException
public FSArrayFile.ArrayFileIterator(java.lang.String filename, FixedSizeWriteableFactory<V> _valueFactory) throws java.io.IOException
filename
- _valueFactory
-
java.io.IOException
Method Detail |
---|
public void skip(int numEntries) throws java.io.IOException
skip
in interface Skipable
numEntries
- number of entries to skip
java.io.IOException
- if an IO problem occurs.public boolean hasNext()
hasNext
in interface java.util.Iterator<V extends org.apache.hadoop.io.Writable>
public V next()
next
in interface java.util.Iterator<V extends org.apache.hadoop.io.Writable>
public void remove()
remove
in interface java.util.Iterator<V extends org.apache.hadoop.io.Writable>
public void close()
close
in interface java.io.Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |