object Decimal extends Serializable
- Annotations
- @Unstable()
- Source
- Decimal.scala
- Alphabetic
- By Inheritance
- Decimal
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromDecimal(value: Any): Decimal
- def fromString(str: UTF8String): Decimal
- def fromStringANSI(str: UTF8String, to: DecimalType = DecimalType.USER_DEFAULT, context: SQLQueryContext = null): Decimal
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()