Class ResultSubpartition.BufferAndBacklog
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.ResultSubpartition.BufferAndBacklog
-
- Enclosing class:
- ResultSubpartition
public static final class ResultSubpartition.BufferAndBacklog extends Object
A combination of aBufferand the backlog length indicating how many non-event buffers are available in the subpartition.
-
-
Constructor Summary
Constructors Constructor Description BufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Bufferbuffer()intbuffersInBacklog()static ResultSubpartition.BufferAndBacklogfromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber)Buffer.DataTypegetNextDataType()intgetSequenceNumber()booleanisDataAvailable()booleanisEventAvailable()
-
-
-
Constructor Detail
-
BufferAndBacklog
public BufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber)
-
-
Method Detail
-
buffer
public Buffer buffer()
-
isDataAvailable
public boolean isDataAvailable()
-
buffersInBacklog
public int buffersInBacklog()
-
isEventAvailable
public boolean isEventAvailable()
-
getNextDataType
public Buffer.DataType getNextDataType()
-
getSequenceNumber
public int getSequenceNumber()
-
fromBufferAndLookahead
public static ResultSubpartition.BufferAndBacklog fromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber)
-
-