|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.FSOMapFileLexicon.MapFileLexiconEntryIterator
public static class FSOMapFileLexicon.MapFileLexiconEntryIterator
Iterate through the values in order
Field Summary | |
---|---|
protected java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> |
internalIterator
|
Constructor Summary | |
---|---|
FSOMapFileLexicon.MapFileLexiconEntryIterator(java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _internalIterator)
Construct an instance of the class with |
|
FSOMapFileLexicon.MapFileLexiconEntryIterator(java.lang.String filename,
FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory,
FixedSizeWriteableFactory<LexiconEntry> valueFactory)
Construct an instance of the class with |
|
FSOMapFileLexicon.MapFileLexiconEntryIterator(java.lang.String structureName,
Index index)
Construct an instance of the class with |
|
FSOMapFileLexicon.MapFileLexiconEntryIterator(java.lang.String structureName,
java.lang.String path,
java.lang.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 java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> internalIterator
Constructor Detail |
---|
public FSOMapFileLexicon.MapFileLexiconEntryIterator(java.lang.String structureName, Index index) throws java.io.IOException
structureName
- index
-
java.io.IOException
public FSOMapFileLexicon.MapFileLexiconEntryIterator(java.lang.String structureName, java.lang.String path, java.lang.String prefix, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws java.io.IOException
structureName
- path
- prefix
- keyFactory
- valueFactory
-
java.io.IOException
public FSOMapFileLexicon.MapFileLexiconEntryIterator(java.lang.String filename, FixedSizeWriteableFactory<org.apache.hadoop.io.Text> keyFactory, FixedSizeWriteableFactory<LexiconEntry> valueFactory) throws java.io.IOException
filename
- keyFactory
- valueFactory
-
java.io.IOException
public FSOMapFileLexicon.MapFileLexiconEntryIterator(java.util.Iterator<java.util.Map.Entry<org.apache.hadoop.io.Text,LexiconEntry>> _internalIterator)
_internalIterator
- Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<LexiconEntry>
public LexiconEntry next()
next
in interface java.util.Iterator<LexiconEntry>
public void remove()
remove
in interface java.util.Iterator<LexiconEntry>
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
public void skip(int numEntries) throws java.io.IOException
skip
in interface Skipable
numEntries
- number of entries to skip
java.io.IOException
- if an IO problem occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |