Package org.apache.flink.runtime.shuffle
Class JobShuffleContextImpl
- java.lang.Object
-
- org.apache.flink.runtime.shuffle.JobShuffleContextImpl
-
- All Implemented Interfaces:
JobShuffleContext
public class JobShuffleContextImpl extends Object implements JobShuffleContext
The default implementation ofJobShuffleContext.
-
-
Constructor Summary
Constructors Constructor Description JobShuffleContextImpl(org.apache.flink.api.common.JobID jobId, JobMasterGateway jobMasterGateway)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.JobIDgetJobId()CompletableFuture<?>stopTrackingAndReleasePartitions(Collection<ResultPartitionID> partitionIds)Notifies the job to stop tracking and release the target result partitions, which means these partitions will be removed and will be reproduced if used afterwards.
-
-
-
Constructor Detail
-
JobShuffleContextImpl
public JobShuffleContextImpl(org.apache.flink.api.common.JobID jobId, JobMasterGateway jobMasterGateway)
-
-
Method Detail
-
getJobId
public org.apache.flink.api.common.JobID getJobId()
- Specified by:
getJobIdin interfaceJobShuffleContext- Returns:
- the corresponding
JobID.
-
stopTrackingAndReleasePartitions
public CompletableFuture<?> stopTrackingAndReleasePartitions(Collection<ResultPartitionID> partitionIds)
Description copied from interface:JobShuffleContextNotifies the job to stop tracking and release the target result partitions, which means these partitions will be removed and will be reproduced if used afterwards.- Specified by:
stopTrackingAndReleasePartitionsin interfaceJobShuffleContext
-
-