Class ResultSubpartition.BufferAndBacklog
java.lang.Object
org.apache.flink.runtime.io.network.partition.ResultSubpartition.BufferAndBacklog
- Enclosing class:
- ResultSubpartition
A combination of a
Buffer and the backlog length indicating how many non-event
buffers are available in the subpartition.-
Constructor Summary
ConstructorsConstructorDescriptionBufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber) -
Method Summary
Modifier and TypeMethodDescriptionbuffer()intfromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber) intbooleanboolean
-
Constructor Details
-
BufferAndBacklog
public BufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber)
-
-
Method Details
-
buffer
-
isDataAvailable
public boolean isDataAvailable() -
buffersInBacklog
public int buffersInBacklog() -
isEventAvailable
public boolean isEventAvailable() -
getNextDataType
-
getSequenceNumber
public int getSequenceNumber() -
fromBufferAndLookahead
public static ResultSubpartition.BufferAndBacklog fromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber)
-