|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.collections.FSOrderedMapFile.EntryIterator<IK,IV>
public static class FSOrderedMapFile.EntryIterator<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>
an iterator for entries.
| Field Summary | |
|---|---|
protected int |
counter
|
protected DataInput |
di
|
protected FixedSizeWriteableFactory<IK> |
keyFactory
|
protected int |
numEntries
|
protected FixedSizeWriteableFactory<IV> |
valueFactory
|
| Constructor Summary | |
|---|---|
FSOrderedMapFile.EntryIterator(String filename,
FixedSizeWriteableFactory<IK> _keyFactory,
FixedSizeWriteableFactory<IV> _valueFactory)
constructor |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
hasNext()
|
Map.Entry<IK,IV> |
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 DataInput di
protected int numEntries
protected int counter
protected FixedSizeWriteableFactory<IK extends org.apache.hadoop.io.Writable> keyFactory
protected FixedSizeWriteableFactory<IV extends org.apache.hadoop.io.Writable> valueFactory
| Constructor Detail |
|---|
public FSOrderedMapFile.EntryIterator(String filename,
FixedSizeWriteableFactory<IK> _keyFactory,
FixedSizeWriteableFactory<IV> _valueFactory)
throws IOException
filename - _keyFactory - _valueFactory -
IOException| Method Detail |
|---|
public void close()
throws IOException
close in interface CloseableIOExceptionpublic boolean hasNext()
hasNext in interface Iterator<Map.Entry<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>>public Map.Entry<IK,IV> next()
next in interface Iterator<Map.Entry<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>>public void remove()
remove in interface Iterator<Map.Entry<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>>
public void skip(int _numEntries)
throws IOException
skip in interface Skipable_numEntries - 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 | |||||||||