public final class StatisticSuppliers extends Object
StatisticSupplier
's.Modifier and Type | Method and Description |
---|---|
static StatisticsMap |
aggregate(List<RuntimeStatistic<?>> details)
Performs aggregation across statistic details by the standard
aggregation defined for each
StatisticDefinition . |
static StatisticSupplier |
combine(StatisticDefinition<?> definition,
List<? extends StatisticSupplier> suppliers)
Creates a statistics supplier that combines the given set of suppliers.
|
public static StatisticSupplier combine(StatisticDefinition<?> definition, List<? extends StatisticSupplier> suppliers)
StatisticDefinition.aggregate(List)
the key difference is
that the returned value is live rather than a snapshot.definition
- the definitionsuppliers
- the list of suppliersClassCastException
- if any of the values are not of the typed expected by the definition.public static StatisticsMap aggregate(List<RuntimeStatistic<?>> details)
StatisticDefinition
. Statistics
are first grouped by definition and then aggregated.details
- the list of statistics to aggregateCopyright © 2024 Actian Corporation. All rights reserved.