Class AbstractPartitionTracker<K,M>
java.lang.Object
org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker<K,M>
- All Implemented Interfaces:
PartitionTracker<K,M>
- Direct Known Subclasses:
JobMasterPartitionTrackerImpl,TaskExecutorPartitionTrackerImpl
Base partition tracker implementation, providing underlying data-structures for storing
partitions, their associated keys and meta-information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<ResultPartitionID,org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker.PartitionInfo<K, M>> protected final PartitionTable<K> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPartitionTracked(ResultPartitionID resultPartitionID) Returns whether the given partition is being tracked.booleanisTrackingPartitionsFor(K key) Returns whether any partition is being tracked for the given key.stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds) Stops the tracking of the given partitions.Stops the tracking of all partitions for the given key.
-
Field Details
-
partitionTable
-
partitionInfos
protected final Map<ResultPartitionID,org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker.PartitionInfo<K, partitionInfosM>>
-
-
Constructor Details
-
AbstractPartitionTracker
public AbstractPartitionTracker()
-
-
Method Details
-
stopTrackingPartitionsFor
Description copied from interface:PartitionTrackerStops the tracking of all partitions for the given key.- Specified by:
stopTrackingPartitionsForin interfacePartitionTracker<K,M>
-
stopTrackingPartitions
public Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds) Description copied from interface:PartitionTrackerStops the tracking of the given partitions.- Specified by:
stopTrackingPartitionsin interfacePartitionTracker<K,M>
-
isTrackingPartitionsFor
Description copied from interface:PartitionTrackerReturns whether any partition is being tracked for the given key.- Specified by:
isTrackingPartitionsForin interfacePartitionTracker<K,M>
-
isPartitionTracked
Description copied from interface:PartitionTrackerReturns whether the given partition is being tracked.- Specified by:
isPartitionTrackedin interfacePartitionTracker<K,M>
-