public class PbCodegenUtils extends Object
| Constructor and Description |
|---|
PbCodegenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateArrElementCodeWithDefaultValue(String arrDataVar,
String iVar,
String pbVar,
String dataVar,
com.google.protobuf.Descriptors.FieldDescriptor elementFd,
org.apache.flink.table.types.logical.LogicalType elementType) |
static String |
getContainerDataFieldGetterCodePhrase(String dataGetter,
String index,
org.apache.flink.table.types.logical.LogicalType eleType) |
static String |
getDefaultPbValue(com.google.protobuf.Descriptors.FieldDescriptor fieldDescriptor) |
static String |
getTypeStrFromLogicType(org.apache.flink.table.types.logical.LogicalType type) |
static String |
getTypeStrFromProto(com.google.protobuf.Descriptors.FieldDescriptor fd,
boolean isRepeated) |
public static String getContainerDataFieldGetterCodePhrase(String dataGetter, String index, org.apache.flink.table.types.logical.LogicalType eleType)
public static String getTypeStrFromProto(com.google.protobuf.Descriptors.FieldDescriptor fd, boolean isRepeated) throws PbCodegenException
PbCodegenExceptionpublic static String getTypeStrFromLogicType(org.apache.flink.table.types.logical.LogicalType type)
public static String getDefaultPbValue(com.google.protobuf.Descriptors.FieldDescriptor fieldDescriptor) throws PbCodegenException
PbCodegenExceptionpublic static String generateArrElementCodeWithDefaultValue(String arrDataVar, String iVar, String pbVar, String dataVar, com.google.protobuf.Descriptors.FieldDescriptor elementFd, org.apache.flink.table.types.logical.LogicalType elementType) throws PbCodegenException
PbCodegenExceptionCopyright © 2019–2021 The Apache Software Foundation. All rights reserved.