Uses of Class
org.apache.datasketches.common.ArrayOfItemsSerDe
Packages that use ArrayOfItemsSerDe
Package
Description
This package is for common classes that may be used across all the sketch families.
This package contains the implementations of the paper https://arxiv.org/abs/1705.07001.
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.
The quantiles package contains stochastic streaming algorithms that enable single-pass
analysis of the distribution of a stream of quantiles.
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.commonModifier and TypeClassDescriptionclassMethods of serializing and deserializing arrays of Boolean as a bit array.classMethods of serializing and deserializing arrays of Double.classMethods of serializing and deserializing arrays of Long.classMethods of serializing and deserializing arrays of the object version of primitive types of Number.classMethods of serializing and deserializing arrays of String.classMethods 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 ArrayOfItemsSerDeModifier and TypeMethodDescriptionstatic <T> FrequentItemsSketch<T> FrequentItemsSketch.getInstance(MemorySegment srcSeg, ArrayOfItemsSerDe<T> serDe) Returns a sketch instance of this class from the given srcSeg, which must be a MemorySegment representation of this sketch class.byte[]FrequentItemsSketch.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 ArrayOfItemsSerDeModifier and TypeMethodDescriptionstatic <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. -
Uses of ArrayOfItemsSerDe in org.apache.datasketches.quantiles
Methods in org.apache.datasketches.quantiles with parameters of type ArrayOfItemsSerDeModifier and TypeMethodDescriptionstatic <T> QuantilesItemsSketch<T> QuantilesItemsSketch.heapify(Class<T> clazz, MemorySegment srcSeg, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe) Heapifies the given srcSeg, which must be a MemorySegment image of a QuantilesItemsSketch.static <T> QuantilesItemsUnion<T> QuantilesItemsUnion.initializeWithMemorySegment(Class<T> clazz, MemorySegment srcSeg, Comparator<? super T> comparator, ArrayOfItemsSerDe<T> serDe) Initialize a new QuantilesItemsUnion with a heapified instance of an QuantilesItemsSketch from a MemorySegment.voidQuantilesItemsSketch.putIntoMemorySegment(MemorySegment dstSeg, ArrayOfItemsSerDe<T> serDe) Puts the current sketch into the given MemorySegment if there is sufficient space.byte[]QuantilesItemsSketch.toByteArray(boolean ordered, ArrayOfItemsSerDe<T> serDe) Serialize this sketch to a byte array form.byte[]QuantilesItemsSketch.toByteArray(ArrayOfItemsSerDe<T> serDe) Serialize this sketch to a byte array form.byte[]QuantilesItemsUnion.toByteArray(ArrayOfItemsSerDe<T> serDe) Serialize this union to a byte array.voidQuantilesItemsUnion.union(MemorySegment srcSeg, 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 ArrayOfItemsSerDeModifier and TypeMethodDescriptionintEbppsItemsSketch.getSerializedSizeBytes(ArrayOfItemsSerDe<? super T> serDe) Returns the size of a byte array representation of this sketch.intEbppsItemsSketch.getSerializedSizeBytes(ArrayOfItemsSerDe<? super T> serDe, Class<?> clazz) Returns the length of a byte array representation of this sketch.static <T> EbppsItemsSketch<T> EbppsItemsSketch.heapify(MemorySegment srcSeg, ArrayOfItemsSerDe<T> serDe) Returns a sketch instance of this class from the given srcSeg, which must be a MemorySegment representation of this sketch class.static <T> ReservoirItemsSketch<T> ReservoirItemsSketch.heapify(MemorySegment srcSeg, ArrayOfItemsSerDe<T> serDe) Returns a sketch instance of this class from the given srcSeg, which must be a MemorySegment representation of this sketch class.static <T> ReservoirItemsUnion<T> ReservoirItemsUnion.heapify(MemorySegment srcSeg, ArrayOfItemsSerDe<T> serDe) Instantiates a Union from MemorySegmentstatic <T> VarOptItemsSketch<T> VarOptItemsSketch.heapify(MemorySegment srcSeg, ArrayOfItemsSerDe<T> serDe) Returns a sketch instance of this class from the given srcSeg, which must be a MemorySegment representation of this sketch class.static <T> VarOptItemsUnion<T> VarOptItemsUnion.heapify(MemorySegment srcSeg, ArrayOfItemsSerDe<T> serDe) Instantiates a Union from MemorySegmentbyte[]EbppsItemsSketch.toByteArray(ArrayOfItemsSerDe<? super T> serDe) Returns a byte array representation of this sketch.byte[]EbppsItemsSketch.toByteArray(ArrayOfItemsSerDe<? super T> serDe, Class<?> clazz) Returns a byte array representation of this sketch.byte[]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.voidReservoirItemsUnion.update(MemorySegment seg, ArrayOfItemsSerDe<T> serDe) Union the given MemorySegment image of the sketch.voidVarOptItemsUnion.update(MemorySegment seg, ArrayOfItemsSerDe<T> serDe) Union the given MemorySegment image of the sketch.