org.eigenbase.test
Class MockRelOptPlanner.MockRuleCall
java.lang.Object
org.eigenbase.relopt.RelOptRuleCall
org.eigenbase.test.MockRelOptPlanner.MockRuleCall
- Enclosing class:
- MockRelOptPlanner
private class MockRelOptPlanner.MockRuleCall
- extends RelOptRuleCall
Method Summary |
void |
transformTo(RelNode rel)
Called by the rule whenever it finds a match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockRelOptPlanner.MockRuleCall
MockRelOptPlanner.MockRuleCall(RelOptPlanner planner,
RelOptRuleOperand operand,
RelNode[] rels)
- Creates a MockRuleCall.
- Parameters:
planner
- Planneroperand
- Operandrels
- List of matched relational expressions
transformTo
public void transformTo(RelNode rel)
- Description copied from class:
RelOptRuleCall
- Called by the rule whenever it finds a match. The implementation of this
method will guarantee that the original relational expression (e.g.,
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