@Immutable public abstract class Aggregation extends Object
Aggregation
is the process of combining a certain set of MeasureValue
s 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 MeasureValue
s.
Modifier and Type | Class and Description |
---|---|
static class |
Aggregation.Count
Calculate count on aggregated
MeasureValue s. |
static class |
Aggregation.Distribution
Calculate distribution stats on aggregated
MeasureValue s. |
static class |
Aggregation.LastValue
Calculate the last value of aggregated
MeasureValue s. |
static class |
Aggregation.Mean
Deprecated.
since 0.13, use
Aggregation.Distribution instead. |
static class |
Aggregation.Sum
Calculate sum on aggregated
MeasureValue s. |
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.Distribution,T> p2,
Function<? super Aggregation.LastValue,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.Distribution,T> p2, Function<? super Aggregation.LastValue,T> p3, Function<? super Aggregation,T> defaultFunction)