Expressions
Hazelcast SQL supports logical predicates, IS
predicates, comparison operators, mathematical functions and operators,
string functions, and special functions.
a |
b |
a AND b |
a OR b |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a |
NOT a |
---|---|
|
|
|
|
|
|
Predicate | Description | Example |
---|---|---|
|
Evaluates to |
|
|
Evaluates to |
|
|
Evaluates to |
|
|
Evaluates to |
|
|
Evaluates to |
|
|
Evaluates to |
|
Operator | Description | Example |
---|---|---|
|
Equal to |
|
|
Not equal to |
|
|
Less than |
|
|
Greater than |
|
|
Less than or equal to |
|
|
Greater than or equal to |
|
Operator | Description | Example |
---|---|---|
|
Addition |
|
|
Subtraction |
|
|
Multiplication |
|
|
Division |
|
Function | Description | Example | Result |
---|---|---|---|
|
Absolute value of the argument |
|
|
|
The nearest integer greater than or equal to argument |
|
|
|
Convert radians to degrees |
|
|
|
Exponential |
|
|
|
The nearest integer less than or equal to argument |
|
|
|
Natural logarithm |
|
|
|
Base 10 logarithm |
|
|
|
Convert degrees to radians |
|
|
|
Random value in the range [0.0; 1.0) |
|
|
|
Random value in the range [0.0; 1.0) using the given seed |
|
|
|
Round to an integer |
|
|
|
Round to |
|
|
|
Return -1, 0 or 1 for negative, zero or positive argument, respectively |
|
|
|
Truncate to an integer |
|
|
|
Truncate to |
|
|
Function | Description |
---|---|
|
Inverse cosine |
|
Inverse sine |
|
Inverse tangent |
|
Cosine |
|
Cotangent |
|
Sine |
|
Tangent |
Function | Description | Example | Result |
---|---|---|---|
|
Concatenate two strings |
|
|
|
ASCII code of the first character of the argument |
|
|
|
Equivalent to |
||
|
Convert the first letter of each word to upper case, and the rest to lower case |
|
|
|
Length of the string |
|
|
|
Return |
|
|
|
Return |
|
|
|
Convert the string to lower case |
|
|
|
Equivalent to |
||
|
Equivalent to |
||
|
Extract substring starting with the given position |
|
|
|
Extract substring starting with the given position for the given length |
|
|
|
Remove |
|
|
|
Equivalent to |
|
|
|
Equivalent to |
|
|
|
Convert the string to upper case |
|
|
Function | Description | Example |
---|---|---|
|
Convert the value to the given type |
|