saffron.rel.convert
Class FactoryConverterRule

java.lang.Object
  |
  +--saffron.opt.Rule
        |
        +--saffron.rel.convert.ConverterRule
              |
              +--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/main/saffron/rel/convert/FactoryConverterRule.java#1 $
Author:
jhyde

Field Summary
private  ConverterFactory factory
           
 
Fields inherited from class saffron.rel.convert.ConverterRule
inConvention, outConvention
 
Fields inherited from class saffron.opt.Rule
description, planner
 
Constructor Summary
FactoryConverterRule(ConverterFactory factory, CallingConvention inConvention)
           
 
Method Summary
 Rel convert(Rel rel)
           
 boolean isGuaranteed()
          Returns true if this rule can convert any relational expression of the input convention.
 
Methods inherited from class saffron.rel.convert.ConverterRule
getOutConvention, onMatch
 
Methods inherited from class saffron.opt.Rule
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

convert

public Rel convert(Rel 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

SourceForge.net_Logo