Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static <T> ReservoirItemsUnion<T> |
ReservoirItemsUnion.heapify(org.apache.datasketches.memory.Memory srcMem,
ArrayOfItemsSerDe<T> serDe)
Instantiates a Union from Memory
|
static <T> ReservoirItemsUnion<T> |
ReservoirItemsUnion.newInstance(int maxK)
Creates an empty Union with a maximum reservoir capacity of size k.
|
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.