Class OperationFcts

java.lang.Object
org.apache.cassandra.cql3.functions.OperationFcts

public final class OperationFcts extends Object
Operation functions (Mathematics).
  • Field Details

    • NEGATION_FUNCTION_NAME

      public static final String NEGATION_FUNCTION_NAME
      The name of the function used to perform negations
      See Also:
  • Method Details

    • 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