Class AmazonRedshiftNodeData
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AmazonRedshiftNodeData.Builder,AmazonRedshiftNodeData>
Specifies an Amazon Redshift node.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe access type for the Redshift connection.final Stringaction()Specifies how writing to a Redshift cluser will occur.final List<AmazonRedshiftAdvancedOption> Optional values when connecting to the Redshift cluster.builder()final OptionThe name of the Glue Data Catalog database when working with a data catalog.final StringThe Redshift schema name when working with a data catalog.final StringThe database table to read from.final OptionThe Glue Data Catalog table name when working with a data catalog.final OptionThe Glue connection to the Redshift cluster.final StringSpecifies the name of the connection that is associated with the catalog table used.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AdvancedOptions property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SelectedColumns property.final booleanFor responses, this returns true if the service returned a value for the TableSchema property.final OptioniamRole()Optional.final StringThe action used when to detemine how a MERGE in a Redshift sink will be handled.final StringThe SQL used in a custom merge to deal with matching records.final StringThe action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.final StringThe action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.final StringThe SQL used before a MERGE or APPEND with upsert is run.final StringThe SQL used before a MERGE or APPEND with upsert is run.final StringThe SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.final Optionschema()The Redshift schema name when working with a direct connection.The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.static Class<? extends AmazonRedshiftNodeData.Builder> final StringThe source type to specify whether a specific table is the source or a custom query.final StringThe name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.final Optiontable()The Redshift table name when working with a direct connection.final StringSpecifies the prefix to a table.The array of schema output for a given node.final StringtempDir()The Amazon S3 path where temporary data can be staged when copying out of the database.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Booleanupsert()The action used on Redshift sinks when doing an APPEND.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accessType
The access type for the Redshift connection. Can be a direct connection or catalog connections.
- Returns:
- The access type for the Redshift connection. Can be a direct connection or catalog connections.
-
sourceType
The source type to specify whether a specific table is the source or a custom query.
- Returns:
- The source type to specify whether a specific table is the source or a custom query.
-
connection
The Glue connection to the Redshift cluster.
- Returns:
- The Glue connection to the Redshift cluster.
-
schema
The Redshift schema name when working with a direct connection.
- Returns:
- The Redshift schema name when working with a direct connection.
-
table
The Redshift table name when working with a direct connection.
- Returns:
- The Redshift table name when working with a direct connection.
-
catalogDatabase
The name of the Glue Data Catalog database when working with a data catalog.
- Returns:
- The name of the Glue Data Catalog database when working with a data catalog.
-
catalogTable
The Glue Data Catalog table name when working with a data catalog.
- Returns:
- The Glue Data Catalog table name when working with a data catalog.
-
catalogRedshiftSchema
The Redshift schema name when working with a data catalog.
- Returns:
- The Redshift schema name when working with a data catalog.
-
catalogRedshiftTable
The database table to read from.
- Returns:
- The database table to read from.
-
tempDir
The Amazon S3 path where temporary data can be staged when copying out of the database.
- Returns:
- The Amazon S3 path where temporary data can be staged when copying out of the database.
-
iamRole
Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
- Returns:
- Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
-
hasAdvancedOptions
public final boolean hasAdvancedOptions()For responses, this returns true if the service returned a value for the AdvancedOptions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
advancedOptions
Optional values when connecting to the Redshift cluster.
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
hasAdvancedOptions()method.- Returns:
- Optional values when connecting to the Redshift cluster.
-
sampleQuery
The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
- Returns:
- The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
-
preAction
The SQL used before a MERGE or APPEND with upsert is run.
- Returns:
- The SQL used before a MERGE or APPEND with upsert is run.
-
postAction
The SQL used before a MERGE or APPEND with upsert is run.
- Returns:
- The SQL used before a MERGE or APPEND with upsert is run.
-
action
Specifies how writing to a Redshift cluser will occur.
- Returns:
- Specifies how writing to a Redshift cluser will occur.
-
tablePrefix
Specifies the prefix to a table.
- Returns:
- Specifies the prefix to a table.
-
upsert
The action used on Redshift sinks when doing an APPEND.
- Returns:
- The action used on Redshift sinks when doing an APPEND.
-
mergeAction
The action used when to detemine how a MERGE in a Redshift sink will be handled.
- Returns:
- The action used when to detemine how a MERGE in a Redshift sink will be handled.
-
mergeWhenMatched
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.
- Returns:
- The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.
-
mergeWhenNotMatched
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.
- Returns:
- The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.
-
mergeClause
The SQL used in a custom merge to deal with matching records.
- Returns:
- The SQL used in a custom merge to deal with matching records.
-
crawlerConnection
Specifies the name of the connection that is associated with the catalog table used.
- Returns:
- Specifies the name of the connection that is associated with the catalog table used.
-
hasTableSchema
public final boolean hasTableSchema()For responses, this returns true if the service returned a value for the TableSchema property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
tableSchema
The array of schema output for a given node.
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
hasTableSchema()method.- Returns:
- The array of schema output for a given node.
-
stagingTable
The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.
- Returns:
- The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.
-
hasSelectedColumns
public final boolean hasSelectedColumns()For responses, this returns true if the service returned a value for the SelectedColumns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
selectedColumns
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
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
hasSelectedColumns()method.- Returns:
- The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AmazonRedshiftNodeData.Builder,AmazonRedshiftNodeData> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-