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 |
---|
EntryIterator(String filename,
FixedSizeWriteableFactory<IK> _keyFactory,
FixedSizeWriteableFactory<IV> _valueFactory)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
Map.Entry<IK,IV> |
next() |
void |
remove() |
void |
skip(int _numEntries)
Skip forward the specified number of entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
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 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 Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow