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 |
notifySubpartitionConsumed() |
boolean |
registerListener(NotificationListener listener)
Subscribes to data availability notifications.
|
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.
IOExceptionInterruptedExceptionboolean registerListener(NotificationListener listener) throws IOException
Returns whether the subscription was successful. A subscription fails, if there is data available.
IOExceptionvoid releaseAllResources()
throws IOException
IOExceptionvoid notifySubpartitionConsumed()
throws IOException
IOExceptionboolean isReleased()
Throwable getFailureCause()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.