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, wait
forEachRemaining, next
protected Iterator<Map.Entry<T2 extends org.apache.hadoop.io.WritableComparable<?>,LexiconEntry>> parent
public MapFileLexiconIterator(String structureName, IndexOnDisk index) throws IOException
structureName
- index
- IOException
public MapFileLexiconIterator(String structureName, String path, String prefix, FixedSizeWriteableFactory<T2> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
structureName
- path
- prefix
- keyFactory
- valueFactory
- IOException
public MapFileLexiconIterator(String filename, FixedSizeWriteableFactory<T2> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
filename
- keyFactory
- valueFactory
- IOException
public 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 Closeable
close
in interface AutoCloseable
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow