Constructor and Description |
---|
Math() |
Modifier and Type | Method and Description |
---|---|
static ScalarValuedFunction |
abs(ScalarValuedFunction expr)
Returns the absolute value of the given expression.
|
static ScalarValuedFunction |
abs(String field)
Returns the absolute value of the given field.
|
static ScalarValuedFunction |
acos(ScalarValuedFunction expr)
Returns the arc cosine of the given expression using radians.
|
static ScalarValuedFunction |
acos(String field)
Returns the arc cosine of the given field using radians.
|
static ScalarValuedFunction |
asin(ScalarValuedFunction expr)
Returns the arc sine of the given expression using radians.
|
static ScalarValuedFunction |
asin(String field)
Returns the arc sine of the given field using radians.
|
static ScalarValuedFunction |
atan(ScalarValuedFunction expr)
Returns the arc tangent of the given expression using radians.
|
static ScalarValuedFunction |
atan(String field)
Returns the arc tangent of the given field using radians.
|
static ScalarValuedFunction |
atan2(ScalarValuedFunction y,
ScalarValuedFunction x)
Returns the angle theta from the conversion of rectangular coordinates (
x , y ) to polar coordinates (r, theta). |
static ScalarValuedFunction |
atan2(String y,
String x)
Returns the angle theta from the conversion of rectangular coordinates (x,y) to polar coordinates (r, theta).
|
static ScalarValuedFunction |
cbrt(ScalarValuedFunction expr)
Returns the cube root of the given expression.
|
static ScalarValuedFunction |
cbrt(String field)
Returns the cube root of the given field.
|
static ScalarValuedFunction |
ceil(ScalarValuedFunction expr)
Returns the ceiling of the given expression.
|
static ScalarValuedFunction |
ceil(String field)
Returns the ceiling of the given field.
|
static ScalarValuedFunction |
copySign(ScalarValuedFunction magnitude,
ScalarValuedFunction sign)
Returns
magnitude with the sign of sign . |
static ScalarValuedFunction |
copySign(String magnitude,
String sign)
Returns
magnitude with the sign of sign . |
static ScalarValuedFunction |
cos(ScalarValuedFunction expr)
Returns the cosine of the given expression using radians.
|
static ScalarValuedFunction |
cos(String field)
Returns the cosine of the given field using radians.
|
static ScalarValuedFunction |
cosh(ScalarValuedFunction expr)
Returns the hyperbolic cosine of the given expression using radians.
|
static ScalarValuedFunction |
cosh(String field)
Returns the hyperbolic cosine of the given field using radians.
|
static ScalarValuedFunction |
e()
Returns the constant value e.
|
static ScalarValuedFunction |
exp(ScalarValuedFunction expr)
Returns e raised to the power of the given expression.
|
static ScalarValuedFunction |
exp(String field)
Returns e raised to the power of the given field.
|
static ScalarValuedFunction |
expm1(ScalarValuedFunction expr)
Returns e raised to the power of the given expression minus 1.
|
static ScalarValuedFunction |
expm1(String field)
Returns e raised to the power of the given field minus 1.
|
static ScalarValuedFunction |
floor(ScalarValuedFunction expr)
Returns the floor of the given expression.
|
static ScalarValuedFunction |
floor(String field)
Returns the floor of the given field.
|
static ScalarValuedFunction |
getExponent(ScalarValuedFunction expr)
Returns the unbiased exponent used in the representation of a double or float.
|
static ScalarValuedFunction |
getExponent(String field)
Returns the unbiased exponent used in the representation of a double or float.
|
static ScalarValuedFunction |
hypot(ScalarValuedFunction x,
ScalarValuedFunction y)
Returns sqrt(x2 + y2) without intermediate overflow or underflow.
|
static ScalarValuedFunction |
hypot(String x,
String y)
Returns sqrt(x2 + y2) without intermediate overflow or underflow.
|
static ScalarValuedFunction |
IEEEremainder(ScalarValuedFunction dividend,
ScalarValuedFunction divisor)
Returns the IEEE 754 standard remainder.
|
static ScalarValuedFunction |
IEEEremainder(String dividend,
String divisor)
Returns the IEEE 754 standard remainder.
|
static ScalarValuedFunction |
log(ScalarValuedFunction expr)
Returns the natural logarithm of the given expression.
|
static ScalarValuedFunction |
log(String field)
Returns the natural logarithm of the given field.
|
static ScalarValuedFunction |
log10(ScalarValuedFunction expr)
Returns the base 10 logarithm of the given expression.
|
static ScalarValuedFunction |
log10(String field)
Returns the base 10 logarithm of the given field.
|
static ScalarValuedFunction |
log1p(ScalarValuedFunction expr)
Returns the natural logarithm of 1 plus the given expression.
|
static ScalarValuedFunction |
log1p(String field)
Returns the natural logarithm of 1 plus the given field.
|
static ScalarValuedFunction |
max(List<ScalarValuedFunction> exprs)
Returns the maximum of the argument values.
|
static ScalarValuedFunction |
max(String... fields)
Returns the maximum of the argument values.
|
static ScalarValuedFunction |
maxNotNull(List<ScalarValuedFunction> exprs)
Returns the maximum of the argument values, ignoring null values.
|
static ScalarValuedFunction |
maxNotNull(String... fields)
Returns the maximum of the argument values, ignoring null values.
|
static ScalarValuedFunction |
min(List<ScalarValuedFunction> exprs)
Returns the minimum of the argument values.
|
static ScalarValuedFunction |
min(String... fields)
Returns the minimum of the argument values.
|
static ScalarValuedFunction |
minNotNull(List<ScalarValuedFunction> exprs)
Returns the minimum of the argument values, ignoring null values.
|
static ScalarValuedFunction |
minNotNull(String... fields)
Returns the minimum of the argument values, ignoring null values.
|
static ScalarValuedFunction |
nextAfter(ScalarValuedFunction start,
ScalarValuedFunction direction)
Returns the floating point number adjacent to the first argument in the direction of the second argument.
|
static ScalarValuedFunction |
nextAfter(String start,
String direction)
Returns the floating point number adjacent to the first argument in the direction of the second argument.
|
static ScalarValuedFunction |
nextUp(ScalarValuedFunction start)
Returns the floating point number adjacent to the argument in the direction of positive infinity.
|
static ScalarValuedFunction |
nextUp(String start)
Returns the floating point number adjacent to the argument in the direction of positive infinity.
|
static ScalarValuedFunction |
pi()
Returns the constant value pi.
|
static ScalarValuedFunction |
pow(ScalarValuedFunction base,
ScalarValuedFunction exponent)
Returns
base raised to the exponent power. |
static ScalarValuedFunction |
pow(String base,
String exponent)
Returns
base raised to the exponent power. |
static ScalarValuedFunction |
precision(ScalarValuedFunction expr)
Return the precision of the given expression.
|
static ScalarValuedFunction |
precision(String field)
Returns the precision of the field.
|
static ScalarValuedFunction |
random()
Returns a random double value greater than or equal to 0 and less than 1.
|
static ScalarValuedFunction |
rint(ScalarValuedFunction expr)
Returns the double value closest to the given expression and equal to a mathematical integer.
|
static ScalarValuedFunction |
rint(String field)
Returns the double value closest to the given field and equal to a mathematical integer.
|
static ScalarValuedFunction |
round(ScalarValuedFunction expr)
Returns the expression rounded to the nearest whole number.
|
static ScalarValuedFunction |
round(String field)
Returns the expression rounded to the nearest whole number.
|
static ScalarValuedFunction |
scalb(ScalarValuedFunction expr,
ScalarValuedFunction scaleFactor)
Returns
expr × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double or float value set. |
static ScalarValuedFunction |
scalb(String expr,
String scaleFactor)
Returns
expr × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double or float value set. |
static ScalarValuedFunction |
scale(ScalarValuedFunction expr)
Return the scale of the given expression.
|
static ScalarValuedFunction |
scale(String field)
Returns the scale of the field.
|
static ScalarValuedFunction |
signum(ScalarValuedFunction expr)
Returns the signum function of the expression: 0 if the expression is zero, 1 if it is greater than zero, or -1 if it is less than 0.
|
static ScalarValuedFunction |
signum(String field)
Returns the signum function of the expression: 0 if the expression is zero, 1 if it is greater than zero, or -1 if it is less than 0.
|
static ScalarValuedFunction |
sin(ScalarValuedFunction expr)
Returns the sine of the given expression using radians.
|
static ScalarValuedFunction |
sin(String field)
Returns the sine of the given field using radians.
|
static ScalarValuedFunction |
sinh(ScalarValuedFunction expr)
Returns the hyperbolic sine of the given expression using radians.
|
static ScalarValuedFunction |
sinh(String field)
Returns the hyperbolic sine of the given field using radians.
|
static ScalarValuedFunction |
sqrt(ScalarValuedFunction expr)
Returns the square root of the given expression.
|
static ScalarValuedFunction |
sqrt(String field)
Returns the square root of the given field.
|
static ScalarValuedFunction |
tan(ScalarValuedFunction expr)
Returns the tangent of the given expression using radians.
|
static ScalarValuedFunction |
tan(String field)
Returns the tangent of the given field using radians.
|
static ScalarValuedFunction |
tanh(ScalarValuedFunction expr)
Returns the hyperbolic tangent of the given expression using radians.
|
static ScalarValuedFunction |
tanh(String field)
Returns the hyperbolic tangent of the given field using radians.
|
static ScalarValuedFunction |
toDegrees(ScalarValuedFunction expr)
Returns the radian expression in degrees.
|
static ScalarValuedFunction |
toDegrees(String field)
Returns the radian expression in degrees.
|
static ScalarValuedFunction |
toRadians(ScalarValuedFunction expr)
Returns the degree expression in radians.
|
static ScalarValuedFunction |
toRadians(String field)
Returns the degree expression in radians.
|
static ScalarValuedFunction |
ulp(ScalarValuedFunction expr)
Returns the size of an ulp of the expression.
|
static ScalarValuedFunction |
ulp(String field)
Returns the size of an ulp of the expression.
|
public static ScalarValuedFunction abs(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction abs(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction acos(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction acos(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction asin(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction asin(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction atan(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction atan(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction atan2(String y, String x)
y
- the field containing a numeric expression yx
- the field containing a numeric expression xpublic static ScalarValuedFunction atan2(ScalarValuedFunction y, ScalarValuedFunction x)
x
, y
) to polar coordinates (r, theta).y
- the numeric expression yx
- the numeric expression xpublic static ScalarValuedFunction cbrt(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction cbrt(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction ceil(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction ceil(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction copySign(String magnitude, String sign)
magnitude
with the sign of sign
.magnitude
- a field containing a numeric expressionsign
- a field containing a numeric expressionpublic static ScalarValuedFunction copySign(ScalarValuedFunction magnitude, ScalarValuedFunction sign)
magnitude
with the sign of sign
.magnitude
- a numeric expressionsign
- a numeric expressionpublic static ScalarValuedFunction cos(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction cos(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction cosh(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction cosh(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction e()
public static ScalarValuedFunction exp(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction exp(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction expm1(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction expm1(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction floor(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction floor(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction getExponent(String field)
field
- the field containing a double or float valuepublic static ScalarValuedFunction getExponent(ScalarValuedFunction expr)
field
- a double or float valuepublic static ScalarValuedFunction hypot(String x, String y)
x
- the field containing a numeric expression xy
- the field containing a numeric expression ypublic static ScalarValuedFunction hypot(ScalarValuedFunction x, ScalarValuedFunction y)
x
- the numeric expression xy
- the numeric expression ypublic static ScalarValuedFunction IEEEremainder(String dividend, String divisor)
dividend
- the field containing the dividend numeric expressiondivisor
- the field containing the divisor numeric expressionpublic static ScalarValuedFunction IEEEremainder(ScalarValuedFunction dividend, ScalarValuedFunction divisor)
dividend
- the dividend numeric expressiondivisor
- the divisor numeric expressionpublic static ScalarValuedFunction log(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction log(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction log10(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction log10(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction log1p(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction log1p(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction max(String... fields)
fields
- the fields containing the first expressionspublic static ScalarValuedFunction max(List<ScalarValuedFunction> exprs)
exprs
- the numeric expressionspublic static ScalarValuedFunction maxNotNull(String... fields)
fields
- the fields containing the first expressionspublic static ScalarValuedFunction maxNotNull(List<ScalarValuedFunction> exprs)
exprs
- the numeric expressionspublic static ScalarValuedFunction min(String... fields)
fields
- the fields containing the numeric expressionspublic static ScalarValuedFunction min(List<ScalarValuedFunction> exprs)
exprs
- the numeric expressionspublic static ScalarValuedFunction minNotNull(String... fields)
fields
- the fields containing the numeric expressionspublic static ScalarValuedFunction minNotNull(List<ScalarValuedFunction> exprs)
exprs
- the numeric expressionspublic static ScalarValuedFunction nextAfter(String start, String direction)
start
- the field containing the start expressiondirection
- the field containing the direction expressionpublic static ScalarValuedFunction nextAfter(ScalarValuedFunction start, ScalarValuedFunction direction)
start
- the start expressiondirection
- the direction expressionpublic static ScalarValuedFunction nextUp(String start)
start
- the field containing the start expressionpublic static ScalarValuedFunction nextUp(ScalarValuedFunction start)
start
- the start expressionpublic static ScalarValuedFunction pi()
public static ScalarValuedFunction pow(String base, String exponent)
base
raised to the exponent
power.base
- the field containing the base numeric expressionexponent
- the field containing the exponent numeric expressionbase
exponent
public static ScalarValuedFunction pow(ScalarValuedFunction base, ScalarValuedFunction exponent)
base
raised to the exponent
power.base
- the base numeric expressionexponent
- the exponent numeric expressionbase
exponent
public static ScalarValuedFunction precision(String field)
field
- the field containing the numeric expressionpublic static ScalarValuedFunction precision(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction random()
public static ScalarValuedFunction rint(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction rint(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction round(String field)
field
- the field containing the numeric expressionpublic static ScalarValuedFunction round(ScalarValuedFunction expr)
start
- the numeric expressionpublic static ScalarValuedFunction scalb(String expr, String scaleFactor)
expr
× 2scaleFactor
rounded as if performed by a single correctly rounded floating-point multiply to a member of the double or float value set.expr
- the field containing the base expressionscaleFactor
- the field containing the scale factorexpr
× 2scaleFactor
public static ScalarValuedFunction scalb(ScalarValuedFunction expr, ScalarValuedFunction scaleFactor)
expr
× 2scaleFactor
rounded as if performed by a single correctly rounded floating-point multiply to a member of the double or float value set.expr
- the base expressionscaleFactor
- the scale factorexpr
× 2scaleFactor
public static ScalarValuedFunction scale(String field)
field
- the field containing the numeric expressionpublic static ScalarValuedFunction scale(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction signum(String field)
field
- the field containing the numeric expressionpublic static ScalarValuedFunction signum(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction sin(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction sin(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction sinh(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction sinh(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction sqrt(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction sqrt(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction tan(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction tan(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction tanh(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction tanh(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction toDegrees(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction toDegrees(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction toRadians(String field)
field
- the field containing a numeric expressionpublic static ScalarValuedFunction toRadians(ScalarValuedFunction expr)
expr
- the numeric expressionpublic static ScalarValuedFunction ulp(String field)
field
- the field containing the numeric expressionpublic static ScalarValuedFunction ulp(ScalarValuedFunction expr)
expr
- the numeric expressionCopyright © 2020 Actian Corporation. All rights reserved.