Uses of Class
org.apache.datasketches.sampling.ReservoirItemsUnion
Package
Description
This package is dedicated to streaming algorithms that enable fixed size, uniform sampling of
weighted and unweighted items from a stream.
-
Uses of ReservoirItemsUnion in org.apache.datasketches.sampling
Modifier and TypeMethodDescriptionstatic <T> ReservoirItemsUnion<T>
ReservoirItemsUnion.heapify
(org.apache.datasketches.memory.Memory srcMem, ArrayOfItemsSerDe<T> serDe) Instantiates a Union from Memorystatic <T> ReservoirItemsUnion<T>
ReservoirItemsUnion.newInstance
(int maxK) Creates an empty Union with a maximum reservoir capacity of size k.