java.lang.Object
com.pervasive.datarush.functions.FunctionRegistry
Stores a list of functions registered by the FunctionTypeResoultionProvider, and
provides a method for calling those functions.
-
Method Summary
Modifier and TypeMethodDescriptiongetFunction(String name, ScalarValuedFunction[] arguments) Invoke a ScalarValuedFunction by name, using the supplied arguments.getFunctionDescription(String name, int argCount) Create a FunctionDescription for a given function.Return a list of descriptions of all available functions.Returns a list of descriptions of all available functions, organized by category.static FunctionRegistryGet an instance of the FunctionRegistry.
-
Method Details
-
getInstance
Get an instance of the FunctionRegistry.- Returns:
- An instance of the FunctionRegistry
-
getFunction
Invoke a ScalarValuedFunction by name, using the supplied arguments.- Parameters:
name- The registered name of the function.arguments- The arguments to pass to the function.- Returns:
- The ScalarValuedFunction.
-
getFunctionDescriptions
Return a list of descriptions of all available functions.- Returns:
-
getFunctionDescriptionsByCategory
Returns a list of descriptions of all available functions, organized by category.- Returns:
-
getFunctionDescription
Create a FunctionDescription for a given function.- Parameters:
name- The name of the functionargCount- The number of arguments the function takes- Returns:
- The FunctionDescription of the function
-