public class PbCodegenArraySerializer extends Object implements PbCodegenSerializer
Constructor and Description |
---|
PbCodegenArraySerializer(com.google.protobuf.Descriptors.FieldDescriptor fd,
LogicalType elementType,
PbFormatContext formatContext) |
Modifier and Type | Method and Description |
---|---|
String |
codegen(String resultVar,
String flinkObjectCode,
int indent) |
public PbCodegenArraySerializer(com.google.protobuf.Descriptors.FieldDescriptor fd, LogicalType elementType, PbFormatContext formatContext)
public String codegen(String resultVar, String flinkObjectCode, int indent) throws PbCodegenException
codegen
in interface PbCodegenSerializer
resultVar
- the final var name that is calculated by codegen. This var name will be used
by outsider codegen environment. resultVariable
should be protobuf objectflinkObjectCode
- 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.PbCodegenException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.