Struct aws_sdk_glue::model::jdbc_connector_options::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for JdbcConnectorOptions.
Implementations§
source§impl Builder
impl Builder
sourcepub fn filter_predicate(self, input: impl Into<String>) -> Self
pub fn filter_predicate(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_filter_predicate(self, input: Option<String>) -> Self
pub fn set_filter_predicate(self, input: Option<String>) -> Self
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.
sourcepub fn partition_column(self, input: impl Into<String>) -> Self
pub fn partition_column(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_partition_column(self, input: Option<String>) -> Self
pub fn set_partition_column(self, input: Option<String>) -> Self
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.
sourcepub fn lower_bound(self, input: i64) -> Self
pub fn lower_bound(self, input: i64) -> Self
The minimum value of partitionColumn that is used to decide partition stride.
sourcepub fn set_lower_bound(self, input: Option<i64>) -> Self
pub fn set_lower_bound(self, input: Option<i64>) -> Self
The minimum value of partitionColumn that is used to decide partition stride.
sourcepub fn upper_bound(self, input: i64) -> Self
pub fn upper_bound(self, input: i64) -> Self
The maximum value of partitionColumn that is used to decide partition stride.
sourcepub fn set_upper_bound(self, input: Option<i64>) -> Self
pub fn set_upper_bound(self, input: Option<i64>) -> Self
The maximum value of partitionColumn that is used to decide partition stride.
sourcepub fn num_partitions(self, input: i64) -> Self
pub fn num_partitions(self, input: i64) -> Self
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.
sourcepub fn set_num_partitions(self, input: Option<i64>) -> Self
pub fn set_num_partitions(self, input: Option<i64>) -> Self
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.
sourcepub fn job_bookmark_keys(self, input: impl Into<String>) -> Self
pub fn job_bookmark_keys(self, input: impl Into<String>) -> Self
Appends an item to job_bookmark_keys.
To override the contents of this collection use set_job_bookmark_keys.
The name of the job bookmark keys on which to sort.
sourcepub fn set_job_bookmark_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_job_bookmark_keys(self, input: Option<Vec<String>>) -> Self
The name of the job bookmark keys on which to sort.
sourcepub fn job_bookmark_keys_sort_order(self, input: impl Into<String>) -> Self
pub fn job_bookmark_keys_sort_order(self, input: impl Into<String>) -> Self
Specifies an ascending or descending sort order.
sourcepub fn set_job_bookmark_keys_sort_order(self, input: Option<String>) -> Self
pub fn set_job_bookmark_keys_sort_order(self, input: Option<String>) -> Self
Specifies an ascending or descending sort order.
sourcepub fn data_type_mapping(self, k: JdbcDataType, v: GlueRecordType) -> Self
pub fn data_type_mapping(self, k: JdbcDataType, v: GlueRecordType) -> Self
Adds a key-value pair to data_type_mapping.
To override the contents of this collection use set_data_type_mapping.
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.
sourcepub fn set_data_type_mapping(
self,
input: Option<HashMap<JdbcDataType, GlueRecordType>>
) -> Self
pub fn set_data_type_mapping(
self,
input: Option<HashMap<JdbcDataType, GlueRecordType>>
) -> Self
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.
sourcepub fn build(self) -> JdbcConnectorOptions
pub fn build(self) -> JdbcConnectorOptions
Consumes the builder and constructs a JdbcConnectorOptions.