Package org.apache.beam.sdk.io.jdbc
Class JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration
java.lang.Object
org.apache.beam.sdk.io.jdbc.JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration
- All Implemented Interfaces:
Serializable
- Enclosing class:
JdbcReadSchemaTransformProvider
@DefaultSchema(AutoValueSchema.class)
public abstract static class JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration
extends Object
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JdbcReadSchemaTransformConfiguration
public JdbcReadSchemaTransformConfiguration()
-
-
Method Details
-
getJdbcUrl
-
getConnectionInitSql
@SchemaFieldDescription("Sets the connection init sql statements used by the Driver. Only MySQL and MariaDB support this.") @Nullable public abstract List<@Nullable String> getConnectionInitSql() -
getConnectionProperties
@SchemaFieldDescription("Used to set connection properties passed to the JDBC driver not already defined as standalone parameter (e.g. username and password can be set using parameters above accordingly). Format of the string must be \"key1=value1;key2=value2;\".") @Nullable public abstract String getConnectionProperties() -
getDisableAutoCommit
@SchemaFieldDescription("Whether to disable auto commit on read. Defaults to true if not provided. The need for this config varies depending on the database platform. Informix requires this to be set to false while Postgres requires this to be set to true.") @Nullable public abstract Boolean getDisableAutoCommit() -
getDriverClassName
@SchemaFieldDescription("Name of a Java Driver class to use to connect to the JDBC source. For example, \"com.mysql.jdbc.Driver\".") @Nullable public abstract String getDriverClassName() -
getDriverJars
@SchemaFieldDescription("Comma separated path(s) for the JDBC driver jar(s). This can be a local path or GCS (gs://) path.") @Nullable public abstract String getDriverJars() -
getFetchSize
@SchemaFieldDescription("This method is used to override the size of the data that is going to be fetched and loaded in memory per every database call. It should ONLY be used if the default value throws memory errors.") @Nullable public abstract Integer getFetchSize() -
getJdbcType
@SchemaFieldDescription("Type of JDBC source. When specified, an appropriate default Driver will be packaged with the transform. One of mysql, postgres, oracle, or mssql.") @Nullable public abstract String getJdbcType() -
getLocation
@SchemaFieldDescription("Name of the table to read from.") @Nullable public abstract String getLocation() -
getPartitionColumn
@SchemaFieldDescription("Name of a column of numeric type that will be used for partitioning.") @Nullable public abstract String getPartitionColumn() -
getNumPartitions
@SchemaFieldDescription("The number of partitions") @Nullable public abstract Integer getNumPartitions() -
getOutputParallelization
@SchemaFieldDescription("Whether to reshuffle the resulting PCollection so results are distributed to all workers.") @Nullable public abstract Boolean getOutputParallelization() -
getPassword
@SchemaFieldDescription("Password for the JDBC source.") @Nullable public abstract String getPassword() -
getReadQuery
@SchemaFieldDescription("SQL query used to query the JDBC source.") @Nullable public abstract String getReadQuery() -
getUsername
@SchemaFieldDescription("Username for the JDBC source.") @Nullable public abstract String getUsername() -
validate
public void validate() -
validate
- Throws:
IllegalArgumentException
-
builder
public static JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration.Builder builder()
-