# Uses of Class
org.apache.datasketches.kll.KllItemsSketch

Packages that use KllItemsSketch
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.

## Uses of KllItemsSketch in org.apache.datasketches.kll

Methods in org.apache.datasketches.kll that return KllItemsSketch
Modifier and Type
Method
Description
`static <T> KllItemsSketch<T>`
KllItemsSketch.`heapify(MemorySegment srcSeg, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe)`
Factory heapify takes a compact sketch image in MemorySegment and instantiates an on-heap sketch.
`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.`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.`wrap(MemorySegment srcSeg, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe)`
Constructs a thin wrapper on the heap around a MemorySegment (or MemorySegment) already initialized with a validated sketch image of a type T consistent with the given comparator and serDe.