DeltaMergeMatchedActionBuilder¶
DeltaMergeMatchedActionBuilder
is a builder interface for DeltaMergeBuilder.whenMatched operator.
Creating Instance¶
DeltaMergeMatchedActionBuilder
takes the following to be created:
- DeltaMergeBuilder
- Optional match condition
DeltaMergeMatchedActionBuilder
is created when:
DeltaMergeBuilder
is requested to whenMatched (using apply factory method)
Operators¶
delete¶
delete(): DeltaMergeBuilder
Adds a DeltaMergeIntoDeleteClause
(with the matchCondition) to the DeltaMergeBuilder.
update¶
update(
set: Map[String, Column]): DeltaMergeBuilder
updateAll¶
updateAll(): DeltaMergeBuilder
updateExpr¶
updateExpr(
set: Map[String, String]): DeltaMergeBuilder
Creating DeltaMergeMatchedActionBuilder¶
apply(
mergeBuilder: DeltaMergeBuilder,
matchCondition: Option[Column]): DeltaMergeMatchedActionBuilder
apply
creates a DeltaMergeMatchedActionBuilder
(for the given parameters).
apply
is used when:
DeltaMergeBuilder
is requested to whenMatched
addUpdateClause¶
addUpdateClause(
set: Map[String, Column]): DeltaMergeBuilder
addUpdateClause
...FIXME
addUpdateClause
is used when:
DeltaMergeMatchedActionBuilder
is requested to update and updateExpr