Interface ExpressionCodeGeneratorCastRule<IN,OUT>
-
- Type Parameters:
IN
- Input internal typeOUT
- Output internal type
- All Superinterfaces:
CastRule<IN,OUT>
,CodeGeneratorCastRule<IN,OUT>
@Internal public interface ExpressionCodeGeneratorCastRule<IN,OUT> extends CodeGeneratorCastRule<IN,OUT>
Cast rule that is able to generate a single expression containing all the casting logic.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.planner.functions.casting.CodeGeneratorCastRule
CodeGeneratorCastRule.Context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
generateExpression(CodeGeneratorCastRule.Context context, String inputTerm, LogicalType inputLogicalType, LogicalType targetLogicalType)
Generate a Java expression performing the casting.-
Methods inherited from interface org.apache.flink.table.planner.functions.casting.CastRule
canFail, create, getPredicateDefinition
-
Methods inherited from interface org.apache.flink.table.planner.functions.casting.CodeGeneratorCastRule
generateCodeBlock
-
-
-
-
Method Detail
-
generateExpression
String generateExpression(CodeGeneratorCastRule.Context context, String inputTerm, LogicalType inputLogicalType, LogicalType targetLogicalType)
Generate a Java expression performing the casting. This expression can be wrapped in another expression, or assigned to a variable or returned from a function.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.
-
-