Class RandomAccessOutputView

  • All Implemented Interfaces:
    DataOutput, org.apache.flink.core.memory.DataOutputView, org.apache.flink.core.memory.MemorySegmentWritable, org.apache.flink.core.memory.SeekableDataOutputView

    public class RandomAccessOutputView
    extends AbstractPagedOutputView
    implements org.apache.flink.core.memory.SeekableDataOutputView
    • Constructor Detail

      • RandomAccessOutputView

        public RandomAccessOutputView​(org.apache.flink.core.memory.MemorySegment[] segments,
                                      int segmentSize)
      • RandomAccessOutputView

        public RandomAccessOutputView​(org.apache.flink.core.memory.MemorySegment[] segments,
                                      int segmentSize,
                                      int segmentSizeBits)
    • Method Detail

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

        public void setWritePosition​(long position)
        Specified by:
        setWritePosition in interface org.apache.flink.core.memory.SeekableDataOutputView