T
- type of itempublic final class ItemsSketchIterator<T> extends Object implements QuantilesGenericSketchIterator<T>
Modifier and Type | Method and Description |
---|---|
T |
getQuantile()
Gets the generic 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 T getQuantile()
QuantilesGenericSketchIterator
Don't call this before calling next() for the first time or after getting false from next().
getQuantile
in interface QuantilesGenericSketchIterator<T>
public long getWeight()
QuantilesSketchIterator
Don't call this before calling next() for the first time or after getting false from next().
getWeight
in interface QuantilesSketchIterator
public boolean next()
QuantilesSketchIterator
next
in interface QuantilesSketchIterator
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.