Class SumAggregator
java.lang.Object
org.apache.derby.impl.sql.execute.SystemAggregator
org.apache.derby.impl.sql.execute.OrderableAggregator
org.apache.derby.impl.sql.execute.SumAggregator
- All Implemented Interfaces:
Externalizable,Serializable,Formatable,TypedFormat,ExecAggregator
- Direct Known Subclasses:
AvgAggregator
Aggregator for SUM(). Defers most of its work
to OrderableAggregator.
- See Also:
-
Field Summary
Fields inherited from class org.apache.derby.impl.sql.execute.OrderableAggregator
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccumulate(DataValueDescriptor addend) AccumulateintGet the formatID which corresponds to this class.Return a new initialized copy of this aggregator, any state set by the setup() method of the original Aggregator must be copied into the new aggregator.toString()Methods inherited from class org.apache.derby.impl.sql.execute.OrderableAggregator
getResult, merge, readExternal, setup, writeExternalMethods inherited from class org.apache.derby.impl.sql.execute.SystemAggregator
accumulate, didEliminateNulls
-
Constructor Details
-
SumAggregator
public SumAggregator()
-
-
Method Details
-
accumulate
Accumulate- Specified by:
accumulatein classSystemAggregator- Parameters:
addend- value to be added in- Throws:
StandardException- on error- See Also:
-
newAggregator
Description copied from interface:ExecAggregatorReturn a new initialized copy of this aggregator, any state set by the setup() method of the original Aggregator must be copied into the new aggregator.- Returns:
- ExecAggregator the new aggregator
-
getTypeFormatId
public int getTypeFormatId()Get the formatID which corresponds to this class.- Returns:
- the formatID of this class
-
toString
- Overrides:
toStringin classOrderableAggregator
-