Class AggregateManager

java.lang.Object
com.day.cq.reporting.AggregateManager

public class AggregateManager extends Object
This class is used for managing aggregates; mainly for mapping aggregate types to corresponding Aggregates.
  • Constructor Details

    • AggregateManager

      public AggregateManager(Context context)
      Creates a new AggregateManager.
      Parameters:
      context - The context for creating the report
  • Method Details

    • createForColumn

      public void createForColumn(Column col)
      Creates the aggregate for the specified column.
      Parameters:
      col - The aggregate for the specified column
    • getForColumn

      public Aggregate getForColumn(Column col)
      Gets the aggregate for the specified column.
      Parameters:
      col - The column
      Returns:
      The aggregate; null if no aggregate is available for the specified column
    • cleanup

      public void cleanup()
      Cleans up the aggregates that were used.