public interface HsDataView
HsSubpartitionView
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)
Try to consume next buffer.
|
int |
getBacklog()
Get the number of buffers backlog.
|
Buffer.DataType |
peekNextToConsumeDataType(int nextBufferToConsume)
Get dataType of next buffer to consume.
|
void |
releaseDataView()
Release this
HsDataView when related subpartition view is releasing. |
Optional<ResultSubpartition.BufferAndBacklog> consumeBuffer(int nextBufferToConsume) throws Throwable
Only invoked by consumer thread.
nextBufferToConsume
- next buffer index to consume.Optional.empty()
.Throwable
Buffer.DataType peekNextToConsumeDataType(int nextBufferToConsume)
nextBufferToConsume
- next buffer index to consumeBuffer.DataType.NONE
.int getBacklog()
void releaseDataView()
HsDataView
when related subpartition view is releasing.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.