Package com.day.cq.reporting
Interface Aggregate
-
public interface AggregateThis interface must be implemented by each aggregate's implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaggregateValue(CellValue valueToAggregate)Aggregates the specified value.java.lang.StringgetAggregatedType()Returns the data type of aggregated values.CellValuegetAggregatedValue(Report report)Returns the aggregated value.CellValuegetColumnTotal(Report report)Returns the totalled aggregate value for the entire column, if available.voidreset()Resets the aggregate to its initial state.booleanuseDistinctValues()Determines if the aggregate requires distinct values.
-
-
-
Method Detail
-
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
void aggregateValue(CellValue valueToAggregate)
Aggregates the specified value.- Parameters:
valueToAggregate- The value to aggregate
-
getAggregatedValue
CellValue getAggregatedValue(Report report)
Returns the aggregated value.- Parameters:
report- The report- Returns:
- The aggregated value
-
getColumnTotal
CellValue getColumnTotal(Report report)
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
java.lang.String getAggregatedType()
Returns the data type of aggregated values.- Returns:
- The data type
-
-