Class

doric.syntax.NumericColumns

NumericOperationsSyntax

Related Doc: package NumericColumns

Permalink

implicit class NumericOperationsSyntax[T] extends AnyRef

GENERIC NUMERIC OPERATIONS

Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. NumericOperationsSyntax
  2. AnyRef
  3. Any
Implicitly
  1. by LiteralOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NumericOperationsSyntax(column: DoricColumn[T])(implicit arg0: NumericType[T])

    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 %(other: DoricColumn[T]): DoricColumn[T]

    Permalink

  4. def *(other: DoricColumn[T]): DoricColumn[T]

    Permalink

  5. def +(other: DoricColumn[T]): DoricColumn[T]

    Permalink

  6. def -(other: DoricColumn[T]): DoricColumn[T]

    Permalink

  7. def ->[B](y: B): (NumericOperationsSyntax[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to ArrowAssoc[NumericOperationsSyntax[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. def /(other: DoricColumn[T]): DoricColumn[Double]

    Permalink

  9. def <(other: DoricColumn[T]): BooleanColumn

    Permalink

  10. def <=(other: DoricColumn[T]): BooleanColumn

    Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def >(other: DoricColumn[T]): BooleanColumn

    Permalink

  13. def >=(other: DoricColumn[T]): BooleanColumn

    Permalink

  14. def abs: DoricColumn[T]

    Permalink

    Computes the absolute value of a numeric value.

    Computes the absolute value of a numeric value.

    See also

    org.apache.spark.sql.functions.abs

  15. def acos: DoubleColumn

    Permalink

    Inverse cosine of column in radians, as if computed by java.lang.Math.acos

    Inverse cosine of column in radians, as if computed by java.lang.Math.acos

    See also

    org.apache.spark.sql.functions.acos

  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def asin: DoubleColumn

    Permalink

    Inverse sine of the column in radians, as if computed by java.lang.Math.asin

    Inverse sine of the column in radians, as if computed by java.lang.Math.asin

    See also

    org.apache.spark.sql.functions.asin

  18. def atan: DoubleColumn

    Permalink

    Inverse tangent of the column as if computed by java.lang.Math.atan

    Inverse tangent of the column as if computed by java.lang.Math.atan

    See also

    org.apache.spark.sql.functions.atan

  19. def atan2(xCoordinates: DoricColumn[T]): DoubleColumn

    Permalink

    The theta component of the point (r, theta) in polar coordinates that corresponds to the point (x, y) in Cartesian coordinates, as if computed by java.lang.Math.atan2

    The theta component of the point (r, theta) in polar coordinates that corresponds to the point (x, y) in Cartesian coordinates, as if computed by java.lang.Math.atan2

    The column corresponds to yCoordinates

    See also

    org.apache.spark.sql.functions.atan2

  20. def bin: StringColumn

    Permalink

    An expression that returns the string representation of the binary value of the given long column.

    An expression that returns the string representation of the binary value of the given long column. For example, bin("12") returns "1100".

    See also

    org.apache.spark.sql.functions.bin

  21. def cbrt: DoubleColumn

    Permalink

    Computes the cube-root of the given value

    Computes the cube-root of the given value

    See also

    org.apache.spark.sql.functions.cbrt

  22. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def cos: DoubleColumn

    Permalink

    Cosine of the angle, as if computed by java.lang.Math.cos

    Cosine of the angle, as if computed by java.lang.Math.cos

    See also

    org.apache.spark.sql.functions.cos

  24. def cosh: DoubleColumn

    Permalink

    Hyperbolic cosine of the angle, as if computed by java.lang.Math.cosh

    Hyperbolic cosine of the angle, as if computed by java.lang.Math.cosh

    See also

    org.apache.spark.sql.functions.cosh

  25. def degrees: DoubleColumn

    Permalink

    Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

    Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

    See also

    org.apache.spark.sql.functions.degrees

  26. def ensuring(cond: (NumericOperationsSyntax[T]) ⇒ Boolean, msg: ⇒ Any): NumericOperationsSyntax[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to Ensuring[NumericOperationsSyntax[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: (NumericOperationsSyntax[T]) ⇒ Boolean): NumericOperationsSyntax[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to Ensuring[NumericOperationsSyntax[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean, msg: ⇒ Any): NumericOperationsSyntax[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to Ensuring[NumericOperationsSyntax[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: Boolean): NumericOperationsSyntax[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to Ensuring[NumericOperationsSyntax[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. def exp: DoubleColumn

    Permalink

    Computes the exponential of the given column

    Computes the exponential of the given column

    See also

    org.apache.spark.sql.functions.exp

  33. def expm1: DoubleColumn

    Permalink

    Computes the exponential of the given value minus one.

    Computes the exponential of the given value minus one.

    See also

    org.apache.spark.sql.functions.expm1

  34. def factorial: LongColumn

    Permalink

    Computes the factorial of the given value.

    Computes the factorial of the given value.

    See also

    org.apache.spark.sql.functions.factorial

  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def formatNumber(decimals: IntegerColumn): StringColumn

    Permalink

    Formats numeric column x to a format like '#,###,###.##', rounded to d decimal places with HALF_EVEN round mode, and returns the result as a string column.

    Formats numeric column x to a format like '#,###,###.##', rounded to d decimal places with HALF_EVEN round mode, and returns the result as a string column.

    If d is 0, the result has no decimal point or fractional part. If d is less than 0, the result will be null.

    See also

    org.apache.spark.sql.functions.format_number

  37. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to StringFormat[NumericOperationsSyntax[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  38. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  40. def hypot(right: DoricColumn[T]): DoubleColumn

    Permalink

    Computes sqrt(a2 + b2) without intermediate overflow or underflow.

    Computes sqrt(a2 + b2) without intermediate overflow or underflow.

    See also

    org.apache.spark.sql.functions.hypot

  41. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  42. def isNaN: BooleanColumn

    Permalink

    Checks if the value of the column is not a number

    Checks if the value of the column is not a number

    returns

    Boolean DoricColumn

  43. def lit(implicit l: Location): LiteralDoricColumn[NumericOperationsSyntax[T]]

    Permalink

    Transforms the original value to a literal.

    Transforms the original value to a literal.

    returns

    a literal with the same type.

    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to doric.LiteralOps[NumericOperationsSyntax[T]] performed by method LiteralOps in doric.syntax.LiteralConversions. This conversion will take place only if an implicit value of type SparkType[NumericOperationsSyntax[T]] is in scope and at the same time an implicit value of type LiteralSparkType[NumericOperationsSyntax[T]] is in scope.
    Definition Classes
    LiteralOps
    Annotations
    @inline()
  44. def log: DoubleColumn

    Permalink

    Computes the natural logarithm of the given value.

    Computes the natural logarithm of the given value.

    See also

    org.apache.spark.sql.functions.log

  45. def log10: DoubleColumn

    Permalink

    Computes the logarithm of the given value in base 10.

    Computes the logarithm of the given value in base 10.

    See also

    org.apache.spark.sql.functions.log10

  46. def log1p: DoubleColumn

    Permalink

    Computes the natural logarithm of the given value plus one.

    Computes the natural logarithm of the given value plus one.

    See also

    org.apache.spark.sql.functions.log1p

  47. def log2: DoubleColumn

    Permalink

    Computes the logarithm of the given value in base 2.

    Computes the logarithm of the given value in base 2.

    See also

    org.apache.spark.sql.functions.log2

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

    Permalink
    Definition Classes
    AnyRef
  49. def negate: DoricColumn[T]

    Permalink

    Unary minus, i.e.

    Unary minus, i.e. negate the expression.

    Example:
    1. // Select the amount column and negates all values.
      // Scala:
      df.select( -df("amount") )
    To do

    DayTimeIntervalType & YearMonthIntervalType

    See also

    org.apache.spark.sql.functions.negate

  50. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  52. def pMod(divisor: DoricColumn[T]): DoricColumn[T]

    Permalink

    Returns the positive value of dividend mod divisor.

    Returns the positive value of dividend mod divisor.

    See also

    org.apache.spark.sql.functions.pmod

  53. def pow(right: DoricColumn[T]): DoubleColumn

    Permalink

    Returns the value of the first argument raised to the power of the second argument.

    Returns the value of the first argument raised to the power of the second argument.

    See also

    org.apache.spark.sql.functions.pow

  54. def radians: DoubleColumn

    Permalink

    Converts an angle measured in degrees to an approximately equivalent angle measured in radians.

    Converts an angle measured in degrees to an approximately equivalent angle measured in radians.

    See also

    org.apache.spark.sql.functions.radians

  55. def rint: DoubleColumn

    Permalink

    Returns the double value that is closest in value to the argument and is equal to a mathematical integer.

    Returns the double value that is closest in value to the argument and is equal to a mathematical integer.

    See also

    org.apache.spark.sql.functions.rint

  56. def signum: DoubleColumn

    Permalink

    Computes the signum of the given value.

    Computes the signum of the given value.

    See also

    org.apache.spark.sql.functions.signum

  57. def sin: DoubleColumn

    Permalink

    Sine of the angle, as if computed by java.lang.Math.sin

    Sine of the angle, as if computed by java.lang.Math.sin

    See also

    org.apache.spark.sql.functions.sin

  58. def sinh: DoubleColumn

    Permalink

    Hyperbolic sine of the given value, as if computed by java.lang.Math.sinh

    Hyperbolic sine of the given value, as if computed by java.lang.Math.sinh

    See also

    org.apache.spark.sql.functions.sinh

  59. def sqrt: DoubleColumn

    Permalink

    Computes the square root of the specified float value

    Computes the square root of the specified float value

    See also

    org.apache.spark.sql.functions.sqrt

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

    Permalink
    Definition Classes
    AnyRef
  61. def tan: DoubleColumn

    Permalink

    Tangent of the given value, as if computed by java.lang.Math.tan

    Tangent of the given value, as if computed by java.lang.Math.tan

    See also

    org.apache.spark.sql.functions.tan

  62. def tanh: DoubleColumn

    Permalink

    Hyperbolic tangent of the given value, as if computed by java.lang.Math.tanh

    Hyperbolic tangent of the given value, as if computed by java.lang.Math.tanh

    See also

    org.apache.spark.sql.functions.tanh

  63. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  64. def unary_-: DoricColumn[T]

    Permalink

    Unary minus, i.e.

    Unary minus, i.e. negate the expression.

  65. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. def [B](y: B): (NumericOperationsSyntax[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to ArrowAssoc[NumericOperationsSyntax[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from NumericOperationsSyntax[T] to any2stringadd[NumericOperationsSyntax[T]] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (numericOperationsSyntax: any2stringadd[NumericOperationsSyntax[T]]).+(other)
    Definition Classes
    any2stringadd

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion LiteralOps from NumericOperationsSyntax[T] to doric.LiteralOps[NumericOperationsSyntax[T]]

Inherited by implicit conversion any2stringadd from NumericOperationsSyntax[T] to any2stringadd[NumericOperationsSyntax[T]]

Inherited by implicit conversion StringFormat from NumericOperationsSyntax[T] to StringFormat[NumericOperationsSyntax[T]]

Inherited by implicit conversion Ensuring from NumericOperationsSyntax[T] to Ensuring[NumericOperationsSyntax[T]]

Inherited by implicit conversion ArrowAssoc from NumericOperationsSyntax[T] to ArrowAssoc[NumericOperationsSyntax[T]]

All Types

Comparable Type

Numeric Type

Ungrouped