Class ReaderIterator<T>
java.lang.Object
org.apache.flink.runtime.operators.util.ReaderIterator<T>
- All Implemented Interfaces:
org.apache.flink.util.MutableObjectIterator<T>
public class ReaderIterator<T>
extends Object
implements org.apache.flink.util.MutableObjectIterator<T>
A
MutableObjectIterator that wraps a reader from an input channel and produces the
reader's records.
The reader supports reading objects with possible reuse of mutable types, and without reuse of mutable types.
-
Constructor Summary
ConstructorsConstructorDescriptionReaderIterator(MutableReader<DeserializationDelegate<T>> reader, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) Creates a new iterator, wrapping the given reader. -
Method Summary
-
Constructor Details
-
ReaderIterator
public ReaderIterator(MutableReader<DeserializationDelegate<T>> reader, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) Creates a new iterator, wrapping the given reader.- Parameters:
reader- The reader to wrap.
-
-
Method Details
-
next
- Specified by:
nextin interfaceorg.apache.flink.util.MutableObjectIterator<T>- Throws:
IOException
-
next
- Specified by:
nextin interfaceorg.apache.flink.util.MutableObjectIterator<T>- Throws:
IOException
-