public abstract class AbstractPartitionTracker<K,M> extends Object implements PartitionTracker<K,M>
Modifier and Type | Field and Description |
---|---|
protected Map<ResultPartitionID,org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker.PartitionInfo<K,M>> |
partitionInfos |
protected PartitionTable<K> |
partitionTable |
Constructor and Description |
---|
AbstractPartitionTracker() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPartitionTracked(ResultPartitionID resultPartitionID)
Returns whether the given partition is being tracked.
|
boolean |
isTrackingPartitionsFor(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.
|
protected final PartitionTable<K> partitionTable
protected final Map<ResultPartitionID,org.apache.flink.runtime.io.network.partition.AbstractPartitionTracker.PartitionInfo<K,M>> partitionInfos
public Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitionsFor(K key)
PartitionTracker
stopTrackingPartitionsFor
in interface PartitionTracker<K,M>
public Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds)
PartitionTracker
stopTrackingPartitions
in interface PartitionTracker<K,M>
public boolean isTrackingPartitionsFor(K key)
PartitionTracker
isTrackingPartitionsFor
in interface PartitionTracker<K,M>
public boolean isPartitionTracked(ResultPartitionID resultPartitionID)
PartitionTracker
isPartitionTracked
in interface PartitionTracker<K,M>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.