Class AvroSchemaIOProvider
java.lang.Object
org.apache.beam.sdk.extensions.avro.io.AvroSchemaIOProvider
- All Implemented Interfaces:
 SchemaIOProvider
@Internal
@AutoService(SchemaIOProvider.class)
public class AvroSchemaIOProvider
extends Object
implements SchemaIOProvider
An implementation of 
SchemaIOProvider for reading and writing Avro files with AvroIO.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturns the expected schema of the configuration object.org.apache.beam.sdk.extensions.avro.io.AvroSchemaIOProvider.AvroSchemaIOProduce a SchemaIO given a String representing the data's location, the schema of the data that resides there, and some IO-specific configuration object.Returns an id that uniquely represents this IO.booleanIndicates whether the dataSchema value is necessary. 
- 
Constructor Details
- 
AvroSchemaIOProvider
public AvroSchemaIOProvider() 
 - 
 - 
Method Details
- 
identifier
Returns an id that uniquely represents this IO.- Specified by:
 identifierin interfaceSchemaIOProvider
 - 
configurationSchema
Returns the expected schema of the configuration object. Note this is distinct from the schema of the data source itself. No configuration expected for Avro.- Specified by:
 configurationSchemain interfaceSchemaIOProvider
 - 
from
public org.apache.beam.sdk.extensions.avro.io.AvroSchemaIOProvider.AvroSchemaIO from(String location, Row configuration, 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.- Specified by:
 fromin interfaceSchemaIOProvider
 - 
requiresDataSchema
public boolean requiresDataSchema()Description copied from interface:SchemaIOProviderIndicates whether the dataSchema value is necessary.- Specified by:
 requiresDataSchemain interfaceSchemaIOProvider
 - 
isBounded
- Specified by:
 isBoundedin interfaceSchemaIOProvider
 
 -