Class GenericSortedViewIterator<T>
- java.lang.Object
-
- org.apache.datasketches.quantilescommon.SortedViewIterator
-
- org.apache.datasketches.quantilescommon.GenericSortedViewIterator<T>
-
- Type Parameters:
T- The generic quantile type
public class GenericSortedViewIterator<T> extends SortedViewIterator
Iterator over quantile sketches of generic type.
-
-
Field Summary
-
Fields inherited from class org.apache.datasketches.quantilescommon.SortedViewIterator
cumWeights, index, totalN
-
-
Constructor Summary
Constructors Constructor Description GenericSortedViewIterator(T[] quantiles, long[] cumWeights)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetQuantile()Gets the quantile at the current index.-
Methods inherited from class org.apache.datasketches.quantilescommon.SortedViewIterator
getN, getNaturalRank, getNormalizedRank, getWeight, next
-
-
-
-
Constructor Detail
-
GenericSortedViewIterator
public GenericSortedViewIterator(T[] quantiles, long[] cumWeights)
-
-
Method Detail
-
getQuantile
public T getQuantile()
Gets the quantile at the current index.Don't call this before calling next() for the first time or after getting false from next().
- Returns:
- the quantile at the current index.
-
-