Package org.apache.calcite.rex
Class RexToSqlNodeConverterImpl
- java.lang.Object
-
- org.apache.calcite.rex.RexToSqlNodeConverterImpl
-
- All Implemented Interfaces:
RexToSqlNodeConverter
public class RexToSqlNodeConverterImpl extends java.lang.Object implements RexToSqlNodeConverter
Standard implementation ofRexToSqlNodeConverter
.
-
-
Field Summary
Fields Modifier and Type Field Description private RexSqlConvertletTable
convertletTable
-
Constructor Summary
Constructors Constructor Description RexToSqlNodeConverterImpl(RexSqlConvertletTable convertletTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlNode
convertCall(RexCall call)
SqlNode
convertInputRef(RexInputRef ref)
Converts aRexInputRef
to aSqlIdentifier
.SqlNode
convertLiteral(RexLiteral literal)
Converts aRexLiteral
to aSqlLiteral
.SqlNode
convertNode(RexNode node)
-
-
-
Field Detail
-
convertletTable
private final RexSqlConvertletTable convertletTable
-
-
Constructor Detail
-
RexToSqlNodeConverterImpl
public RexToSqlNodeConverterImpl(RexSqlConvertletTable convertletTable)
-
-
Method Detail
-
convertNode
public SqlNode convertNode(RexNode node)
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
public SqlNode convertCall(RexCall call)
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
public SqlNode convertLiteral(RexLiteral literal)
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
public SqlNode convertInputRef(RexInputRef ref)
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
-
-