Package com.itextpdf.commons.actions
Class AbstractStatisticsAggregator
java.lang.Object
com.itextpdf.commons.actions.AbstractStatisticsAggregator
- Direct Known Subclasses:
-
NumberOfPagesStatisticsAggregator
,SizeOfPdfStatisticsAggregator
Abstract class for statistics aggregation. Note that aggregator class must be thread safe.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
aggregate
(AbstractStatisticsEvent event) Aggregates data from the provided event.abstract void
merge
(AbstractStatisticsAggregator aggregator) Merges data from the provided aggregator into this aggregator.abstract Object
Retrieves aggregated data.
-
Constructor Details
-
AbstractStatisticsAggregator
public AbstractStatisticsAggregator()
-
-
Method Details
-
aggregate
Aggregates data from the provided event.- Parameters:
-
event
-AbstractStatisticsEvent
instance
-
retrieveAggregation
Retrieves aggregated data.- Returns:
-
aggregated data as
Object
-
merge
Merges data from the provided aggregator into this aggregator.- Parameters:
-
aggregator
- from which data will be taken.
-