Class SpillingResettableMutableObjectIterator<T>

  • Type Parameters:
    T - The type of record that the iterator handles.
    All Implemented Interfaces:
    ResettableMutableObjectIterator<T>, org.apache.flink.util.MutableObjectIterator<T>

    public class SpillingResettableMutableObjectIterator<T>
    extends Object
    implements ResettableMutableObjectIterator<T>
    Implementation of a resettable iterator. While iterating the first time over the data, the iterator writes the records to a spillable buffer. Any subsequent iteration re-reads the data from that buffer.
    • Field Detail

      • inView

        protected org.apache.flink.core.memory.DataInputView inView
      • serializer

        protected final org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer
      • input

        protected final org.apache.flink.util.MutableObjectIterator<T> input
    • Constructor Detail

      • SpillingResettableMutableObjectIterator

        public SpillingResettableMutableObjectIterator​(org.apache.flink.util.MutableObjectIterator<T> input,
                                                       org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
                                                       MemoryManager memoryManager,
                                                       IOManager ioManager,
                                                       List<org.apache.flink.core.memory.MemorySegment> memory)