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,
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 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.
|