Class StateLocalitySlotAssigner
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptive.allocator.StateLocalitySlotAssigner
-
- All Implemented Interfaces:
SlotAssigner
@Internal public class StateLocalitySlotAssigner extends Object implements SlotAssigner
ASlotAssigner
that assigns slots based on the number of local key groups.
-
-
Constructor Summary
Constructors Constructor Description StateLocalitySlotAssigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<JobSchedulingPlan.SlotAssignment>
assignSlots(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)
-
-
-
Method Detail
-
assignSlots
public Collection<JobSchedulingPlan.SlotAssignment> assignSlots(JobInformation jobInformation, Collection<? extends SlotInfo> freeSlots, VertexParallelism vertexParallelism, JobAllocationsInformation previousAllocations)
- Specified by:
assignSlots
in 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)
-
-