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.
|
Modifier and Type | Field and Description |
---|---|
protected ItemsSketch<T> |
ItemsUnion.gadget_ |
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 value of K.
|
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(int k,
Comparator<? super T> comparator)
Obtains a new instance of an ItemsSketch.
|
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 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.update(ItemsSketch<T> sketchIn)
Iterative union operation, which means this method can be repeatedly called.
|
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.