public interface HsDataView
HsSubpartitionView to find out what data exists in memory or disk and polling
the data.| 限定符和类型 | 方法和说明 |
|---|---|
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().ThrowableBuffer.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–2023 The Apache Software Foundation. All rights reserved.