public class FunctionRegistry extends Object
Modifier and Type | Method and Description |
---|---|
ScalarValuedFunction |
getFunction(String name,
ScalarValuedFunction[] arguments)
Invoke a ScalarValuedFunction by name, using the supplied arguments.
|
FunctionDescription |
getFunctionDescription(String name,
int argCount)
Create a FunctionDescription for a given function.
|
Collection<FunctionDescription> |
getFunctionDescriptions()
Return a list of descriptions of all available functions.
|
Map<String,Collection<FunctionDescription>> |
getFunctionDescriptionsByCategory()
Returns a list of descriptions of all available functions, organized by category.
|
static FunctionRegistry |
getInstance()
Get an instance of the FunctionRegistry.
|
public static FunctionRegistry getInstance()
public ScalarValuedFunction getFunction(String name, ScalarValuedFunction[] arguments)
name
- The registered name of the function.arguments
- The arguments to pass to the function.public Collection<FunctionDescription> getFunctionDescriptions()
public Map<String,Collection<FunctionDescription>> getFunctionDescriptionsByCategory()
public FunctionDescription getFunctionDescription(String name, int argCount)
name
- The name of the functionargCount
- The number of arguments the function takesCopyright © 2019 Actian Corporation. All rights reserved.