Package com.qfs.agg
Interface IAggregationFunction
- All Superinterfaces:
IGenericAggregationFunction,IPluginValue,Serializable
- All Known Subinterfaces:
IHistoryAggregationFunction
- All Known Implementing Classes:
AAggregationFunction,AGenericAggregationFunction,AGenericBaseAggregationFunction,AGenericVectorAggregationFunction,AVectorAggregationFunction,AvgFunction,ComparableMaxFunction,CopyFunction,CountFunction,DistinctCountFunction,DistinctCountSupportingRemovalsFunction,GrossSumFunction,LongFunction,MaxFunction,MaxHistoryFunction,MedianFunction,MinFunction,MinHistoryFunction,MultiplyFunction,PercentileFunction,ShortFunction,SingleValueFunction,SquareSumFunction,SumFunction,TimestampFunction
Aggregation function based on a single field.
- Author:
- ActiveViam
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPlugin value key forfunction.static final StringPlugin value key forComparableMaxFunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key for theMedianFunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forpopulation standard deviation function.static final StringPlugin value key forpopulation variance function.static final StringPlugin value key for thesample standard deviation function.static final StringPlugin value key forsample variance function.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.static final StringPlugin value key forfunction.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.static intretrieveType(String pluginKey, int sourceType) Retrieves the aggregated data-type of a function from 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
-
Field Details
-
AVG_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
MEDIAN_FUNCTION_PLUGIN_KEY
Plugin value key for theMedianFunction.- See Also:
-
MIN_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
MIN_HISTORY_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
MAX_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
MAX_HISTORY_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
SUM_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
COUNT_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
SHORT_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
TIMESTAMP_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
GROSS_SUM_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
COPY_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
MULTIPLY_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
LONG_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
SQUARE_SUM_FUNCTION_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
DISTINCT_COUNT_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
DISTINCT_COUNT_HISTORY_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
SINGLE_VALUE_PLUGIN_KEY
Plugin value key forfunction.- See Also:
-
POPULATION_VAR_PLUGIN_KEY
Plugin value key forpopulation variance function.- See Also:
-
POPULATION_STD_PLUGIN_KEY
Plugin value key forpopulation standard deviation function.- See Also:
-
SAMPLE_VAR_PLUGIN_KEY
Plugin value key forsample variance function.- See Also:
-
SAMPLE_STD_PLUGIN_KEY
Plugin value key for thesample standard deviation function.- See Also:
-
COMPARABLE_MAX_PLUGIN_KEY
Plugin value key forComparableMaxFunction.- See Also:
-
-
Method Details
-
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- 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 a function from its plugin key.- Parameters:
pluginKey- the aggregation function's plugin keysourceType- thedata typesof the elements to be aggregated- Returns:
- the
typeof the elements aggregated by the given aggregation function
-