Package com.activeviam.agg
Interface IUserDefinedAggregateFunction
- All Superinterfaces:
IGenericAggregationFunction,IMultiSourceAggregationFunction,IPluginValue,Serializable
- All Known Implementing Classes:
AUserDefinedAggregateFunction,AUserDefinedAggregateFunctionWithRemoval,AVarianceAggregateFunction,PopulationStdAggregateFunction,PopulationVarianceAggregateFunction,SampleStdAggregateFunction,SampleVarianceAggregateFunction,SerializableUserDefinedAggregateFunction,SerializableUserDefinedAggregateFunctionWithRemoval,SerializableUserDefinedVectorAggregateFunction,SerializableUserDefinedVectorAggregateFunctionWithRemoval
Interface for aggregate functions whose aggregation handle multiple fields as source.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.agg.IGenericAggregationFunction
SUM_PRODUCT_FUNCTION_PLUGIN_KEY -
Method Summary
Modifier and TypeMethodDescriptioncreateAggregation(List<String> sourceIdentifiers, int[] sourceTypes) Creates anIGenericAggregationthat can bind a list of data structures to a single destination data structure.intReturns the output type of the aggregates of this user-defined aggregate function.getFunction(String pluginKey) Returns theIUserDefinedAggregateFunctionassociated with this plugin using the input key.static intretrieveType(String pluginKey) Retrieves the aggregated data-type of anIUserDefinedAggregateFunctionfrom its plugin key.Methods inherited from interface com.qfs.agg.IGenericAggregationFunction
getAggregatedType, withRemovalSupportMethods inherited from interface com.quartetfs.fwk.types.IPluginValue
description, getPlugin, key, setPlugin
-
Method Details
-
getAggregatedDataType
int getAggregatedDataType()Returns the output type of the aggregates of this user-defined aggregate function.- Returns:
- the output type
-
createAggregation
Description copied from interface:IGenericAggregationFunctionCreates anIGenericAggregationthat can bind a list of data structures to a single destination data structure.The created aggregation is specialized for the given source identifiers, which can then be used to retrieve the correct source data structures to bind with a destination.
The two given collections must have the same size.
- Specified by:
createAggregationin interfaceIGenericAggregationFunction- Specified by:
createAggregationin interfaceIMultiSourceAggregationFunction- Parameters:
sourceIdentifiers- A way to identify the source data structuressourceTypes- Thedata typesof the elements to be aggregated- Returns:
- the newly created aggregation, tailored for the given identifiers and types
-
retrieveType
Retrieves the aggregated data-type of anIUserDefinedAggregateFunctionfrom its plugin key. -
getFunction
Returns theIUserDefinedAggregateFunctionassociated with this plugin using the input key.This method uses the current registry obtained through
Registry.getRegistry().- Parameters:
pluginKey- The target function's plugin key- Returns:
- The target function
-