public final class DoublesSketchIterator extends Object implements QuantilesDoublesSketchIterator
| Modifier and Type | Method and Description |
|---|---|
double |
getQuantile()
Gets the double quantile at the current index.
|
long |
getWeight()
Gets the natural weight at the current index.
|
boolean |
next()
Advances the index and checks if it is valid.
|
public double getQuantile()
QuantilesDoublesSketchIteratorDon't call this before calling next() for the first time or after getting false from next().
getQuantile in interface QuantilesDoublesSketchIteratorpublic long getWeight()
QuantilesSketchIteratorDon't call this before calling next() for the first time or after getting false from next().
getWeight in interface QuantilesSketchIteratorpublic boolean next()
QuantilesSketchIteratornext in interface QuantilesSketchIteratorCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.