Package org.apache.calcite.rex
Class RexToSqlNodeConverterImpl
java.lang.Object
org.apache.calcite.rex.RexToSqlNodeConverterImpl
- All Implemented Interfaces:
RexToSqlNodeConverter
Standard implementation of
RexToSqlNodeConverter
.-
Constructor Summary
-
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)
-
Constructor Details
-
RexToSqlNodeConverterImpl
-
-
Method Details
-
convertNode
Description copied from interface:RexToSqlNodeConverter
Converts aRexNode
to aSqlNode
expression, typically by dispatching to one of the other interface methods.- Specified by:
convertNode
in interfaceRexToSqlNodeConverter
- Parameters:
node
- RexNode to translate- Returns:
- SqlNode, or null if no translation was available
-
convertCall
Description copied from interface:RexToSqlNodeConverter
- Specified by:
convertCall
in interfaceRexToSqlNodeConverter
- Parameters:
call
- RexCall to translate- Returns:
- SqlNode, or null if no translation was available
-
convertLiteral
Description copied from interface:RexToSqlNodeConverter
Converts aRexLiteral
to aSqlLiteral
.- Specified by:
convertLiteral
in interfaceRexToSqlNodeConverter
- Parameters:
literal
- RexLiteral to translate- Returns:
- SqlNode, or null if no translation was available
-
convertInputRef
Description copied from interface:RexToSqlNodeConverter
Converts aRexInputRef
to aSqlIdentifier
.- Specified by:
convertInputRef
in interfaceRexToSqlNodeConverter
- Parameters:
ref
- RexInputRef to translate- Returns:
- SqlNode, or null if no translation was available
-