Uses of Class
org.apache.datasketches.quantiles.ItemsSketch
Package
Description
The quantiles package contains stochastic streaming algorithms that enable single-pass
analysis of the distribution of a stream of quantiles.
-
Uses of ItemsSketch in org.apache.datasketches.quantiles
Modifier and TypeMethodDescriptionItemsSketch.downSample
(int newK) From an existing sketch, this creates a new sketch that can have a smaller K.static <T> ItemsSketch<T>
ItemsSketch.getInstance
(Class<T> clazz, int k, Comparator<? super T> comparator) Obtains a new instance of an ItemsSketch.static <T> ItemsSketch<T>
ItemsSketch.getInstance
(Class<T> clazz, Comparator<? super T> comparator) Obtains a new instance of an ItemsSketch using the DEFAULT_K.static <T> ItemsSketch<T>
ItemsSketch.getInstance
(Class<T> clazz, org.apache.datasketches.memory.Memory srcMem, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe) Heapifies the given srcMem, which must be a Memory image of a ItemsSketchItemsUnion.getResult()
Gets the result of this Union operation as a copy of the internal state.ItemsUnion.getResultAndReset()
Gets the result of this Union operation (without a copy) and resets this Union to the virgin state.Modifier and TypeMethodDescriptionstatic <T> ItemsUnion<T>
ItemsUnion.getInstance
(ItemsSketch<T> sketch) Create an instance of ItemsUnion based on ItemsSketchvoid
ItemsUnion.union
(ItemsSketch<T> sketchIn) Iterative union operation, which means this method can be repeatedly called.