public class ProtoMessageSchema extends GetterBasedSchemaProviderV2
| Constructor and Description |
|---|
ProtoMessageSchema() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FieldValueGetter> |
fieldValueGetters(TypeDescriptor<?> targetTypeDescriptor,
Schema schema)
Delegates to the
GetterBasedSchemaProvider.fieldValueGetters(Class, Schema) for backwards compatibility,
override it if you want to use the richer type signature contained in the TypeDescriptor not subject to the type erasure. |
java.util.List<FieldValueTypeInformation> |
fieldValueTypeInformations(TypeDescriptor<?> targetTypeDescriptor,
Schema schema)
Delegates to the
GetterBasedSchemaProvider.fieldValueTypeInformations(Class, Schema) for backwards
compatibility, override it if you want to use the richer type signature contained in the TypeDescriptor not subject to the type erasure. |
static <T> SimpleFunction<byte[],Row> |
getProtoBytesToRowFn(java.lang.Class<T> clazz) |
static <T> SimpleFunction<Row,byte[]> |
getRowToProtoBytesFn(java.lang.Class<T> clazz) |
<T> @Nullable Schema |
schemaFor(TypeDescriptor<T> typeDescriptor)
Lookup a schema for the given type.
|
SchemaUserTypeCreator |
schemaTypeCreator(TypeDescriptor<?> targetTypeDescriptor,
Schema schema)
Delegates to the
GetterBasedSchemaProvider.schemaTypeCreator(Class, Schema) for backwards compatibility,
override it if you want to use the richer type signature contained in the TypeDescriptor not subject to the type erasure. |
fieldValueGetters, fieldValueTypeInformations, schemaTypeCreatorequals, fromRowFunction, hashCode, toRowFunctionpublic <T> @Nullable Schema schemaFor(TypeDescriptor<T> typeDescriptor)
SchemaProviderpublic java.util.List<FieldValueGetter> fieldValueGetters(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
GetterBasedSchemaProviderGetterBasedSchemaProvider.fieldValueGetters(Class, Schema) for backwards compatibility,
override it if you want to use the richer type signature contained in the TypeDescriptor not subject to the type erasure.fieldValueGetters in class GetterBasedSchemaProviderV2public java.util.List<FieldValueTypeInformation> fieldValueTypeInformations(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
GetterBasedSchemaProviderGetterBasedSchemaProvider.fieldValueTypeInformations(Class, Schema) for backwards
compatibility, override it if you want to use the richer type signature contained in the TypeDescriptor not subject to the type erasure.fieldValueTypeInformations in class GetterBasedSchemaProviderV2public SchemaUserTypeCreator schemaTypeCreator(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
GetterBasedSchemaProviderGetterBasedSchemaProvider.schemaTypeCreator(Class, Schema) for backwards compatibility,
override it if you want to use the richer type signature contained in the TypeDescriptor not subject to the type erasure.schemaTypeCreator in class GetterBasedSchemaProviderV2public static <T> SimpleFunction<byte[],Row> getProtoBytesToRowFn(java.lang.Class<T> clazz)
public static <T> SimpleFunction<Row,byte[]> getRowToProtoBytesFn(java.lang.Class<T> clazz)