Interface QuantilesSketchIterator

    • Method Detail

      • getWeight

        long getWeight()
        Gets the natural weight at the current index.

        Don't call this before calling next() for the first time or after getting false from next().

        Returns:
        the natural weight at the current index.
      • next

        boolean next()
        Advances the index and checks if it is valid. The state of this iterator is undefined before the first call of this method.
        Returns:
        true if the next index is valid.