Packages

object UpdateCommand extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UpdateCommand
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val CONDITION_COLUMN_NAME: String
  5. val FILE_NAME_COLUMN: String
  6. val FINDING_TOUCHED_FILES_MSG: String
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def preserveRowTrackingColumns(targetDfWithoutRowTrackingColumns: DataFrame, snapshot: Snapshot, targetOutput: Seq[Attribute] = Seq.empty, updateExpressions: Seq[Expression] = Seq.empty): (DataFrame, Seq[Attribute], Seq[Expression])

    Preserve the row tracking columns when performing an UPDATE.

    Preserve the row tracking columns when performing an UPDATE.

    targetDfWithoutRowTrackingColumns

    The target DataFrame on which the UPDATE operation is to be performed.

    snapshot

    Snapshot of the Delta table at the start of the transaction.

    targetOutput

    The output schema of the target DataFrame.

    updateExpressions

    The update transformation to perform on the target DataFrame.

    returns

    1. targetDf: The target DataFrame that includes the preserved row tracking columns. 2. finalOutput: The final output schema, including the preserved row tracking columns. 3. finalUpdateExpressions: The final update expressions, including transformations for the preserved row tracking columns.

  19. def rewritingFilesMsg(numFilesToRewrite: Long): String
  20. def shouldOutputCdc(txn: OptimisticTransaction): Boolean

    Whether or not CDC is enabled on this table and, thus, if we should output CDC data during this UPDATE operation.

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def withUpdatedColumns(originalExpressions: Seq[Attribute], updateExpressions: Seq[Expression], condition: Expression, dfWithEvaluatedCondition: DataFrame, shouldOutputCdc: Boolean): DataFrame

    Build the new columns.

    Build the new columns. If the condition matches, generate the new value using the corresponding UPDATE EXPRESSION; otherwise, keep the original column value.

    When CDC is enabled, includes the generation of CDC pre-image and post-image columns for changed rows.

    originalExpressions

    the original column values

    updateExpressions

    the update transformation to perform on the input DataFrame

    condition

    update condition

    dfWithEvaluatedCondition

    source DataFrame on which we will apply the update expressions with an additional column CONDITION_COLUMN_NAME which is the true/false value of if the update condition is satisfied

    shouldOutputCdc

    if we should output CDC data during this UPDATE operation.

    returns

    the updated DataFrame, with extra CDC columns if CDC is enabled

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped