public static interface JDBCConnectorOptions.Builder extends SdkPojo, CopyableBuilder<JDBCConnectorOptions.Builder,JDBCConnectorOptions>
| Modifier and Type | Method and Description |
|---|---|
JDBCConnectorOptions.Builder |
dataTypeMapping(Map<JDBCDataType,GlueRecordType> dataTypeMapping)
Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type.
|
JDBCConnectorOptions.Builder |
dataTypeMappingWithStrings(Map<String,String> dataTypeMapping)
Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type.
|
JDBCConnectorOptions.Builder |
filterPredicate(String filterPredicate)
Extra condition clause to filter data from source.
|
JDBCConnectorOptions.Builder |
jobBookmarkKeys(Collection<String> jobBookmarkKeys)
The name of the job bookmark keys on which to sort.
|
JDBCConnectorOptions.Builder |
jobBookmarkKeys(String... jobBookmarkKeys)
The name of the job bookmark keys on which to sort.
|
JDBCConnectorOptions.Builder |
jobBookmarkKeysSortOrder(String jobBookmarkKeysSortOrder)
Specifies an ascending or descending sort order.
|
JDBCConnectorOptions.Builder |
lowerBound(Long lowerBound)
The minimum value of
partitionColumn that is used to decide partition stride. |
JDBCConnectorOptions.Builder |
numPartitions(Long numPartitions)
The number of partitions.
|
JDBCConnectorOptions.Builder |
partitionColumn(String partitionColumn)
The name of an integer column that is used for partitioning.
|
JDBCConnectorOptions.Builder |
upperBound(Long upperBound)
The maximum value of
partitionColumn that is used to decide partition stride. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildJDBCConnectorOptions.Builder filterPredicate(String filterPredicate)
Extra condition clause to filter data from source. For example:
BillingCity='Mountain View'
When using a query instead of a table name, you should validate that the query works with the specified
filterPredicate.
filterPredicate - Extra condition clause to filter data from source. For example:
BillingCity='Mountain View'
When using a query instead of a table name, you should validate that the query works with the
specified filterPredicate.
JDBCConnectorOptions.Builder partitionColumn(String partitionColumn)
The name of an integer column that is used for partitioning. This option works only when it's included with
lowerBound, upperBound, and numPartitions. This option works the same
way as in the Spark SQL JDBC reader.
partitionColumn - The name of an integer column that is used for partitioning. This option works only when it's included
with lowerBound, upperBound, and numPartitions. This option
works the same way as in the Spark SQL JDBC reader.JDBCConnectorOptions.Builder lowerBound(Long lowerBound)
The minimum value of partitionColumn that is used to decide partition stride.
lowerBound - The minimum value of partitionColumn that is used to decide partition stride.JDBCConnectorOptions.Builder upperBound(Long upperBound)
The maximum value of partitionColumn that is used to decide partition stride.
upperBound - The maximum value of partitionColumn that is used to decide partition stride.JDBCConnectorOptions.Builder numPartitions(Long numPartitions)
The number of partitions. This value, along with lowerBound (inclusive) and
upperBound (exclusive), form partition strides for generated WHERE clause
expressions that are used to split the partitionColumn.
numPartitions - The number of partitions. This value, along with lowerBound (inclusive) and
upperBound (exclusive), form partition strides for generated WHERE clause
expressions that are used to split the partitionColumn.JDBCConnectorOptions.Builder jobBookmarkKeys(Collection<String> jobBookmarkKeys)
The name of the job bookmark keys on which to sort.
jobBookmarkKeys - The name of the job bookmark keys on which to sort.JDBCConnectorOptions.Builder jobBookmarkKeys(String... jobBookmarkKeys)
The name of the job bookmark keys on which to sort.
jobBookmarkKeys - The name of the job bookmark keys on which to sort.JDBCConnectorOptions.Builder jobBookmarkKeysSortOrder(String jobBookmarkKeysSortOrder)
Specifies an ascending or descending sort order.
jobBookmarkKeysSortOrder - Specifies an ascending or descending sort order.JDBCConnectorOptions.Builder dataTypeMappingWithStrings(Map<String,String> dataTypeMapping)
Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type. For example, the
option "dataTypeMapping":{"FLOAT":"STRING"} maps data fields of JDBC type FLOAT
into the Java String type by calling the ResultSet.getString() method of the
driver, and uses it to build the Glue record. The ResultSet object is implemented by each
driver, so the behavior is specific to the driver you use. Refer to the documentation for your JDBC driver to
understand how the driver performs the conversions.
dataTypeMapping - Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type. For
example, the option "dataTypeMapping":{"FLOAT":"STRING"} maps data fields of JDBC type
FLOAT into the Java String type by calling the
ResultSet.getString() method of the driver, and uses it to build the Glue record. The
ResultSet object is implemented by each driver, so the behavior is specific to the driver
you use. Refer to the documentation for your JDBC driver to understand how the driver performs the
conversions.JDBCConnectorOptions.Builder dataTypeMapping(Map<JDBCDataType,GlueRecordType> dataTypeMapping)
Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type. For example, the
option "dataTypeMapping":{"FLOAT":"STRING"} maps data fields of JDBC type FLOAT
into the Java String type by calling the ResultSet.getString() method of the
driver, and uses it to build the Glue record. The ResultSet object is implemented by each
driver, so the behavior is specific to the driver you use. Refer to the documentation for your JDBC driver to
understand how the driver performs the conversions.
dataTypeMapping - Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type. For
example, the option "dataTypeMapping":{"FLOAT":"STRING"} maps data fields of JDBC type
FLOAT into the Java String type by calling the
ResultSet.getString() method of the driver, and uses it to build the Glue record. The
ResultSet object is implemented by each driver, so the behavior is specific to the driver
you use. Refer to the documentation for your JDBC driver to understand how the driver performs the
conversions.Copyright © 2023. All rights reserved.