Package org.apache.beam.sdk.schemas
Class GetterBasedSchemaProviderV2
java.lang.Object
org.apache.beam.sdk.schemas.GetterBasedSchemaProvider
org.apache.beam.sdk.schemas.GetterBasedSchemaProviderV2
- All Implemented Interfaces:
Serializable
,SchemaProvider
- Direct Known Subclasses:
AutoValueSchema
,AvroRecordSchema
,AwsSchemaProvider
,JavaBeanSchema
,JavaFieldSchema
,ProtoMessageSchema
,ThriftSchema
A newer version of
GetterBasedSchemaProvider
, which works with TypeDescriptor
s,
and which by default delegates the old, Class
based methods, to the new ones.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfieldValueGetters
(Class<?> targetClass, Schema schema) Implementing class should override to return FieldValueGetters.abstract <T> List
<FieldValueGetter<@NonNull T, Object>> fieldValueGetters
(TypeDescriptor<T> targetTypeDescriptor, Schema schema) Delegates to theGetterBasedSchemaProvider.fieldValueGetters(Class, Schema)
for backwards compatibility, override it if you want to use the richer type signature contained in theTypeDescriptor
not subject to the type erasure.fieldValueTypeInformations
(Class<?> targetClass, Schema schema) Implementing class should override to return a list of type-informations.abstract List
<FieldValueTypeInformation> fieldValueTypeInformations
(TypeDescriptor<?> targetTypeDescriptor, Schema schema) Delegates to theGetterBasedSchemaProvider.fieldValueTypeInformations(Class, Schema)
for backwards compatibility, override it if you want to use the richer type signature contained in theTypeDescriptor
not subject to the type erasure.schemaTypeCreator
(Class<?> targetClass, Schema schema) Implementing class should override to return a constructor.abstract SchemaUserTypeCreator
schemaTypeCreator
(TypeDescriptor<?> targetTypeDescriptor, Schema schema) Delegates to theGetterBasedSchemaProvider.schemaTypeCreator(Class, Schema)
for backwards compatibility, override it if you want to use the richer type signature contained in theTypeDescriptor
not subject to the type erasure.Methods inherited from class org.apache.beam.sdk.schemas.GetterBasedSchemaProvider
equals, fromRowFunction, hashCode, toRowFunction
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.beam.sdk.schemas.SchemaProvider
schemaFor
-
Constructor Details
-
GetterBasedSchemaProviderV2
public GetterBasedSchemaProviderV2()
-
-
Method Details
-
fieldValueGetters
Description copied from class:GetterBasedSchemaProvider
Implementing class should override to return FieldValueGetters.- Specified by:
fieldValueGetters
in classGetterBasedSchemaProvider
-
fieldValueGetters
public abstract <T> List<FieldValueGetter<@NonNull T,Object>> fieldValueGetters(TypeDescriptor<T> targetTypeDescriptor, Schema schema) Description copied from class:GetterBasedSchemaProvider
Delegates to theGetterBasedSchemaProvider.fieldValueGetters(Class, Schema)
for backwards compatibility, override it if you want to use the richer type signature contained in theTypeDescriptor
not subject to the type erasure.- Overrides:
fieldValueGetters
in classGetterBasedSchemaProvider
-
fieldValueTypeInformations
public List<FieldValueTypeInformation> fieldValueTypeInformations(Class<?> targetClass, Schema schema) Description copied from class:GetterBasedSchemaProvider
Implementing class should override to return a list of type-informations.- Specified by:
fieldValueTypeInformations
in classGetterBasedSchemaProvider
-
fieldValueTypeInformations
public abstract List<FieldValueTypeInformation> fieldValueTypeInformations(TypeDescriptor<?> targetTypeDescriptor, Schema schema) Description copied from class:GetterBasedSchemaProvider
Delegates to theGetterBasedSchemaProvider.fieldValueTypeInformations(Class, Schema)
for backwards compatibility, override it if you want to use the richer type signature contained in theTypeDescriptor
not subject to the type erasure.- Overrides:
fieldValueTypeInformations
in classGetterBasedSchemaProvider
-
schemaTypeCreator
Description copied from class:GetterBasedSchemaProvider
Implementing class should override to return a constructor.- Specified by:
schemaTypeCreator
in classGetterBasedSchemaProvider
-
schemaTypeCreator
public abstract SchemaUserTypeCreator schemaTypeCreator(TypeDescriptor<?> targetTypeDescriptor, Schema schema) Description copied from class:GetterBasedSchemaProvider
Delegates to theGetterBasedSchemaProvider.schemaTypeCreator(Class, Schema)
for backwards compatibility, override it if you want to use the richer type signature contained in theTypeDescriptor
not subject to the type erasure.- Overrides:
schemaTypeCreator
in classGetterBasedSchemaProvider
-