Class ExecutionGraphToInputsLocationsRetrieverAdapter
java.lang.Object
org.apache.flink.runtime.scheduler.ExecutionGraphToInputsLocationsRetrieverAdapter
- All Implemented Interfaces:
InputsLocationsRetriever
public class ExecutionGraphToInputsLocationsRetrieverAdapter
extends Object
implements InputsLocationsRetriever
An implementation of
InputsLocationsRetriever based on the ExecutionGraph.-
Constructor Summary
ConstructorsConstructorDescriptionExecutionGraphToInputsLocationsRetrieverAdapter(ExecutionGraph executionGraph) -
Method Summary
Modifier and TypeMethodDescriptiongetConsumedPartitionGroups(ExecutionVertexID executionVertexId) Get the consumed result partition groups of an execution vertex.getProducersOfConsumedPartitionGroup(ConsumedPartitionGroup consumedPartitionGroup) Get the producer execution vertices of a consumed result partition group.getTaskManagerLocation(ExecutionVertexID executionVertexId) Get the task manager location future for an execution vertex.
-
Constructor Details
-
ExecutionGraphToInputsLocationsRetrieverAdapter
-
-
Method Details
-
getConsumedPartitionGroups
public Collection<ConsumedPartitionGroup> getConsumedPartitionGroups(ExecutionVertexID executionVertexId) Description copied from interface:InputsLocationsRetrieverGet the consumed result partition groups of an execution vertex.- Specified by:
getConsumedPartitionGroupsin interfaceInputsLocationsRetriever- Parameters:
executionVertexId- identifies the execution vertex- Returns:
- the consumed result partition groups
-
getProducersOfConsumedPartitionGroup
public Collection<ExecutionVertexID> getProducersOfConsumedPartitionGroup(ConsumedPartitionGroup consumedPartitionGroup) Description copied from interface:InputsLocationsRetrieverGet the producer execution vertices of a consumed result partition group.- Specified by:
getProducersOfConsumedPartitionGroupin interfaceInputsLocationsRetriever- Parameters:
consumedPartitionGroup- the consumed result partition group- Returns:
- the ids of producer execution vertices
-
getTaskManagerLocation
public Optional<CompletableFuture<TaskManagerLocation>> getTaskManagerLocation(ExecutionVertexID executionVertexId) Description copied from interface:InputsLocationsRetrieverGet the task manager location future for an execution vertex.- Specified by:
getTaskManagerLocationin interfaceInputsLocationsRetriever- Parameters:
executionVertexId- identifying the execution vertex- Returns:
- the task manager location future
-