public class JoinTreeNode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JoinTreeNode.ComparatorValueDescending
The Class ComparatorValueDescending.
|
Constructor and Description |
---|
JoinTreeNode(float value,
int position)
Instantiates a new join tree node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(JoinTreeNode c)
Adds the child.
|
static java.util.Vector<JoinTreeNode> |
ancestorList(JoinTreeNode node)
Ancestor list.
|
int |
childCount()
Child count.
|
void |
findLeaves(java.util.Queue<JoinTreeNode> leaf_list)
Find leaves.
|
static JoinTreeNode |
firstCommonAncestor(JoinTreeNode node0,
JoinTreeNode node1)
First common ancestor.
|
JoinTreeNode |
getChild(int idx)
Gets the child.
|
java.util.List<JoinTreeNode> |
getChildren()
Gets the children.
|
JoinTreeNode |
getParent()
Gets the parent.
|
int |
getPosition()
Gets the position.
|
static java.util.Set<JoinTreeNode> |
getSublevelset(JoinTreeNode node)
Gets the sublevelset.
|
float |
getValue()
Gets the value.
|
boolean |
hasChildren()
Checks for children.
|
boolean |
hasParent()
Checks for parent.
|
boolean |
isChild(JoinTreeNode node)
Checks if is child.
|
void |
print(boolean recursive)
Prints the.
|
void |
print(boolean splitTree,
boolean recursive)
Prints the.
|
void |
removeChild(JoinTreeNode node)
Removes the child.
|
void |
setParent(JoinTreeNode p)
Sets the parent.
|
public JoinTreeNode(float value, int position)
value
- the valueposition
- the positionpublic void setParent(JoinTreeNode p)
p
- the new parentpublic void addChild(JoinTreeNode c)
c
- the cpublic JoinTreeNode getParent()
public int childCount()
public JoinTreeNode getChild(int idx)
idx
- the idxpublic java.util.List<JoinTreeNode> getChildren()
public boolean isChild(JoinTreeNode node)
node
- the nodepublic float getValue()
public int getPosition()
public void findLeaves(java.util.Queue<JoinTreeNode> leaf_list)
leaf_list
- the leaf listpublic void print(boolean recursive)
recursive
- the recursivepublic void print(boolean splitTree, boolean recursive)
splitTree
- the split treerecursive
- the recursivepublic boolean hasParent()
public boolean hasChildren()
public void removeChild(JoinTreeNode node)
node
- the nodepublic static JoinTreeNode firstCommonAncestor(JoinTreeNode node0, JoinTreeNode node1)
node0
- the node 0node1
- the node 1public static java.util.Vector<JoinTreeNode> ancestorList(JoinTreeNode node)
node
- the nodepublic static java.util.Set<JoinTreeNode> getSublevelset(JoinTreeNode node)
node
- the node