@DefaultAnnotation(org.checkerframework.checker.nullness.qual.NonNull.class) @Experimental(SCHEMAS)
Package org.apache.beam.sdk.schemas
-
Interface Summary Interface Description Factory<T> A Factory interface for schema-related objects for a specific Java type.FieldValueGetter<ObjectT,ValueT> For internal use only; no backwards-compatibility guarantees.FieldValueSetter<ObjectT,ValueT> For internal use only; no backwards-compatibility guarantees.ProjectionConsumer AProjectionConsumer
is aSchema
-aware operation (such as aDoFn
orPTransform
) that has aFieldAccessDescriptor
describing which fields the operation accesses.ProjectionProducer<T> A factory for operations that execute a projection on aSchema
-awarePCollection
.Schema.LogicalType<InputT,BaseT> A LogicalType allows users to define a custom schema type.SchemaProvider Concrete implementations of this class allow creation of schema service objects that vend aSchema
for a specific type.SchemaProviderRegistrar SchemaProvider
creators have the ability to automatically have theirschemaProvider
registered with this SDK by creating aServiceLoader
entry and a concrete implementation of this interface.SchemaUserTypeCreator A creator interface for user types that have schemas. -
Class Summary Class Description AutoValueSchema ASchemaProvider
for AutoValue classes.AutoValueSchema.AbstractGetterTypeSupplier FieldValueTypeSupplier
that's based on AutoValue getters.AvroRecordSchema ASchemaProvider
for AVRO generated SpecificRecords and POJOs.CachingFactory<CreatedT> A wrapper around aFactory
that assumes the schema parameter never changes.FieldAccessDescriptor Used inside of aDoFn
to describe which fields in a schema type need to be accessed for processing.FieldAccessDescriptor.FieldDescriptor Description of a single field.FieldAccessDescriptor.FieldDescriptor.Builder Builder class.FieldAccessDescriptor.FieldDescriptor.Qualifier OneOf union for a collection selector.FieldTypeDescriptors Utilities for converting betweenSchema
field types andTypeDescriptor
s that define Java objects which can represent these field types.FieldValueTypeInformation Represents type information for a Java type that will be used to infer a Schema type.FieldValueTypeInformation.Builder GetterBasedSchemaProvider ASchemaProvider
base class that vends schemas and rows based onFieldValueGetter
s.JavaBeanSchema ASchemaProvider
for Java Bean objects.JavaBeanSchema.GetterTypeSupplier FieldValueTypeSupplier
that's based on getter methods.JavaBeanSchema.SetterTypeSupplier FieldValueTypeSupplier
that's based on setter methods.JavaFieldSchema ASchemaProvider
for Java POJO objects.JavaFieldSchema.JavaFieldTypeSupplier FieldValueTypeSupplier
that's based on public fields.RowMessages Schema Schema.Builder Builder class for buildingSchema
objects.Schema.Field Field of a row.Schema.Field.Builder Builder forSchema.Field
.Schema.FieldType A descriptor of a single field type.Schema.Options Schema.Options.Builder SchemaCoder<T> SchemaCoder
is used as the coder for types that have schemas registered.SchemaRegistry SchemaTranslation Utility methods for translating schemas.SchemaUtils A set of utility functions for schemas. -
Enum Summary Enum Description FieldAccessDescriptor.FieldDescriptor.ListQualifier Qualifier for a list selector.FieldAccessDescriptor.FieldDescriptor.MapQualifier Qualifier for a map selector.FieldAccessDescriptor.FieldDescriptor.Qualifier.Kind The kind of qualifier.Schema.EquivalenceNullablePolicy Control whether nullable is included in equivalence check.Schema.TypeName An enumerated list of type constructors. -
Exception Summary Exception Description NoSuchSchemaException Indicates that we are missing a schema for a type.