case class WhenMatched[T] extends Product with Serializable
A class for defining actions to be taken when matching rows in a DataFrame during a merge operation.
- T
The type of data in the MergeIntoWriter.
- Source
- MergeIntoWriter.scala
- Alphabetic
- By Inheritance
- WhenMatched
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val condition: Option[Expression]
- def delete(): MergeIntoWriter[T]
Specifies an action to delete matched rows from the DataFrame.
Specifies an action to delete matched rows from the DataFrame.
- returns
The MergeIntoWriter instance with the delete action configured.
- val mergeIntoWriter: MergeIntoWriter[T]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def update(map: Map[String, Column]): MergeIntoWriter[T]
Specifies an action to update matched rows in the DataFrame with the provided column assignments.
Specifies an action to update matched rows in the DataFrame with the provided column assignments.
- map
A Map of column names to Column expressions representing the updates to be applied.
- returns
The MergeIntoWriter instance with the update action configured.
- def updateAll(): MergeIntoWriter[T]
Specifies an action to update all matched rows in the DataFrame.
Specifies an action to update all matched rows in the DataFrame.
- returns
The MergeIntoWriter instance with the update all action configured.