@InterfaceStability.Experimental @InterfaceAudience.Public public class NumberFunctions extends Object
DSL for N1QL functions in the Numbers category.
Number functions are functions that are performed on a numeric field.
Constructor and Description |
---|
NumberFunctions() |
Modifier and Type | Method and Description |
---|---|
static Expression |
abs(Expression expression)
Returned expression results in the absolute value of the number.
|
static Expression |
abs(Number value)
Returned expression results in the absolute value of the number.
|
static Expression |
acos(Expression expression)
Returned expression results in the arccosine in radians.
|
static Expression |
acos(Number value)
Returned expression results in the arccosine in radians.
|
static Expression |
asin(Expression expression)
Returned expression results in the arcsine in radians.
|
static Expression |
asin(Number value)
Returned expression results in the arcsine in radians.
|
static Expression |
atan(Expression expression)
Returned expression results in the arctangent in radians.
|
static Expression |
atan(Expression expression1,
Expression expression2)
Returned expression results in the arctangent of expression2/expression1.
|
static Expression |
atan(Number value)
Returned expression results in the arctangent in radians.
|
static Expression |
atan(String expression1,
String expression2)
Returned expression results in the arctangent of expression2/expression1.
|
static Expression |
ceil(Expression expression)
Returned expression results in the smallest integer not less than the number.
|
static Expression |
ceil(Number value)
Returned expression results in the smallest integer not less than the number.
|
static Expression |
cos(Expression expression)
Returned expression results in the cosine.
|
static Expression |
cos(Number value)
Returned expression results in the cosine.
|
static Expression |
degrees(Expression expression)
Returned expression results in the conversion of radians to degrees.
|
static Expression |
degrees(Number value)
Returned expression results in the conversion of radians to degrees.
|
static Expression |
e()
Returned expression results in the base of natural logarithms.
|
static Expression |
exp(Expression expression)
Returned expression results in the exponential of expression.
|
static Expression |
exp(Number value)
Returned expression results in the exponential of expression.
|
static Expression |
floor(Expression expression)
Returned expression results in the largest integer not greater than the number.
|
static Expression |
floor(Number value)
Returned expression results in the largest integer not greater than the number.
|
static Expression |
ln(Expression expression)
Returned expression results in the log base e.
|
static Expression |
ln(Number value)
Returned expression results in the log base e.
|
static Expression |
log(Expression expression)
Returned expression results in the log base 10.
|
static Expression |
log(Number value)
Returned expression results in the log base 10.
|
static Expression |
pi()
Returned expression results in Pi.
|
static Expression |
power(Expression expression1,
Expression expression2)
Returned expression results in expression1 to the power of expression2.
|
static Expression |
power(Number value1,
Number value2)
Returned expression results in value1 to the power of value2.
|
static Expression |
radians(Expression expression)
Returned expression results in the conversion of degrees to radians.
|
static Expression |
radians(Number value)
Returned expression results in the conversion of degrees to radians.
|
static Expression |
random()
Returned expression results in a pseudo-random number with default seed.
|
static Expression |
random(Expression seed)
Returned expression results in a pseudo-random number with optional seed.
|
static Expression |
random(Number seed)
Returned expression results in a pseudo-random number with optional seed.
|
static Expression |
round(Expression expression)
Returned expression results in the value rounded to 0 digits to the right of the decimal point.
|
static Expression |
round(Expression expression,
int digits)
Returned expression results in the value rounded to the given number of integer digits to the right of the decimal point (left if digits is negative).
|
static Expression |
round(Number expression)
Returned expression results in the value rounded to 0 digits to the right of the decimal point.
|
static Expression |
round(Number expression,
int digits)
Returned expression results in the value rounded to the given number of integer digits to the right of the decimal point (left if digits is negative).
|
static Expression |
sign(Expression expression)
Returned expression results in the sign of the numerical expression, represented as -1, 0, or 1 for negative, zero, or positive numbers respectively.
|
static Expression |
sign(Number value)
Returned expression results in the sign of the numerical expression, represented as -1, 0, or 1 for negative, zero, or positive numbers respectively.
|
static Expression |
sin(Expression expression)
Returned expression results in the sine.
|
static Expression |
sin(Number value)
Returned expression results in the sine.
|
static Expression |
squareRoot(Expression expression)
Returned expression results in the square root.
|
static Expression |
squareRoot(Number value)
Returned expression results in the square root.
|
static Expression |
tan(Expression expression)
Returned expression results in the tangent.
|
static Expression |
tan(Number value)
Returned expression results in the tangent.
|
static Expression |
trunc(Expression expression)
Returned expression results in a truncation of the number to 0 digits to the right of the decimal point.
|
static Expression |
trunc(Expression expression,
int digits)
Returned expression results in a truncation of the number to the given number of integer digits to the right of the decimal point (left if digits is negative).
|
static Expression |
trunc(Number value)
Returned expression results in a truncation of the number to 0 digits to the right of the decimal point.
|
static Expression |
trunc(Number value,
int digits)
Returned expression results in a truncation of the number to the given number of integer digits to the right of the decimal point (left if digits is negative).
|
public static Expression abs(Expression expression)
Returned expression results in the absolute value of the number.
public static Expression abs(Number value)
Returned expression results in the absolute value of the number.
public static Expression acos(Expression expression)
Returned expression results in the arccosine in radians.
public static Expression acos(Number value)
Returned expression results in the arccosine in radians.
public static Expression asin(Expression expression)
Returned expression results in the arcsine in radians.
public static Expression asin(Number value)
Returned expression results in the arcsine in radians.
public static Expression atan(Expression expression)
Returned expression results in the arctangent in radians.
public static Expression atan(Number value)
Returned expression results in the arctangent in radians.
public static Expression atan(Expression expression1, Expression expression2)
Returned expression results in the arctangent of expression2/expression1.
public static Expression atan(String expression1, String expression2)
Returned expression results in the arctangent of expression2/expression1.
public static Expression ceil(Expression expression)
Returned expression results in the smallest integer not less than the number.
public static Expression ceil(Number value)
Returned expression results in the smallest integer not less than the number.
public static Expression cos(Expression expression)
Returned expression results in the cosine.
public static Expression cos(Number value)
Returned expression results in the cosine.
public static Expression degrees(Expression expression)
Returned expression results in the conversion of radians to degrees.
public static Expression degrees(Number value)
Returned expression results in the conversion of radians to degrees.
public static Expression e()
Returned expression results in the base of natural logarithms.
public static Expression exp(Expression expression)
Returned expression results in the exponential of expression.
public static Expression exp(Number value)
Returned expression results in the exponential of expression.
public static Expression ln(Expression expression)
Returned expression results in the log base e.
public static Expression ln(Number value)
Returned expression results in the log base e.
public static Expression log(Expression expression)
Returned expression results in the log base 10.
public static Expression log(Number value)
Returned expression results in the log base 10.
public static Expression floor(Expression expression)
Returned expression results in the largest integer not greater than the number.
public static Expression floor(Number value)
Returned expression results in the largest integer not greater than the number.
public static Expression pi()
Returned expression results in Pi.
public static Expression power(Expression expression1, Expression expression2)
Returned expression results in expression1 to the power of expression2.
public static Expression power(Number value1, Number value2)
Returned expression results in value1 to the power of value2.
public static Expression radians(Expression expression)
Returned expression results in the conversion of degrees to radians.
public static Expression radians(Number value)
Returned expression results in the conversion of degrees to radians.
public static Expression random(Expression seed)
Returned expression results in a pseudo-random number with optional seed.
public static Expression random(Number seed)
Returned expression results in a pseudo-random number with optional seed.
public static Expression random()
Returned expression results in a pseudo-random number with default seed.
public static Expression round(Expression expression)
Returned expression results in the value rounded to 0 digits to the right of the decimal point.
public static Expression round(Expression expression, int digits)
Returned expression results in the value rounded to the given number of integer digits to the right of the decimal point (left if digits is negative).
public static Expression round(Number expression)
Returned expression results in the value rounded to 0 digits to the right of the decimal point.
public static Expression round(Number expression, int digits)
Returned expression results in the value rounded to the given number of integer digits to the right of the decimal point (left if digits is negative).
public static Expression sign(Expression expression)
Returned expression results in the sign of the numerical expression, represented as -1, 0, or 1 for negative, zero, or positive numbers respectively.
public static Expression sign(Number value)
Returned expression results in the sign of the numerical expression, represented as -1, 0, or 1 for negative, zero, or positive numbers respectively.
public static Expression sin(Expression expression)
Returned expression results in the sine.
public static Expression sin(Number value)
Returned expression results in the sine.
public static Expression squareRoot(Expression expression)
Returned expression results in the square root.
public static Expression squareRoot(Number value)
Returned expression results in the square root.
public static Expression tan(Expression expression)
Returned expression results in the tangent.
public static Expression tan(Number value)
Returned expression results in the tangent.
public static Expression trunc(Expression expression, int digits)
Returned expression results in a truncation of the number to the given number of integer digits to the right of the decimal point (left if digits is negative).
public static Expression trunc(Number value, int digits)
Returned expression results in a truncation of the number to the given number of integer digits to the right of the decimal point (left if digits is negative).
public static Expression trunc(Expression expression)
Returned expression results in a truncation of the number to 0 digits to the right of the decimal point.
public static Expression trunc(Number value)
Returned expression results in a truncation of the number to 0 digits to the right of the decimal point.
Copyright © 2015 Couchbase, Inc.. All rights reserved.