public class ProtoMessageSchema extends GetterBasedSchemaProvider
Constructor and Description |
---|
ProtoMessageSchema() |
Modifier and Type | Method and Description |
---|---|
java.util.List<FieldValueGetter> |
fieldValueGetters(java.lang.Class<?> targetClass,
Schema schema)
Implementing class should override to return FieldValueGetters.
|
java.util.List<FieldValueTypeInformation> |
fieldValueTypeInformations(java.lang.Class<?> targetClass,
Schema schema)
Implementing class should override to return a list of type-informations.
|
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(java.lang.Class<?> targetClass,
Schema schema)
Implementing class should override to return a constructor.
|
equals, fromRowFunction, hashCode, toRowFunction
public <T> @Nullable Schema schemaFor(TypeDescriptor<T> typeDescriptor)
SchemaProvider
public java.util.List<FieldValueGetter> fieldValueGetters(java.lang.Class<?> targetClass, Schema schema)
GetterBasedSchemaProvider
fieldValueGetters
in class GetterBasedSchemaProvider
public java.util.List<FieldValueTypeInformation> fieldValueTypeInformations(java.lang.Class<?> targetClass, Schema schema)
GetterBasedSchemaProvider
fieldValueTypeInformations
in class GetterBasedSchemaProvider
public SchemaUserTypeCreator schemaTypeCreator(java.lang.Class<?> targetClass, Schema schema)
GetterBasedSchemaProvider
schemaTypeCreator
in class GetterBasedSchemaProvider
public static <T> SimpleFunction<byte[],Row> getProtoBytesToRowFn(java.lang.Class<T> clazz)
public static <T> SimpleFunction<Row,byte[]> getRowToProtoBytesFn(java.lang.Class<T> clazz)