beam-sdks-java-core and
will be eventually removed. Please, migrate to a new module
beam-sdks-java-extensions-avro by importing
org.apache.beam.sdk.extensions.avro.schemas.AvroRecordSchema instead of this one.@Deprecated public class AvroRecordSchema extends GetterBasedSchemaProvider
SchemaProvider for AVRO generated SpecificRecords and POJOs.
This provider infers a schema from generated SpecificRecord objects, and creates schemas and rows that bind to the appropriate fields. This provider also infers schemas from Java POJO objects, creating a schema that matches that inferred by the AVRO libraries.
| Constructor and Description |
|---|
AvroRecordSchema()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FieldValueGetter> |
fieldValueGetters(java.lang.Class<?> targetClass,
Schema schema)
Deprecated.
Implementing class should override to return FieldValueGetters.
|
java.util.List<FieldValueTypeInformation> |
fieldValueTypeInformations(java.lang.Class<?> targetClass,
Schema schema)
Deprecated.
Implementing class should override to return a list of type-informations.
|
<T> Schema |
schemaFor(TypeDescriptor<T> typeDescriptor)
Deprecated.
Lookup a schema for the given type.
|
SchemaUserTypeCreator |
schemaTypeCreator(java.lang.Class<?> targetClass,
Schema schema)
Deprecated.
Implementing class should override to return a constructor.
|
equals, fromRowFunction, hashCode, toRowFunctionpublic <T> Schema schemaFor(TypeDescriptor<T> typeDescriptor)
SchemaProviderpublic java.util.List<FieldValueGetter> fieldValueGetters(java.lang.Class<?> targetClass, Schema schema)
GetterBasedSchemaProviderfieldValueGetters in class GetterBasedSchemaProviderpublic java.util.List<FieldValueTypeInformation> fieldValueTypeInformations(java.lang.Class<?> targetClass, Schema schema)
GetterBasedSchemaProviderfieldValueTypeInformations in class GetterBasedSchemaProviderpublic SchemaUserTypeCreator schemaTypeCreator(java.lang.Class<?> targetClass, Schema schema)
GetterBasedSchemaProviderschemaTypeCreator in class GetterBasedSchemaProvider