IN - Input internal typeOUT - Output internal type@Internal public interface ExpressionCodeGeneratorCastRule<IN,OUT> extends CodeGeneratorCastRule<IN,OUT>
CodeGeneratorCastRule.Context| Modifier and Type | Method and Description |
|---|---|
String |
generateExpression(CodeGeneratorCastRule.Context context,
String inputTerm,
org.apache.flink.table.types.logical.LogicalType inputLogicalType,
org.apache.flink.table.types.logical.LogicalType targetLogicalType)
Generate a Java expression performing the casting.
|
generateCodeBlockcanFail, create, getPredicateDefinitionString generateExpression(CodeGeneratorCastRule.Context context, String inputTerm, org.apache.flink.table.types.logical.LogicalType inputLogicalType, org.apache.flink.table.types.logical.LogicalType targetLogicalType)
NOTE: the inputTerm is always either a primitive or a non-null object, while the
expression result is either a primitive or a nullable object.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.