Package com.qfs.agg
Interface IGenericAggregation
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
IAggregation,IMultiSourceAggregation,IUserDefinedAggregation
- All Known Implementing Classes:
AAggregation,AMultiSourceAggregation,AUserDefinedAggregation,AUserDefinedVectorAggregation,HistoryAggregation,SumProductFunction.SumProductAggregationVectorDouble,SumProductFunction.SumProductAggregationVectorFloat,SumProductFunction.SumProductAggregationVectorLong
An aggregation can bind an input data structure called the source with a destination data
structure that contains aggregates.
This binding is materialized by an instance of IAggregationBinding.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionbindAggregates(IArrayReader input, IArrayWriter output) Binds an input source of aggregates with an output destination that contains aggregates.bindSources(IArrayReader[] sources, IArrayWriter aggregates) Binds sources of data that contain raw data elements with a destination data structure that contains aggregates.createChunkFactory(boolean isTransient, IAllocationSettings allocationSettings) Creates the chunk factory that can create the chunks for this aggregation's results.intReturns thetypeof the result of the aggregation.Returns the associatedfunction.Returns the identifiers used to retrieve the data sources needed as sources of this aggregation.int[]Returns thetypesof the data sources of this aggregation.Returns the custom serializer for aggregations.
-
Method Details
-
getSourceIdentifiers
Returns the identifiers used to retrieve the data sources needed as sources of this aggregation. -
getSourceTypes
int[] getSourceTypes()Returns thetypesof the data sources of this aggregation. -
getAggregatedDataType
int getAggregatedDataType()Returns thetypeof the result of the aggregation.- Returns:
- The
typeof the result of the aggregation.
-
bindSources
Binds sources of data that contain raw data elements with a destination data structure that contains aggregates.- Parameters:
sources- The source array of raw data. Must be correlated (size and order) with this aggregation'ssource types.aggregates- The target aggregates array- Returns:
- The
binding
-
bindAggregates
Binds an input source of aggregates with an output destination that contains aggregates.- Parameters:
input- The source array of aggregated dataoutput- The target aggregates array- Returns:
- The
binding
-
createChunkFactory
Creates the chunk factory that can create the chunks for this aggregation's results.- Parameters:
isTransient- Says if the chunks created by the factory should be transient.allocationSettings- The allocation settings to use- Returns:
- A chunk factory that can create the chunks for storing the results of this aggregation.
-
getAggregationFunction
IGenericAggregationFunction getAggregationFunction()Returns the associatedfunction. -
writeReplace
Returns the custom serializer for aggregations. The abstract base classes for aggregations implement this method and provide serializers, for other implementations the user must provide their own serializers.- Throws:
ObjectStreamException
-