Package com.yandex.ydb.table.values
Class DecimalType
- java.lang.Object
-
- com.yandex.ydb.table.values.DecimalType
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_PRECISION-
Fields inherited from interface com.yandex.ydb.table.values.Type
EMPTY_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Type.KindgetKind()intgetPrecision()intgetScale()inthashCode()DecimalValuenewValue(long value)DecimalValuenewValue(long high, long low)DecimalValuenewValue(String value)DecimalValuenewValue(BigDecimal value)DecimalValuenewValue(BigInteger value)DecimalValuenewValueUnsigned(long value)static DecimalTypeof()static DecimalTypeof(int precision)static DecimalTypeof(int precision, int scale)com.yandex.ydb.ValueProtos.TypetoPb()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yandex.ydb.table.values.Type
makeOptional, unwrapOptional
-
-
-
-
Field Detail
-
MAX_PRECISION
public static final int MAX_PRECISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static DecimalType of()
-
of
public static DecimalType of(int precision)
-
of
public static DecimalType of(int precision, int scale)
-
getPrecision
public int getPrecision()
-
getScale
public int getScale()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
newValue
public DecimalValue newValue(long high, long low)
-
newValue
public DecimalValue newValue(long value)
-
newValueUnsigned
public DecimalValue newValueUnsigned(long value)
-
newValue
public DecimalValue newValue(BigInteger value)
-
newValue
public DecimalValue newValue(BigDecimal value)
-
newValue
public DecimalValue newValue(String value)
-
-