public class DecimalUtils extends Object
构造函数和描述 |
---|
DecimalUtils() |
修饰符和类型 | 方法和描述 |
---|---|
static Map.Entry<BigDecimal,BigDecimal> |
bounds(int precision, int scale)
给定 decimal 的精度和标度,返回当前 decimal 类型的下限和上限。
|
static DType |
createDecimalType(int precision, int scale)
创建具有精度和标度的 cuDF decimal 类型
|
static ColumnVector |
greaterThan(ColumnView lhs, BigDecimal rhs)
由于原生的 greaterThan 运算符在比较不同精度和标度的 decimal 值时存在准确性问题。
|
static ColumnVector |
lessThan(BinaryOperable lhs, BigDecimal rhs, int numRows)
由于原生的 lessThan 运算符在比较不同精度和标度的 decimal 值时存在准确性问题。
|
static ColumnVector |
lessThan(ColumnView lhs, BigDecimal rhs)
由于原生的 lessThan 运算符在比较不同精度和标度的 decimal 值时存在准确性问题。
|
static ColumnVector |
outOfBounds(ColumnView input, int precision, int scale)
给定精度和标度,检查输入 decimal 列的每个值是否超出范围。
|
public static DType createDecimalType(int precision, int scale)
public static Map.Entry<BigDecimal,BigDecimal> bounds(int precision, int scale)
precision
- decimal 类型的最大精度scale
- decimal 类型的标度public 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)
版权所有 © 2025。保留所有权利。