Class SpillingResettableMutableObjectIterator<T>

java.lang.Object
org.apache.flink.runtime.operators.resettable.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 Details

    • inView

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

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

      protected final SpillingBuffer buffer
    • input

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

      protected final MemoryManager memoryManager
  • Constructor Details

    • SpillingResettableMutableObjectIterator

      public SpillingResettableMutableObjectIterator(org.apache.flink.util.MutableObjectIterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, int numPages, AbstractInvokable parentTask) throws MemoryAllocationException
      Throws:
      MemoryAllocationException
    • 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)
  • Method Details