public abstract static class FSOMapFileLexiconGeneric.MapFileLexiconIterator<T1,T2 extends org.apache.hadoop.io.WritableComparable<?>> extends Object implements Iterator<Map.Entry<String,LexiconEntry>>, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<Map.Entry<T2,LexiconEntry>> |
parent |
| Constructor and Description |
|---|
MapFileLexiconIterator(Iterator<Map.Entry<T2,LexiconEntry>> _parent)
Construct an instance of the class with
|
MapFileLexiconIterator(String filename,
FixedSizeWriteableFactory<T2> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
MapFileLexiconIterator(String structureName,
IndexOnDisk index)
Construct an instance of the class with
|
MapFileLexiconIterator(String structureName,
String path,
String prefix,
FixedSizeWriteableFactory<T2> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, nextprotected Iterator<Map.Entry<T2 extends org.apache.hadoop.io.WritableComparable<?>,LexiconEntry>> parent
public MapFileLexiconIterator(String structureName, IndexOnDisk index) throws IOException
structureName - index - IOExceptionpublic MapFileLexiconIterator(String structureName, String path, String prefix, FixedSizeWriteableFactory<T2> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
structureName - path - prefix - keyFactory - valueFactory - IOExceptionpublic MapFileLexiconIterator(String filename, FixedSizeWriteableFactory<T2> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
filename - keyFactory - valueFactory - IOExceptionpublic MapFileLexiconIterator(Iterator<Map.Entry<T2,LexiconEntry>> _parent)
_parent - public boolean hasNext()
hasNext in interface Iterator<Map.Entry<String,LexiconEntry>>public void remove()
remove in interface Iterator<Map.Entry<String,LexiconEntry>>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow