private static class FastLongHistogram.Bins extends Object
Modifier and Type | Field and Description |
---|---|
private long |
bins10XMax |
private long |
binsMax |
private long |
binsMin |
private LongAdder |
count |
private LongAdder[] |
counts |
private boolean |
hasData |
private AtomicLong |
max |
private AtomicLong |
min |
private LongAdder |
total |
Constructor and Description |
---|
Bins(FastLongHistogram.Bins last,
int numBins,
double minQ,
double maxQ)
The constructor for creating a Bins with last Bins.
|
Bins(int numBins)
The constructor for creating a Bins without any prior data.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long value,
long count)
Adds a value to the histogram.
|
private LongAdder[] |
createCounters(int numBins) |
private int |
getIndex(long value) |
long |
getMean() |
long |
getMin() |
(package private) long |
getNumAtOrBelow(long val) |
long[] |
getQuantiles(double[] quantiles)
Computes the quantiles give the ratios.
|
private final long binsMin
private final long binsMax
private final long bins10XMax
private final AtomicLong min
private final AtomicLong max
private volatile boolean hasData
public Bins(int numBins)
public Bins(FastLongHistogram.Bins last, int numBins, double minQ, double maxQ)
private LongAdder[] createCounters(int numBins)
private int getIndex(long value)
public void add(long value, long count)
public long[] getQuantiles(double[] quantiles)
long getNumAtOrBelow(long val)
public long getMin()
public long getMean()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.