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>
AMutableObjectIteratorthat 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
Constructors Constructor Description ReaderIterator(MutableReader<DeserializationDelegate<T>> reader, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)Creates a new iterator, wrapping the given reader.
-
-
-
Constructor Detail
-
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 Detail
-
next
public T next(T target) throws IOException
- Specified by:
nextin interfaceorg.apache.flink.util.MutableObjectIterator<T>- Throws:
IOException
-
next
public T next() throws IOException
- Specified by:
nextin interfaceorg.apache.flink.util.MutableObjectIterator<T>- Throws:
IOException
-
-