public final class Utils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Option |
createOption(java.lang.String opt,
boolean hasArg,
java.lang.String description,
boolean required) |
static LogicalPlan |
createReduceTaskPlan(Config cfg,
int workerID,
java.util.List<JobMasterAPI.WorkerInfo> workerInfoList,
int noOfTasks)
Let assume we have 2 tasks per container and one additional for first container,
which will be the destination
|
static LogicalPlan |
createStageLogicalPlan(WorkerEnvironment workerEnv,
java.util.List<java.lang.Integer> noOfTaskEachStage)
Create task plan according to stages
|
static java.util.Set<java.lang.Integer> |
getTasksOfExecutor(int exec,
LogicalPlan plan,
java.util.List<java.lang.Integer> noOfTaskEachStage,
int stage) |
static java.lang.String |
printMap(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> map) |
public static LogicalPlan createReduceTaskPlan(Config cfg, int workerID, java.util.List<JobMasterAPI.WorkerInfo> workerInfoList, int noOfTasks)
public static java.lang.String printMap(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> map)
public static Option createOption(java.lang.String opt, boolean hasArg, java.lang.String description, boolean required)
public static LogicalPlan createStageLogicalPlan(WorkerEnvironment workerEnv, java.util.List<java.lang.Integer> noOfTaskEachStage)
workerEnv
- worker environmentnoOfTaskEachStage
- no of tasks at each stagepublic static java.util.Set<java.lang.Integer> getTasksOfExecutor(int exec, LogicalPlan plan, java.util.List<java.lang.Integer> noOfTaskEachStage, int stage)