Uses of Class
org.apache.datasketches.sampling.ReservoirLongsSketch
Packages that use ReservoirLongsSketch
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 ReservoirLongsSketch in org.apache.datasketches.sampling
Methods in org.apache.datasketches.sampling that return ReservoirLongsSketchModifier and TypeMethodDescriptionReservoirLongsUnion.getResult()Returns a sketch representing the current state of the union.static ReservoirLongsSketchReservoirLongsSketch.heapify(MemorySegment srcSeg) Returns a sketch instance of this class from the given srcSeg, which must be a MemorySegment representation of this sketch class.static ReservoirLongsSketchReservoirLongsSketch.newInstance(int k) Construct a mergeable reservoir sampling sketch with up to k samples using the default resize factor (8).static ReservoirLongsSketchReservoirLongsSketch.newInstance(int k, ResizeFactor rf) Construct a mergeable reservoir sampling sketch with up to k samples using the default resize factor (8).Methods in org.apache.datasketches.sampling with parameters of type ReservoirLongsSketchModifier and TypeMethodDescriptionvoidReservoirLongsUnion.update(ReservoirLongsSketch sketchIn) Union the given sketch.