org.eigenbase.rex
Class RexSqlReflectiveConvertletTable

java.lang.Object
  extended by org.eigenbase.rex.RexSqlReflectiveConvertletTable
All Implemented Interfaces:
RexSqlConvertletTable
Direct Known Subclasses:
RexSqlStandardConvertletTable

public class RexSqlReflectiveConvertletTable
extends Object
implements RexSqlConvertletTable

Implementation of RexSqlConvertletTable.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/rex/RexSqlReflectiveConvertletTable.java#5 $
Author:
Sunny Choi

Field Summary
private  Map<Object,Object> map
           
 
Constructor Summary
RexSqlReflectiveConvertletTable()
           
 
Method Summary
 RexSqlConvertlet get(RexCall call)
          Returns the convertlet applicable to a given expression.
protected  void registerOp(SqlOperator op, RexSqlConvertlet convertlet)
          Registers a convertlet for a given operator instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

private final Map<Object,Object> map
Constructor Detail

RexSqlReflectiveConvertletTable

public RexSqlReflectiveConvertletTable()
Method Detail

get

public RexSqlConvertlet get(RexCall call)
Description copied from interface: RexSqlConvertletTable
Returns the convertlet applicable to a given expression.

Specified by:
get in interface RexSqlConvertletTable

registerOp

protected void registerOp(SqlOperator op,
                          RexSqlConvertlet convertlet)
Registers a convertlet for a given operator instance

Parameters:
op - Operator instance, say SqlStdOperatorTable.minusOperator
convertlet - Convertlet