public class RandomAccessOutputView extends AbstractPagedOutputView implements org.apache.flink.core.memory.SeekableDataOutputView
headerLength, segmentSize| Constructor and Description |
|---|
RandomAccessOutputView(org.apache.flink.core.memory.MemorySegment[] segments,
int segmentSize) |
RandomAccessOutputView(org.apache.flink.core.memory.MemorySegment[] segments,
int segmentSize,
int segmentSizeBits) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.flink.core.memory.MemorySegment |
nextSegment(org.apache.flink.core.memory.MemorySegment current,
int positionInCurrent)
This method must return a segment.
|
void |
setWritePosition(long position) |
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipBytesToWrite, writewrite, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic RandomAccessOutputView(org.apache.flink.core.memory.MemorySegment[] segments,
int segmentSize)
public RandomAccessOutputView(org.apache.flink.core.memory.MemorySegment[] segments,
int segmentSize,
int segmentSizeBits)
protected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current,
int positionInCurrent)
throws EOFException
AbstractPagedOutputViewEOFException.nextSegment in class AbstractPagedOutputViewcurrent - The current memory segmentpositionInCurrent - The position in the segment, one after the last valid byte.EOFExceptionpublic void setWritePosition(long position)
setWritePosition in interface org.apache.flink.core.memory.SeekableDataOutputViewCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.