Packages

c

org.apache.spark.sql

WhenMatched

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
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WhenMatched
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val condition: Option[Expression]
  2. 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.

  3. val mergeIntoWriter: MergeIntoWriter[T]
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product
  5. 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.

  6. 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.