Package com.yandex.ydb.table.values
Class DecimalValue
- java.lang.Object
-
- com.yandex.ydb.table.values.DecimalValue
-
- All Implemented Interfaces:
Value<DecimalType>
public class DecimalValue extends Object implements Value<DecimalType>
- Author:
- Sergey Polovko
-
-
Field Summary
Fields Modifier and Type Field Description static DecimalValueINFPositive infinity 10^35.static DecimalValueNANNot a number 10^35 + 1.static DecimalValueNEG_INFNegative infinity -10^35.static DecimalValueZEROZero value.-
Fields inherited from interface com.yandex.ydb.table.values.Value
EMPTY_ARRAY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetHigh()longgetLow()DecimalTypegetType()inthashCode()booleanisInf()booleanisNan()booleanisNegative()booleanisNegativeInf()booleanisZero()BigDecimaltoBigDecimal()BigIntegertoBigInteger()com.yandex.ydb.ValueProtos.ValuetoPb()StringtoString()voidtoString(StringBuilder sb)StringtoUnscaledString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yandex.ydb.table.values.Value
asData, asDict, asList, asOptional, asStuct, asVariant, asVoid, makeOptional
-
-
-
-
Field Detail
-
INF
public static final DecimalValue INF
Positive infinity 10^35.
-
NEG_INF
public static final DecimalValue NEG_INF
Negative infinity -10^35.
-
NAN
public static final DecimalValue NAN
Not a number 10^35 + 1.
-
ZERO
public static final DecimalValue ZERO
Zero value.
-
-
Method Detail
-
getType
public DecimalType getType()
- Specified by:
getTypein interfaceValue<DecimalType>
-
getHigh
public long getHigh()
-
getLow
public long getLow()
-
isInf
public boolean isInf()
-
isNegativeInf
public boolean isNegativeInf()
-
isNan
public boolean isNan()
-
isZero
public boolean isZero()
-
isNegative
public boolean isNegative()
-
toBigInteger
public BigInteger toBigInteger()
-
toBigDecimal
public BigDecimal toBigDecimal()
-
toString
public void toString(StringBuilder sb)
-
toUnscaledString
public String toUnscaledString()
-
toPb
public com.yandex.ydb.ValueProtos.Value toPb()
- Specified by:
toPbin interfaceValue<DecimalType>
-
-