Class PartitionTable<K>
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.partition.PartitionTable<K>
-
@ThreadSafe public class PartitionTable<K> extends Object
Thread-safe Utility for tracking partitions.
-
-
Constructor Summary
Constructors Constructor Description PartitionTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ResultPartitionID>
getTrackedPartitions(K key)
boolean
hasTrackedPartitions(K key)
Returns whether any partitions are being tracked for the given key.void
startTrackingPartitions(K key, Collection<ResultPartitionID> newPartitionIds)
Starts the tracking of the given partition for the given key.Collection<ResultPartitionID>
stopTrackingPartitions(K key)
Stops the tracking of all partition for the given key.void
stopTrackingPartitions(K key, Collection<ResultPartitionID> partitionIds)
Stops the tracking of the given set of partitions for the given key.
-
-
-
Method Detail
-
hasTrackedPartitions
public boolean hasTrackedPartitions(K key)
Returns whether any partitions are being tracked for the given key.
-
getTrackedPartitions
public Collection<ResultPartitionID> getTrackedPartitions(K key)
-
startTrackingPartitions
public void startTrackingPartitions(K key, Collection<ResultPartitionID> newPartitionIds)
Starts the tracking of the given partition for the given key.
-
stopTrackingPartitions
public Collection<ResultPartitionID> stopTrackingPartitions(K key)
Stops the tracking of all partition for the given key.
-
stopTrackingPartitions
public void stopTrackingPartitions(K key, Collection<ResultPartitionID> partitionIds)
Stops the tracking of the given set of partitions for the given key.
-
-