net.sf.saffron.rel.convert
Class FactoryConverterRule

java.lang.Object
  |
  +--net.sf.saffron.opt.VolcanoRule
        |
        +--net.sf.saffron.rel.convert.ConverterRule
              |
              +--net.sf.saffron.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/saffron/src/net/sf/saffron/rel/convert/FactoryConverterRule.java#2 $
Author:
jhyde

Field Summary
private  ConverterFactory factory
           
 
Fields inherited from class net.sf.saffron.rel.convert.ConverterRule
inConvention, outConvention
 
Fields inherited from class net.sf.saffron.opt.VolcanoRule
description, planner
 
Constructor Summary
FactoryConverterRule(ConverterFactory factory, CallingConvention inConvention)
           
 
Method Summary
 SaffronRel convert(SaffronRel rel)
           
 boolean isGuaranteed()
          Returns true if this rule can convert any relational expression of the input convention.
 
Methods inherited from class net.sf.saffron.rel.convert.ConverterRule
getOutConvention, onMatch
 
Methods inherited from class net.sf.saffron.opt.VolcanoRule
convert, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factory

private final ConverterFactory factory
Constructor Detail

FactoryConverterRule

public FactoryConverterRule(ConverterFactory factory,
                            CallingConvention inConvention)
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 SaffronRel convert(SaffronRel rel)
Specified by:
convert in class ConverterRule

SourceForge.net_Logo