U - Type of update valueS - Type of Summarypublic class UpdatableSketchBuilder<U,S extends UpdatableSummary<U>> extends Object
| Constructor and Description |
|---|
UpdatableSketchBuilder(SummaryFactory<S> summaryFactory)
Creates an instance of UpdatableSketchBuilder with default parameters
|
| Modifier and Type | Method and Description |
|---|---|
UpdatableSketch<U,S> |
build()
Returns an UpdatableSketch with the current configuration of this Builder.
|
void |
reset()
Resets the Nominal Entries, Resize Factor and Sampling Probability to their default values.
|
UpdatableSketchBuilder<U,S> |
setNominalEntries(int nomEntries)
This is to set the nominal number of entries.
|
UpdatableSketchBuilder<U,S> |
setResizeFactor(ResizeFactor resizeFactor)
This is to set the resize factor.
|
UpdatableSketchBuilder<U,S> |
setSamplingProbability(float samplingProbability)
This is to set sampling probability.
|
public UpdatableSketchBuilder(SummaryFactory<S> summaryFactory)
summaryFactory - An instance of SummaryFactory.public UpdatableSketchBuilder<U,S> setNominalEntries(int nomEntries)
nomEntries - Nominal number of entries. Forced to the nearest power of 2 greater than
or equal to the given value.public UpdatableSketchBuilder<U,S> setResizeFactor(ResizeFactor resizeFactor)
resizeFactor - value of X1, X2, X4 or X8public UpdatableSketchBuilder<U,S> setSamplingProbability(float samplingProbability)
samplingProbability - sampling probability from 0 to 1public UpdatableSketch<U,S> build()
public void reset()
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.