Package org.apache.calcite.sql2rel
Class StandardConvertletTable
java.lang.Object
org.apache.calcite.sql2rel.ReflectiveConvertletTable
org.apache.calcite.sql2rel.StandardConvertletTable
- All Implemented Interfaces:
SqlRexConvertletTable
Standard implementation of
SqlRexConvertletTable
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RexNode
castToValidatedType
(SqlParserPos pos, SqlNode node, RexNode e, SqlValidator validator, RexBuilder rexBuilder, boolean safe) Casts a RexNode value to the validated type of a SqlCall.static RexNode
castToValidatedType
(SqlNode node, RexNode e, SqlValidator validator, RexBuilder rexBuilder) Deprecated.castToValidatedType
(SqlRexContext cx, SqlCall call, RexNode value) Deprecated.convertAggregateFunction
(SqlRexContext cx, SqlAggFunction fun, SqlCall call) convertArray
(SqlRexContext cx, SqlArrayValueConstructor op, SqlCall call) convertBetween
(SqlRexContext cx, SqlBetweenOperator op, SqlCall call) Converts a BETWEEN expression.convertCall
(SqlRexContext cx, SqlCall call) Converts a call to an operator into aRexCall
to the same operator.convertCase
(SqlRexContext cx, SqlCase call) Converts a CASE expression.protected RexNode
convertCast
(SqlRexContext cx, SqlCall call) protected RexNode
convertCharset
(SqlRexContext cx, SqlCall call) convertExtract
(SqlRexContext cx, SqlExtractFunction op, SqlCall call) Converts a call to theEXTRACT
function.protected RexNode
convertFloorCeil
(SqlRexContext cx, SqlCall call) convertFunction
(SqlRexContext cx, SqlFunction fun, SqlCall call) convertJdbc
(SqlRexContext cx, SqlJdbcFunctionCall op, SqlCall call) convertJsonQueryFunction
(SqlRexContext cx, SqlJsonQueryFunction fun, SqlCall call) convertJsonReturningFunction
(SqlRexContext cx, SqlFunction fun, SqlCall call, Predicate<List<SqlNode>> hasExplicitTypeSpec, Function<SqlCall, List<SqlNode>> removeTypeSpecOperands) convertJsonValueFunction
(SqlRexContext cx, SqlJsonValueFunction fun, SqlCall call) convertLiteralChain
(SqlRexContext cx, SqlLiteralChainOperator op, SqlCall call) Converts a LiteralChain expression: that is, concatenates the operands immediately, to produce a single literal string.convertMap
(SqlRexContext cx, SqlMapValueConstructor op, SqlCall call) convertMultiset
(SqlRexContext cx, SqlMultisetValueConstructor op, SqlCall call) convertMultisetQuery
(SqlRexContext cx, SqlMultisetQueryConstructor op, SqlCall call) convertOverlaps
(SqlRexContext cx, SqlOverlapsOperator op, SqlCall call) Converts a call to OVERLAPS.convertRow
(SqlRexContext cx, SqlRowOperator op, SqlCall call) Converts a ROW.convertSequenceValue
(SqlRexContext cx, SqlSequenceValueOperator fun, SqlCall call) convertSubstring
(SqlRexContext cx, SqlSubstringFunction op, SqlCall call) Converts a SUBSTRING expression.convertWindowFunction
(SqlRexContext cx, SqlWindowTableFunction fun, SqlCall call) protected RexNode
translateCharset
(SqlRexContext cx, SqlCall call) Methods inherited from class org.apache.calcite.sql2rel.ReflectiveConvertletTable
addAlias, get, registerOp
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Method Details
-
convertCase
Converts a CASE expression. -
convertMultiset
-
convertArray
-
convertMap
-
convertMultisetQuery
-
convertJdbc
-
convertCast
protected RexNode convertCast(@UnknownInitialization StandardConvertletTable this, SqlRexContext cx, SqlCall call) -
convertFloorCeil
-
convertCharset
protected RexNode convertCharset(@UnknownInitialization StandardConvertletTable this, SqlRexContext cx, SqlCall call) -
translateCharset
protected RexNode translateCharset(@UnknownInitialization StandardConvertletTable this, SqlRexContext cx, SqlCall call) -
convertExtract
Converts a call to theEXTRACT
function.Called automatically via reflection.
-
convertDatetimeMinus
public RexNode convertDatetimeMinus(@UnknownInitialization StandardConvertletTable this, SqlRexContext cx, SqlDatetimeSubtractionOperator op, SqlCall call) -
convertFunction
-
convertWindowFunction
-
convertJsonValueFunction
-
convertJsonQueryFunction
-
convertJsonReturningFunction
-
convertSequenceValue
-
convertAggregateFunction
-
convertCall
public RexNode convertCall(@UnknownInitialization StandardConvertletTable this, SqlRexContext cx, SqlCall call) Converts a call to an operator into aRexCall
to the same operator.Called automatically via reflection.
- Parameters:
cx
- Contextcall
- Call- Returns:
- Rex call
-
convertBetween
Converts a BETWEEN expression.Called automatically via reflection.
-
convertSubstring
Converts a SUBSTRING expression.Called automatically via reflection.
-
convertLiteralChain
Converts a LiteralChain expression: that is, concatenates the operands immediately, to produce a single literal string.Called automatically via reflection.
-
convertRow
Converts a ROW.Called automatically via reflection.
-
convertOverlaps
Converts a call to OVERLAPS.Called automatically via reflection.
-
castToValidatedType
@Deprecated public RexNode castToValidatedType(@UnknownInitialization StandardConvertletTable this, SqlRexContext cx, SqlCall call, RexNode value) Deprecated. -
castToValidatedType
@Deprecated public static RexNode castToValidatedType(SqlNode node, RexNode e, SqlValidator validator, RexBuilder rexBuilder) Deprecated. -
castToValidatedType
public static RexNode castToValidatedType(SqlParserPos pos, SqlNode node, RexNode e, SqlValidator validator, RexBuilder rexBuilder, boolean safe) Casts a RexNode value to the validated type of a SqlCall. If the value was already of the validated type, then the value is returned without an additional cast.
-