class MatchedClauseBuilder extends AnyRef
Builder for a matched clause. It provides APIs to build update and delete actions
- Since
0.7.0
- Alphabetic
- By Inheritance
- MatchedClauseBuilder
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def delete(): MergeBuilder
Defines a delete action for the matched clause, when a row in target is matched, delete it from target.
Defines a delete action for the matched clause, when a row in target is matched, delete it from target. Returns an updated MergeBuilder with the new clause added.
For example:
target.merge(source, target("id") === source("id")) .whenMatched.delete()
Adds a matched clause where a row in target is matched if its id equals the id of a row in the DataFrame source. For all such rows, delete it from target.
- returns
- Since
0.7.0
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def update(assignments: Map[Column, Column]): MergeBuilder
Defines an update action for the matched clause, when a row in target is matched, update the row in target with <assignments>, where the key specifies column name and value specifies its assigned value.
Defines an update action for the matched clause, when a row in target is matched, update the row in target with <assignments>, where the key specifies column name and value specifies its assigned value. Returns an updated MergeBuilder with the new clause added.
For example:
target.merge(source, target("id") === source("id")) .whenMatched.update(Map(target("value") -> source("value")))
Adds a matched clause where a row in target is matched if its id equals the id of a row in the DataFrame source. For all such rows, update its value to the value of the corresponding row in source.
- returns
- Since
0.7.0
- def update[T](assignments: Map[String, Column])(implicit arg0: ClassTag[T]): MergeBuilder
Defines an update action for the matched clause, when a row in target is matched, update the row in target with <assignments>, where the key specifies column name and value specifies its assigned value.
Defines an update action for the matched clause, when a row in target is matched, update the row in target with <assignments>, where the key specifies column name and value specifies its assigned value. Returns an updated MergeBuilder with the new clause added.
For example:
target.merge(source, target("id") === source("id")) .whenMatched.update(Map("value" -> source("value")))
Adds a matched clause where a row in target is matched if its id equals the id of a row in the DataFrame source. For all such rows, update its value to the value of the corresponding row in source.
- returns
- Since
0.7.0
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)