@DefaultSchema(value=AutoValueSchema.class) public abstract static class JdbcWriteSchemaTransformProvider.JdbcWriteSchemaTransformConfiguration extends java.lang.Object implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JdbcWriteSchemaTransformProvider.JdbcWriteSchemaTransformConfiguration.Builder |
Constructor and Description |
---|
JdbcWriteSchemaTransformConfiguration() |
Modifier and Type | Method and Description |
---|---|
static JdbcWriteSchemaTransformProvider.JdbcWriteSchemaTransformConfiguration.Builder |
builder() |
abstract java.lang.Boolean |
getAutosharding() |
abstract java.lang.Long |
getBatchSize() |
abstract java.util.List<java.lang.String> |
getConnectionInitSql() |
abstract java.lang.String |
getConnectionProperties() |
abstract java.lang.String |
getDriverClassName() |
abstract java.lang.String |
getDriverJars() |
abstract java.lang.String |
getJdbcType() |
abstract java.lang.String |
getJdbcUrl() |
abstract java.lang.String |
getLocation() |
abstract java.lang.String |
getPassword() |
abstract java.lang.String |
getUsername() |
abstract java.lang.String |
getWriteStatement() |
void |
validate() |
void |
validate(java.lang.String jdbcType) |
public JdbcWriteSchemaTransformConfiguration()
@SchemaFieldDescription(value="Connection URL for the JDBC sink.") public abstract java.lang.String getJdbcUrl()
@SchemaFieldDescription(value="If true, enables using a dynamically determined number of shards to write.") @Nullable public abstract java.lang.Boolean getAutosharding()
@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="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()
@Nullable public abstract java.lang.Long getBatchSize()
@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 write to.") @Nullable public abstract java.lang.String getLocation()
@SchemaFieldDescription(value="Password for the JDBC source.") @Nullable public abstract java.lang.String getPassword()
@SchemaFieldDescription(value="Username for the JDBC source.") @Nullable public abstract java.lang.String getUsername()
@SchemaFieldDescription(value="SQL query used to insert records into the JDBC sink.") @Nullable public abstract java.lang.String getWriteStatement()
public void validate()
public void validate(java.lang.String jdbcType) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static JdbcWriteSchemaTransformProvider.JdbcWriteSchemaTransformConfiguration.Builder builder()