org.eigenbase.sql2rel
Interface SqlRexContext

All Known Implementing Classes:
SqlToRelConverter.Blackboard

public interface SqlRexContext

Contains the context necessary for a SqlRexConvertlet to convert a SqlNode expression into a RexNode.

Since:
2005/8/3
Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql2rel/SqlRexContext.java#6 $
Author:
jhyde

Method Summary
 RexNode convertExpression(SqlNode expr)
          Converts an expression from SqlNode to RexNode format.
 RexNode convertLiteral(SqlLiteral literal)
          Converts a literal.
 DefaultValueFactory getDefaultValueFactory()
          Returns the factory which supplies default values for INSERT, UPDATE, and NEW.
 RexBuilder getRexBuilder()
          Returns the RexBuilder to use to create RexNode objects.
 RexRangeRef getSubqueryExpr(SqlCall call)
          Returns the expression used to access a given IN or EXISTS sub-query.
 RelDataTypeFactory getTypeFactory()
          Returns the type factory.
 SqlValidator getValidator()
          Returns the validator.
 

Method Detail

convertExpression

RexNode convertExpression(SqlNode expr)
Converts an expression from SqlNode to RexNode format.

Parameters:
expr - Expression to translate
Returns:
Converted expression

getRexBuilder

RexBuilder getRexBuilder()
Returns the RexBuilder to use to create RexNode objects.


getSubqueryExpr

RexRangeRef getSubqueryExpr(SqlCall call)
Returns the expression used to access a given IN or EXISTS sub-query.

Parameters:
call - IN or EXISTS expression
Returns:
Expression used to access current row of sub-query

getTypeFactory

RelDataTypeFactory getTypeFactory()
Returns the type factory.


getDefaultValueFactory

DefaultValueFactory getDefaultValueFactory()
Returns the factory which supplies default values for INSERT, UPDATE, and NEW.


getValidator

SqlValidator getValidator()
Returns the validator.


convertLiteral

RexNode convertLiteral(SqlLiteral literal)
Converts a literal.