public static interface LogicalPlanBuilder.Distribution
Modifier and Type | Method and Description |
---|---|
int |
stickTaskTo(int task,
java.util.Set<java.lang.Integer> workers,
java.util.Set<java.lang.Integer> allTasksOfKind)
This method should return the workerId to schedule the task
|
int stickTaskTo(int task, java.util.Set<java.lang.Integer> workers, java.util.Set<java.lang.Integer> allTasksOfKind)
task
- task to be scheduledworkers
- set of all available workers as a referenceallTasksOfKind
- all other tasks of type "task"