Constructor and Description |
---|
DecimalCodec() |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
readDecimal(CodecDataInput cdi)
read a decimal value from CodecDataInput
|
static void |
writeDecimal(CodecDataOutput cdo,
BigDecimal val) |
static void |
writeDecimal(CodecDataOutput cdo,
MyDecimal dec,
int precision,
int fraction)
write a decimal value from CodecDataInput
|
static void |
writeDecimalFully(CodecDataOutput cdo,
MyDecimal val,
int precision,
int fraction) |
public static BigDecimal readDecimal(CodecDataInput cdi)
cdi
- cdi is source data.public static void writeDecimal(CodecDataOutput cdo, MyDecimal dec, int precision, int fraction)
cdo
- cdo is destination data.dec
- is decimal value that will be written into cdo.public static void writeDecimal(CodecDataOutput cdo, BigDecimal val)
public static void writeDecimalFully(CodecDataOutput cdo, MyDecimal val, int precision, int fraction)
Copyright © 2024 PingCAP. All rights reserved.