|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.table.DefaultTableLeafAggregator
public class DefaultTableLeafAggregator
DefaultTableLeafAggregator is the default TableLeafAggregator implementation. Leaf members are aggregated based on a single column, with the use of an aggregate function, both of which are specified in the class's constructor.
Field Summary | |
---|---|
protected int |
column
the single column that is used in the aggregation of the leafs |
protected Functions.Function |
function
the aggregate function |
Constructor Summary | |
---|---|
DefaultTableLeafAggregator(int column)
Constructs a DefaultTableLeafAggregator. |
|
DefaultTableLeafAggregator(int column,
Functions.Function function)
Constructs a DefaultTableLeafAggregator. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int column
protected Functions.Function function
Constructor Detail |
---|
public DefaultTableLeafAggregator(int column)
public DefaultTableLeafAggregator(int column, Functions.Function function)
Method Detail |
---|
public Object aggregate(List values, TableMeasure measure)
aggregate
in interface TableLeafAggregator
values
- the list of values to aggregatemeasure
- the measure to aggregate
public Object extractValue(List data, TableMeasure measure)
extractValue
in interface TableLeafAggregator
data
- a list of values corresponding to the rows of the underlying table modelmeasure
- the measure for which values are being extracted
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |