Class OperationFcts
java.lang.Object
org.apache.cassandra.cql3.functions.OperationFcts
Operation functions (Mathematics).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the function used to perform negations -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFunctionsTo(NativeFunctions functions) static FunctionNamegetFunctionNameFromOperator(char operator) Returns the name of the function associated to the specified operator.static chargetOperator(FunctionName function) Returns the operator associated to the specified function.static booleanisNegation(FunctionName function) Checks if the function with the specified name is a negation.static booleanisOperation(FunctionName function) Checks if the function with the specified name is an operation.
-
Field Details
-
NEGATION_FUNCTION_NAME
The name of the function used to perform negations- See Also:
-
-
Method Details
-
addFunctionsTo
-
isOperation
Checks if the function with the specified name is an operation.- Parameters:
function- the function name- Returns:
trueif the function is an operation,falseotherwise.
-
isNegation
Checks if the function with the specified name is a negation.- Parameters:
function- the function name- Returns:
trueif the function is an negation,falseotherwise.
-
getOperator
Returns the operator associated to the specified function.- Returns:
- the operator associated to the specified function.
-
getFunctionNameFromOperator
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
-