Package | Description |
---|---|
org.apache.datasketches.kll |
This package is for the implementations of the sketch algorithm developed by Zohar Karnin, Kevin Lang,
and Edo Liberty that is commonly referred to as the "KLL" sketch after the authors' last names.
|
Modifier and Type | Method and Description |
---|---|
static <T> KllItemsSketch<T> |
KllItemsSketch.heapify(org.apache.datasketches.memory.Memory srcMem,
Comparator<? super T> comparator,
ArrayOfItemsSerDe<T> serDe)
Factory heapify takes a compact sketch image in Memory and instantiates an on-heap sketch.
|
static <T> KllItemsSketch<T> |
KllItemsSketch.newHeapInstance(Comparator<? super T> comparator,
ArrayOfItemsSerDe<T> serDe)
Create a new heap instance of this sketch with the default k = 200.
|
static <T> KllItemsSketch<T> |
KllItemsSketch.newHeapInstance(int k,
Comparator<? super T> comparator,
ArrayOfItemsSerDe<T> serDe)
Create a new heap instance of this sketch with a given parameter k.
|
static <T> KllItemsSketch<T> |
KllItemsSketch.wrap(org.apache.datasketches.memory.Memory srcMem,
Comparator<? super T> comparator,
ArrayOfItemsSerDe<T> serDe)
Constructs a thin wrapper on the heap around a Memory (or WritableMemory) already initialized with a
validated sketch image of a type T consistent with the given comparator and serDe.
|
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.