Class AbstractSumAggregatorBucket<G>
java.lang.Object
de.uplanet.lucy.server.auxiliaries.chart.AbstractSumAggregatorBucket<G>
- All Implemented Interfaces:
IAggregatorBucket<G,de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
- Direct Known Subclasses:
SumByDateAggregatorBucket,SumByDoubleAggregatorBucket,SumByLongAggregatorBucket,SumByStringAggregatorBucket
public abstract class AbstractSumAggregatorBucket<G>
extends Object
implements IAggregatorBucket<G,de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA list of row values. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the arithmetic mean of the recorded values recorded, or zero if no values have been recorded.doublegetMax()Get the maximum recorded value.doublegetMin()Get the minimum recorded value.doublegetSum()Get the sum of all recorded values, or zero if no values have been recorded.de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPointGet a row value from this bucket.Get a list of the row values in this bucket.booleanCheck if there exists a value for the given row.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uplanet.lucy.server.auxiliaries.chart.IAggregatorBucket
getGroupingValue
-
Method Details
-
getMin
public double getMin()Get the minimum recorded value.- Returns:
- The minimum recorded value.
-
getMax
public double getMax()Get the maximum recorded value.- Returns:
- The maximum recorded value.
-
getSum
public double getSum()Get the sum of all recorded values, or zero if no values have been recorded.- Returns:
- The sum of all recorded values.
-
getAverage
public double getAverage()Get the arithmetic mean of the recorded values recorded, or zero if no values have been recorded.- Returns:
- The average.
-
getValues
Description copied from interface:IAggregatorBucketGet a list of the row values in this bucket.- Specified by:
getValuesin interfaceIAggregatorBucket<G,de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> - Returns:
- The list of rows.
-
hasValue
Description copied from interface:IAggregatorBucketCheck if there exists a value for the given row.- Specified by:
hasValuein interfaceIAggregatorBucket<G,de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> - Parameters:
p_strRow- The name of the row.- Returns:
trueif there exists a value for the given row, orfalseotherwise.
-
getValue
Description copied from interface:IAggregatorBucketGet a row value from this bucket.- Specified by:
getValuein interfaceIAggregatorBucket<G,de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> - Parameters:
p_strRow- The name of the row.- Returns:
- The row, or
nullif the row does not exist.
-