public class BoundedBlockingSubpartitionDirectTransferReader extends Object implements ResultSubpartitionView
FileRegion.ResultSubpartitionView.AvailabilityWithBacklog| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeAllDataProcessed() |
ResultSubpartitionView.AvailabilityWithBacklog |
getAvailabilityAndBacklog(int numCreditsAvailable) |
Throwable |
getFailureCause() |
ResultSubpartition.BufferAndBacklog |
getNextBuffer()
Returns the next
Buffer instance of this queue iterator. |
int |
getNumberOfQueuedBuffers() |
boolean |
isReleased() |
void |
notifyDataAvailable() |
void |
notifyNewBufferSize(int newBufferSize) |
void |
releaseAllResources() |
void |
resumeConsumption() |
String |
toString() |
int |
unsynchronizedGetNumberOfQueuedBuffers() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnotifyPriorityEvent@Nullable public ResultSubpartition.BufferAndBacklog getNextBuffer() throws IOException
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 ResultSubpartitionViewIOExceptionpublic ResultSubpartitionView.AvailabilityWithBacklog getAvailabilityAndBacklog(int numCreditsAvailable)
getAvailabilityAndBacklog in interface ResultSubpartitionViewpublic void releaseAllResources()
throws IOException
releaseAllResources in interface ResultSubpartitionViewIOExceptionpublic boolean isReleased()
isReleased in interface ResultSubpartitionViewpublic Throwable getFailureCause()
getFailureCause in interface ResultSubpartitionViewpublic int unsynchronizedGetNumberOfQueuedBuffers()
unsynchronizedGetNumberOfQueuedBuffers in interface ResultSubpartitionViewpublic int getNumberOfQueuedBuffers()
getNumberOfQueuedBuffers in interface ResultSubpartitionViewpublic void notifyNewBufferSize(int newBufferSize)
notifyNewBufferSize in interface ResultSubpartitionViewpublic void notifyDataAvailable()
notifyDataAvailable in interface ResultSubpartitionViewpublic void resumeConsumption()
resumeConsumption in interface ResultSubpartitionViewpublic void acknowledgeAllDataProcessed()
acknowledgeAllDataProcessed in interface ResultSubpartitionViewCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.