@Immutable public abstract static class AggregationData.CountData extends AggregationData
MeasureValue
s.AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
Modifier and Type | Method and Description |
---|---|
static AggregationData.CountData |
create(long count)
Creates a
CountData . |
abstract long |
getCount()
Returns the aggregated count.
|
<T> T |
match(Function<? super AggregationData.SumDataDouble,T> p0,
Function<? super AggregationData.SumDataLong,T> p1,
Function<? super AggregationData.CountData,T> p2,
Function<? super AggregationData.DistributionData,T> p3,
Function<? super AggregationData.LastValueDataDouble,T> p4,
Function<? super AggregationData.LastValueDataLong,T> p5,
Function<? super AggregationData,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public static AggregationData.CountData create(long count)
CountData
.count
- the aggregated count.CountData
.public abstract long getCount()
public final <T> T match(Function<? super AggregationData.SumDataDouble,T> p0, Function<? super AggregationData.SumDataLong,T> p1, Function<? super AggregationData.CountData,T> p2, Function<? super AggregationData.DistributionData,T> p3, Function<? super AggregationData.LastValueDataDouble,T> p4, Function<? super AggregationData.LastValueDataLong,T> p5, Function<? super AggregationData,T> defaultFunction)
AggregationData
match
in class AggregationData