Packages

c

org.apache.spark.sql

WhenNotMatchedBySource

case class WhenNotMatchedBySource[T] extends Product with Serializable

A class for defining actions to be performed when there is no match by source during a merge operation in a MergeIntoWriter.

T

the type parameter for the MergeIntoWriter.

Source
MergeIntoWriter.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WhenNotMatchedBySource
  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[Column]
  2. def delete(): MergeIntoWriter[T]

    Specifies an action to delete non-matched rows from the target DataFrame when not matched by the source.

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

  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 non-matched rows in the target DataFrame with the provided column assignments 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.

    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 non-matched rows in the target DataFrame 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.

    returns

    The MergeIntoWriter instance with the update all action configured.