public class SumAggregator extends java.lang.Object implements AggregationFunction
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
SumAggregator() |
Modifier and Type | Method and Description |
---|---|
double |
aggregate(java.util.List<java.lang.Double> elements)
Aggregates the elements to a single double.
|
java.lang.String |
toString() |
private static final long serialVersionUID
public double aggregate(java.util.List<java.lang.Double> elements)
AggregationFunction
aggregate
in interface AggregationFunction
elements
- a list of doublepublic java.lang.String toString()
toString
in interface AggregationFunction
toString
in class java.lang.Object