|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.io.DataInput |
di
|
protected FixedSizeWriteableFactory<IK> |
keyFactory
|
protected int |
numEntries
|
protected FixedSizeWriteableFactory<IV> |
valueFactory
|
Constructor Summary | |
---|---|
FSOrderedMapFile.EntryIterator(java.lang.String filename,
FixedSizeWriteableFactory<IK> _keyFactory,
FixedSizeWriteableFactory<IV> _valueFactory)
constructor |
Method Summary | |
---|---|
void |
close()
|
boolean |
hasNext()
|
java.util.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 java.io.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(java.lang.String filename, FixedSizeWriteableFactory<IK> _keyFactory, FixedSizeWriteableFactory<IV> _valueFactory) throws java.io.IOException
filename
- _keyFactory
- _valueFactory
-
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.util.Map.Entry<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>>
public java.util.Map.Entry<IK,IV> next()
next
in interface java.util.Iterator<java.util.Map.Entry<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>>
public void remove()
remove
in interface java.util.Iterator<java.util.Map.Entry<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable>>
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 |