@InterfaceAudience.Private public class MetricSampleQuantiles extends Object
Constructor and Description |
---|
MetricSampleQuantiles(MetricQuantile[] quantiles) |
Modifier and Type | Method and 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.
|
Map<MetricQuantile,Long> |
snapshot()
Get a snapshot of the current values of all the tracked quantiles.
|
public MetricSampleQuantiles(MetricQuantile[] quantiles)
public void insert(long v)
v
- public Map<MetricQuantile,Long> snapshot() throws IOException
IOException
- if no items have been added to the estimatorpublic long getCount()
public int getSampleCount()
public void clear()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.