public class CountingMutableObjectIterator<IN> extends Object implements MutableObjectIterator<IN>
Constructor and Description |
---|
CountingMutableObjectIterator(MutableObjectIterator<IN> iterator,
Counter numRecordsIn) |
Modifier and Type | Method and Description |
---|---|
IN |
next()
Gets the next element from the collection.
|
IN |
next(IN reuse)
Gets the next element from the collection.
|
public CountingMutableObjectIterator(MutableObjectIterator<IN> iterator, Counter numRecordsIn)
public IN next(IN reuse) throws IOException
MutableObjectIterator
next
in interface MutableObjectIterator<IN>
reuse
- The target object into which to place next element if E is mutable.null
if the iterator is exhausted.IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the
serialization / deserialization logicpublic IN next() throws IOException
MutableObjectIterator
next
in interface MutableObjectIterator<IN>
null
if the iterator is exhausted.IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the
serialization / deserialization logicCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.