Package org.apache.datasketches.sampling
package 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.
These sketches are mergeable and can be serialized and deserialized to/from a compact form.
-
ClassDescriptionAn implementation of an Exact and Bounded Sampling Proportional to Size sketch.This sketch provides a reservoir sample over an input stream of items.Class to union reservoir samples of generic items.This sketch provides a reservoir sample over an input stream of
long
s.Class to union reservoir samples of longs.A simple object o capture the results of a subset sum query on a sampling sketch.This class provides access to the samples contained in a VarOptItemsSketch.This sketch provides a variance optimal sample over an input stream of weighted items.Provides a unioning operation over varopt sketches.