public class DecimalUtility extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DECIMAL_BYTE_LENGTH |
static String[] |
decimalToString |
static int |
DIGITS_BASE |
static int |
DIGITS_MAX |
static int |
INTEGER_SIZE |
static int |
MAX_DIGITS |
static long[] |
scale_long_constants |
Constructor and Description |
---|
DecimalUtility() |
Modifier and Type | Method and Description |
---|---|
static long |
adjustScaleDivide(long input,
int factor) |
static long |
adjustScaleMultiply(long input,
int factor) |
static BigDecimal |
getBigDecimalFromArrowBuf(ArrowBuf bytebuf,
int startIndex,
int scale) |
static BigDecimal |
getBigDecimalFromByteBuffer(ByteBuffer bytebuf,
int start,
int scale) |
static long |
getPowerOfTen(int power) |
static StringBuilder |
toStringWithZeroes(int number,
int desiredLength) |
static StringBuilder |
toStringWithZeroes(long number,
int desiredLength) |
static void |
writeBigDecimalToArrowBuf(BigDecimal value,
ArrowBuf bytebuf,
int index) |
public static final int MAX_DIGITS
public static final int DIGITS_BASE
public static final int DIGITS_MAX
public static final int INTEGER_SIZE
public static final String[] decimalToString
public static final long[] scale_long_constants
public static final int DECIMAL_BYTE_LENGTH
public static long getPowerOfTen(int power)
public static long adjustScaleMultiply(long input, int factor)
public static long adjustScaleDivide(long input, int factor)
public static StringBuilder toStringWithZeroes(int number, int desiredLength)
public static StringBuilder toStringWithZeroes(long number, int desiredLength)
public static BigDecimal getBigDecimalFromArrowBuf(ArrowBuf bytebuf, int startIndex, int scale)
public static BigDecimal getBigDecimalFromByteBuffer(ByteBuffer bytebuf, int start, int scale)
public static void writeBigDecimalToArrowBuf(BigDecimal value, ArrowBuf bytebuf, int index)
Copyright © 2017 The Apache Software Foundation. All rights reserved.