Class OperationFcts
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.OperationFcts
-
public final class OperationFcts extends java.lang.Object
Operation functions (Mathematics).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NEGATION_FUNCTION_NAME
The name of the function used to perform negations
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addFunctionsTo(NativeFunctions functions)
static FunctionName
getFunctionNameFromOperator(char operator)
Returns the name of the function associated to the specified operator.static char
getOperator(FunctionName function)
Returns the operator associated to the specified function.static boolean
isNegation(FunctionName function)
Checks if the function with the specified name is a negation.static boolean
isOperation(FunctionName function)
Checks if the function with the specified name is an operation.
-
-
-
Field Detail
-
NEGATION_FUNCTION_NAME
public static final java.lang.String NEGATION_FUNCTION_NAME
The name of the function used to perform negations- See Also:
- Constant Field Values
-
-
Method Detail
-
addFunctionsTo
public static void addFunctionsTo(NativeFunctions functions)
-
isOperation
public static boolean isOperation(FunctionName function)
Checks if the function with the specified name is an operation.- Parameters:
function
- the function name- Returns:
true
if the function is an operation,false
otherwise.
-
isNegation
public static boolean isNegation(FunctionName function)
Checks if the function with the specified name is a negation.- Parameters:
function
- the function name- Returns:
true
if the function is an negation,false
otherwise.
-
getOperator
public static char getOperator(FunctionName function)
Returns the operator associated to the specified function.- Returns:
- the operator associated to the specified function.
-
getFunctionNameFromOperator
public static FunctionName getFunctionNameFromOperator(char operator)
Returns the name of the function associated to the specified operator.- Parameters:
operator
- the operator- Returns:
- the name of the function associated to the specified operator
-
-