Package org.apache.flink.runtime.util
Class ReusingMutableToRegularIteratorWrapper<T>
java.lang.Object
org.apache.flink.runtime.util.ReusingMutableToRegularIteratorWrapper<T>
public class ReusingMutableToRegularIteratorWrapper<T>
extends Object
implements Iterator<T>, Iterable<T>
This class wraps a
MutableObjectIterator into a regular Iterator. Internally, it
uses two record instances which it uses alternating. That way, whenever hasNext() returns
(possibly with false), the previous obtained record is still valid and cannot have been
overwritten internally.-
Constructor Summary
ConstructorsConstructorDescriptionReusingMutableToRegularIteratorWrapper(org.apache.flink.util.MutableObjectIterator<T> source, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ReusingMutableToRegularIteratorWrapper
-
-
Method Details