Class ExecutionGraphToInputsLocationsRetrieverAdapter
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.ExecutionGraphToInputsLocationsRetrieverAdapter
-
- All Implemented Interfaces:
InputsLocationsRetriever
public class ExecutionGraphToInputsLocationsRetrieverAdapter extends Object implements InputsLocationsRetriever
An implementation ofInputsLocationsRetrieverbased on theExecutionGraph.
-
-
Constructor Summary
Constructors Constructor Description ExecutionGraphToInputsLocationsRetrieverAdapter(ExecutionGraph executionGraph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ConsumedPartitionGroup>getConsumedPartitionGroups(ExecutionVertexID executionVertexId)Get the consumed result partition groups of an execution vertex.Collection<ExecutionVertexID>getProducersOfConsumedPartitionGroup(ConsumedPartitionGroup consumedPartitionGroup)Get the producer execution vertices of a consumed result partition group.Optional<CompletableFuture<TaskManagerLocation>>getTaskManagerLocation(ExecutionVertexID executionVertexId)Get the task manager location future for an execution vertex.
-
-
-
Constructor Detail
-
ExecutionGraphToInputsLocationsRetrieverAdapter
public ExecutionGraphToInputsLocationsRetrieverAdapter(ExecutionGraph executionGraph)
-
-
Method Detail
-
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
-
-