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
public abstract class AbstractPartitionTracker<K,M> extends Object implements PartitionTracker<K,M>
Base partition tracker implementation, providing underlying data-structures for storing partitions, their associated keys and meta-information.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<ResultPartitionID,org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker.PartitionInfo<K,M>>partitionInfosprotected PartitionTable<K>partitionTable
-
Constructor Summary
Constructors Constructor Description AbstractPartitionTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPartitionTracked(ResultPartitionID resultPartitionID)Returns whether the given partition is being tracked.booleanisTrackingPartitionsFor(K key)Returns whether any partition is being tracked for the given key.Collection<PartitionTrackerEntry<K,M>>stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds)Stops the tracking of the given partitions.Collection<PartitionTrackerEntry<K,M>>stopTrackingPartitionsFor(K key)Stops the tracking of all partitions for the given key.
-
-
-
Field Detail
-
partitionTable
protected final PartitionTable<K> partitionTable
-
partitionInfos
protected final Map<ResultPartitionID,org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker.PartitionInfo<K,M>> partitionInfos
-
-
Method Detail
-
stopTrackingPartitionsFor
public Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitionsFor(K key)
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
public boolean isTrackingPartitionsFor(K key)
Description copied from interface:PartitionTrackerReturns whether any partition is being tracked for the given key.- Specified by:
isTrackingPartitionsForin interfacePartitionTracker<K,M>
-
isPartitionTracked
public boolean isPartitionTracked(ResultPartitionID resultPartitionID)
Description copied from interface:PartitionTrackerReturns whether the given partition is being tracked.- Specified by:
isPartitionTrackedin interfacePartitionTracker<K,M>
-
-