Package com.qfs.agg
Interface IAggregation
-
- All Superinterfaces:
IGenericAggregation,Serializable
- All Known Implementing Classes:
AAggregation,HistoryAggregation
public interface IAggregation extends IGenericAggregation
An aggregation that is binding a single-field source with its destination aggregates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IAggregationBindingbindSource(IArrayReader source, IArrayWriter aggregates)Binds a source of data that contains raw data elements with a destination data structure that contains aggregates.default IAggregationBindingbindSources(IArrayReader[] sources, IArrayWriter aggregates)Binds sources of data that contain raw data elements with a destination data structure that contains aggregates.IAggregationFunctiongetAggregationFunction()Returns the associatedfunction.StringgetFieldName()Returns the name of the input field on which this aggregation is being performed.intgetInputDataType()Returns thetypeof the source data.default List<String>getSourceIdentifiers()Returns the identifiers used to retrieve the data sources needed as sources of this aggregation.default int[]getSourceTypes()Returns thetypesof the data sources of this aggregation.-
Methods inherited from interface com.qfs.agg.IGenericAggregation
bindAggregates, createChunkFactory, getAggregatedDataType, writeReplace
-
-
-
-
Method Detail
-
getFieldName
String getFieldName()
Returns the name of the input field on which this aggregation is being performed.
-
getSourceIdentifiers
default List<String> getSourceIdentifiers()
Description copied from interface:IGenericAggregationReturns the identifiers used to retrieve the data sources needed as sources of this aggregation.- Specified by:
getSourceIdentifiersin interfaceIGenericAggregation
-
getInputDataType
int getInputDataType()
Returns thetypeof the source data.- Returns:
- The
typeof the source data
-
getSourceTypes
default int[] getSourceTypes()
Description copied from interface:IGenericAggregationReturns thetypesof the data sources of this aggregation.- Specified by:
getSourceTypesin interfaceIGenericAggregation
-
bindSource
IAggregationBinding bindSource(IArrayReader source, IArrayWriter aggregates)
Binds a source of data that contains raw data elements with a destination data structure that contains aggregates.- Parameters:
source- The source array of raw dataaggregates- The target aggregates array- Returns:
- The
binding
-
bindSources
default IAggregationBinding bindSources(IArrayReader[] sources, IArrayWriter aggregates)
Description copied from interface:IGenericAggregationBinds sources of data that contain raw data elements with a destination data structure that contains aggregates.- Specified by:
bindSourcesin interfaceIGenericAggregation- 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
-
getAggregationFunction
IAggregationFunction getAggregationFunction()
Description copied from interface:IGenericAggregationReturns the associatedfunction.- Specified by:
getAggregationFunctionin interfaceIGenericAggregation
-
-