Class ExpressionConverter
- java.lang.Object
-
- org.apache.flink.table.planner.expressions.converter.ExpressionConverter
-
- All Implemented Interfaces:
ExpressionVisitor<org.apache.calcite.rex.RexNode>
public class ExpressionConverter extends Object implements ExpressionVisitor<org.apache.calcite.rex.RexNode>
Visit expression to generatorRexNode
.
-
-
Constructor Summary
Constructors Constructor Description ExpressionConverter(RelBuilder relBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> T
extractValue(ValueLiteralExpression literal, Class<T> clazz)
Extracts a value from a literal.static List<org.apache.calcite.rex.RexNode>
toRexNodes(CallExpressionConvertRule.ConvertContext context, List<Expression> expr)
org.apache.calcite.rex.RexNode
visit(CallExpression call)
org.apache.calcite.rex.RexNode
visit(Expression other)
org.apache.calcite.rex.RexNode
visit(FieldReferenceExpression fieldReference)
org.apache.calcite.rex.RexNode
visit(NestedFieldReferenceExpression nestedFieldReference)
org.apache.calcite.rex.RexNode
visit(TypeLiteralExpression typeLiteral)
org.apache.calcite.rex.RexNode
visit(ValueLiteralExpression valueLiteral)
-
-
-
Constructor Detail
-
ExpressionConverter
public ExpressionConverter(RelBuilder relBuilder)
-
-
Method Detail
-
visit
public org.apache.calcite.rex.RexNode visit(CallExpression call)
- Specified by:
visit
in interfaceExpressionVisitor<org.apache.calcite.rex.RexNode>
-
visit
public org.apache.calcite.rex.RexNode visit(ValueLiteralExpression valueLiteral)
- Specified by:
visit
in interfaceExpressionVisitor<org.apache.calcite.rex.RexNode>
-
visit
public org.apache.calcite.rex.RexNode visit(FieldReferenceExpression fieldReference)
- Specified by:
visit
in interfaceExpressionVisitor<org.apache.calcite.rex.RexNode>
-
visit
public org.apache.calcite.rex.RexNode visit(NestedFieldReferenceExpression nestedFieldReference)
- Specified by:
visit
in interfaceExpressionVisitor<org.apache.calcite.rex.RexNode>
-
visit
public org.apache.calcite.rex.RexNode visit(TypeLiteralExpression typeLiteral)
- Specified by:
visit
in interfaceExpressionVisitor<org.apache.calcite.rex.RexNode>
-
visit
public org.apache.calcite.rex.RexNode visit(Expression other)
- Specified by:
visit
in interfaceExpressionVisitor<org.apache.calcite.rex.RexNode>
-
toRexNodes
public static List<org.apache.calcite.rex.RexNode> toRexNodes(CallExpressionConvertRule.ConvertContext context, List<Expression> expr)
-
extractValue
public static <T> T extractValue(ValueLiteralExpression literal, Class<T> clazz)
Extracts a value from a literal. Including planner-specific instances such asDecimalData
.
-
-