public class ArrayOfDoublesUpdatableSketchBuilder extends Object
Constructor and Description |
---|
ArrayOfDoublesUpdatableSketchBuilder()
Creates an instance of builder with default parameters
|
Modifier and Type | Method and Description |
---|---|
ArrayOfDoublesUpdatableSketch |
build()
Returns an ArrayOfDoublesUpdatableSketch with the current configuration of this Builder.
|
ArrayOfDoublesUpdatableSketch |
build(org.apache.datasketches.memory.WritableMemory dstMem)
Returns an ArrayOfDoublesUpdatableSketch with the current configuration of this Builder.
|
ArrayOfDoublesUpdatableSketchBuilder |
setNominalEntries(int nomEntries)
This is to set the nominal number of entries.
|
ArrayOfDoublesUpdatableSketchBuilder |
setNumberOfValues(int numValues)
This is to set the number of double values associated with each key
|
ArrayOfDoublesUpdatableSketchBuilder |
setResizeFactor(ResizeFactor resizeFactor)
This is to set the resize factor.
|
ArrayOfDoublesUpdatableSketchBuilder |
setSamplingProbability(float samplingProbability)
This is to set sampling probability.
|
ArrayOfDoublesUpdatableSketchBuilder |
setSeed(long seed)
Sets the long seed value that is required by the hashing function.
|
public ArrayOfDoublesUpdatableSketchBuilder()
public ArrayOfDoublesUpdatableSketchBuilder setNominalEntries(int nomEntries)
nomEntries
- Nominal number of entries. Forced to the nearest power of 2 greater than
or equal to given value.public ArrayOfDoublesUpdatableSketchBuilder setResizeFactor(ResizeFactor resizeFactor)
resizeFactor
- value of X1, X2, X4 or X8public ArrayOfDoublesUpdatableSketchBuilder setSamplingProbability(float samplingProbability)
samplingProbability
- sampling probability from 0 to 1public ArrayOfDoublesUpdatableSketchBuilder setNumberOfValues(int numValues)
numValues
- number of double valuespublic ArrayOfDoublesUpdatableSketchBuilder setSeed(long seed)
seed
- See seedpublic ArrayOfDoublesUpdatableSketch build()
public ArrayOfDoublesUpdatableSketch build(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- instance of Memory to be used by the sketchCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.