public class DecimalUtils extends Object
Constructor and Description |
---|
DecimalUtils() |
Modifier and Type | Method and Description |
---|---|
static Map.Entry<BigDecimal,BigDecimal> |
bounds(int precision,
int scale)
Given decimal precision and scale, returns the lower and upper bound of current decimal type.
|
static DType |
createDecimalType(int precision,
int scale)
Creates a cuDF decimal type with precision and scale
|
static ColumnVector |
greaterThan(ColumnView lhs,
BigDecimal rhs)
Because the native greaterThan operator has issues with comparing decimal values that have different
precision and scale accurately.
|
static ColumnVector |
lessThan(BinaryOperable lhs,
BigDecimal rhs,
int numRows)
Because the native lessThan operator has issues with comparing decimal values that have different
precision and scale accurately.
|
static ColumnVector |
lessThan(ColumnView lhs,
BigDecimal rhs)
Because the native lessThan operator has issues with comparing decimal values that have different
precision and scale accurately.
|
static ColumnVector |
outOfBounds(ColumnView input,
int precision,
int scale)
With precision and scale, checks each value of input decimal column for out of bound.
|
public static DType createDecimalType(int precision, int scale)
public static Map.Entry<BigDecimal,BigDecimal> bounds(int precision, int scale)
precision
- the max precision of decimal typescale
- the scale of decimal typepublic static ColumnVector outOfBounds(ColumnView input, int precision, int scale)
public static ColumnVector lessThan(ColumnView lhs, BigDecimal rhs)
public static ColumnVector lessThan(BinaryOperable lhs, BigDecimal rhs, int numRows)
public static ColumnVector greaterThan(ColumnView lhs, BigDecimal rhs)
Copyright © 2024. All rights reserved.