GetterBasedSchemaProviderV2 class'
methods which receive TypeDescriptors instead of ordinary Classes as
arguments, which permits to support generic type signatures during schema inference@Deprecated public abstract class GetterBasedSchemaProvider extends java.lang.Object implements SchemaProvider
SchemaProvider base class that vends schemas and rows based on FieldValueGetters.| Constructor and Description |
|---|
GetterBasedSchemaProvider()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(@Nullable java.lang.Object obj)
Deprecated.
|
abstract java.util.List<FieldValueGetter> |
fieldValueGetters(java.lang.Class<?> targetClass,
Schema schema)
Deprecated.
new implementations should override
fieldValueGetters(TypeDescriptor,
Schema) and make this method throw an UnsupportedOperationException |
<T> java.util.List<FieldValueGetter<T,java.lang.Object>> |
fieldValueGetters(TypeDescriptor<T> targetTypeDescriptor,
Schema schema)
Deprecated.
Delegates to the
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. |
abstract java.util.List<FieldValueTypeInformation> |
fieldValueTypeInformations(java.lang.Class<?> targetClass,
Schema schema)
Deprecated.
new implementations should override
fieldValueTypeInformations(TypeDescriptor, Schema) and make this method throw an UnsupportedOperationException |
java.util.List<FieldValueTypeInformation> |
fieldValueTypeInformations(TypeDescriptor<?> targetTypeDescriptor,
Schema schema)
Deprecated.
Delegates to the
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. |
<T> SerializableFunction<Row,T> |
fromRowFunction(TypeDescriptor<T> typeDescriptor)
Deprecated.
Given a type, returns a function that converts from a
Row object to that type. |
int |
hashCode()
Deprecated.
|
abstract SchemaUserTypeCreator |
schemaTypeCreator(java.lang.Class<?> targetClass,
Schema schema)
Deprecated.
new implementations should override
schemaTypeCreator(TypeDescriptor,
Schema) and make this method throw an UnsupportedOperationException |
SchemaUserTypeCreator |
schemaTypeCreator(TypeDescriptor<?> targetTypeDescriptor,
Schema schema)
Deprecated.
Delegates to the
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. |
<T> SerializableFunction<T,Row> |
toRowFunction(TypeDescriptor<T> typeDescriptor)
Deprecated.
Given a type, return a function that converts that type to a
Row object If no schema
exists, returns null. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitschemaFor@Deprecated public abstract java.util.List<FieldValueGetter> fieldValueGetters(java.lang.Class<?> targetClass, Schema schema)
fieldValueGetters(TypeDescriptor,
Schema) and make this method throw an UnsupportedOperationExceptionpublic <T> java.util.List<FieldValueGetter<T,java.lang.Object>> fieldValueGetters(TypeDescriptor<T> targetTypeDescriptor, Schema schema)
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.@Deprecated public abstract java.util.List<FieldValueTypeInformation> fieldValueTypeInformations(java.lang.Class<?> targetClass, Schema schema)
fieldValueTypeInformations(TypeDescriptor, Schema) and make this method throw an UnsupportedOperationExceptionpublic java.util.List<FieldValueTypeInformation> fieldValueTypeInformations(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
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.@Deprecated public abstract SchemaUserTypeCreator schemaTypeCreator(java.lang.Class<?> targetClass, Schema schema)
schemaTypeCreator(TypeDescriptor,
Schema) and make this method throw an UnsupportedOperationExceptionpublic SchemaUserTypeCreator schemaTypeCreator(TypeDescriptor<?> targetTypeDescriptor, Schema schema)
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.public <T> SerializableFunction<T,Row> toRowFunction(TypeDescriptor<T> typeDescriptor)
SchemaProviderRow object If no schema
exists, returns null.toRowFunction in interface SchemaProviderpublic <T> SerializableFunction<Row,T> fromRowFunction(TypeDescriptor<T> typeDescriptor)
SchemaProviderRow object to that type. If no
schema exists, returns null.fromRowFunction in interface SchemaProviderpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Object