Package com.qfs.agg
Interface IMultiSourceAggregationFunction
-
- All Superinterfaces:
IGenericAggregationFunction,IPluginValue,Serializable
- All Known Subinterfaces:
IUserDefinedAggregateFunction
- All Known Implementing Classes:
AMultiSourceAggregationFunction,AUserDefinedAggregateFunction,AUserDefinedAggregateFunctionWithRemoval,AVarianceAggregateFunction,PopulationStdAggregateFunction,PopulationVarianceAggregateFunction,SampleStdAggregateFunction,SampleVarianceAggregateFunction,SerializableUserDefinedAggregateFunction,SerializableUserDefinedAggregateFunctionWithRemoval,SerializableUserDefinedVectorAggregateFunction,SerializableUserDefinedVectorAggregateFunctionWithRemoval,SumProductFunction
public interface IMultiSourceAggregationFunction extends IGenericAggregationFunction
Aggregate functions based on multiple data sources.- Author:
- ActiveViam
-
-
Field Summary
-
Fields inherited from interface com.qfs.agg.IGenericAggregationFunction
SUM_PRODUCT_FUNCTION_PLUGIN_KEY
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description IMultiSourceAggregationcreateAggregation(List<String> sourceIdentifiers, int[] sourceTypes)Creates anIGenericAggregationthat can bind a list of data structures to a single destination data structure.static intretrieveType(String pluginKey, int[] sourceTypes)Retrieves the aggregated data-type of anIMultiSourceAggregationFunctionfrom its plugin key.-
Methods inherited from interface com.qfs.agg.IGenericAggregationFunction
getAggregatedType, withRemovalSupport
-
Methods inherited from interface com.quartetfs.fwk.types.IPluginValue
description, getPlugin, key, setPlugin
-
-
-
-
Method Detail
-
retrieveType
static int retrieveType(String pluginKey, int[] sourceTypes)
Retrieves the aggregated data-type of anIMultiSourceAggregationFunctionfrom its plugin key.- Parameters:
pluginKey- the aggregation function's plugin keysourceTypes- thedata typesof the elements to be aggregated- Returns:
- the
typeof the elements aggregated by the given aggregation function
-
createAggregation
IMultiSourceAggregation createAggregation(List<String> sourceIdentifiers, int[] sourceTypes)
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- 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
-
-