Interface CodeGeneratorCastRule.Context

Enclosing interface:
CodeGeneratorCastRule<IN,OUT>

public static interface CodeGeneratorCastRule.Context
Context for code generation.
  • Method Details

    • isPrinting

      boolean isPrinting()
      Returns:
      whether it's in printing mode or not. Printing is used by RowDataToStringConverterImpl when printing table row results.
    • legacyBehaviour

      @Deprecated boolean legacyBehaviour()
      Deprecated.
      Returns:
      where the legacy behaviour should be followed or not.
    • getSessionTimeZoneTerm

      String getSessionTimeZoneTerm()
      Returns:
      the session time zone term.
    • declareVariable

      String declareVariable(String type, String variablePrefix)
      Declare a new variable accessible within the scope of the caller of CodeGeneratorCastRule.generateCodeBlock(Context, String, String, LogicalType, LogicalType).
      Returns:
      the variable name
    • declareTypeSerializer

      String declareTypeSerializer(org.apache.flink.table.types.logical.LogicalType type)
      Returns:
      the term for the type serializer.
    • declareClassField

      String declareClassField(String type, String field, String initialization)
      Returns:
      field term. The field is going to be declared as final.
    • getCodeGeneratorContext

      CodeGeneratorContext getCodeGeneratorContext()