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