public static class FSOMapFileLexiconGeneric.MapFileLexiconEntryIterator<T extends org.apache.hadoop.io.WritableComparable<?>> extends Object implements Iterator<LexiconEntry>, Closeable, Skipable
Modifier and Type | Field and Description |
---|---|
protected Iterator<Map.Entry<T,LexiconEntry>> |
internalIterator |
Constructor and Description |
---|
MapFileLexiconEntryIterator(Iterator<Map.Entry<T,LexiconEntry>> _internalIterator)
Construct an instance of the class with
|
MapFileLexiconEntryIterator(String filename,
FixedSizeWriteableFactory<T> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
MapFileLexiconEntryIterator(String structureName,
IndexOnDisk index)
Construct an instance of the class with
|
MapFileLexiconEntryIterator(String structureName,
String path,
String prefix,
FixedSizeWriteableFactory<T> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
LexiconEntry |
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
protected Iterator<Map.Entry<T extends org.apache.hadoop.io.WritableComparable<?>,LexiconEntry>> internalIterator
public MapFileLexiconEntryIterator(String structureName, IndexOnDisk index) throws IOException
structureName
- index
- IOException
public MapFileLexiconEntryIterator(String structureName, String path, String prefix, FixedSizeWriteableFactory<T> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
structureName
- path
- prefix
- keyFactory
- valueFactory
- IOException
public MapFileLexiconEntryIterator(String filename, FixedSizeWriteableFactory<T> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
filename
- keyFactory
- valueFactory
- IOException
public MapFileLexiconEntryIterator(Iterator<Map.Entry<T,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 Platform 5.1. Copyright © 2004-2019, University of Glasgow