Class SimpleCollectingOutputView

java.lang.Object
org.apache.flink.runtime.memory.AbstractPagedOutputView
org.apache.flink.runtime.io.disk.SimpleCollectingOutputView
All Implemented Interfaces:
DataOutput, org.apache.flink.core.memory.DataOutputView, org.apache.flink.core.memory.MemorySegmentWritable

public class SimpleCollectingOutputView extends AbstractPagedOutputView
The list with the full segments contains at any point all completely full segments, plus the segment that is currently filled.
  • Constructor Details

    • SimpleCollectingOutputView

      public SimpleCollectingOutputView(List<org.apache.flink.core.memory.MemorySegment> fullSegmentTarget, org.apache.flink.core.memory.MemorySegmentSource memSource, int segmentSize)
  • Method Details

    • reset

      public void reset()
    • nextSegment

      protected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent) throws EOFException
      Description copied from class: AbstractPagedOutputView
      This method must return a segment. If no more segments are available, it must throw an EOFException.
      Specified by:
      nextSegment in class AbstractPagedOutputView
      Parameters:
      current - The current memory segment
      positionInCurrent - The position in the segment, one after the last valid byte.
      Returns:
      The next memory segment.
      Throws:
      EOFException
    • getCurrentOffset

      public long getCurrentOffset()