Uses of Class
org.apache.datasketches.quantiles.QuantilesItemsSketch
Packages that use QuantilesItemsSketch
Package
Description
The quantiles package contains stochastic streaming algorithms that enable single-pass
analysis of the distribution of a stream of quantiles.
-
Uses of QuantilesItemsSketch in org.apache.datasketches.quantiles
Methods in org.apache.datasketches.quantiles that return QuantilesItemsSketchModifier and TypeMethodDescriptionQuantilesItemsSketch.downSample(int newK) From an existing sketch, this creates a new sketch that can have a smaller K.static <T> QuantilesItemsSketch<T> QuantilesItemsSketch.getInstance(Class<T> clazz, int k, Comparator<? super T> comparator) Obtains a new instance of an QuantilesItemsSketch using the given k.static <T> QuantilesItemsSketch<T> QuantilesItemsSketch.getInstance(Class<T> clazz, Comparator<? super T> comparator) Obtains a new instance of an QuantilesItemsSketch using the DEFAULT_K.QuantilesItemsUnion.getResult()Gets the result of this Union operation as a copy of the internal state.QuantilesItemsUnion.getResultAndReset()Gets the sketch result of this Union operation and resets this Union to the virgin state.static <T> QuantilesItemsSketch<T> QuantilesItemsSketch.heapify(Class<T> clazz, MemorySegment srcSeg, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe) Heapifies the given srcSeg, which must be a MemorySegment image of a QuantilesItemsSketch.Methods in org.apache.datasketches.quantiles with parameters of type QuantilesItemsSketchModifier and TypeMethodDescriptionstatic <T> QuantilesItemsUnion<T> QuantilesItemsUnion.initialize(QuantilesItemsSketch<T> sketch) Initialize a new QuantilesItemsUnion with an instance of QuantilesItemsSketchvoidQuantilesItemsUnion.union(QuantilesItemsSketch<T> sketchIn) Iterative union operation, which means this method can be repeatedly called.