org.eigenbase.rel.convert
Class FactoryConverterRule
java.lang.Object
org.eigenbase.relopt.RelOptRule
org.eigenbase.rel.convert.ConverterRule
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
factory
private final ConverterFactory factory
FactoryConverterRule
public FactoryConverterRule(ConverterFactory factory)
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