Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table
Interface TableLeafAggregator

All Known Implementing Classes:
DefaultTableLeafAggregator

public interface TableLeafAggregator

TableLeafAggregator defines methods for extracting and aggregating values from the leaf members of a table datasource.


Method Summary
 Object aggregate(List values, TableMeasure measure)
          Aggregates a list of values for a given measure.
 Object extractValue(List data, TableMeasure measure)
          Extracts the values that will be aggregated for a given measure.
 

Method Detail

aggregate

Object aggregate(List values,
                 TableMeasure measure)
Aggregates a list of values for a given measure.

Parameters:
values - the list of values to aggregate
measure - the measure to aggregate
Returns:
the aggregated result

extractValue

Object extractValue(List data,
                    TableMeasure measure)
Extracts the values that will be aggregated for a given measure.

Parameters:
data - a list of values corresponding to the rows of the underlying table model
measure - the measure for which values are being extracted
Returns:
the value that will be aggregated

Copyright © 2011 Citra Technologies. All Rights Reserved.