Class HepRuleCall

  • public class HepRuleCall
    extends RelOptRuleCall
    HepRuleCall implements RelOptRuleCall for a HepPlanner. It remembers transformation results so that the planner can choose which one (if any) should replace the original expression.
    • Field Detail

      • results

        private java.util.List<RelNode> results
    • Method Detail

      • transformTo

        public void transformTo​(RelNode rel,
                                java.util.Map<RelNode,​RelNode> equiv)
        Description copied from class: RelOptRuleCall
        Registers that a rule has produced an equivalent relational expression.

        Called by the rule whenever it finds a match. The implementation of this method guarantees that the original relational expression (that is, this.rels[0]) has its traits propagated to the new relational expression (rel) and its unregistered children. Any trait not specifically set in the RelTraitSet returned by rel.getTraits() will be copied from this.rels[0].getTraitSet().

        Specified by:
        transformTo in class RelOptRuleCall
        rel - Relational expression equivalent to the root relational expression of the rule call, call.rels(0)
        equiv - Map of other equivalences
      • getResults

        java.util.List<RelNode> getResults()