Class/Object

frameless

TypedColumn

Related Docs: object TypedColumn | package frameless

Permalink

sealed class TypedColumn[T, U] extends UntypedExpression[T]

Expression used in select-like constructions.

Documentation marked "apache/spark" is thanks to apache/spark Contributors at https://github.com/apache/spark, licensed under Apache v2.0 available at http://www.apache.org/licenses/LICENSE-2.0

T

type of dataset

U

type of column

Self Type
TypedColumn[T, U]
Linear Supertypes
UntypedExpression[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypedColumn
  2. UntypedExpression
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TypedColumn(column: Column)(implicit uencoder: TypedEncoder[U])

    Permalink

    From an untyped Column to a TypedColumn

    From an untyped Column to a TypedColumn

    column

    a spark.sql Column

    uencoder

    encoder of the resulting type U

  2. new TypedColumn(expr: Expression)(implicit uencoder: TypedEncoder[U])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(u: U)(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Multiplication of this expression a constant.

    Multiplication of this expression a constant.

    // The following multiplies a person's height by their weight.
    people.select( people.col('height) * people.col('weight) )

    apache/spark

  4. def *(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Multiplication of this expression and another expression.

    Multiplication of this expression and another expression.

    // The following multiplies a person's height by their weight.
    people.select( people.col('height) * people.col('weight) )

    apache/spark

  5. def +(u: U)(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Sum of this expression (column) with a constant.

    Sum of this expression (column) with a constant.

    // The following selects the sum of a person's height and weight.
    people.select( people('height) + 2 )
    u

    a constant of the same type apache/spark

  6. def +(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Sum of this expression and another expression.

    Sum of this expression and another expression.

    // The following selects the sum of a person's height and weight.
    people.select( people.col('height) + people.col('weight) )

    apache/spark

  7. def -(u: U)(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Subtraction.

    Subtraction. Subtract the other expression from this expression.

    // The following selects the difference between people's height and their weight.
    people.select( people('height) - 1 )
    u

    a constant of the same type apache/spark

  8. def -(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Subtraction.

    Subtraction. Subtract the other expression from this expression.

    // The following selects the difference between people's height and their weight.
    people.select( people.col('height) - people.col('weight) )

    apache/spark

  9. def /(u: U)(implicit n: CatalystNumeric[U]): TypedColumn[T, Double]

    Permalink

    Division this expression by another expression.

    Division this expression by another expression.

    // The following divides a person's height by their weight.
    people.select( people('height) / 2 )
    u

    a constant of the same type apache/spark

  10. def /(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, Double]

    Permalink

    Division this expression by another expression.

    Division this expression by another expression.

    // The following divides a person's height by their weight.
    people.select( people('height) / people('weight) )
    u

    another column of the same type apache/spark

  11. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def ===(other: TypedColumn[T, U]): TypedColumn[T, Boolean]

    Permalink

    Equality test.

    Equality test.

    df.filter( df.col('a) === df.col('b) )

    apache/spark

  13. def ===(other: U): TypedColumn[T, Boolean]

    Permalink

    Equality test.

    Equality test.

    df.filter( df.col('a) === 1 )

    apache/spark

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def cast[A](implicit arg0: TypedEncoder[A], c: CatalystCast[U, A]): TypedColumn[T, A]

    Permalink

    Casts the column to a different type.

    Casts the column to a different type.

    df.select(df('a).cast[Int])
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def divide(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, Double]

    Permalink

    Division this expression by another expression.

    Division this expression by another expression.

    // The following divides a person's height by their weight.
    people.select( people('height) / people('weight) )
    u

    another column of the same type apache/spark

  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. val expr: Expression

    Permalink
    Definition Classes
    TypedColumnUntypedExpression
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def minus(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Subtraction.

    Subtraction. Subtract the other expression from this expression.

    // The following selects the difference between people's height and their weight.
    people.select( people.col('height) minus people.col('weight) )

    apache/spark

  26. def multiply(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Multiplication of this expression and another expression.

    Multiplication of this expression and another expression.

    // The following multiplies a person's height by their weight.
    people.select( people.col('height) multiply people.col('weight) )

    apache/spark

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def plus(u: TypedColumn[T, U])(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Sum of this expression and another expression.

    Sum of this expression and another expression.

    // The following selects the sum of a person's height and weight.
    people.select( people.col('height) plus people.col('weight) )

    apache/spark

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. implicit val uencoder: TypedEncoder[U]

    Permalink
  34. def unary_-(implicit n: CatalystNumeric[U]): TypedColumn[T, U]

    Permalink

    Unary minus, i.e.

    Unary minus, i.e. negate the expression.

    // Select the amount column and negates all values.
    df.select( -df('amount) )

    apache/spark

  35. def untyped: Column

    Permalink

    Fall back to an untyped Column

  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UntypedExpression[T]

Inherited from AnyRef

Inherited from Any

Ungrouped