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 adds an insert clause (with the values).
insertAll¶
insertAll requests the DeltaMergeBuilder to add a new DeltaMergeIntoNotMatchedInsertClause (with the notMatchCondition, if specified).
insertExpr¶
insertExpr adds an insert clause (with the values).
Registering New DeltaMergeIntoNotMatchedInsertClause¶
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