Class OperationFcts
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.OperationFcts
-
public final class OperationFcts extends java.lang.ObjectOperation functions (Mathematics).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNEGATION_FUNCTION_NAMEThe name of the function used to perform negations
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<Function>all()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 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
-
all
public static java.util.Collection<Function> all()
-
isOperation
public static boolean isOperation(FunctionName function)
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
public static boolean isNegation(FunctionName function)
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
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
-
-