@Internal @AutoService(value=SchemaIOProvider.class) public class AvroSchemaIOProvider extends java.lang.Object implements SchemaIOProvider
SchemaIOProvider
for reading and writing Avro files with AvroIO
.Constructor and Description |
---|
AvroSchemaIOProvider() |
Modifier and Type | Method and Description |
---|---|
Schema |
configurationSchema()
Returns the expected schema of the configuration object.
|
org.apache.beam.sdk.io.AvroSchemaIOProvider.AvroSchemaIO |
from(java.lang.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.
|
java.lang.String |
identifier()
Returns an id that uniquely represents this IO.
|
PCollection.IsBounded |
isBounded() |
boolean |
requiresDataSchema()
Indicates whether the dataSchema value is necessary.
|
public java.lang.String identifier()
identifier
in interface SchemaIOProvider
public Schema configurationSchema()
configurationSchema
in interface SchemaIOProvider
public org.apache.beam.sdk.io.AvroSchemaIOProvider.AvroSchemaIO from(java.lang.String location, Row configuration, Schema dataSchema)
from
in interface SchemaIOProvider
public boolean requiresDataSchema()
SchemaIOProvider
requiresDataSchema
in interface SchemaIOProvider
public PCollection.IsBounded isBounded()
isBounded
in interface SchemaIOProvider