public static class StreamingHistogram.StreamingHistogramBuilder
extends java.lang.Object
| Constructor and Description | 
|---|
| StreamingHistogramBuilder(int maxBinSize,
                         int maxSpoolSize,
                         int roundSeconds)Creates a new histogram with max bin size of maxBinSize | 
| Modifier and Type | Method and Description | 
|---|---|
| StreamingHistogram | build() | 
| void | flushHistogram()Drain the temporary spool into the final bins | 
| void | merge(StreamingHistogram other)Merges given histogram with this histogram. | 
| void | update(java.lang.Number p)Adds new point p to this histogram. | 
| void | update(java.lang.Number p,
      long m)Adds new point p with value m to this histogram. | 
public StreamingHistogramBuilder(int maxBinSize,
                                 int maxSpoolSize,
                                 int roundSeconds)
maxBinSize - maximum number of bins this histogram can havepublic StreamingHistogram build()
public void update(java.lang.Number p)
p - public void update(java.lang.Number p,
                   long m)
p - m - public void flushHistogram()
public void merge(StreamingHistogram other)
other - histogram to mergeCopyright © 2018 The Apache Software Foundation