Uses of Class
org.apache.datasketches.common.ArrayOfItemsSerDe
-
Packages that use ArrayOfItemsSerDe Package Description org.apache.datasketches.common This package is for common classes that may be used across all the sketch families.org.apache.datasketches.frequencies This package is dedicated to streaming algorithms that enable estimation of the frequency of occurrence of items in a weighted multiset stream of items.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.org.apache.datasketches.quantiles The quantiles package contains stochastic streaming algorithms that enable single-pass analysis of the distribution of a stream of quantiles.org.apache.datasketches.sampling This package is dedicated to streaming algorithms that enable fixed size, uniform sampling of weighted and unweighted items from a stream. -
-
Uses of ArrayOfItemsSerDe in org.apache.datasketches.common
Subclasses of ArrayOfItemsSerDe in org.apache.datasketches.common Modifier and Type Class Description class
ArrayOfBooleansSerDe
Methods of serializing and deserializing arrays of Boolean as a bit array.class
ArrayOfDoublesSerDe
Methods of serializing and deserializing arrays of Double.class
ArrayOfLongsSerDe
Methods of serializing and deserializing arrays of Long.class
ArrayOfNumbersSerDe
Methods of serializing and deserializing arrays of the object version of primitive types of Number.class
ArrayOfStringsSerDe
Methods of serializing and deserializing arrays of String.class
ArrayOfUtf16StringsSerDe
Methods of serializing and deserializing arrays of String. -
Uses of ArrayOfItemsSerDe in org.apache.datasketches.frequencies
Methods in org.apache.datasketches.frequencies with parameters of type ArrayOfItemsSerDe Modifier and Type Method Description static <T> ItemsSketch<T>
ItemsSketch. getInstance(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe)
Returns a sketch instance of this class from the given srcMem, which must be a Memory representation of this sketch class.byte[]
ItemsSketch. toByteArray(ArrayOfItemsSerDe<T> serDe)
Returns a byte array representation of this sketch -
Uses of ArrayOfItemsSerDe in org.apache.datasketches.kll
Methods in org.apache.datasketches.kll with parameters of type ArrayOfItemsSerDe Modifier and Type Method 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(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(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. -
Uses of ArrayOfItemsSerDe in org.apache.datasketches.quantiles
Methods in org.apache.datasketches.quantiles with parameters of type ArrayOfItemsSerDe Modifier and Type Method Description 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 ItemsSketchstatic <T> ItemsUnion<T>
ItemsUnion. getInstance(Class<T> clazz, org.apache.datasketches.memory.Memory srcMem, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe)
Heapify the given srcMem into a Union object.void
ItemsSketch. putMemory(org.apache.datasketches.memory.WritableMemory dstMem, ArrayOfItemsSerDe<T> serDe)
Puts the current sketch into the given Memory if there is sufficient space.byte[]
ItemsSketch. toByteArray(boolean ordered, ArrayOfItemsSerDe<T> serDe)
Serialize this sketch to a byte array form.byte[]
ItemsSketch. toByteArray(ArrayOfItemsSerDe<T> serDe)
Serialize this sketch to a byte array form.byte[]
ItemsUnion. toByteArray(ArrayOfItemsSerDe<T> serDe)
Serialize this union to a byte array.void
ItemsUnion. union(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe)
Iterative union operation, which means this method can be repeatedly called. -
Uses of ArrayOfItemsSerDe in org.apache.datasketches.sampling
Methods in org.apache.datasketches.sampling with parameters of type ArrayOfItemsSerDe Modifier and Type Method Description static <T> ReservoirItemsSketch<T>
ReservoirItemsSketch. heapify(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe)
Returns a sketch instance of this class from the given srcMem, which must be a Memory representation of this sketch class.static <T> ReservoirItemsUnion<T>
ReservoirItemsUnion. heapify(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe)
Instantiates a Union from Memorystatic <T> VarOptItemsSketch<T>
VarOptItemsSketch. heapify(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe)
Returns a sketch instance of this class from the given srcMem, which must be a Memory representation of this sketch class.static <T> VarOptItemsUnion<T>
VarOptItemsUnion. heapify(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe)
Instantiates a Union from Memorybyte[]
ReservoirItemsSketch. toByteArray(ArrayOfItemsSerDe<? super T> serDe)
Returns a byte array representation of this sketch.byte[]
ReservoirItemsSketch. toByteArray(ArrayOfItemsSerDe<? super T> serDe, Class<?> clazz)
Returns a byte array representation of this sketch.byte[]
ReservoirItemsUnion. toByteArray(ArrayOfItemsSerDe<T> serDe)
Returns a byte array representation of this unionbyte[]
ReservoirItemsUnion. toByteArray(ArrayOfItemsSerDe<T> serDe, Class<?> clazz)
Returns a byte array representation of this union.byte[]
VarOptItemsSketch. toByteArray(ArrayOfItemsSerDe<? super T> serDe)
Returns a byte array representation of this sketch.byte[]
VarOptItemsSketch. toByteArray(ArrayOfItemsSerDe<? super T> serDe, Class<?> clazz)
Returns a byte array representation of this sketch.byte[]
VarOptItemsUnion. toByteArray(ArrayOfItemsSerDe<T> serDe)
Returns a byte array representation of this unionbyte[]
VarOptItemsUnion. toByteArray(ArrayOfItemsSerDe<T> serDe, Class<?> clazz)
Returns a byte array representation of this union.void
ReservoirItemsUnion. update(org.apache.datasketches.memory.Memory mem, ArrayOfItemsSerDe<T> serDe)
Union the given Memory image of the sketch.void
VarOptItemsUnion. update(org.apache.datasketches.memory.Memory mem, ArrayOfItemsSerDe<T> serDe)
Union the given Memory image of the sketch.
-