public class ReaderIterator<T> extends Object implements org.apache.flink.util.MutableObjectIterator<T>
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 and Description |
|---|
ReaderIterator(MutableReader<DeserializationDelegate<T>> reader,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Creates a new iterator, wrapping the given reader.
|
public ReaderIterator(MutableReader<DeserializationDelegate<T>> reader, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
reader - The reader to wrap.public T next(T target) throws IOException
next in interface org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic T next() throws IOException
next in interface org.apache.flink.util.MutableObjectIterator<T>IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.