Class PbCodegenArraySerializer

    • Constructor Detail

      • PbCodegenArraySerializer

        public PbCodegenArraySerializer​(com.google.protobuf.Descriptors.FieldDescriptor fd,
                                        org.apache.flink.table.types.logical.LogicalType elementType,
                                        PbFormatContext formatContext)
    • Method Detail

      • codegen

        public String codegen​(String resultVar,
                              String flinkObjectCode,
                              int indent)
                       throws PbCodegenException
        Specified by:
        codegen in interface PbCodegenSerializer
        Parameters:
        resultVar - the final var name that is calculated by codegen. This var name will be used by outsider codegen environment. resultVariable should be protobuf object
        flinkObjectCode - may be a variable or expression. Current codegen environment can use this literal name directly to access the input. flinkObject should be a flink internal object.
        Returns:
        The java code generated
        Throws:
        PbCodegenException