@Internal @Experimental(value=SCHEMAS) public interface SchemaIOProvider
SchemaIO
instances for use in Beam SQL and other SDKs.
Internal only: This interface is actively being worked on and it will likely change as we provide implementations for more standard Beam IOs. We provide no backwards compatibility guarantees and it should not be implemented outside of the Beam repository.
For a detailed walkthrough of implementation, see s.apache.org/schemaio-development-guide
Modifier and Type | Method and Description |
---|---|
Schema |
configurationSchema()
Returns the expected schema of the configuration object.
|
SchemaIO |
from(java.lang.String location,
Row configuration,
@Nullable 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.
|
java.lang.String identifier()
Schema configurationSchema()
SchemaIO from(java.lang.String location, Row configuration, @Nullable Schema dataSchema)
InvalidConfigurationException
or a InvalidSchemaException
.boolean requiresDataSchema()
PCollection.IsBounded isBounded()