object Cast extends Serializable
- Alphabetic
- By Inheritance
- Cast
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val USER_SPECIFIED_CAST: TreeNodeTag[Boolean]
A tag to decide if a CAST is specified by user.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canANSIStoreAssign(from: DataType, to: DataType): Boolean
Returns true iff we can cast the
fromtype tototype as per the ANSI SQL.Returns true iff we can cast the
fromtype tototype as per the ANSI SQL. In practice, the behavior is mostly the same as PostgreSQL. It disallows certain unreasonable type conversions such as convertingstringtointordoubletoboolean. - def canCast(from: DataType, to: DataType): Boolean
Returns true iff we can cast
fromtype tototype. - def canNullSafeCastToDecimal(from: DataType, to: DecimalType): Boolean
- def canUpCast(from: DataType, to: DataType): Boolean
Returns true iff we can safely up-cast the
fromtype tototype without any truncating or precision lose or possible runtime failures.Returns true iff we can safely up-cast the
fromtype tototype without any truncating or precision lose or possible runtime failures. For example, long -> int, string -> int are not up-cast. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def forceNullable(from: DataType, to: DataType): Boolean
Returns
trueif casting non-nullable values fromfromtype tototype may return null.Returns
trueif casting non-nullable values fromfromtype tototype 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. - final def getClass(): Class[_ <: AnyRef]
- 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
- def needsTimeZone(from: DataType, to: DataType): Boolean
Return true if we need to use the
timeZoneinformation castingfromtype tototype.Return true if we need to use the
timeZoneinformation castingfromtype tototype. The patterns matched reflect the current implementation in the Cast node. c.f. usage oftimeZonein: * Cast.castToString * Cast.castToDate * Cast.castToTimestamp - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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.
- def resolvableNullability(from: Boolean, to: Boolean): Boolean
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()