Class PbCodegenMapSerializer
- java.lang.Object
-
- org.apache.flink.formats.protobuf.serialize.PbCodegenMapSerializer
-
- All Implemented Interfaces:
PbCodegenSerializer
public class PbCodegenMapSerializer extends Object implements PbCodegenSerializer
Serializer to convert flink map type data to proto map type object.
-
-
Constructor Summary
Constructors Constructor Description PbCodegenMapSerializer(com.google.protobuf.Descriptors.FieldDescriptor fd, org.apache.flink.table.types.logical.MapType mapType, PbFormatContext formatContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcodegen(String resultVar, String flinkObjectCode, int indent)
-
-
-
Constructor Detail
-
PbCodegenMapSerializer
public PbCodegenMapSerializer(com.google.protobuf.Descriptors.FieldDescriptor fd, org.apache.flink.table.types.logical.MapType mapType, PbFormatContext formatContext)
-
-
Method Detail
-
codegen
public String codegen(String resultVar, String flinkObjectCode, int indent) throws PbCodegenException
- Specified by:
codegenin interfacePbCodegenSerializer- Parameters:
resultVar- the final var name that is calculated by codegen. This var name will be used by outsider codegen environment.resultVariableshould be protobuf objectflinkObjectCode- may be a variable or expression. Current codegen environment can use this literal name directly to access the input.flinkObjectshould be a flink internal object.- Returns:
- The java code generated
- Throws:
PbCodegenException
-
-