public class LogicalPlan
extends java.lang.Object
Constructor and Description |
---|
LogicalPlan(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> workerToLogicalId,
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> workerGroups,
java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> nodeToLogicalId,
int thisWorker) |
Modifier and Type | Method and Description |
---|---|
void |
addLogicalIdToWorker(int worker,
int logicalId) |
java.util.Set<java.lang.Integer> |
getAllWorkers() |
int |
getGroupOfWorker(int worker) |
int |
getIndexOfTaskInNode(int task) |
java.util.Set<java.lang.Integer> |
getLogicalIdsOfThisWorker() |
java.util.Set<java.lang.Integer> |
getLogicalIdsOfWorker(int worker) |
java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> |
getNodeToLogicalId() |
int |
getThisWorker() |
int |
getWorkerForForLogicalId(int channel) |
java.util.Set<java.lang.Integer> |
getWorkersOfGroup(int group) |
java.lang.String |
toString() |
public LogicalPlan(java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> workerToLogicalId, java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> workerGroups, java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> nodeToLogicalId, int thisWorker)
public int getWorkerForForLogicalId(int channel)
public java.util.Set<java.lang.Integer> getLogicalIdsOfWorker(int worker)
public int getThisWorker()
public java.util.Set<java.lang.Integer> getAllWorkers()
public java.util.Set<java.lang.Integer> getWorkersOfGroup(int group)
public int getGroupOfWorker(int worker)
public void addLogicalIdToWorker(int worker, int logicalId)
public java.util.Set<java.lang.Integer> getLogicalIdsOfThisWorker()
public java.util.Map<java.lang.String,java.util.Set<java.lang.Integer>> getNodeToLogicalId()
public int getIndexOfTaskInNode(int task)
public java.lang.String toString()
toString
in class java.lang.Object