Package com.day.cq.reporting
Interface Aggregate
public interface Aggregate
This interface must be implemented by each aggregate's implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaggregateValue(CellValue valueToAggregate) Aggregates the specified value.Returns the data type of aggregated values.getAggregatedValue(Report report) Returns the aggregated value.getColumnTotal(Report report) Returns the totalled aggregate value for the entire column, if available.voidreset()Resets the aggregate to its initial state.booleanDetermines if the aggregate requires distinct values.
-
Method Details
-
reset
void reset()Resets the aggregate to its initial state. -
useDistinctValues
boolean useDistinctValues()Determines if the aggregate requires distinct values.- Returns:
trueif the aggregate uses distinct values for calculation
-
aggregateValue
Aggregates the specified value.- Parameters:
valueToAggregate- The value to aggregate
-
getAggregatedValue
Returns the aggregated value.- Parameters:
report- The report- Returns:
- The aggregated value
-
getColumnTotal
Returns the totalled aggregate value for the entire column, if available.- Parameters:
report- The report- Returns:
- The totalled aggregate value;
nullif no totalled aggregate value is available
-
getAggregatedType
String getAggregatedType()Returns the data type of aggregated values.- Returns:
- The data type
-