|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.FSOMapFileLexicon.MapFileLexiconEntryIterator
public static class FSOMapFileLexicon.MapFileLexiconEntryIterator
Iterate through the values in order
| Field Summary | |
|---|---|
protected Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> |
internalIterator
|
| Constructor Summary | |
|---|---|
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,
Index 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 |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
hasNext()
|
LexiconEntry |
next()
|
void |
remove()
|
void |
skip(int numEntries)
Skip forward the specified number of entries. |
| 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>> internalIterator
| Constructor Detail |
|---|
public FSOMapFileLexicon.MapFileLexiconEntryIterator(String structureName,
Index 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 -
IOExceptionpublic FSOMapFileLexicon.MapFileLexiconEntryIterator(Iterator<Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _internalIterator)
_internalIterator - | Method Detail |
|---|
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 CloseableIOException
public void skip(int numEntries)
throws IOException
skip in interface SkipablenumEntries - number of entries to skip
IOException - if an IO problem occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||