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>
  • 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 interface IAggregatorBucket<G,de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
      Returns:
      The list of rows.
    • hasValue

      public boolean hasValue(String p_strRow)
      Description copied from interface: IAggregatorBucket
      Check if there exists a value for the given row.
      Specified by:
      hasValue in interface IAggregatorBucket<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, or false otherwise.
    • getValue

      public de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint getValue(String p_strRow)
      Description copied from interface: IAggregatorBucket
      Get a row value from this bucket.
      Specified by:
      getValue in interface IAggregatorBucket<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.