public class DefaultPreferredLocationsRetriever extends Object implements PreferredLocationsRetriever
PreferredLocationsRetriever
. Locations based on state will be
returned if exist. Otherwise locations based on inputs will be returned.Modifier and Type | Method and Description |
---|---|
CompletableFuture<Collection<TaskManagerLocation>> |
getPreferredLocations(ExecutionVertexID executionVertexId,
Set<ExecutionVertexID> producersToIgnore)
Returns preferred locations of an execution vertex.
|
public CompletableFuture<Collection<TaskManagerLocation>> getPreferredLocations(ExecutionVertexID executionVertexId, Set<ExecutionVertexID> producersToIgnore)
PreferredLocationsRetriever
getPreferredLocations
in interface PreferredLocationsRetriever
executionVertexId
- id of the execution vertexproducersToIgnore
- producer vertices to ignore when calculating input locationsCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.