org.eigenbase.relopt.volcano
Class VolcanoPlannerTraitTest.AltTraitConverterRule

java.lang.Object
  extended by org.eigenbase.relopt.RelOptRule
      extended by org.eigenbase.rel.convert.ConverterRule
          extended by org.eigenbase.relopt.volcano.VolcanoPlannerTraitTest.AltTraitConverterRule
Enclosing class:
VolcanoPlannerTraitTest

private static class VolcanoPlannerTraitTest.AltTraitConverterRule
extends ConverterRule


Field Summary
private  RelTrait toTrait
           
 
Fields inherited from class org.eigenbase.relopt.RelOptRule
ANY, description, operands
 
Constructor Summary
private VolcanoPlannerTraitTest.AltTraitConverterRule(VolcanoPlannerTraitTest.AltTrait fromTrait, VolcanoPlannerTraitTest.AltTrait toTrait, String description)
           
 
Method Summary
 RelNode convert(RelNode rel)
           
 boolean isGuaranteed()
          Returns true if this rule can convert any relational expression of the input convention.
 
Methods inherited from class org.eigenbase.rel.convert.ConverterRule
getInTrait, getOutConvention, getOutTrait, getTraitDef, onMatch
 
Methods inherited from class org.eigenbase.relopt.RelOptRule
convert, equals, equals, getOperand, getOperands, hashCode, matches, mergeTraitsAndConvert, mergeTraitsAndConvert, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

toTrait

private final RelTrait toTrait
Constructor Detail

VolcanoPlannerTraitTest.AltTraitConverterRule

private VolcanoPlannerTraitTest.AltTraitConverterRule(VolcanoPlannerTraitTest.AltTrait fromTrait,
                                                      VolcanoPlannerTraitTest.AltTrait toTrait,
                                                      String description)
Method Detail

convert

public RelNode convert(RelNode rel)
Specified by:
convert in class ConverterRule

isGuaranteed

public boolean isGuaranteed()
Description copied from class: ConverterRule
Returns true if this rule can convert any relational expression of the input convention.

The union-to-java converter, for example, is not guaranteed, because it only works on unions.

Overrides:
isGuaranteed in class ConverterRule