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.
| 构造器和说明 |
|---|
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 在接口中 org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic T next() throws IOException
next 在接口中 org.apache.flink.util.MutableObjectIterator<T>IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.