public class PbCodegenMapDeserializer extends Object implements PbCodegenDeserializer
Constructor and Description |
---|
PbCodegenMapDeserializer(com.google.protobuf.Descriptors.FieldDescriptor fd,
MapType mapType,
PbFormatContext formatContext) |
Modifier and Type | Method and Description |
---|---|
String |
codegen(String resultVar,
String pbObjectCode,
int indent) |
public PbCodegenMapDeserializer(com.google.protobuf.Descriptors.FieldDescriptor fd, MapType mapType, PbFormatContext formatContext)
public String codegen(String resultVar, String pbObjectCode, int indent) throws PbCodegenException
codegen
in interface PbCodegenDeserializer
resultVar
- the final var name that is calculated by codegen. This var name will be used
by outsider codegen environment. resultVariable
should be flink objectpbObjectCode
- may be a variable or expression. Current codegen environment can use this
literal name directly to access the input. pbObject
should be a protobuf objectPbCodegenException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.