Interface ResultPartitionProvider
-
- All Known Implementing Classes:
ResultPartitionManager
public interface ResultPartitionProviderInterface for creating result partitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResultSubpartitionViewcreateSubpartitionView(ResultPartitionID partitionId, ResultSubpartitionIndexSet indexSet, BufferAvailabilityListener availabilityListener)Returns the requested intermediate result partition input view.Optional<ResultSubpartitionView>createSubpartitionViewOrRegisterListener(ResultPartitionID partitionId, ResultSubpartitionIndexSet indexSet, BufferAvailabilityListener availabilityListener, PartitionRequestListener partitionRequestListener)If the upstream task's partition has been registered, returns the result subpartition input view immediately, otherwise register the listener and return empty.voidreleasePartitionRequestListener(PartitionRequestListener listener)Release the given listener in this result partition provider.
-
-
-
Method Detail
-
createSubpartitionView
ResultSubpartitionView createSubpartitionView(ResultPartitionID partitionId, ResultSubpartitionIndexSet indexSet, BufferAvailabilityListener availabilityListener) throws IOException
Returns the requested intermediate result partition input view.- Throws:
IOException
-
createSubpartitionViewOrRegisterListener
Optional<ResultSubpartitionView> createSubpartitionViewOrRegisterListener(ResultPartitionID partitionId, ResultSubpartitionIndexSet indexSet, BufferAvailabilityListener availabilityListener, PartitionRequestListener partitionRequestListener) throws IOException
If the upstream task's partition has been registered, returns the result subpartition input view immediately, otherwise register the listener and return empty.- Parameters:
partitionId- the result partition idindexSet- the index setavailabilityListener- the buffer availability listenerpartitionRequestListener- the partition request listener- Returns:
- the result subpartition view
- Throws:
IOException- the thrown exception
-
releasePartitionRequestListener
void releasePartitionRequestListener(PartitionRequestListener listener)
Release the given listener in this result partition provider.- Parameters:
listener- the given listener
-
-