public interface ResultSubpartitionView
ResultSubpartition instance.| Modifier and Type | Method and Description |
|---|---|
Throwable |
getFailureCause() |
Buffer |
getNextBuffer()
Returns the next
Buffer instance of this queue iterator. |
boolean |
isReleased() |
void |
notifyBuffersAvailable(long buffers) |
void |
notifySubpartitionConsumed() |
void |
releaseAllResources() |
Buffer getNextBuffer() throws IOException, InterruptedException
Buffer 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.recycle()
after it has been consumed.
IOExceptionInterruptedExceptionvoid notifyBuffersAvailable(long buffers)
throws IOException
IOExceptionvoid releaseAllResources()
throws IOException
IOExceptionvoid notifySubpartitionConsumed()
throws IOException
IOExceptionboolean isReleased()
Throwable getFailureCause()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.