Package org.apache.flink.runtime.io.disk
Class SimpleCollectingOutputView
java.lang.Object
org.apache.flink.runtime.memory.AbstractPagedOutputView
org.apache.flink.runtime.io.disk.SimpleCollectingOutputView
- All Implemented Interfaces:
DataOutput,org.apache.flink.core.memory.DataOutputView,org.apache.flink.core.memory.MemorySegmentWritable
The list with the full segments contains at any point all completely full segments, plus the
segment that is currently filled.
-
Field Summary
Fields inherited from class org.apache.flink.runtime.memory.AbstractPagedOutputView
headerLength, segmentSize -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCollectingOutputView(List<org.apache.flink.core.memory.MemorySegment> fullSegmentTarget, org.apache.flink.core.memory.MemorySegmentSource memSource, int segmentSize) -
Method Summary
Modifier and TypeMethodDescriptionlongprotected org.apache.flink.core.memory.MemorySegmentnextSegment(org.apache.flink.core.memory.MemorySegment current, int positionInCurrent) This method must return a segment.voidreset()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, writeUTF
-
Constructor Details
-
SimpleCollectingOutputView
public SimpleCollectingOutputView(List<org.apache.flink.core.memory.MemorySegment> fullSegmentTarget, org.apache.flink.core.memory.MemorySegmentSource memSource, int segmentSize)
-
-
Method Details
-
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: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
-
getCurrentOffset
public long getCurrentOffset()
-