QuantileEstimator@Private public class SampleQuantiles extends java.lang.Object implements QuantileEstimator
| Constructor | Description |
|---|---|
SampleQuantiles(Quantile[] quantiles) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Resets the estimator, clearing out all previously inserted items
|
long |
getCount() |
Returns the number of items that the estimator has processed
|
int |
getSampleCount() |
Returns the number of samples kept by the estimator
|
void |
insert(long v) |
Add a new value from the stream.
|
java.util.Map<Quantile,java.lang.Long> |
snapshot() |
Get a snapshot of the current values of all the tracked quantiles.
|
java.lang.String |
toString() |
public SampleQuantiles(Quantile[] quantiles)
public void insert(long v)
insert in interface QuantileEstimatorv - v.public java.util.Map<Quantile,java.lang.Long> snapshot()
snapshot in interface QuantileEstimatorpublic long getCount()
getCount in interface QuantileEstimator@VisibleForTesting public int getSampleCount()
public void clear()
clear in interface QuantileEstimatorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.