public static class FSOMapFileLexicon.MapFileLexiconIterator extends Object implements Iterator<Map.Entry<String,LexiconEntry>>, Closeable
Modifier and Type | Field and Description |
---|---|
protected Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> |
parent |
Constructor and Description |
---|
FSOMapFileLexicon.MapFileLexiconIterator(Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _parent)
Construct an instance of the class with
|
FSOMapFileLexicon.MapFileLexiconIterator(String filename,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with
|
FSOMapFileLexicon.MapFileLexiconIterator(String structureName,
IndexOnDisk index)
Construct an instance of the class with
|
FSOMapFileLexicon.MapFileLexiconIterator(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>> parent
public FSOMapFileLexicon.MapFileLexiconIterator(String structureName, IndexOnDisk index) throws IOException
structureName
- index
- IOException
public FSOMapFileLexicon.MapFileLexiconIterator(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.MapFileLexiconIterator(String filename, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws IOException
filename
- keyFactory
- valueFactory
- IOException
public FSOMapFileLexicon.MapFileLexiconIterator(Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _parent)
_parent
- public boolean hasNext()
hasNext
in interface Iterator<Map.Entry<String,LexiconEntry>>
public Map.Entry<String,LexiconEntry> next()
next
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 4.0. Copyright © 2004-2014 University of Glasgow