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.
|
Modifier and Type | Method and Description |
---|---|
ItemsSketch<T> |
ItemsSketch.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,
Comparator<? super T> comparator)
Obtains a new instance of an ItemsSketch using the DEFAULT_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,
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 ItemsSketch
|
ItemsSketch<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.
|
Modifier and Type | Method and Description |
---|---|
static <T> ItemsUnion<T> |
ItemsUnion.getInstance(ItemsSketch<T> sketch)
Create an instance of ItemsUnion based on ItemsSketch
|
void |
ItemsUnion.union(ItemsSketch<T> sketchIn)
Iterative union operation, which means this method can be repeatedly called.
|
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.