Package org.apache.beam.sdk.io.jdbc
Class JdbcSchemaIOProvider
java.lang.Object
org.apache.beam.sdk.io.jdbc.JdbcSchemaIOProvider
- All Implemented Interfaces:
SchemaIOProvider
@Internal
@AutoService(SchemaIOProvider.class)
public class JdbcSchemaIOProvider
extends Object
implements SchemaIOProvider
An implementation of
SchemaIOProvider
for reading and writing JSON payloads with JdbcIO
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the expected schema of the configuration object.org.apache.beam.sdk.io.jdbc.JdbcSchemaIOProvider.JdbcSchemaIO
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.Returns an id that uniquely represents this IO.boolean
Indicates whether the dataSchema value is necessary.
-
Constructor Details
-
JdbcSchemaIOProvider
public JdbcSchemaIOProvider()
-
-
Method Details
-
identifier
Returns an id that uniquely represents this IO.- Specified by:
identifier
in interfaceSchemaIOProvider
-
configurationSchema
Returns the expected schema of the configuration object. Note this is distinct from the schema of the data source itself.- Specified by:
configurationSchema
in interfaceSchemaIOProvider
-
from
public org.apache.beam.sdk.io.jdbc.JdbcSchemaIOProvider.JdbcSchemaIO from(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.- Specified by:
from
in interfaceSchemaIOProvider
-
requiresDataSchema
public boolean requiresDataSchema()Description copied from interface:SchemaIOProvider
Indicates whether the dataSchema value is necessary.- Specified by:
requiresDataSchema
in interfaceSchemaIOProvider
-
isBounded
- Specified by:
isBounded
in interfaceSchemaIOProvider
-