Package org.apache.calcite.rex
Interface RexToSqlNodeConverter
- All Known Implementing Classes:
RexToSqlNodeConverterImpl
public interface RexToSqlNodeConverter
Converts expressions from
RexNode to SqlNode.
For most purposes, SqlImplementor
is superior. See in particular
SqlImplementor.Context.toSql(RexProgram, RexNode).
-
Method Summary
Modifier and TypeMethodDescription@Nullable SqlNodeconvertCall(RexCall call) @Nullable SqlNodeConverts aRexInputRefto aSqlIdentifier.@Nullable SqlNodeconvertLiteral(RexLiteral literal) Converts aRexLiteralto aSqlLiteral.@Nullable SqlNodeconvertNode(RexNode node)
-
Method Details
-
convertNode
Converts aRexNodeto aSqlNodeexpression, typically by dispatching to one of the other interface methods.- Parameters:
node- RexNode to translate- Returns:
- SqlNode, or null if no translation was available
-
convertCall
- Parameters:
call- RexCall to translate- Returns:
- SqlNode, or null if no translation was available
-
convertLiteral
Converts aRexLiteralto aSqlLiteral.- Parameters:
literal- RexLiteral to translate- Returns:
- SqlNode, or null if no translation was available
-
convertInputRef
Converts aRexInputRefto aSqlIdentifier.- Parameters:
ref- RexInputRef to translate- Returns:
- SqlNode, or null if no translation was available
-