Class StateLocalitySlotAssigner
java.lang.Object
org.apache.flink.runtime.scheduler.adaptive.allocator.StateLocalitySlotAssigner
- All Implemented Interfaces:
SlotAssigner
A
SlotAssigner that assigns slots based on the number of local key groups.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignSlots(JobInformation jobInformation, Collection<? extends SlotInfo> freeSlots, VertexParallelism vertexParallelism, JobAllocationsInformation previousAllocations) Collection<org.apache.flink.runtime.scheduler.adaptive.allocator.StateLocalitySlotAssigner.AllocationScore>calculateScore(org.apache.flink.runtime.scheduler.adaptive.allocator.SlotSharingSlotAllocator.ExecutionSlotSharingGroup group, Map<JobVertexID, Integer> parallelism, JobInformation jobInformation, JobAllocationsInformation previousAllocations)
-
Constructor Details
-
StateLocalitySlotAssigner
public StateLocalitySlotAssigner()
-
-
Method Details
-
assignSlots
public Collection<JobSchedulingPlan.SlotAssignment> assignSlots(JobInformation jobInformation, Collection<? extends SlotInfo> freeSlots, VertexParallelism vertexParallelism, JobAllocationsInformation previousAllocations) - Specified by:
assignSlotsin interfaceSlotAssigner
-
calculateScore
public Collection<org.apache.flink.runtime.scheduler.adaptive.allocator.StateLocalitySlotAssigner.AllocationScore> calculateScore(org.apache.flink.runtime.scheduler.adaptive.allocator.SlotSharingSlotAllocator.ExecutionSlotSharingGroup group, Map<JobVertexID, Integer> parallelism, JobInformation jobInformation, JobAllocationsInformation previousAllocations)
-