@InterfaceAudience.Private public class SampleQuantiles extends Object
Constructor and Description |
---|
SampleQuantiles(Quantile[] 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<Quantile,Long> |
snapshot()
Get a snapshot of the current values of all the tracked quantiles.
|
String |
toString() |
public SampleQuantiles(Quantile[] quantiles)
public void insert(long v)
v
- public Map<Quantile,Long> snapshot()
public long getCount()
public int getSampleCount()
public void clear()
Copyright © 2013 Apache Software Foundation. All rights reserved.