Interface SnowflakeNodeData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SnowflakeNodeData.Builder,,SnowflakeNodeData> SdkBuilder<SnowflakeNodeData.Builder,,SnowflakeNodeData> SdkPojo
- Enclosing class:
SnowflakeNodeData
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies what action to take when writing to a table with preexisting data.additionalOptions(Map<String, String> additionalOptions) Specifies additional options passed to the Snowflake connector.autoPushdown(Boolean autoPushdown) Specifies whether automatic query pushdown is enabled.default SnowflakeNodeData.Builderconnection(Consumer<Option.Builder> connection) Specifies a Glue Data Catalog Connection to a Snowflake endpoint.connection(Option connection) Specifies a Glue Data Catalog Connection to a Snowflake endpoint.Specifies a Snowflake database for your node to use.default SnowflakeNodeData.BuilderiamRole(Consumer<Option.Builder> iamRole) Not currently used.Not currently used.mergeAction(String mergeAction) Specifies a merge action.mergeClause(String mergeClause) A SQL statement that specifies a custom merge behavior.mergeWhenMatched(String mergeWhenMatched) Specifies how to resolve records that match preexisting data when merging.mergeWhenNotMatched(String mergeWhenNotMatched) Specifies how to process records that do not match preexisting data when merging.postAction(String postAction) A SQL string run after the Snowflake connector performs its standard actions.A SQL string run before the Snowflake connector performs its standard actions.sampleQuery(String sampleQuery) A SQL string used to retrieve data with thequerysourcetype.Specifies a Snowflake database schema for your node to use.selectedColumns(Collection<Option> selectedColumns) Specifies the columns combined to identify a record when detecting matches for merges and upserts.selectedColumns(Consumer<Option.Builder>... selectedColumns) Specifies the columns combined to identify a record when detecting matches for merges and upserts.selectedColumns(Option... selectedColumns) Specifies the columns combined to identify a record when detecting matches for merges and upserts.sourceType(String sourceType) Specifies how retrieved data is specified.stagingTable(String stagingTable) The name of a staging table used when performingmergeor upsertappendactions.Specifies a Snowflake table for your node to use.tableSchema(Collection<Option> tableSchema) Manually defines the target schema for the node.tableSchema(Consumer<Option.Builder>... tableSchema) Manually defines the target schema for the node.tableSchema(Option... tableSchema) Manually defines the target schema for the node.Not currently used.Used when Action isappend.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
sourceType
Specifies how retrieved data is specified. Valid values:
"table","query".- Parameters:
sourceType- Specifies how retrieved data is specified. Valid values:"table","query".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
- Parameters:
connection- Specifies a Glue Data Catalog Connection to a Snowflake endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnection(Option).- Parameters:
connection- a consumer that will call methods onOption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schema
Specifies a Snowflake database schema for your node to use.
- Parameters:
schema- Specifies a Snowflake database schema for your node to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
table
Specifies a Snowflake table for your node to use.
- Parameters:
table- Specifies a Snowflake table for your node to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
Specifies a Snowflake database for your node to use.
- Parameters:
database- Specifies a Snowflake database for your node to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tempDir
Not currently used.
- Parameters:
tempDir- Not currently used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRole
Not currently used.
- Parameters:
iamRole- Not currently used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRole
Not currently used.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiamRole(Option).- Parameters:
iamRole- a consumer that will call methods onOption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
additionalOptions
Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
- Parameters:
additionalOptions- Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleQuery
A SQL string used to retrieve data with the
querysourcetype.- Parameters:
sampleQuery- A SQL string used to retrieve data with thequerysourcetype.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preAction
A SQL string run before the Snowflake connector performs its standard actions.
- Parameters:
preAction- A SQL string run before the Snowflake connector performs its standard actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postAction
A SQL string run after the Snowflake connector performs its standard actions.
- Parameters:
postAction- A SQL string run after the Snowflake connector performs its standard actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Specifies what action to take when writing to a table with preexisting data. Valid values:
append,merge,truncate,drop.- Parameters:
action- Specifies what action to take when writing to a table with preexisting data. Valid values:append,merge,truncate,drop.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
upsert- Used when Action isappend. Specifies the resolution behavior when a row already exists. If true, preexisting rows will be updated. If false, those rows will be inserted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeAction
Specifies a merge action. Valid values:
simple,custom. If simple, merge behavior is defined byMergeWhenMatchedandMergeWhenNotMatched. If custom, defined byMergeClause.- Parameters:
mergeAction- Specifies a merge action. Valid values:simple,custom. If simple, merge behavior is defined byMergeWhenMatchedandMergeWhenNotMatched. If custom, defined byMergeClause.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeWhenMatched
Specifies how to resolve records that match preexisting data when merging. Valid values:
update,delete.- Parameters:
mergeWhenMatched- Specifies how to resolve records that match preexisting data when merging. Valid values:update,delete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeWhenNotMatched
Specifies how to process records that do not match preexisting data when merging. Valid values:
insert,none.- Parameters:
mergeWhenNotMatched- Specifies how to process records that do not match preexisting data when merging. Valid values:insert,none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeClause
A SQL statement that specifies a custom merge behavior.
- Parameters:
mergeClause- A SQL statement that specifies a custom merge behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stagingTable
The name of a staging table used when performing
mergeor upsertappendactions. Data is written to this table, then moved totableby a generated postaction.- Parameters:
stagingTable- The name of a staging table used when performingmergeor upsertappendactions. Data is written to this table, then moved totableby a generated postaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedColumns
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with
value,labelanddescriptionkeys. Each structure describes a column.- Parameters:
selectedColumns- Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures withvalue,labelanddescriptionkeys. Each structure describes a column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedColumns
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with
value,labelanddescriptionkeys. Each structure describes a column.- Parameters:
selectedColumns- Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures withvalue,labelanddescriptionkeys. Each structure describes a column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedColumns
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with
This is a convenience method that creates an instance of thevalue,labelanddescriptionkeys. Each structure describes a column.Option.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toselectedColumns(List<Option>).- Parameters:
selectedColumns- a consumer that will call methods onOption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableSchema
Manually defines the target schema for the node. A list of structures with
value,labelanddescriptionkeys. Each structure defines a column.- Parameters:
tableSchema- Manually defines the target schema for the node. A list of structures withvalue,labelanddescriptionkeys. Each structure defines a column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableSchema
Manually defines the target schema for the node. A list of structures with
value,labelanddescriptionkeys. Each structure defines a column.- Parameters:
tableSchema- Manually defines the target schema for the node. A list of structures withvalue,labelanddescriptionkeys. Each structure defines a column.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableSchema
Manually defines the target schema for the node. A list of structures with
This is a convenience method that creates an instance of thevalue,labelanddescriptionkeys. Each structure defines a column.Option.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totableSchema(List<Option>).- Parameters:
tableSchema- a consumer that will call methods onOption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-