V
- public static class FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable> extends Object implements Iterator<V>, Closeable, Skipable
Constructor and Description |
---|
ArrayFileIterator(IndexOnDisk index,
String structureName)
constructor
|
ArrayFileIterator(String filename,
FixedSizeWriteableFactory<V> _valueFactory)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
V |
next() |
void |
remove() |
void |
skip(int numEntries)
Skip forward the specified number of entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ArrayFileIterator(IndexOnDisk index, String structureName) throws IOException
index
- structureName
- IOException
public ArrayFileIterator(String filename, FixedSizeWriteableFactory<V> _valueFactory) throws IOException
filename
- _valueFactory
- IOException
public void skip(int numEntries) throws IOException
skip
in interface Skipable
numEntries
- number of entries to skipIOException
- if an IO problem occurs.public boolean hasNext()
public V next()
public void remove()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow