Class DefaultPreferredLocationsRetriever
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.DefaultPreferredLocationsRetriever
-
- All Implemented Interfaces:
PreferredLocationsRetriever
public class DefaultPreferredLocationsRetriever extends Object implements PreferredLocationsRetriever
Default implementation ofPreferredLocationsRetriever
. Locations based on state will be returned if exist. Otherwise locations based on inputs will be returned.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Collection<TaskManagerLocation>>
getPreferredLocations(ExecutionVertexID executionVertexId, Set<ExecutionVertexID> producersToIgnore)
Returns preferred locations of an execution vertex.
-
-
-
Method Detail
-
getPreferredLocations
public CompletableFuture<Collection<TaskManagerLocation>> getPreferredLocations(ExecutionVertexID executionVertexId, Set<ExecutionVertexID> producersToIgnore)
Description copied from interface:PreferredLocationsRetriever
Returns preferred locations of an execution vertex.- Specified by:
getPreferredLocations
in interfacePreferredLocationsRetriever
- Parameters:
executionVertexId
- id of the execution vertexproducersToIgnore
- producer vertices to ignore when calculating input locations- Returns:
- future of preferred locations
-
-