Packages

object Cast extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cast
  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 canANSIStoreAssign(from: DataType, to: DataType): Boolean

    Returns true iff we can cast the from type to to type as per the ANSI SQL.

    Returns true iff we can cast the from type to to type as per the ANSI SQL. In practice, the behavior is mostly the same as PostgreSQL. It disallows certain unreasonable type conversions such as converting string to int or double to boolean.

  6. def canCast(from: DataType, to: DataType): Boolean

    Returns true iff we can cast from type to to type.

  7. def canNullSafeCastToDecimal(from: DataType, to: DecimalType): Boolean
  8. def canUpCast(from: DataType, to: DataType): Boolean

    Returns true iff we can safely up-cast the from type to to type without any truncating or precision lose or possible runtime failures.

    Returns true iff we can safely up-cast the from type to to type without any truncating or precision lose or possible runtime failures. For example, long -> int, string -> int are not up-cast.

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def forceNullable(from: DataType, to: DataType): Boolean

    Returns true if casting non-nullable values from from type to to type may return null.

    Returns true if casting non-nullable values from from type to to type may return null. Note that the caller side should take care of input nullability first and only call this method if the input is not nullable.

  14. final def getClass(): Class[_]
    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. def needsTimeZone(from: DataType, to: DataType): Boolean

    Return true if we need to use the timeZone information casting from type to to type.

    Return true if we need to use the timeZone information casting from type to to type. The patterns matched reflect the current implementation in the Cast node. c.f. usage of timeZone in: * Cast.castToString * Cast.castToDate * Cast.castToTimestamp

  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def processFloatingPointSpecialLiterals(v: String, isFloat: Boolean): Any

    We process literals such as 'Infinity', 'Inf', '-Infinity' and 'NaN' etc in case insensitive manner to be compatible with other database systems such as PostgreSQL and DB2.

  22. def resolvableNullability(from: Boolean, to: Boolean): Boolean
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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