org.eigenbase.rex
Class RexToSqlNodeConverterImpl

java.lang.Object
  extended by org.eigenbase.rex.RexToSqlNodeConverterImpl
All Implemented Interfaces:
RexToSqlNodeConverter

public class RexToSqlNodeConverterImpl
extends Object
implements RexToSqlNodeConverter

Standard implementation of RexToSqlNodeConverter.

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

Field Summary
private  RexSqlConvertletTable convertletTable
           
 
Constructor Summary
RexToSqlNodeConverterImpl(RexSqlConvertletTable convertletTable)
           
 
Method Summary
 SqlNode convertCall(RexCall call)
          Converts a RexCall to a SqlNode expression.
 SqlNode convertInputRef(RexInputRef ref)
          Converts a RexInputRef to a SqlIdentifier.
 SqlNode convertLiteral(RexLiteral literal)
          Converts a RexLiteral to a SqlLiteral.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

convertletTable

private final RexSqlConvertletTable convertletTable
Constructor Detail

RexToSqlNodeConverterImpl

public RexToSqlNodeConverterImpl(RexSqlConvertletTable convertletTable)
Method Detail

convertCall

public SqlNode convertCall(RexCall call)
Description copied from interface: RexToSqlNodeConverter
Converts a RexCall to a SqlNode expression.

Specified by:
convertCall in interface RexToSqlNodeConverter
Parameters:
call - RexCall to translate
Returns:
SqlNode

convertLiteral

public SqlNode convertLiteral(RexLiteral literal)
Description copied from interface: RexToSqlNodeConverter
Converts a RexLiteral to a SqlLiteral.

Specified by:
convertLiteral in interface RexToSqlNodeConverter
Parameters:
literal - RexLiteral to translate
Returns:
SqlNode

convertInputRef

public SqlNode convertInputRef(RexInputRef ref)
Description copied from interface: RexToSqlNodeConverter
Converts a RexInputRef to a SqlIdentifier.

Specified by:
convertInputRef in interface RexToSqlNodeConverter
Parameters:
ref - RexInputRef to translate
Returns:
SqlNode