@DefaultSchema(value=AutoValueSchema.class) public abstract static class JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration extends java.lang.Object implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration.Builder |
Constructor and Description |
---|
JdbcReadSchemaTransformConfiguration() |
Modifier and Type | Method and Description |
---|---|
static JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration.Builder |
builder() |
abstract java.util.List<java.lang.String> |
getConnectionInitSql() |
abstract java.lang.String |
getConnectionProperties() |
abstract java.lang.Boolean |
getDisableAutoCommit() |
abstract java.lang.String |
getDriverClassName() |
abstract java.lang.String |
getDriverJars() |
abstract java.lang.Integer |
getFetchSize() |
abstract java.lang.String |
getJdbcType() |
abstract java.lang.String |
getJdbcUrl() |
abstract java.lang.String |
getLocation() |
abstract java.lang.Boolean |
getOutputParallelization() |
abstract java.lang.String |
getPassword() |
abstract java.lang.String |
getReadQuery() |
abstract java.lang.String |
getUsername() |
void |
validate() |
void |
validate(java.lang.String jdbcType) |
public JdbcReadSchemaTransformConfiguration()
@SchemaFieldDescription(value="Connection URL for the JDBC source.") public abstract java.lang.String getJdbcUrl()
@SchemaFieldDescription(value="Sets the connection init sql statements used by the Driver. Only MySQL and MariaDB support this.") @Nullable public abstract java.util.List<java.lang.String> getConnectionInitSql()
@SchemaFieldDescription(value="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 java.lang.String getConnectionProperties()
@SchemaFieldDescription(value="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 java.lang.Boolean getDisableAutoCommit()
@SchemaFieldDescription(value="Name of a Java Driver class to use to connect to the JDBC source. For example, \"com.mysql.jdbc.Driver\".") @Nullable public abstract java.lang.String getDriverClassName()
@SchemaFieldDescription(value="Comma separated path(s) for the JDBC driver jar(s). This can be a local path or GCS (gs://) path.") @Nullable public abstract java.lang.String getDriverJars()
@SchemaFieldDescription(value="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 java.lang.Integer getFetchSize()
@SchemaFieldDescription(value="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 java.lang.String getJdbcType()
@SchemaFieldDescription(value="Name of the table to read from.") @Nullable public abstract java.lang.String getLocation()
@SchemaFieldDescription(value="Whether to reshuffle the resulting PCollection so results are distributed to all workers.") @Nullable public abstract java.lang.Boolean getOutputParallelization()
@SchemaFieldDescription(value="Password for the JDBC source.") @Nullable public abstract java.lang.String getPassword()
@SchemaFieldDescription(value="SQL query used to query the JDBC source.") @Nullable public abstract java.lang.String getReadQuery()
@SchemaFieldDescription(value="Username for the JDBC source.") @Nullable public abstract java.lang.String getUsername()
public void validate()
public void validate(java.lang.String jdbcType) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static JdbcReadSchemaTransformProvider.JdbcReadSchemaTransformConfiguration.Builder builder()