public abstract class RelVisitor
extends java.lang.Object
RelVisitor
is a Visitor role in the
visitor pattern
and
visits RelNode
objects as the role of Element. Other components in
the pattern: RelNode.childrenAccept(RelVisitor)
.Constructor and Description |
---|
RelVisitor() |
Modifier and Type | Method and Description |
---|---|
RelNode |
go(RelNode p)
Starts an iteration.
|
void |
replaceRoot(RelNode node)
Replaces the root node of this traversal.
|
void |
visit(RelNode node,
int ordinal,
RelNode parent)
Visits a node during a traversal.
|
private RelNode root
public void visit(RelNode node, int ordinal, RelNode parent)
node
- Node to visitordinal
- Ordinal of node within its parentparent
- Parent of the node, or null if it is the root of the
traversalpublic void replaceRoot(RelNode node)
node
- The new root nodeCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.