|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.query.optimizer.relational.plantree.NodeEditor
public final class NodeEditor
This class is no longer really an editor. Those methods have been moved over to PlanNode. TODO: rename NodeFinder or merge completely with PlanNode
Method Summary | |
---|---|
static java.util.List<PlanNode> |
findAllNodes(PlanNode root,
int types)
|
static java.util.List<PlanNode> |
findAllNodes(PlanNode root,
int types,
int stopTypes)
Find all nodes of a type, starting at the root of a tree or subtree of PlanNodes and searching downward, but not searching past nodes of type equal to stopType. |
static PlanNode |
findNodePreOrder(PlanNode root,
int types)
|
static PlanNode |
findNodePreOrder(PlanNode root,
int types,
int stopTypes)
|
static PlanNode |
findParent(PlanNode root,
int types)
|
static PlanNode |
findParent(PlanNode root,
int types,
int stopTypes)
Return the first parent node of the given type stopping at the given nodes. |
static void |
removeChildNode(PlanNode parent,
PlanNode child)
all of child's children become children of parent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final void removeChildNode(PlanNode parent, PlanNode child)
public static final PlanNode findNodePreOrder(PlanNode root, int types)
public static final PlanNode findNodePreOrder(PlanNode root, int types, int stopTypes)
public static final PlanNode findParent(PlanNode root, int types)
public static final PlanNode findParent(PlanNode root, int types, int stopTypes)
root
- type
- stopTypes
-
public static final java.util.List<PlanNode> findAllNodes(PlanNode root, int types)
public static final java.util.List<PlanNode> findAllNodes(PlanNode root, int types, int stopTypes)
root
- the top node of the subtree, the point at which searching beginstypes
- the types of the node to search forstopTypes
- type of nodes not to search past
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |