public class WavefrontHistogramImpl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WavefrontHistogramImpl.Distribution
Representation of a histogram distribution, containing a timestamp and a list of centroids.
|
static class |
WavefrontHistogramImpl.Snapshot
Wrapper for TDigest distribution
|
| Constructor and Description |
|---|
WavefrontHistogramImpl() |
WavefrontHistogramImpl(Supplier<Long> clockMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkUpdate(List<Double> means,
List<Integer> counts)
Bulk-update this histogram with a set of centroids.
|
List<WavefrontHistogramImpl.Distribution> |
flushDistributions()
Aggregates all the minute bins prior to the current minute (because threads might be
updating the current minute bin while the method is invoked) and returns a list of the
distributions held within each bin.
|
long |
getCount() |
double |
getMax() |
double |
getMean() |
double |
getMin() |
WavefrontHistogramImpl.Snapshot |
getSnapshot() |
double |
getSum() |
double |
stdDev() |
void |
update(double value) |
void |
update(int value) |
void |
update(long value) |
public void update(int value)
public void update(long value)
public void update(double value)
public void bulkUpdate(List<Double> means, List<Integer> counts)
means - the centroid valuescounts - the centroid weights/sample countspublic long getCount()
public double getMax()
public double getMin()
public double getMean()
public double getSum()
public double stdDev()
public List<WavefrontHistogramImpl.Distribution> flushDistributions()
WavefrontHistogramImpl.Distribution holding a timestamp
as well as a list of centroids. Each centroid is a tuple containing the centroid value and
count.public WavefrontHistogramImpl.Snapshot getSnapshot()
WavefrontHistogramImpl.Snapshot of the histogram distribution.Copyright © 2022. All rights reserved.