Interface CodeGeneratorCastRule<IN,OUT>
- Type Parameters:
IN- Input internal typeOUT- Output internal type
- All Superinterfaces:
CastRule<IN,OUT>
- All Known Subinterfaces:
ExpressionCodeGeneratorCastRule<IN,OUT>
Cast rule that has code generation capabilities.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext for code generation. -
Method Summary
Modifier and TypeMethodDescriptiongenerateCodeBlock(CodeGeneratorCastRule.Context context, String inputTerm, String inputIsNullTerm, org.apache.flink.table.types.logical.LogicalType inputLogicalType, org.apache.flink.table.types.logical.LogicalType targetLogicalType) Generates aCastCodeBlockcomposed by different statements performing the casting.Methods inherited from interface org.apache.flink.table.planner.functions.casting.CastRule
canFail, create, getPredicateDefinition
-
Method Details
-
generateCodeBlock
CastCodeBlock generateCodeBlock(CodeGeneratorCastRule.Context context, String inputTerm, String inputIsNullTerm, org.apache.flink.table.types.logical.LogicalType inputLogicalType, org.apache.flink.table.types.logical.LogicalType targetLogicalType) Generates aCastCodeBlockcomposed by different statements performing the casting.- See Also:
-