object UpdateCommand extends Serializable
- Alphabetic
- By Inheritance
- UpdateCommand
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val CONDITION_COLUMN_NAME: String
- val FILE_NAME_COLUMN: String
- val FINDING_TOUCHED_FILES_MSG: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rewritingFilesMsg(numFilesToRewrite: Long): String
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withUpdatedColumns(target: LogicalPlan, 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.
- target
target we are updating into
- 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