Uses of Enum Class
org.apache.datasketches.common.ResizeFactor
Packages that use 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
Methods in org.apache.datasketches.common that return ResizeFactorModifier 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
Methods in org.apache.datasketches.sampling with parameters of type ResizeFactorModifier 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
Methods in org.apache.datasketches.theta that return ResizeFactorModifier and TypeMethodDescriptionSetOperationBuilder.getResizeFactor()
Returns the Resize Factorabstract ResizeFactor
UpdateSketch.getResizeFactor()
Returns the configured ResizeFactorUpdateSketchBuilder.getResizeFactor()
Returns the Resize FactorMethods in org.apache.datasketches.theta with parameters of type ResizeFactorModifier 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
Methods in org.apache.datasketches.tuple with parameters of type ResizeFactorModifier and TypeMethodDescriptionUpdatableSketchBuilder.setResizeFactor
(ResizeFactor resizeFactor) This is to set the resize factor. -
Uses of ResizeFactor in org.apache.datasketches.tuple.arrayofdoubles
Methods in org.apache.datasketches.tuple.arrayofdoubles that return ResizeFactorModifier and TypeMethodDescriptionabstract ResizeFactor
ArrayOfDoublesUpdatableSketch.getResizeFactor()
Gets the configured resize factorMethods in org.apache.datasketches.tuple.arrayofdoubles with parameters of type ResizeFactorModifier and TypeMethodDescriptionArrayOfDoublesUpdatableSketchBuilder.setResizeFactor
(ResizeFactor resizeFactor) This is to set the resize factor. -
Uses of ResizeFactor in org.apache.datasketches.tuple.strings
Constructors in org.apache.datasketches.tuple.strings with parameters of type ResizeFactorModifierConstructorDescriptionArrayOfStringsSketch
(int lgK, ResizeFactor rf, float p) Constructs new sketch with given ResizeFactor, p and lgK.