public class SerializedUpdateBuffer extends AbstractPagedOutputView
AbstractPagedOutputView
used by the BlockingBackChannel
for transmitting
superstep results.headerLength, segmentSize
Constructor and Description |
---|
SerializedUpdateBuffer() |
SerializedUpdateBuffer(List<MemorySegment> memSegments,
int segmentSize,
IOManager ioManager) |
Modifier and Type | Method and Description |
---|---|
List<MemorySegment> |
close() |
void |
flush() |
protected MemorySegment |
nextSegment(MemorySegment current,
int positionInCurrent)
This method must return a segment.
|
org.apache.flink.runtime.iterative.io.SerializedUpdateBuffer.ReadEnd |
switchBuffers() |
advance, clear, getCurrentPositionInSegment, getCurrentSegment, getHeaderLength, getSegmentSize, seekOutput, skipBytesToWrite, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public SerializedUpdateBuffer()
public SerializedUpdateBuffer(List<MemorySegment> memSegments, int segmentSize, IOManager ioManager)
protected MemorySegment nextSegment(MemorySegment current, int positionInCurrent) throws IOException
AbstractPagedOutputView
EOFException
.nextSegment
in class AbstractPagedOutputView
current
- The current memory segmentpositionInCurrent
- The position in the segment, one after the last valid byte.IOException
public void flush() throws IOException
IOException
public org.apache.flink.runtime.iterative.io.SerializedUpdateBuffer.ReadEnd switchBuffers() throws IOException
IOException
public List<MemorySegment> close()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.