public class PbCodegenArrayDeserializer extends Object implements PbCodegenDeserializer
Constructor and Description |
---|
PbCodegenArrayDeserializer(com.google.protobuf.Descriptors.FieldDescriptor fd,
LogicalType elementType,
PbFormatContext formatContext) |
Modifier and Type | Method and Description |
---|---|
String |
codegen(String resultVar,
String pbObjectCode,
int indent) |
public PbCodegenArrayDeserializer(com.google.protobuf.Descriptors.FieldDescriptor fd, LogicalType elementType, 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.