public interface SortedView
The Sorted View provides a view of the data retained by a quantiles-type sketch that would be cumbersome to get any other way. One can iterate over the contents of the sketch using the sketch's iterator, but the result is not sorted.
Once this sorted view has been created, it provides not only a sorted view of the data retained by the sketch but also the basic queries, such as getRank(), getQuantile(), and getCDF() and getPMF(). In addition, the iterator obtained from this sorted view provides useful detailed information about each entry.
The data from a Sorted view is an unbiased sample of the input stream that can be used for other kinds of analysis not directly provided by the sketch. For example, comparing two sketches using the Kolmogorov-Smirnov test.
| Modifier and Type | Method and Description |
|---|---|
long[] |
getCumulativeWeights()
Returns the array of cumulative weights
|
boolean |
isEmpty()
Returns true if this sorted view is empty.
|
SortedViewIterator |
iterator()
Returns an iterator for this Sorted View.
|
long[] getCumulativeWeights()
boolean isEmpty()
SortedViewIterator iterator()
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.