public class BinaryTree
extends java.lang.Object
| Constructor and Description |
|---|
BinaryTree(int interNodeDegree,
int intraNodeDegree,
LogicalPlan logicalPlan,
int source,
java.util.Set<java.lang.Integer> destinations) |
| Modifier and Type | Method and Description |
|---|---|
Node |
buildInterGroupTree(int index)
Building the tree
|
static Node |
search(Node root,
int taskId) |
static Node |
searchParent(Node root,
int taskId)
Retrieve the parent of the child
|
static void |
visit(Node root) |
public BinaryTree(int interNodeDegree,
int intraNodeDegree,
LogicalPlan logicalPlan,
int source,
java.util.Set<java.lang.Integer> destinations)
public static void visit(Node root)
public static Node searchParent(Node root, int taskId)
root - the node to start searchtaskId - task idpublic Node buildInterGroupTree(int index)
index - the index to create a unique tree