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 a Buffer and the backlog length indicating how many non-event buffers are available in the subpartition.
  • Constructor Details

    • BufferAndBacklog

      public BufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber)
  • Method Details

    • 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)