Interface CodeGeneratorCastRule.Context
- Enclosing interface:
- CodeGeneratorCastRule<IN,
OUT>
public static interface CodeGeneratorCastRule.Context
Context for code generation.
-
Method Summary
Modifier and TypeMethodDescriptiondeclareClassField(String type, String field, String initialization) declareTypeSerializer(org.apache.flink.table.types.logical.LogicalType type) declareVariable(String type, String variablePrefix) Declare a new variable accessible within the scope of the caller ofCodeGeneratorCastRule.generateCodeBlock(Context, String, String, LogicalType, LogicalType).CodeGeneratorContextbooleanbooleanDeprecated.
-
Method Details
-
isPrinting
boolean isPrinting()- Returns:
- whether it's in printing mode or not. Printing is used by
RowDataToStringConverterImplwhen printing table row results.
-
legacyBehaviour
Deprecated.- Returns:
- where the legacy behaviour should be followed or not.
-
getSessionTimeZoneTerm
String getSessionTimeZoneTerm()- Returns:
- the session time zone term.
-
declareVariable
Declare a new variable accessible within the scope of the caller ofCodeGeneratorCastRule.generateCodeBlock(Context, String, String, LogicalType, LogicalType).- Returns:
- the variable name
-
declareTypeSerializer
- Returns:
- the term for the type serializer.
-
declareClassField
- Returns:
- field term. The field is going to be declared as final.
-
getCodeGeneratorContext
CodeGeneratorContext getCodeGeneratorContext()
-