Package org.apache.spark.sql
Class WhenNotMatchedBySource<T>
Object
org.apache.spark.sql.WhenNotMatchedBySource<T>
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
A class for defining actions to be performed when there is no match by source during a merge
 operation in a MergeIntoWriter.
 
param: mergeIntoWriter the MergeIntoWriter instance to which the merge actions will be applied. param: condition an optional condition to be used with the merge actions.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionscala.Option<Column>delete()Specifies an action to delete non-matched rows from the target DataFrame when not matched by the source.Specifies an action to update non-matched rows in the target DataFrame with the provided column assignments when not matched by the source.Specifies an action to update all non-matched rows in the target DataFrame when not matched by the source.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Method Details- 
mergeIntoWriter
- 
condition
- 
updateAllSpecifies an action to update all non-matched rows in the target DataFrame when not matched by the source.- Returns:
- The MergeIntoWriter instance with the update all action configured.
 
- 
updateSpecifies an action to update non-matched rows in the target DataFrame with the provided column assignments when not matched by the source.- Parameters:
- map- A Map of column names to Column expressions representing the updates to be applied.
- Returns:
- The MergeIntoWriter instance with the update action configured.
 
- 
deleteSpecifies an action to delete non-matched rows from the target DataFrame when not matched by the source.- Returns:
- The MergeIntoWriter instance with the delete action configured.
 
 
-