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
Modifier and TypeClassDescriptionstatic final class
A list of row values. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the arithmetic mean of the recorded values recorded, or zero if no values have been recorded.double
getMax()
Get the maximum recorded value.double
getMin()
Get the minimum recorded value.double
getSum()
Get the sum of all recorded values, or zero if no values have been recorded.de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint
Get a row value from this bucket.Get a list of the row values in this bucket.boolean
Check if there exists a value for the given row.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:IAggregatorBucket
Get a list of the row values in this bucket.- Specified by:
getValues
in interfaceIAggregatorBucket<G,
de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> - Returns:
- The list of rows.
-
hasValue
Description copied from interface:IAggregatorBucket
Check if there exists a value for the given row.- Specified by:
hasValue
in interfaceIAggregatorBucket<G,
de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> - Parameters:
p_strRow
- The name of the row.- Returns:
true
if there exists a value for the given row, orfalse
otherwise.
-
getValue
Description copied from interface:IAggregatorBucket
Get a row value from this bucket.- Specified by:
getValue
in interfaceIAggregatorBucket<G,
de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> - Parameters:
p_strRow
- The name of the row.- Returns:
- The row, or
null
if the row does not exist.
-