Class CountingMutableObjectIterator<IN>
- java.lang.Object
-
- org.apache.flink.runtime.operators.util.metrics.CountingMutableObjectIterator<IN>
-
- All Implemented Interfaces:
MutableObjectIterator<IN>
public class CountingMutableObjectIterator<IN> extends Object implements MutableObjectIterator<IN>
-
-
Constructor Summary
Constructors Constructor Description CountingMutableObjectIterator(MutableObjectIterator<IN> iterator, Counter numRecordsIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IN
next()
Gets the next element from the collection.IN
next(IN reuse)
Gets the next element from the collection.
-
-
-
Constructor Detail
-
CountingMutableObjectIterator
public CountingMutableObjectIterator(MutableObjectIterator<IN> iterator, Counter numRecordsIn)
-
-
Method Detail
-
next
public IN next(IN reuse) throws IOException
Description copied from interface:MutableObjectIterator
Gets the next element from the collection. The contents of that next element is put into the given reuse object, if the type is mutable.- Specified by:
next
in interfaceMutableObjectIterator<IN>
- Parameters:
reuse
- The target object into which to place next element if E is mutable.- Returns:
- The filled object or
null
if the iterator is exhausted. - Throws:
IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
-
next
public IN next() throws IOException
Description copied from interface:MutableObjectIterator
Gets the next element from the collection. The iterator implementation must obtain a new instance.- Specified by:
next
in interfaceMutableObjectIterator<IN>
- Returns:
- The object or
null
if the iterator is exhausted. - Throws:
IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
-
-