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

      • SimpleCollectingOutputView

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

      • 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()