@Immutable public abstract class Aggregation extends Object
Aggregation is the process of combining a certain set of MeasureValues for a
given Measure into an AggregationData.
Aggregation currently supports 4 types of basic aggregation:
When creating a View, one Aggregation needs to be specified as how to
aggregate MeasureValues.
| Modifier and Type | Class and Description |
|---|---|
static class |
Aggregation.Count
Calculate count on aggregated
MeasureValues. |
static class |
Aggregation.Distribution
Calculate distribution stats on aggregated
MeasureValues. |
static class |
Aggregation.Mean
Calculate mean on aggregated
MeasureValues. |
static class |
Aggregation.Sum
Calculate sum on aggregated
MeasureValues. |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> T |
match(Function<? super Aggregation.Sum,T> p0,
Function<? super Aggregation.Count,T> p1,
Function<? super Aggregation.Mean,T> p2,
Function<? super Aggregation.Distribution,T> p3,
Function<? super Aggregation,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public abstract <T> T match(Function<? super Aggregation.Sum,T> p0, Function<? super Aggregation.Count,T> p1, Function<? super Aggregation.Mean,T> p2, Function<? super Aggregation.Distribution,T> p3, Function<? super Aggregation,T> defaultFunction)