org.eigenbase.sql2rel
Interface SqlNodeToRexConverter

All Known Implementing Classes:
SqlNodeToRexConverterImpl

public interface SqlNodeToRexConverter

Converts expressions from SqlNode to RexNode.


Method Summary
 RexNode convertCall(SqlRexContext cx, SqlCall call)
          Converts a SqlCall to a RexNode expression.
 RexLiteral convertInterval(SqlRexContext cx, SqlIntervalQualifier intervalQualifier)
          Converts a SQL Interval Qualifier to a REX literal.
 RexNode convertLiteral(SqlRexContext cx, SqlLiteral literal)
          Converts a SQL literal to a REX literal.
 

Method Detail

convertCall

RexNode convertCall(SqlRexContext cx,
                    SqlCall call)
Converts a SqlCall to a RexNode expression.


convertLiteral

RexNode convertLiteral(SqlRexContext cx,
                       SqlLiteral literal)
Converts a SQL literal to a REX literal.

The result is RexNode, not RexLiteral because if the literal is NULL (or the boolean Unknown value), we make a CAST(NULL AS type) expression.


convertInterval

RexLiteral convertInterval(SqlRexContext cx,
                           SqlIntervalQualifier intervalQualifier)
Converts a SQL Interval Qualifier to a REX literal.