public static final class ResultSubpartition.BufferAndBacklog extends Object
Buffer
and the backlog length indicating how many non-event
buffers are available in the subpartition.Constructor and Description |
---|
BufferAndBacklog(Buffer buffer,
int buffersInBacklog,
Buffer.DataType nextDataType,
int sequenceNumber) |
Modifier and Type | Method and 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() |
public BufferAndBacklog(Buffer buffer, int buffersInBacklog, Buffer.DataType nextDataType, int sequenceNumber)
public Buffer buffer()
public boolean isDataAvailable()
public int buffersInBacklog()
public boolean isEventAvailable()
public Buffer.DataType getNextDataType()
public int getSequenceNumber()
public static ResultSubpartition.BufferAndBacklog fromBufferAndLookahead(Buffer current, Buffer.DataType nextDataType, int backlog, int sequenceNumber)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.