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 aBuffer
and 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 Buffer
buffer()
int
buffersInBacklog()
static ResultSubpartition.BufferAndBacklog
fromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber)
Buffer.DataType
getNextDataType()
int
getSequenceNumber()
boolean
isDataAvailable()
boolean
isEventAvailable()
-
-
-
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)
-
-