public class ArithmeticOperations extends Object
| Constructor and Description |
|---|
ArithmeticOperations() |
| Modifier and Type | Method and Description |
|---|---|
static Number |
add(Number... nums)
Arithmetic operation - Find the sum of any number of columns, of any valid types.
|
static Number |
average(Number... nums)
Arithmetic operation - calculate average of any number of columns.
|
static Number |
divideq(Number x,
Number y)
Arithmetic operation - divides one column by another.
|
static Number |
divider(Number x,
Number y)
Arithmetic operation - divides one column by another and returns the remainder.
|
static Boolean |
equal(BigDecimal... nums)
Arithmetic operation - Check if all values are equal across any number of BigDecimal columns.
|
static Boolean |
equal(Double... nums)
Arithmetic operation - Check if all values are equal across any number of Double columns.
|
static Boolean |
equal(Float... nums)
Arithmetic operation - Check if all values are equal across any number of Float columns.
|
static Boolean |
equal(Integer... nums)
Arithmetic operation - Check if all values are equal across any number of Integer columns.
|
static Boolean |
equal(Long... nums)
Arithmetic operation - Check if all values are equal across any number of Long columns.
|
static Boolean |
equal(Short... nums)
Arithmetic operation - Check if all values are equal across any number of Short columns.
|
static Number |
lcm(Number x,
Number y)
Arithmetic operation - calculates the LCM of two columns.
|
static Number |
max(Number... nums)
Arithmetic operation - Find the maximum of any number of columns, of any valid types.
|
static Number |
min(Number... nums)
Arithmetic operation - Find the minimum of any number of columns, of any valid types.
|
static Number |
minus(Number x,
Number y)
Arithmetic operation - subtract a column from another column.
|
static Number |
multiply(Number... nums)
Arithmetic operation - multiply any number of columns, of any types.
|
public static Number add(Number... nums) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number minus(Number x, Number y) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number multiply(Number... nums) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number divideq(Number x, Number y) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number divider(Number x, Number y) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number lcm(Number x, Number y) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Boolean equal(Short... nums)
public static Boolean equal(Integer... nums)
public static Boolean equal(Long... nums)
public static Boolean equal(Float... nums)
public static Boolean equal(Double... nums)
public static Boolean equal(BigDecimal... nums)
public static Number max(Number... nums) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number min(Number... nums) throws DirectiveExecutionException
DirectiveExecutionExceptionpublic static Number average(Number... nums) throws DirectiveExecutionException
DirectiveExecutionExceptionCopyright © 2022 CDAP Licensed under the Apache License, Version 2.0.