Class SerializedUpdateBuffer
- java.lang.Object
-
- org.apache.flink.runtime.memory.AbstractPagedOutputView
-
- org.apache.flink.runtime.iterative.io.SerializedUpdateBuffer
-
- All Implemented Interfaces:
DataOutput
,DataOutputView
,MemorySegmentWritable
public class SerializedUpdateBuffer extends AbstractPagedOutputView
AbstractPagedOutputView
used by theBlockingBackChannel
for transmitting superstep results.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.memory.AbstractPagedOutputView
headerLength, segmentSize
-
-
Constructor Summary
Constructors Constructor Description SerializedUpdateBuffer()
SerializedUpdateBuffer(List<MemorySegment> memSegments, int segmentSize, IOManager ioManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
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 Detail
-
SerializedUpdateBuffer
public SerializedUpdateBuffer()
-
SerializedUpdateBuffer
public SerializedUpdateBuffer(List<MemorySegment> memSegments, int segmentSize, IOManager ioManager)
-
-
Method Detail
-
nextSegment
protected MemorySegment nextSegment(MemorySegment current, int positionInCurrent) throws IOException
Description copied from class:AbstractPagedOutputView
This method must return a segment. If no more segments are available, it must throw anEOFException
.- Specified by:
nextSegment
in classAbstractPagedOutputView
- Parameters:
current
- The current memory segmentpositionInCurrent
- The position in the segment, one after the last valid byte.- Returns:
- The next memory segment.
- Throws:
IOException
-
flush
public void flush() throws IOException
- Throws:
IOException
-
switchBuffers
public org.apache.flink.runtime.iterative.io.SerializedUpdateBuffer.ReadEnd switchBuffers() throws IOException
- Throws:
IOException
-
close
public List<MemorySegment> close()
-
-