Class NativeFunctions

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

public class NativeFunctions extends Object
A container of native functions. It stores both pre-built function overloads (NativeFunction) and dynamic generators of functions (FunctionFactory).
  • Field Details

  • Constructor Details

    • NativeFunctions

      public NativeFunctions()
  • Method Details

    • add

      public void add(NativeFunction function)
    • addAll

      public void addAll(NativeFunction... functions)
    • add

      public void add(FunctionFactory factory)
    • getFunctions

      public Collection<NativeFunction> getFunctions(FunctionName name)
      Returns all the registered pre-built functions overloads with the specified name.
      Parameters:
      name - a function name
      Returns:
      the pre-built functions with the specified name
    • getFunctions

      public Collection<NativeFunction> getFunctions()
      Returns:
      all the registered pre-built functions.
    • getFactories

      public Collection<FunctionFactory> getFactories(FunctionName name)
      Returns all the registered functions factories with the specified name.
      Parameters:
      name - a function name
      Returns:
      the function factories with the specified name
    • getFactories

      public Collection<FunctionFactory> getFactories()
      Returns:
      all the registered functions factories.
    • hasFactory

      public boolean hasFactory(FunctionName name)
      Returns whether there is a function factory with the specified name.
      Parameters:
      name - a function name
      Returns:
      true if there is a factory with the specified name, false otherwise