public abstract class RelVisitor extends 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 |
|---|---|
@Nullable RelNode |
go(RelNode p)
Starts an iteration.
|
void |
replaceRoot(@Nullable RelNode node)
Replaces the root node of this traversal.
|
void |
visit(RelNode node,
int ordinal,
@Nullable RelNode parent)
Visits a node during a traversal.
|
public void visit(RelNode node, int ordinal, @Nullable 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(@Nullable RelNode node)
node - The new root nodeCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.