Interface ResultPartitionProvider
- All Known Implementing Classes:
ResultPartitionManager
public interface ResultPartitionProvider
Interface for creating result partitions.
-
Method Summary
Modifier and TypeMethodDescriptioncreateSubpartitionView(ResultPartitionID partitionId, ResultSubpartitionIndexSet indexSet, BufferAvailabilityListener availabilityListener) Returns the requested intermediate result partition input view.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.voidRelease the given listener in this result partition provider.
-
Method Details
-
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
Release the given listener in this result partition provider.- Parameters:
listener- the given listener
-