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