org.eigenbase.test
Class MockRelOptPlanner.MockRuleCall

java.lang.Object
  extended by org.eigenbase.relopt.RelOptRuleCall
      extended by org.eigenbase.test.MockRelOptPlanner.MockRuleCall
Enclosing class:
MockRelOptPlanner

private class MockRelOptPlanner.MockRuleCall
extends RelOptRuleCall


Field Summary
 
Fields inherited from class org.eigenbase.relopt.RelOptRuleCall
rels, tracer
 
Constructor Summary
MockRelOptPlanner.MockRuleCall(RelOptPlanner planner, RelOptRuleOperand operand, RelNode[] rels)
          Creates a MockRuleCall.
 
Method Summary
 void transformTo(RelNode rel)
          Called by the rule whenever it finds a match.
 
Methods inherited from class org.eigenbase.relopt.RelOptRuleCall
getChildRels, getOperand0, getParents, getPlanner, getRels, getRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockRelOptPlanner.MockRuleCall

MockRelOptPlanner.MockRuleCall(RelOptPlanner planner,
                               RelOptRuleOperand operand,
                               RelNode[] rels)
Creates a MockRuleCall.

Parameters:
planner - Planner
operand - Operand
rels - List of matched relational expressions
Method Detail

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