Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table.aggregator
Class Aggregators

java.lang.Object
  extended by com.citra.pivot.table.aggregator.Aggregators

public class Aggregators
extends Object

Utility class that returns static TableAggregator singletons commonly used.


Method Summary
static AvgAggregator getAvg()
          Returns the average aggregator.
static CountAggregator getCount()
          Returns the count aggregator.
static List getDataValues(List queries, TableConnection connection, TableMeasure measure)
          Utility method for retrieving the data values given a list of member parameters (queries).
static FirstValueAggregator getFirst()
          Returns the first value aggregator.
static HAvgAggregator getHAvg()
          Returns the hierarchical average aggregator.
static HFirstValueAggregator getHFirst()
          Returns the hierarchical first value aggregator.
static HLastValueAggregator getHLast()
          Returns the hierarchical last value aggregator.
static LastValueAggregator getLast()
          Returns the last value aggregator.
static MaxAggregator getMax()
          Returns the max aggregator.
static MinAggregator getMin()
          Returns the min aggregator.
static SumAggregator getSum()
          Returns the sum aggregator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvg

public static final AvgAggregator getAvg()
Returns the average aggregator.

Returns:
the average aggregator

getCount

public static final CountAggregator getCount()
Returns the count aggregator.

Returns:
the count aggregator

getDataValues

public static List getDataValues(List queries,
                                 TableConnection connection,
                                 TableMeasure measure)
                          throws DataSourceException
Utility method for retrieving the data values given a list of member parameters (queries).

Parameters:
queries - a list of TableTuples.
connection - the connection to the table datasource
measure - the measure being aggregated
Returns:
a list of values
Throws:
DataSourceException

getFirst

public static final FirstValueAggregator getFirst()
Returns the first value aggregator.

Returns:
the first value aggregator

getHAvg

public static final HAvgAggregator getHAvg()
Returns the hierarchical average aggregator.

Returns:
the hierarchical average aggregator

getHFirst

public static final HFirstValueAggregator getHFirst()
Returns the hierarchical first value aggregator.

Returns:
the hierarchical first value aggregator

getHLast

public static final HLastValueAggregator getHLast()
Returns the hierarchical last value aggregator.

Returns:
the hierarchical last value aggregator

getLast

public static final LastValueAggregator getLast()
Returns the last value aggregator.

Returns:
the last value aggregator

getMax

public static final MaxAggregator getMax()
Returns the max aggregator.

Returns:
the max aggregator

getMin

public static final MinAggregator getMin()
Returns the min aggregator.

Returns:
the min aggregator

getSum

public static final SumAggregator getSum()
Returns the sum aggregator.

Returns:
the sum aggregator

Copyright © 2011 Citra Technologies. All Rights Reserved.