org.eigenbase.rel.convert
Class FactoryConverterRule

java.lang.Object
  extended by org.eigenbase.relopt.RelOptRule
      extended by org.eigenbase.rel.convert.ConverterRule
          extended by org.eigenbase.rel.convert.FactoryConverterRule

public class FactoryConverterRule
extends ConverterRule

Generic implementation of ConverterRule which lets a ConverterFactory do the work.

Since:
Jun 18, 2003
Version:
$Id: //open/dev/farrago/src/org/eigenbase/rel/convert/FactoryConverterRule.java#9 $
Author:
jhyde

Field Summary
private  ConverterFactory factory
           
 
Fields inherited from class org.eigenbase.relopt.RelOptRule
ANY, description, operands
 
Constructor Summary
FactoryConverterRule(ConverterFactory factory)
           
 
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

factory

private final ConverterFactory factory
Constructor Detail

FactoryConverterRule

public FactoryConverterRule(ConverterFactory factory)
Method Detail

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

convert

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