public static class FSOMapFileLexicon.MapFileLexiconEntryIterator extends Object implements Iterator<LexiconEntry>, Closeable, Skipable
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> |
internalIterator |
| Constructor and Description |
|---|
FSOMapFileLexicon.MapFileLexiconEntryIterator(Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _internalIterator)
Construct an instance of the class with
|
FSOMapFileLexicon.MapFileLexiconEntryIterator(String filename,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
FSOMapFileLexicon.MapFileLexiconEntryIterator(String structureName,
IndexOnDisk index)
Construct an instance of the class with
|
FSOMapFileLexicon.MapFileLexiconEntryIterator(String structureName,
String path,
String prefix,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
protected Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> internalIterator
public FSOMapFileLexicon.MapFileLexiconEntryIterator(String structureName, IndexOnDisk index) throws IOException
structureName - index - IOExceptionpublic FSOMapFileLexicon.MapFileLexiconEntryIterator(String structureName, String path, String prefix, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
structureName - path - prefix - keyFactory - valueFactory - IOExceptionpublic FSOMapFileLexicon.MapFileLexiconEntryIterator(String filename, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
filename - keyFactory - valueFactory - IOExceptionpublic FSOMapFileLexicon.MapFileLexiconEntryIterator(Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _internalIterator)
_internalIterator - public boolean hasNext()
hasNext in interface Iterator<LexiconEntry>public LexiconEntry next()
next in interface Iterator<LexiconEntry>public void remove()
remove in interface Iterator<LexiconEntry>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void skip(int numEntries)
throws IOException
skip in interface SkipablenumEntries - number of entries to skipIOException - if an IO problem occurs.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow