Class PbCodegenMapDeserializer
- java.lang.Object
-
- org.apache.flink.formats.protobuf.deserialize.PbCodegenMapDeserializer
-
- All Implemented Interfaces:
PbCodegenDeserializer
public class PbCodegenMapDeserializer extends Object implements PbCodegenDeserializer
Deserializer to convert proto map type object to flink map type data.
-
-
Constructor Summary
Constructors Constructor Description PbCodegenMapDeserializer(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 pbObjectCode, int indent)
-
-
-
Constructor Detail
-
PbCodegenMapDeserializer
public PbCodegenMapDeserializer(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 pbObjectCode, int indent) throws PbCodegenException
- Specified by:
codegenin interfacePbCodegenDeserializer- Parameters:
resultVar- the final var name that is calculated by codegen. This var name will be used by outsider codegen environment.resultVariableshould be flink objectpbObjectCode- may be a variable or expression. Current codegen environment can use this literal name directly to access the input.pbObjectshould be a protobuf object- Returns:
- The java code generated
- Throws:
PbCodegenException
-
-