Interface SnowflakeNodeData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SnowflakeNodeData.Builder,SnowflakeNodeData>,SdkBuilder<SnowflakeNodeData.Builder,SnowflakeNodeData>,SdkPojo
- Enclosing class:
- SnowflakeNodeData
public static interface SnowflakeNodeData.Builder extends SdkPojo, CopyableBuilder<SnowflakeNodeData.Builder,SnowflakeNodeData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SnowflakeNodeData.Builderaction(String action)Specifies what action to take when writing to a table with preexisting data.SnowflakeNodeData.BuilderadditionalOptions(Map<String,String> additionalOptions)Specifies additional options passed to the Snowflake connector.SnowflakeNodeData.BuilderautoPushdown(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.SnowflakeNodeData.Builderconnection(Option connection)Specifies a Glue Data Catalog Connection to a Snowflake endpoint.SnowflakeNodeData.Builderdatabase(String database)Specifies a Snowflake database for your node to use.default SnowflakeNodeData.BuilderiamRole(Consumer<Option.Builder> iamRole)Not currently used.SnowflakeNodeData.BuilderiamRole(Option iamRole)Not currently used.SnowflakeNodeData.BuildermergeAction(String mergeAction)Specifies a merge action.SnowflakeNodeData.BuildermergeClause(String mergeClause)A SQL statement that specifies a custom merge behavior.SnowflakeNodeData.BuildermergeWhenMatched(String mergeWhenMatched)Specifies how to resolve records that match preexisting data when merging.SnowflakeNodeData.BuildermergeWhenNotMatched(String mergeWhenNotMatched)Specifies how to process records that do not match preexisting data when merging.SnowflakeNodeData.BuilderpostAction(String postAction)A SQL string run after the Snowflake connector performs its standard actions.SnowflakeNodeData.BuilderpreAction(String preAction)A SQL string run before the Snowflake connector performs its standard actions.SnowflakeNodeData.BuildersampleQuery(String sampleQuery)A SQL string used to retrieve data with thequerysourcetype.SnowflakeNodeData.Builderschema(String schema)Specifies a Snowflake database schema for your node to use.SnowflakeNodeData.BuilderselectedColumns(Collection<Option> selectedColumns)Specifies the columns combined to identify a record when detecting matches for merges and upserts.SnowflakeNodeData.BuilderselectedColumns(Consumer<Option.Builder>... selectedColumns)Specifies the columns combined to identify a record when detecting matches for merges and upserts.SnowflakeNodeData.BuilderselectedColumns(Option... selectedColumns)Specifies the columns combined to identify a record when detecting matches for merges and upserts.SnowflakeNodeData.BuildersourceType(String sourceType)Specifies how retrieved data is specified.SnowflakeNodeData.BuilderstagingTable(String stagingTable)The name of a staging table used when performingmergeor upsertappendactions.SnowflakeNodeData.Buildertable(String table)Specifies a Snowflake table for your node to use.SnowflakeNodeData.BuildertableSchema(Collection<Option> tableSchema)Manually defines the target schema for the node.SnowflakeNodeData.BuildertableSchema(Consumer<Option.Builder>... tableSchema)Manually defines the target schema for the node.SnowflakeNodeData.BuildertableSchema(Option... tableSchema)Manually defines the target schema for the node.SnowflakeNodeData.BuildertempDir(String tempDir)Not currently used.SnowflakeNodeData.Builderupsert(Boolean upsert)Used when Action isappend.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
sourceType
SnowflakeNodeData.Builder sourceType(String 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
SnowflakeNodeData.Builder connection(Option 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
default SnowflakeNodeData.Builder connection(Consumer<Option.Builder> 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:
connection(Option)
-
schema
SnowflakeNodeData.Builder schema(String 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
SnowflakeNodeData.Builder table(String 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
SnowflakeNodeData.Builder database(String 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
SnowflakeNodeData.Builder tempDir(String 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
SnowflakeNodeData.Builder iamRole(Option 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
default SnowflakeNodeData.Builder iamRole(Consumer<Option.Builder> 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:
iamRole(Option)
-
additionalOptions
SnowflakeNodeData.Builder additionalOptions(Map<String,String> 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
SnowflakeNodeData.Builder sampleQuery(String 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
SnowflakeNodeData.Builder preAction(String 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
SnowflakeNodeData.Builder postAction(String 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
SnowflakeNodeData.Builder action(String 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
SnowflakeNodeData.Builder upsert(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.- 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
SnowflakeNodeData.Builder mergeAction(String 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
SnowflakeNodeData.Builder mergeWhenMatched(String 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
SnowflakeNodeData.Builder mergeWhenNotMatched(String 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
SnowflakeNodeData.Builder mergeClause(String 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
SnowflakeNodeData.Builder stagingTable(String 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
SnowflakeNodeData.Builder selectedColumns(Collection<Option> 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
SnowflakeNodeData.Builder selectedColumns(Option... 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
SnowflakeNodeData.Builder selectedColumns(Consumer<Option.Builder>... 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 to#selectedColumns(List.- 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:
#selectedColumns(java.util.Collection
-
autoPushdown
SnowflakeNodeData.Builder autoPushdown(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.
- 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
SnowflakeNodeData.Builder tableSchema(Collection<Option> 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
SnowflakeNodeData.Builder tableSchema(Option... 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
SnowflakeNodeData.Builder tableSchema(Consumer<Option.Builder>... 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 to#tableSchema(List.- 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:
#tableSchema(java.util.Collection
-
-