org.eigenbase.relopt
Class RelTraitPropagationVisitor
java.lang.Object
org.eigenbase.rel.RelVisitor
org.eigenbase.relopt.RelTraitPropagationVisitor
public class RelTraitPropagationVisitor
- extends RelVisitor
RelTraitPropagationVisitor traverses a RelNode and its unregistered
children, making sure that each has a full complement of traits. When a
RelNode is found to be missing one or more traits, they are copied from a
RelTraitSet given during construction.
- Author:
- Stephan Zuercher
Method Summary |
void |
visit(RelNode rel,
int ordinal,
RelNode parent)
Visits a node during a traversal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baseTraits
private final RelTraitSet baseTraits
planner
private final RelOptPlanner planner
RelTraitPropagationVisitor
public RelTraitPropagationVisitor(RelOptPlanner planner,
RelTraitSet baseTraits)
visit
public void visit(RelNode rel,
int ordinal,
RelNode parent)
- Description copied from class:
RelVisitor
- Visits a node during a traversal.
- Overrides:
visit
in class RelVisitor
- Parameters:
rel
- Node to visitordinal
- Ordinal of node within its parentparent
- Parent of the node, or null if it is the root of the
traversal