Class AAggregation<FunT extends IAggregationFunction>
java.lang.Object
com.activeviam.tech.aggregation.api.impl.AAggregation<FunT>
- Type Parameters:
FunT- The type of the aggregation function.
- All Implemented Interfaces:
IAggregation,IGenericAggregation,Serializable
- Direct Known Subclasses:
HistoryAggregation
public abstract class AAggregation<FunT extends IAggregationFunction>
extends Object
implements IAggregation
Base class for implementing
IAggregation classes.- Author:
- ActiveViam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.activeviam.tech.aggregation.api.IGenericAggregation
IGenericAggregation.AggregationChunksSetting -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns thetypeof the result of the aggregation.Returns the associatedfunction.Returns the name of the input field on which this aggregation is being performed.intReturns thetypeof the source data.inthashCode()toString()Returns the custom serializer for aggregations.Methods inherited from interface com.activeviam.tech.aggregation.api.IAggregation
bindSource, bindSources, getSourceIdentifiers, getSourceTypesMethods inherited from interface com.activeviam.tech.aggregation.api.IGenericAggregation
bindAggregates, getChunksSetting
-
Method Details
-
getFieldName
Description copied from interface:IAggregationReturns the name of the input field on which this aggregation is being performed.- Specified by:
getFieldNamein interfaceIAggregation
-
getAggregationFunction
Description copied from interface:IGenericAggregationReturns the associatedfunction.- Specified by:
getAggregationFunctionin interfaceIAggregation- Specified by:
getAggregationFunctionin interfaceIGenericAggregation
-
getInputDataType
public int getInputDataType()Description copied from interface:IAggregationReturns thetypeof the source data.- Specified by:
getInputDataTypein interfaceIAggregation- Returns:
- The
typeof the source data
-
getAggregatedDataType
public int getAggregatedDataType()Description copied from interface:IGenericAggregationReturns thetypeof the result of the aggregation.If this aggregation manipulates
vectors, the aggregated type should be such thatTypes.isArray(int)returns true. Vectors require special memory management provided out of the box as soon as the aggregated type is an array type.- Specified by:
getAggregatedDataTypein interfaceIGenericAggregation
-
writeReplace
Description copied from interface:IGenericAggregationReturns 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.- Specified by:
writeReplacein interfaceIGenericAggregation- Throws:
ObjectStreamException
-
toString
-
hashCode
public int hashCode() -
equals
-