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,
LogicalType inputLogicalType,
LogicalType targetLogicalType)
Generate a Java expression performing the casting.
|
generateCodeBlock
canFail, create, getPredicateDefinition
String generateExpression(CodeGeneratorCastRule.Context context, String inputTerm, LogicalType inputLogicalType, 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–2023 The Apache Software Foundation. All rights reserved.