Packages

object AnsiCast extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnsiCast
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def canCast(from: DataType, to: DataType): Boolean

    As per section 6.13 "cast specification" in "Information technology — Database languages " + "- SQL — Part 2: Foundation (SQL/Foundation)": If the <cast operand> is a <value expression>, then the valid combinations of TD and SD in a <cast specification> are given by the following table.

    As per section 6.13 "cast specification" in "Information technology — Database languages " + "- SQL — Part 2: Foundation (SQL/Foundation)": If the <cast operand> is a <value expression>, then the valid combinations of TD and SD in a <cast specification> are given by the following table. “Y” indicates that the combination is syntactically valid without restriction; “M” indicates that the combination is valid subject to other Syntax Rules in this Sub- clause being satisfied; and “N” indicates that the combination is not valid: SD TD EN AN C D T TS YM DT BO UDT B RT CT RW EN Y Y Y N N N M M N M N M N N AN Y Y Y N N N N N N M N M N N C Y Y Y Y Y Y Y Y Y M N M N N D N N Y Y N Y N N N M N M N N T N N Y N Y Y N N N M N M N N TS N N Y Y Y Y N N N M N M N N YM M N Y N N N Y N N M N M N N DT M N Y N N N N Y N M N M N N BO N N Y N N N N N Y M N M N N UDT M M M M M M M M M M M M M N B N N N N N N N N N M Y M N N RT M M M M M M M M M M M M N N CT N N N N N N N N N M N N M N RW N N N N N N N N N N N N N M

    Where: EN = Exact Numeric AN = Approximate Numeric C = Character (Fixed- or Variable-Length, or Character Large Object) D = Date T = Time TS = Timestamp YM = Year-Month Interval DT = Day-Time Interval BO = Boolean UDT = User-Defined Type B = Binary (Fixed- or Variable-Length or Binary Large Object) RT = Reference type CT = Collection type RW = Row type

    Spark's ANSI mode follows the syntax rules, except it specially allow the following straightforward type conversions which are disallowed as per the SQL standard:

    • Numeric <=> Boolean
    • String <=> Binary
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. def typeCheckFailureMessage(from: DataType, to: DataType, fallbackConfKey: Option[String], fallbackConfValue: Option[String]): String
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped