public class StandardConvertletTable
extends org.apache.calcite.sql2rel.ReflectiveConvertletTable
SqlRexConvertletTable
.
Lines 691-736 implement supporting RETURNING clause in JSON_QUERY (CALCITE-6365).
Modifier and Type | Field and Description |
---|---|
static StandardConvertletTable |
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.calcite.rex.RexNode |
castToValidatedType(org.apache.calcite.sql.SqlNode node,
org.apache.calcite.rex.RexNode e,
org.apache.calcite.sql.validate.SqlValidator validator,
org.apache.calcite.rex.RexBuilder rexBuilder)
Casts a RexNode value to the validated type of a SqlCall.
|
org.apache.calcite.rex.RexNode |
castToValidatedType(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlCall call,
org.apache.calcite.rex.RexNode value)
Casts a RexNode value to the validated type of a SqlCall.
|
org.apache.calcite.rex.RexNode |
convertAggregateFunction(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlAggFunction fun,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertArray(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlArrayValueConstructor op,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertBetween(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlBetweenOperator op,
org.apache.calcite.sql.SqlCall call)
Converts a BETWEEN expression.
|
org.apache.calcite.rex.RexNode |
convertCall(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlCall call)
Converts a call to an operator into a
RexCall to the same operator. |
org.apache.calcite.rex.RexNode |
convertCase(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlCase call)
Converts a CASE expression.
|
protected org.apache.calcite.rex.RexNode |
convertCast(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertDatetimeMinus(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlDatetimeSubtractionOperator op,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertExtract(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlExtractFunction op,
org.apache.calcite.sql.SqlCall call)
Converts a call to the
EXTRACT function. |
protected org.apache.calcite.rex.RexNode |
convertFloorCeil(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertFunction(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlFunction fun,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertJdbc(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlJdbcFunctionCall op,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertJsonQueryFunction(org.apache.calcite.sql2rel.SqlRexContext cx,
SqlJsonQueryFunction fun,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertJsonReturningFunction(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlFunction fun,
org.apache.calcite.sql.SqlCall call,
Predicate<org.apache.calcite.sql.SqlNode[]> hasExplicitTypeSpec,
Function<org.apache.calcite.sql.SqlCall,List<org.apache.calcite.sql.SqlNode>> removeTypeSpecOperands) |
org.apache.calcite.rex.RexNode |
convertJsonValueFunction(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlJsonValueFunction fun,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertLiteralChain(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlLiteralChainOperator op,
org.apache.calcite.sql.SqlCall call)
Converts a LiteralChain expression: that is, concatenates the operands immediately, to
produce a single literal string.
|
org.apache.calcite.rex.RexNode |
convertMap(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlMapValueConstructor op,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertMultiset(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlMultisetValueConstructor op,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertMultisetQuery(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlMultisetQueryConstructor op,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertOverlaps(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlOverlapsOperator op,
org.apache.calcite.sql.SqlCall call)
Converts a call to OVERLAPS.
|
org.apache.calcite.rex.RexNode |
convertRow(org.apache.calcite.sql2rel.SqlRexContext cx,
SqlRowOperator op,
org.apache.calcite.sql.SqlCall call)
Converts a ROW.
|
org.apache.calcite.rex.RexNode |
convertSequenceValue(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlSequenceValueOperator fun,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.rex.RexNode |
convertSubstring(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.fun.SqlSubstringFunction op,
org.apache.calcite.sql.SqlCall call)
Converts a SUBSTRING expression.
|
org.apache.calcite.rex.RexNode |
convertWindowFunction(org.apache.calcite.sql2rel.SqlRexContext cx,
org.apache.calcite.sql.SqlWindowTableFunction fun,
org.apache.calcite.sql.SqlCall call) |
public static final StandardConvertletTable INSTANCE
public org.apache.calcite.rex.RexNode convertCase(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlCase call)
public org.apache.calcite.rex.RexNode convertMultiset(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlMultisetValueConstructor op, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertArray(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlArrayValueConstructor op, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertMap(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlMapValueConstructor op, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertMultisetQuery(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlMultisetQueryConstructor op, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertJdbc(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlJdbcFunctionCall op, org.apache.calcite.sql.SqlCall call)
protected org.apache.calcite.rex.RexNode convertCast(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlCall call)
protected org.apache.calcite.rex.RexNode convertFloorCeil(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertExtract(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlExtractFunction op, org.apache.calcite.sql.SqlCall call)
EXTRACT
function.
Called automatically via reflection.
public org.apache.calcite.rex.RexNode convertDatetimeMinus(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlDatetimeSubtractionOperator op, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertFunction(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlFunction fun, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertWindowFunction(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlWindowTableFunction fun, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertJsonValueFunction(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlJsonValueFunction fun, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertJsonQueryFunction(org.apache.calcite.sql2rel.SqlRexContext cx, SqlJsonQueryFunction fun, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertJsonReturningFunction(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlFunction fun, org.apache.calcite.sql.SqlCall call, Predicate<org.apache.calcite.sql.SqlNode[]> hasExplicitTypeSpec, Function<org.apache.calcite.sql.SqlCall,List<org.apache.calcite.sql.SqlNode>> removeTypeSpecOperands)
public org.apache.calcite.rex.RexNode convertSequenceValue(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlSequenceValueOperator fun, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertAggregateFunction(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlAggFunction fun, org.apache.calcite.sql.SqlCall call)
public org.apache.calcite.rex.RexNode convertCall(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlCall call)
RexCall
to the same operator.
Called automatically via reflection.
cx
- Contextcall
- Callpublic org.apache.calcite.rex.RexNode convertBetween(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlBetweenOperator op, org.apache.calcite.sql.SqlCall call)
Called automatically via reflection.
public org.apache.calcite.rex.RexNode convertSubstring(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlSubstringFunction op, org.apache.calcite.sql.SqlCall call)
Called automatically via reflection.
public org.apache.calcite.rex.RexNode convertLiteralChain(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlLiteralChainOperator op, org.apache.calcite.sql.SqlCall call)
Called automatically via reflection.
public org.apache.calcite.rex.RexNode convertRow(org.apache.calcite.sql2rel.SqlRexContext cx, SqlRowOperator op, org.apache.calcite.sql.SqlCall call)
Called automatically via reflection.
public org.apache.calcite.rex.RexNode convertOverlaps(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.fun.SqlOverlapsOperator op, org.apache.calcite.sql.SqlCall call)
Called automatically via reflection.
public org.apache.calcite.rex.RexNode castToValidatedType(org.apache.calcite.sql2rel.SqlRexContext cx, org.apache.calcite.sql.SqlCall call, org.apache.calcite.rex.RexNode value)
public static org.apache.calcite.rex.RexNode castToValidatedType(org.apache.calcite.sql.SqlNode node, org.apache.calcite.rex.RexNode e, org.apache.calcite.sql.validate.SqlValidator validator, org.apache.calcite.rex.RexBuilder rexBuilder)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.