Class LongsSortedViewIterator
- java.lang.Object
-
- org.apache.datasketches.quantilescommon.SortedViewIterator
-
- org.apache.datasketches.quantilescommon.LongsSortedViewIterator
-
public final class LongsSortedViewIterator extends SortedViewIterator
Iterator over quantile sketches of primitive type long.
-
-
Field Summary
-
Fields inherited from class org.apache.datasketches.quantilescommon.SortedViewIterator
cumWeights, index, totalN
-
-
Constructor Summary
Constructors Constructor Description LongsSortedViewIterator(long[] quantiles, long[] cumWeights)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getQuantile()
Gets the quantile at the current index.-
Methods inherited from class org.apache.datasketches.quantilescommon.SortedViewIterator
getN, getNaturalRank, getNaturalRank, getNormalizedRank, getNormalizedRank, getWeight, next
-
-
-
-
Constructor Detail
-
LongsSortedViewIterator
public LongsSortedViewIterator(long[] quantiles, long[] cumWeights)
Constructor.- Parameters:
quantiles
- the given array of quantiles, which must be ordered.cumWeights
- the given array of cumulative weights, which must be ordered, start with the value one, and the last value must be equal to N, the total number of items updated to the sketch.
-
-