public interface SortedView
The SortedView interface hierarchy provides a sorted view of the data retained by a quantiles-type sketch that would be cumbersome to get any other way. One could use the sketch's iterator to iterate over the contents of the sketch, but the result would not be sorted.
The data from a Sorted view is an unbiased random sample of the input stream that can be used for other kinds of analysis not directly provided by the sketch.
Modifier and Type | Method and Description |
---|---|
long[] |
getCumulativeWeights()
Returns the array of cumulative weights from the sketch.
|
long |
getN()
Returns the total number of items presented to the sourcing sketch.
|
int |
getNumRetained()
Gets the number of quantiles retained by this sorted view.
|
boolean |
isEmpty()
Returns true if this sorted view is empty.
|
SortedViewIterator |
iterator()
Returns an iterator for this Sorted View.
|
long[] getCumulativeWeights()
long getN()
int getNumRetained()
boolean isEmpty()
SortedViewIterator iterator()
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.