object Decimal extends Serializable
- Annotations
- @Unstable()
- Source
- Decimal.scala
- Alphabetic
- By Inheritance
- Decimal
- 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 MAX_INT_DIGITS: Int
Maximum number of decimal digits an Int can represent
- val MAX_LONG_DIGITS: Int
Maximum number of decimal digits a Long can represent
- val POW_10: Array[Long]
- val ROUND_CEILING: scala.math.BigDecimal.RoundingMode.Value
- val ROUND_FLOOR: scala.math.BigDecimal.RoundingMode.Value
- val ROUND_HALF_EVEN: scala.math.BigDecimal.RoundingMode.Value
- val ROUND_HALF_UP: scala.math.BigDecimal.RoundingMode.Value
- def apply(value: String): Decimal
- def apply(unscaled: Long, precision: Int, scale: Int): Decimal
- def apply(value: BigDecimal, precision: Int, scale: Int): Decimal
- def apply(value: BigDecimal, precision: Int, scale: Int): Decimal
- def apply(value: BigInt): Decimal
- def apply(value: BigInteger): Decimal
- def apply(value: BigDecimal): Decimal
- def apply(value: BigDecimal): Decimal
- def apply(value: Int): Decimal
- def apply(value: Long): Decimal
- def apply(value: Double): Decimal
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def createUnsafe(unscaled: Long, precision: Int, scale: Int): Decimal
Creates a decimal from unscaled, precision and scale without checking the bounds.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromDecimal(value: Any): Decimal
- def fromString(str: UTF8String): Decimal
- def fromStringANSI(str: UTF8String, to: DecimalType = DecimalType.USER_DEFAULT, context: QueryContext = null): Decimal
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def maxPrecisionForBytes(numBytes: Int): Int
- lazy val minBytesForPrecision: Array[Int]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)