public interface QuantilesSketchIterator
Prototype example of the recommended iteration loop:
SketchIterator itr = sketch.iterator();
while (itr.next()) {
...get*();
}
Modifier and Type | Method and Description |
---|---|
long |
getWeight()
Gets the natural weight at the current index.
|
boolean |
next()
Advances the index and checks if it is valid.
|
long getWeight()
Don't call this before calling next() for the first time or after getting false from next().
boolean next()
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.