Package org.apache.flink.runtime.io.disk
Class RandomAccessOutputView
java.lang.Object
org.apache.flink.runtime.memory.AbstractPagedOutputView
org.apache.flink.runtime.io.disk.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
-
Field Summary
Fields inherited from class org.apache.flink.runtime.memory.AbstractPagedOutputView
headerLength, segmentSize -
Constructor Summary
ConstructorsConstructorDescriptionRandomAccessOutputView(org.apache.flink.core.memory.MemorySegment[] segments, int segmentSize) RandomAccessOutputView(org.apache.flink.core.memory.MemorySegment[] segments, int segmentSize, int segmentSizeBits) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.flink.core.memory.MemorySegmentnextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent) This method must return a segment.voidsetWritePosition(long position) Methods inherited from class org.apache.flink.runtime.memory.AbstractPagedOutputView
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from interface org.apache.flink.core.memory.DataOutputView
skipBytesToWrite, write
-
Constructor Details
-
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 Details
-
nextSegment
protected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent) throws EOFException Description copied from class:AbstractPagedOutputViewThis method must return a segment. If no more segments are available, it must throw anEOFException.- Specified by:
nextSegmentin classAbstractPagedOutputView- Parameters:
current- The current memory segmentpositionInCurrent- 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:
setWritePositionin interfaceorg.apache.flink.core.memory.SeekableDataOutputView
-