Class ProfileNameStatisticsAggregator
java.lang.Object
com.itextpdf.commons.actions.AbstractStatisticsAggregator
com.itextpdf.pdfoptimizer.statistics.ProfileNameStatisticsAggregator
public class ProfileNameStatisticsAggregator extends com.itextpdf.commons.actions.AbstractStatisticsAggregator
Statistics aggregator which aggregates profile names of optimize events.
-
Constructor Summary
ConstructorDescriptionCreates aProfileNameStatisticsAggregator
to aggregate profile names of optimize events. -
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(com.itextpdf.commons.actions.AbstractStatisticsEvent event) Aggregates profile name from the provided event.void
merge
(com.itextpdf.commons.actions.AbstractStatisticsAggregator aggregator) Merges data about amounts of profile names from the provided aggregator into this aggregator.Retrieves Map where keys are profile names and values are the amounts of such PDF documents.
-
Constructor Details
-
ProfileNameStatisticsAggregator
public ProfileNameStatisticsAggregator()Creates aProfileNameStatisticsAggregator
to aggregate profile names of optimize events.
-
-
Method Details
-
aggregate
public void aggregate(com.itextpdf.commons.actions.AbstractStatisticsEvent event) Aggregates profile name from the provided event.- Specified by:
-
aggregate
in classcom.itextpdf.commons.actions.AbstractStatisticsAggregator
- Parameters:
-
event
-ProfileNameStatisticsEvent
instance
-
retrieveAggregation
Retrieves Map where keys are profile names and values are the amounts of such PDF documents.- Specified by:
-
retrieveAggregation
in classcom.itextpdf.commons.actions.AbstractStatisticsAggregator
- Returns:
-
aggregated
Map
-
merge
public void merge(com.itextpdf.commons.actions.AbstractStatisticsAggregator aggregator) Merges data about amounts of profile names from the provided aggregator into this aggregator.- Specified by:
-
merge
in classcom.itextpdf.commons.actions.AbstractStatisticsAggregator
- Parameters:
-
aggregator
-ProfileNameStatisticsAggregator
from which data will be taken
-