DeltaMergeNotMatchedActionBuilder¶
DeltaMergeNotMatchedActionBuilder is a builder interface for DeltaMergeBuilder.whenNotMatched operator.
Creating Instance¶
DeltaMergeNotMatchedActionBuilder takes the following to be created:
- DeltaMergeBuilder
- (optional) Not-Match Condition (Spark SQL)
DeltaMergeNotMatchedActionBuilder is created when:
DeltaMergeBuilderis requested to whenNotMatched
Operators¶
insert¶
insert(
values: Map[String, Column]): DeltaMergeBuilder
insert adds an insert clause (with the values).
insertAll¶
insertAll(): DeltaMergeBuilder
insertAll requests the DeltaMergeBuilder to add a new DeltaMergeIntoNotMatchedInsertClause (with the notMatchCondition, if specified).
insertExpr¶
insertExpr(
values: Map[String, String]): DeltaMergeBuilder
insertExpr adds an insert clause (with the values).
Registering New DeltaMergeIntoNotMatchedInsertClause¶
addInsertClause(
setValues: Map[String, Column]): DeltaMergeBuilder
addInsertClause requests the DeltaMergeBuilder to register a new DeltaMergeIntoNotMatchedInsertClause (similarly to insertAll but with the given setValues).
addInsertClause is used when:
DeltaMergeNotMatchedActionBuilderis requested to insert and insertExpr