Uses of Enum Class
org.apache.datasketches.common.ResizeFactor
Package
Description
This package is for common classes that may be used across all the sketch families.
This package is dedicated to streaming algorithms that enable fixed size, uniform sampling of
weighted and unweighted items from a stream.
The theta package contains the basic sketch classes that are members of the
Theta Sketch Framework.
The tuple package contains a number of sketches based on the same
fundamental algorithms of the Theta Sketch Framework and extend these
concepts for whole new families of sketches.
This package is for a concrete implementation of the Tuple sketch for an array of double values.
This package is for a generic implementation of the Tuple sketch for single String value.
-
Uses of ResizeFactor in org.apache.datasketches.common
Modifier and TypeMethodDescriptionstatic ResizeFactor
ResizeFactor.getRF
(int lg) Returns the Resize Factor given the Log-base 2 of the Resize Factorstatic ResizeFactor
Returns the enum constant of this class with the specified name.static ResizeFactor[]
ResizeFactor.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ResizeFactor in org.apache.datasketches.sampling
Modifier and TypeMethodDescriptionstatic <T> ReservoirItemsSketch<T>
ReservoirItemsSketch.newInstance
(int k, ResizeFactor rf) Construct a mergeable sampling sketch with up to k samples using a specified resize factor.static ReservoirLongsSketch
ReservoirLongsSketch.newInstance
(int k, ResizeFactor rf) Construct a mergeable reservoir sampling sketch with up to k samples using the default resize factor (8).static <T> VarOptItemsSketch<T>
VarOptItemsSketch.newInstance
(int k, ResizeFactor rf) Construct a varopt sampling sketch with up to k samples using the specified resize factor. -
Uses of ResizeFactor in org.apache.datasketches.theta
Modifier and TypeMethodDescriptionSetOperationBuilder.getResizeFactor()
Returns the Resize Factorabstract ResizeFactor
UpdateSketch.getResizeFactor()
Returns the configured ResizeFactorUpdateSketchBuilder.getResizeFactor()
Returns the Resize FactorModifier and TypeMethodDescriptionSetOperationBuilder.setResizeFactor
(ResizeFactor rf) Sets the cache Resize FactorUpdateSketchBuilder.setResizeFactor
(ResizeFactor rf) Sets the cache Resize Factor. -
Uses of ResizeFactor in org.apache.datasketches.tuple
Modifier and TypeMethodDescriptionUpdatableSketchBuilder.setResizeFactor
(ResizeFactor resizeFactor) This is to set the resize factor. -
Uses of ResizeFactor in org.apache.datasketches.tuple.arrayofdoubles
Modifier and TypeMethodDescriptionabstract ResizeFactor
ArrayOfDoublesUpdatableSketch.getResizeFactor()
Gets the configured resize factorModifier and TypeMethodDescriptionArrayOfDoublesUpdatableSketchBuilder.setResizeFactor
(ResizeFactor resizeFactor) This is to set the resize factor. -
Uses of ResizeFactor in org.apache.datasketches.tuple.strings
ModifierConstructorDescriptionArrayOfStringsSketch
(int lgK, ResizeFactor rf, float p) Constructs new sketch with given ResizeFactor, p and lgK.