Uses of Class
org.apache.datasketches.quantiles.ItemsSketch
| 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 real (double) values or generic items.
|
-
Uses of ItemsSketch in org.apache.datasketches.quantiles
Fields in org.apache.datasketches.quantiles declared as ItemsSketch Modifier and Type Field Description protected ItemsSketch<T>ItemsUnion. gadget_Methods in org.apache.datasketches.quantiles that return ItemsSketch Modifier and Type Method Description ItemsSketch<T>ItemsSketch. downSample(int newK)From an existing sketch, this creates a new sketch that can have a smaller value of K.static <T> ItemsSketch<T>ItemsSketch. getInstance(int k, Comparator<? super T> comparator)Obtains a new instance of an ItemsSketch.static <T> ItemsSketch<T>ItemsSketch. getInstance(Comparator<? super T> comparator)Obtains a new instance of an ItemsSketch using the DEFAULT_K.static <T> ItemsSketch<T>ItemsSketch. getInstance(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 ItemsSketchItemsSketch<T>ItemsUnion. getResult()Gets the result of this Union operation as a copy of the internal state.ItemsSketch<T>ItemsUnion. getResultAndReset()Gets the result of this Union operation (without a copy) and resets this Union to the virgin state.Methods in org.apache.datasketches.quantiles with parameters of type ItemsSketch Modifier and Type Method Description static <T> ItemsUnion<T>ItemsUnion. getInstance(ItemsSketch<T> sketch)Create an instance of ItemsUnion based on ItemsSketchvoidItemsUnion. update(ItemsSketch<T> sketchIn)Iterative union operation, which means this method can be repeatedly called.