public class Decimal
extends java.lang.Object
| Constructor and Description |
|---|
Decimal(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPrecision() |
static Pair<java.lang.Integer,java.lang.Integer> |
getPrecisionAndScale(java.lang.String type)
Returns the decimal's precision and scale from the type definition.
|
int |
getScale() |
java.math.BigDecimal |
toBigDecimal(java.lang.String v) |
byte[] |
toParquetBytes(java.lang.String v) |
public Decimal(java.lang.String type)
type - the type definition, like "decimal(10, 2)"public int getPrecision()
public int getScale()
public static Pair<java.lang.Integer,java.lang.Integer> getPrecisionAndScale(java.lang.String type)
type - the type definition, like "decimal(10, 2)"public java.math.BigDecimal toBigDecimal(java.lang.String v)
v - the string valuepublic byte[] toParquetBytes(java.lang.String v)
v - the string valueCopyright © 2022. All Rights Reserved.