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 Classes Modifier and Type Class Description static classAbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointListA list of row values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAverage()Get 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.DoubleAggregatorDataPointgetValue(String p_strRow)Get a row value from this bucket.AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointListgetValues()Get a list of the row values in this bucket.booleanhasValue(String p_strRow)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 Detail
-
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
public AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointList 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
public boolean hasValue(String p_strRow)
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
public de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint getValue(String p_strRow)
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.
-
-