Packages

object AssignmentUtils extends SQLConfHelper with CastSupport

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssignmentUtils
  2. CastSupport
  3. SQLConfHelper
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. def alignInsertAssignments(attrs: Seq[Attribute], assignments: Seq[Assignment]): Seq[Assignment]

    Aligns insert assignments to match table columns.

    Aligns insert assignments to match table columns.

    This method processes and reorders given assignments so that each target column gets an expression it should be set to. There must be exactly one assignment for each top-level attribute and its value must be compatible.

    Insert assignments cannot refer to nested columns.

    attrs

    table attributes

    assignments

    insert assignments to align

    returns

    aligned insert assignments that match table attributes

  5. def alignUpdateAssignments(attrs: Seq[Attribute], assignments: Seq[Assignment]): Seq[Assignment]

    Aligns update assignments to match table columns.

    Aligns update assignments to match table columns.

    This method processes and reorders given assignments so that each target column gets an expression it should be set to. If a column does not have a matching assignment, it will be set to its current value. For example, if one passes table attributes c1, c2 and an assignment c2 = 1, this method will return c1 = c1, c2 = 1. This allows Spark to construct an updated version of a row.

    This method also handles updates to nested columns. If there is an assignment to a particular nested field, this method will construct a new struct with one field updated preserving other fields that have not been modified. For example, if one passes table attributes c1, c2 where c2 is a struct with fields n1 and n2 and an assignment c2.n2 = 1, this method will return c1 = c1, c2 = struct(c2.n1, 1).

    attrs

    table attributes

    assignments

    assignments to align

    returns

    aligned update assignments that match table attributes

  6. def aligned(attrs: Seq[Attribute], assignments: Seq[Assignment]): Boolean

    Checks whether assignments are aligned and compatible with table columns.

    Checks whether assignments are aligned and compatible with table columns.

    attrs

    table attributes

    assignments

    assignments to check

    returns

    true if the assignments are aligned

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def cast(child: Expression, dataType: DataType): Cast

    Create a Cast expression with the session local time zone.

    Create a Cast expression with the session local time zone.

    Definition Classes
    CastSupport
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def conf: SQLConf

    The active config object within the current scope.

    The active config object within the current scope. See SQLConf.get for more information.

    Definition Classes
    SQLConfHelper
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from CastSupport

Inherited from SQLConfHelper

Inherited from AnyRef

Inherited from Any

Ungrouped