public class KeyedInvertedBinaryTreeRouter
extends java.lang.Object
Constructor and Description |
---|
KeyedInvertedBinaryTreeRouter(Config cfg,
LogicalPlan plan,
java.util.Set<java.lang.Integer> roots,
java.util.Set<java.lang.Integer> dests)
Initialize the data structure
|
Modifier and Type | Method and Description |
---|---|
int |
destinationIdentifier(int source,
int path) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>>> |
getExternalSendTasks(int source) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>>> |
getExternalSendTasksForPartial(int source) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>>> |
getInternalSendTasks(int source) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getPathAssignedToTasks() |
boolean |
isLastReceiver() |
int |
mainTaskOfExecutor(int executor,
int path) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>> |
receiveExpectedTaskIds() |
java.util.Set<java.lang.Integer> |
receivingExecutors() |
public KeyedInvertedBinaryTreeRouter(Config cfg, LogicalPlan plan, java.util.Set<java.lang.Integer> roots, java.util.Set<java.lang.Integer> dests)
cfg
- plan
- roots
- dests
- public java.util.Set<java.lang.Integer> receivingExecutors()
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>> receiveExpectedTaskIds()
public boolean isLastReceiver()
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>>> getInternalSendTasks(int source)
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>>> getExternalSendTasks(int source)
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>>> getExternalSendTasksForPartial(int source)
public int mainTaskOfExecutor(int executor, int path)
public int destinationIdentifier(int source, int path)
public java.util.Map<java.lang.Integer,java.lang.Integer> getPathAssignedToTasks()