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 SqlNode
convertCall
(RexCall call) @Nullable SqlNode
Converts aRexInputRef
to aSqlIdentifier
.@Nullable SqlNode
convertLiteral
(RexLiteral literal) Converts aRexLiteral
to aSqlLiteral
.@Nullable SqlNode
convertNode
(RexNode node)
-
Method Details
-
convertNode
Converts aRexNode
to aSqlNode
expression, 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 aRexLiteral
to aSqlLiteral
.- Parameters:
literal
- RexLiteral to translate- Returns:
- SqlNode, or null if no translation was available
-
convertInputRef
Converts aRexInputRef
to aSqlIdentifier
.- Parameters:
ref
- RexInputRef to translate- Returns:
- SqlNode, or null if no translation was available
-