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, waitforEachRemainingpublic ArrayFileIterator(IndexOnDisk index, String structureName) throws IOException
index - structureName - IOExceptionpublic ArrayFileIterator(String filename, FixedSizeWriteableFactory<V> _valueFactory) throws IOException
filename - _valueFactory - IOExceptionpublic void skip(int numEntries)
throws IOException
skip in interface SkipablenumEntries - 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 Closeableclose in interface AutoCloseableTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow