@Internal
@AutoService(value=org.apache.beam.sdk.schemas.io.SchemaIOProvider.class)
public class AvroSchemaIOProvider
extends java.lang.Object
implements org.apache.beam.sdk.schemas.io.SchemaIOProvider
SchemaIOProvider for reading and writing Avro files with AvroIO.| Constructor and Description |
|---|
AvroSchemaIOProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.schemas.Schema |
configurationSchema()
Returns the expected schema of the configuration object.
|
org.apache.beam.sdk.extensions.avro.io.AvroSchemaIOProvider.AvroSchemaIO |
from(java.lang.String location,
org.apache.beam.sdk.values.Row configuration,
org.apache.beam.sdk.schemas.Schema dataSchema)
Produce a SchemaIO given a String representing the data's location, the schema of the data that
resides there, and some IO-specific configuration object.
|
java.lang.String |
identifier()
Returns an id that uniquely represents this IO.
|
org.apache.beam.sdk.values.PCollection.IsBounded |
isBounded() |
boolean |
requiresDataSchema() |
public java.lang.String identifier()
identifier in interface org.apache.beam.sdk.schemas.io.SchemaIOProviderpublic org.apache.beam.sdk.schemas.Schema configurationSchema()
configurationSchema in interface org.apache.beam.sdk.schemas.io.SchemaIOProviderpublic org.apache.beam.sdk.extensions.avro.io.AvroSchemaIOProvider.AvroSchemaIO from(java.lang.String location,
org.apache.beam.sdk.values.Row configuration,
org.apache.beam.sdk.schemas.Schema dataSchema)
from in interface org.apache.beam.sdk.schemas.io.SchemaIOProviderpublic boolean requiresDataSchema()
requiresDataSchema in interface org.apache.beam.sdk.schemas.io.SchemaIOProviderpublic org.apache.beam.sdk.values.PCollection.IsBounded isBounded()
isBounded in interface org.apache.beam.sdk.schemas.io.SchemaIOProvider