@InterfaceAudience.Private public class HistogramImpl extends Object implements Histogram
Modifier and Type | Field and Description |
---|---|
private CounterImpl |
counter |
protected FastLongHistogram |
histogram |
Modifier | Constructor and Description |
---|---|
|
HistogramImpl() |
protected |
HistogramImpl(CounterImpl counter,
FastLongHistogram histogram) |
|
HistogramImpl(int numBins,
long min,
long maxExpected) |
|
HistogramImpl(long maxExpected) |
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Return the total number of values added to the histogram.
|
long |
getMax() |
long |
getMin() |
long[] |
getQuantiles(double[] quantiles) |
Snapshot |
snapshot()
Snapshot the current values in the Histogram
|
void |
update(int value)
Adds a new value to the distribution.
|
void |
update(long value)
Adds a new value to the distribution.
|
protected final FastLongHistogram histogram
private final CounterImpl counter
public HistogramImpl()
public HistogramImpl(long maxExpected)
public HistogramImpl(int numBins, long min, long maxExpected)
protected HistogramImpl(CounterImpl counter, FastLongHistogram histogram)
public void update(int value)
Histogram
public void update(long value)
Histogram
public long getCount()
Histogram
public long getMax()
public long getMin()
public Snapshot snapshot()
Histogram
public long[] getQuantiles(double[] quantiles)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.