|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.terrier.structures.FSOMapFileLexicon.MapFileLexiconIterator
public static class FSOMapFileLexicon.MapFileLexiconIterator
An iterator over the lexicon
Field Summary | |
---|---|
protected Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> |
parent
|
Constructor Summary | |
---|---|
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,
Index 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 |
Method Summary | |
---|---|
void |
close()
|
boolean |
hasNext()
|
Map.Entry<String,LexiconEntry> |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> parent
Constructor Detail |
---|
public FSOMapFileLexicon.MapFileLexiconIterator(String structureName, Index 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
- Method Detail |
---|
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
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |