public class NoOpResultSubpartitionView extends Object implements ResultSubpartitionView
ResultSubpartitionView.| Constructor and Description |
|---|
NoOpResultSubpartitionView() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getFailureCause() |
ResultSubpartition.BufferAndBacklog |
getNextBuffer()
Returns the next
Buffer instance of this queue iterator. |
boolean |
isAvailable() |
boolean |
isReleased() |
boolean |
nextBufferIsEvent()
Returns whether the next buffer is an event or not.
|
void |
notifyDataAvailable() |
void |
releaseAllResources() |
int |
unsynchronizedGetNumberOfQueuedBuffers() |
@Nullable public ResultSubpartition.BufferAndBacklog getNextBuffer()
ResultSubpartitionViewBuffer instance of this queue iterator.
If there is currently no instance available, it will return null.
This might happen for example when a pipelined queue producer is slower
than the consumer or a spilled queue needs to read in more data.
Important: The consumer has to make sure that each
buffer instance will eventually be recycled with Buffer.recycleBuffer()
after it has been consumed.
getNextBuffer in interface ResultSubpartitionViewpublic void notifyDataAvailable()
notifyDataAvailable in interface ResultSubpartitionViewpublic void releaseAllResources()
releaseAllResources in interface ResultSubpartitionViewpublic boolean isReleased()
isReleased in interface ResultSubpartitionViewpublic Throwable getFailureCause()
getFailureCause in interface ResultSubpartitionViewpublic boolean nextBufferIsEvent()
ResultSubpartitionViewnextBufferIsEvent in interface ResultSubpartitionViewpublic boolean isAvailable()
isAvailable in interface ResultSubpartitionViewpublic int unsynchronizedGetNumberOfQueuedBuffers()
unsynchronizedGetNumberOfQueuedBuffers in interface ResultSubpartitionViewCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.