public class SimpleCollectingOutputView extends AbstractPagedOutputView
headerLength, segmentSize
Constructor and Description |
---|
SimpleCollectingOutputView(List<org.apache.flink.core.memory.MemorySegment> fullSegmentTarget,
org.apache.flink.core.memory.MemorySegmentSource memSource,
int segmentSize) |
Modifier and Type | Method and Description |
---|---|
long |
getCurrentOffset() |
protected org.apache.flink.core.memory.MemorySegment |
nextSegment(org.apache.flink.core.memory.MemorySegment current,
int positionInCurrent)
This method must return a segment.
|
void |
reset() |
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public SimpleCollectingOutputView(List<org.apache.flink.core.memory.MemorySegment> fullSegmentTarget, org.apache.flink.core.memory.MemorySegmentSource memSource, int segmentSize)
public void reset()
protected org.apache.flink.core.memory.MemorySegment nextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent) throws EOFException
AbstractPagedOutputView
EOFException
.nextSegment
in class AbstractPagedOutputView
current
- The current memory segmentpositionInCurrent
- The position in the segment, one after the last valid byte.EOFException
public long getCurrentOffset()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.