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, schemaTypeCreator
equals, fromRowFunction, hashCode, toRowFunction
public <T> @Nullable Schema schemaFor(TypeDescriptor<T> typeDescriptor)
SchemaProvider
public java.util.List<FieldValueGetter> fieldValueGetters(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
GetterBasedSchemaProvider
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.fieldValueGetters
in class GetterBasedSchemaProviderV2
public java.util.List<FieldValueTypeInformation> fieldValueTypeInformations(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
GetterBasedSchemaProvider
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.fieldValueTypeInformations
in class GetterBasedSchemaProviderV2
public SchemaUserTypeCreator schemaTypeCreator(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
GetterBasedSchemaProvider
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.schemaTypeCreator
in class GetterBasedSchemaProviderV2
public static <T> SimpleFunction<byte[],Row> getProtoBytesToRowFn(java.lang.Class<T> clazz)
public static <T> SimpleFunction<Row,byte[]> getRowToProtoBytesFn(java.lang.Class<T> clazz)