# Uses of Class
org.apache.datasketches.quantiles.QuantilesItemsSketch

Packages that use QuantilesItemsSketch
Package
Description
org.apache.datasketches.quantiles
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 QuantilesItemsSketch
Modifier and Type
Method
Description
`QuantilesItemsSketch<T>`
QuantilesItemsSketch.`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.
`QuantilesItemsSketch<T>`
QuantilesItemsUnion.`getResult()`
Gets the result of this Union operation as a copy of the internal state.
`QuantilesItemsSketch<T>`
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 QuantilesItemsSketch
Modifier and Type
Method
Description
`static <T> QuantilesItemsUnion<T>`
QuantilesItemsUnion.`initialize(QuantilesItemsSketch<T> sketch)`
Initialize a new QuantilesItemsUnion with an instance of QuantilesItemsSketch
`void`
QuantilesItemsUnion.`union(QuantilesItemsSketch<T> sketchIn)`
Iterative union operation, which means this method can be repeatedly called.