@Generated(value="software.amazon.awssdk:codegen") public final class SnowflakeNodeData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SnowflakeNodeData.Builder,SnowflakeNodeData>
Specifies configuration for Snowflake nodes in Glue Studio.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SnowflakeNodeData.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
action()
Specifies what action to take when writing to a table with preexisting data.
|
Map<String,String> |
additionalOptions()
Specifies additional options passed to the Snowflake connector.
|
Boolean |
autoPushdown()
Specifies whether automatic query pushdown is enabled.
|
static SnowflakeNodeData.Builder |
builder() |
Option |
connection()
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
|
String |
database()
Specifies a Snowflake database for your node to use.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAdditionalOptions()
For responses, this returns true if the service returned a value for the AdditionalOptions property.
|
int |
hashCode() |
boolean |
hasSelectedColumns()
For responses, this returns true if the service returned a value for the SelectedColumns property.
|
boolean |
hasTableSchema()
For responses, this returns true if the service returned a value for the TableSchema property.
|
Option |
iamRole()
Not currently used.
|
String |
mergeAction()
Specifies a merge action.
|
String |
mergeClause()
A SQL statement that specifies a custom merge behavior.
|
String |
mergeWhenMatched()
Specifies how to resolve records that match preexisting data when merging.
|
String |
mergeWhenNotMatched()
Specifies how to process records that do not match preexisting data when merging.
|
String |
postAction()
A SQL string run after the Snowflake connector performs its standard actions.
|
String |
preAction()
A SQL string run before the Snowflake connector performs its standard actions.
|
String |
sampleQuery()
A SQL string used to retrieve data with the
query sourcetype. |
String |
schema()
Specifies a Snowflake database schema for your node to use.
|
List<SdkField<?>> |
sdkFields() |
List<Option> |
selectedColumns()
Specifies the columns combined to identify a record when detecting matches for merges and upserts.
|
static Class<? extends SnowflakeNodeData.Builder> |
serializableBuilderClass() |
String |
sourceType()
Specifies how retrieved data is specified.
|
String |
stagingTable()
The name of a staging table used when performing
merge or upsert append actions. |
String |
table()
Specifies a Snowflake table for your node to use.
|
List<Option> |
tableSchema()
Manually defines the target schema for the node.
|
String |
tempDir()
Not currently used.
|
SnowflakeNodeData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
upsert()
Used when Action is
append. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String sourceType()
Specifies how retrieved data is specified. Valid values: "table", "query".
"table", "query".public final Option connection()
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
public final String schema()
Specifies a Snowflake database schema for your node to use.
public final String table()
Specifies a Snowflake table for your node to use.
public final String database()
Specifies a Snowflake database for your node to use.
public final String tempDir()
Not currently used.
public final Option iamRole()
Not currently used.
public final boolean hasAdditionalOptions()
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> additionalOptions()
Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
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 hasAdditionalOptions() method.
public final String sampleQuery()
A SQL string used to retrieve data with the query sourcetype.
query sourcetype.public final String preAction()
A SQL string run before the Snowflake connector performs its standard actions.
public final String postAction()
A SQL string run after the Snowflake connector performs its standard actions.
public final String action()
Specifies what action to take when writing to a table with preexisting data. Valid values: append,
merge, truncate, drop.
append, merge, truncate, drop.public final Boolean upsert()
Used when Action is append. Specifies the resolution behavior when a row already exists. If true,
preexisting rows will be updated. If false, those rows will be inserted.
append. Specifies the resolution behavior when a row already exists. If
true, preexisting rows will be updated. If false, those rows will be inserted.public final String mergeAction()
Specifies a merge action. Valid values: simple, custom. If simple, merge behavior is
defined by MergeWhenMatched and MergeWhenNotMatched. If custom, defined by
MergeClause.
simple, custom. If simple, merge
behavior is defined by MergeWhenMatched and MergeWhenNotMatched. If custom,
defined by MergeClause.public final String mergeWhenMatched()
Specifies how to resolve records that match preexisting data when merging. Valid values: update,
delete.
update, delete.public final String mergeWhenNotMatched()
Specifies how to process records that do not match preexisting data when merging. Valid values:
insert, none.
insert, none.public final String mergeClause()
A SQL statement that specifies a custom merge behavior.
public final String stagingTable()
The name of a staging table used when performing merge or upsert append actions. Data
is written to this table, then moved to table by a generated postaction.
merge or upsert append
actions. Data is written to this table, then moved to table by a generated postaction.public final boolean hasSelectedColumns()
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<Option> selectedColumns()
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of
structures with value, label and description keys. Each structure
describes a column.
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.
value, label and description keys. Each
structure describes a column.public final Boolean autoPushdown()
Specifies whether automatic query pushdown is enabled. If pushdown is enabled, then when a query is run on Spark, if part of the query can be "pushed down" to the Snowflake server, it is pushed down. This improves performance of some queries.
public final boolean hasTableSchema()
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<Option> tableSchema()
Manually defines the target schema for the node. A list of structures with value ,
label and description keys. Each structure defines a column.
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.
value ,
label and description keys. Each structure defines a column.public SnowflakeNodeData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SnowflakeNodeData.Builder,SnowflakeNodeData>public static SnowflakeNodeData.Builder builder()
public static Class<? extends SnowflakeNodeData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.