Class GenericSortedViewIterator<T>

  • Type Parameters:
    T - The generic quantile type

    public class GenericSortedViewIterator<T>
    extends SortedViewIterator
    Iterator over quantile sketches of generic type.
    • 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.