Class RelTraitPropagationVisitor

java.lang.Object
org.apache.calcite.rel.RelVisitor
org.apache.calcite.plan.RelTraitPropagationVisitor

@Deprecated public class RelTraitPropagationVisitor extends RelVisitor
Deprecated.
As of 1.19, if you need to perform certain assertions regarding a RelNode tree and the contained traits you are encouraged to implement your own RelVisitor or RelShuttle directly. The reasons for deprecating this class are the following:
  • The contract (Javadoc and naming) and the behavior of the class are inconsistent.
  • The class is no longer used by any other components of the framework.
  • The class was used only for debugging purposes.
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.
  • Constructor Details

    • RelTraitPropagationVisitor

      public RelTraitPropagationVisitor(RelOptPlanner planner, RelTraitSet baseTraits)
      Deprecated.
  • Method Details

    • visit

      public void visit(RelNode rel, int ordinal, @Nullable RelNode parent)
      Deprecated.
      Description copied from class: RelVisitor
      Visits a node during a traversal.
      Overrides:
      visit in class RelVisitor
      Parameters:
      rel - Node to visit
      ordinal - Ordinal of node within its parent
      parent - Parent of the node, or null if it is the root of the traversal