public static class FSOrderedMapFile.EntryIterator<IK extends org.apache.hadoop.io.Writable,IV extends org.apache.hadoop.io.Writable> extends Object implements Iterator<Map.Entry<IK,IV>>, Closeable, Skipable
Modifier and Type | Field and Description |
---|---|
protected int |
counter |
protected DataInput |
di |
protected FixedSizeWriteableFactory<IK> |
keyFactory |
protected int |
numEntries |
protected FixedSizeWriteableFactory<IV> |
valueFactory |
Constructor and Description |
---|
FSOrderedMapFile.EntryIterator(String filename,
FixedSizeWriteableFactory<IK> _keyFactory,
FixedSizeWriteableFactory<IV> _valueFactory)
constructor
|
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
public FSOrderedMapFile.EntryIterator(String filename, FixedSizeWriteableFactory<IK> _keyFactory, FixedSizeWriteableFactory<IV> _valueFactory) throws IOException
filename
- _keyFactory
- _valueFactory
- IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean hasNext()
public void remove()
public void skip(int _numEntries) throws IOException
skip
in interface Skipable
_numEntries
- number of entries to skipIOException
- if an IO problem occurs.Terrier 4.0. Copyright © 2004-2014 University of Glasgow