object AssignmentUtils extends SQLConfHelper with CastSupport
- Alphabetic
- By Inheritance
- AssignmentUtils
- CastSupport
- SQLConfHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
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
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()