public class PipelinedSubpartitionView extends Object implements ResultSubpartitionView
ResultSubpartitionView.AvailabilityWithBacklog| 构造器和说明 |
|---|
PipelinedSubpartitionView(PipelinedSubpartition parent,
BufferAvailabilityListener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
notifyPriorityEvent(int priorityBufferNumber) |
void |
releaseAllResources() |
void |
resumeConsumption() |
String |
toString() |
int |
unsynchronizedGetNumberOfQueuedBuffers() |
public PipelinedSubpartitionView(PipelinedSubpartition parent, BufferAvailabilityListener listener)
@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 在接口中 ResultSubpartitionViewpublic void notifyDataAvailable()
notifyDataAvailable 在接口中 ResultSubpartitionViewpublic void notifyPriorityEvent(int priorityBufferNumber)
notifyPriorityEvent 在接口中 ResultSubpartitionViewpublic void releaseAllResources()
releaseAllResources 在接口中 ResultSubpartitionViewpublic boolean isReleased()
isReleased 在接口中 ResultSubpartitionViewpublic void resumeConsumption()
resumeConsumption 在接口中 ResultSubpartitionViewpublic void acknowledgeAllDataProcessed()
public ResultSubpartitionView.AvailabilityWithBacklog getAvailabilityAndBacklog(int numCreditsAvailable)
public Throwable getFailureCause()
getFailureCause 在接口中 ResultSubpartitionViewpublic int unsynchronizedGetNumberOfQueuedBuffers()
public int getNumberOfQueuedBuffers()
public void notifyNewBufferSize(int newBufferSize)
notifyNewBufferSize 在接口中 ResultSubpartitionViewCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.