Class PbFormatUtils
- java.lang.Object
-
- org.apache.flink.formats.protobuf.util.PbFormatUtils
-
public class PbFormatUtils extends Object
Protobuf function util.
-
-
Constructor Summary
Constructors Constructor Description PbFormatUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.protobuf.Descriptors.Descriptor
getDescriptor(String className)
static String
getFullJavaName(com.google.protobuf.Descriptors.Descriptor descriptor)
static String
getFullJavaName(com.google.protobuf.Descriptors.EnumDescriptor enumDescriptor)
static String
getOuterClassName(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
static String
getOuterProtoPrefix(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
static String
getStrongCamelCaseJsonName(String name)
static boolean
isArrayType(LogicalType type)
static boolean
isRepeatedType(LogicalType type)
static boolean
isSimpleType(LogicalType type)
-
-
-
Method Detail
-
getFullJavaName
public static String getFullJavaName(com.google.protobuf.Descriptors.Descriptor descriptor)
-
getFullJavaName
public static String getFullJavaName(com.google.protobuf.Descriptors.EnumDescriptor enumDescriptor)
-
isSimpleType
public static boolean isSimpleType(LogicalType type)
-
getOuterClassName
public static String getOuterClassName(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
-
getOuterProtoPrefix
public static String getOuterProtoPrefix(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
-
getDescriptor
public static com.google.protobuf.Descriptors.Descriptor getDescriptor(String className)
-
isRepeatedType
public static boolean isRepeatedType(LogicalType type)
-
isArrayType
public static boolean isArrayType(LogicalType type)
-
-