public interface HsDataView
HsSubpartitionConsumer to find out what data exists in memory or disk and
polling the data.| Modifier and Type | Method and Description |
|---|---|
Optional<ResultSubpartition.BufferAndBacklog> |
consumeBuffer(int nextBufferToConsume,
Collection<Buffer> buffersToRecycle)
Try to consume next buffer.
|
int |
getBacklog()
Get the number of buffers whose
Buffer.DataType is buffer. |
Buffer.DataType |
peekNextToConsumeDataType(int nextBufferToConsume,
Collection<Buffer> buffersToRecycle)
Get dataType of next buffer to consume.
|
void |
releaseDataView()
Release this
HsDataView when related subpartition view is releasing. |
Optional<ResultSubpartition.BufferAndBacklog> consumeBuffer(int nextBufferToConsume, Collection<Buffer> buffersToRecycle) throws Throwable
Only invoked by consumer thread.
nextBufferToConsume - next buffer index to consume.buffersToRecycle - buffers to recycle if needed.Optional.empty().ThrowableBuffer.DataType peekNextToConsumeDataType(int nextBufferToConsume, Collection<Buffer> buffersToRecycle)
nextBufferToConsume - next buffer index to consumebuffersToRecycle - buffers to recycle if needed.Buffer.DataType.NONE.int getBacklog()
Buffer.DataType is buffer.void releaseDataView()
HsDataView when related subpartition view is releasing.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.