public class ExecutionGraphToInputsLocationsRetrieverAdapter extends Object implements InputsLocationsRetriever
InputsLocationsRetriever
based on the ExecutionGraph
.Constructor and Description |
---|
ExecutionGraphToInputsLocationsRetrieverAdapter(ExecutionGraph executionGraph) |
Modifier and Type | Method and 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.
|
public ExecutionGraphToInputsLocationsRetrieverAdapter(ExecutionGraph executionGraph)
public Collection<ConsumedPartitionGroup> getConsumedPartitionGroups(ExecutionVertexID executionVertexId)
InputsLocationsRetriever
getConsumedPartitionGroups
in interface InputsLocationsRetriever
executionVertexId
- identifies the execution vertexpublic Collection<ExecutionVertexID> getProducersOfConsumedPartitionGroup(ConsumedPartitionGroup consumedPartitionGroup)
InputsLocationsRetriever
getProducersOfConsumedPartitionGroup
in interface InputsLocationsRetriever
consumedPartitionGroup
- the consumed result partition grouppublic Optional<CompletableFuture<TaskManagerLocation>> getTaskManagerLocation(ExecutionVertexID executionVertexId)
InputsLocationsRetriever
getTaskManagerLocation
in interface InputsLocationsRetriever
executionVertexId
- identifying the execution vertexCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.