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 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

      public T next(T target) throws IOException
      Specified by:
      next in interface org.apache.flink.util.MutableObjectIterator<T>
      Throws:
      IOException
    • next

      public T next() throws IOException
      Specified by:
      next in interface org.apache.flink.util.MutableObjectIterator<T>
      Throws:
      IOException