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
- IOException
public 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
- IOException
public FSOMapFileLexicon.MapFileLexiconEntryIterator(String filename, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
filename
- keyFactory
- valueFactory
- IOException
public 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 Closeable
close
in interface AutoCloseable
IOException
public void skip(int numEntries) throws IOException
skip
in interface Skipable
numEntries
- number of entries to skipIOException
- if an IO problem occurs.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow