public class MergeBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
MergeBuilderAsyncActor |
async()
Returns a
MergeBuilderAsyncActor object that can be used to execute MergeBuilder
actions asynchronously. |
MergeResult |
collect()
Executes the merge action and returns a
MergeResult, representing number of rows
inserted, updated and deleted by this merge action. |
MatchedClauseBuilder |
whenMatched()
Adds a matched clause into the merge action.
|
MatchedClauseBuilder |
whenMatched(Column condition)
Adds a matched clause into the merge action.
|
NotMatchedClauseBuilder |
whenNotMatched()
Adds a not matched clause into the merge action.
|
NotMatchedClauseBuilder |
whenNotMatched(Column condition)
Adds a matched clause into the merge action.
|
public MatchedClauseBuilder whenMatched()
MatchedClauseBuilder which provides APIs to define
actions to take when a row is matched.
Caution: Since it matches all remaining rows, no more whenMatched calls will be accepted beyond this call.
MatchedClauseBuilderpublic MatchedClauseBuilder whenMatched(Column condition)
MatchedClauseBuilder which
provides APIs to define actions to take when a row is matched.condition - The condition expressionMatchedClauseBuilderpublic NotMatchedClauseBuilder whenNotMatched()
MatchedClauseBuilder which provides APIs to define
actions to take when a row is not matched.
Caution: Since it matches all remaining rows, no more whenNotMatched calls will be accepted beyond this call.
NotMatchedClauseBuilderpublic NotMatchedClauseBuilder whenNotMatched(Column condition)
MatchedClauseBuilder which
provides APIs to define actions to take when a row is matched.condition - The condition expressionMatchedClauseBuilderpublic MergeResult collect()
MergeResult, representing number of rows
inserted, updated and deleted by this merge action.MergeResultpublic MergeBuilderAsyncActor async()
MergeBuilderAsyncActor object that can be used to execute MergeBuilder
actions asynchronously.MergeBuilderAsyncActor object© 2023 Snowflake Inc. All Rights Reserved