@Generated(value="software.amazon.awssdk:codegen") public final class JDBCConnectorOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JDBCConnectorOptions.Builder,JDBCConnectorOptions>
Additional connection options for the connector.
Modifier and Type | Class and Description |
---|---|
static interface |
JDBCConnectorOptions.Builder |
Modifier and Type | Method and Description |
---|---|
static JDBCConnectorOptions.Builder |
builder() |
Map<JDBCDataType,GlueRecordType> |
dataTypeMapping()
Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type.
|
Map<String,String> |
dataTypeMappingAsStrings()
Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
filterPredicate()
Extra condition clause to filter data from source.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDataTypeMapping()
For responses, this returns true if the service returned a value for the DataTypeMapping property.
|
int |
hashCode() |
boolean |
hasJobBookmarkKeys()
For responses, this returns true if the service returned a value for the JobBookmarkKeys property.
|
List<String> |
jobBookmarkKeys()
The name of the job bookmark keys on which to sort.
|
String |
jobBookmarkKeysSortOrder()
Specifies an ascending or descending sort order.
|
Long |
lowerBound()
The minimum value of
partitionColumn that is used to decide partition stride. |
Long |
numPartitions()
The number of partitions.
|
String |
partitionColumn()
The name of an integer column that is used for partitioning.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends JDBCConnectorOptions.Builder> |
serializableBuilderClass() |
JDBCConnectorOptions.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Long |
upperBound()
The maximum value of
partitionColumn that is used to decide partition stride. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final 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
.
BillingCity='Mountain View'
When using a query instead of a table name, you should validate that the query works with the specified
filterPredicate
.
public final 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.
lowerBound
, upperBound
, and numPartitions
. This option works
the same way as in the Spark SQL JDBC reader.public final Long lowerBound()
The minimum value of partitionColumn
that is used to decide partition stride.
partitionColumn
that is used to decide partition stride.public final Long upperBound()
The maximum value of partitionColumn
that is used to decide partition stride.
partitionColumn
that is used to decide partition stride.public final 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
.
lowerBound
(inclusive) and
upperBound
(exclusive), form partition strides for generated WHERE
clause
expressions that are used to split the partitionColumn
.public final boolean hasJobBookmarkKeys()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> jobBookmarkKeys()
The name of the job bookmark keys on which to sort.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasJobBookmarkKeys()
method.
public final String jobBookmarkKeysSortOrder()
Specifies an ascending or descending sort order.
public final 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDataTypeMapping()
method.
"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.public final boolean hasDataTypeMapping()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,String> dataTypeMappingAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDataTypeMapping()
method.
"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.public JDBCConnectorOptions.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<JDBCConnectorOptions.Builder,JDBCConnectorOptions>
public static JDBCConnectorOptions.Builder builder()
public static Class<? extends JDBCConnectorOptions.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.