public class HllSketchBuilder extends Object
| Constructor and Description |
|---|
HllSketchBuilder()
Default constructor using default nominal entries (4096).
|
| Modifier and Type | Method and Description |
|---|---|
HllSketch |
build()
Build a new HllSketch
|
HllSketchBuilder |
copy()
Copy constructor
|
int |
getLogBuckets()
Gets the currently configured log_base2 of the number of buckets (k)
|
Preamble |
getPreamble()
Gets the configured Preamble
|
boolean |
isCompressedDense()
Gets the state of Compressed Dense
|
boolean |
isDenseMode()
Gets the Dense Mode flag
|
boolean |
isHipEstimator()
Gets the state of the Hip Estimator option
|
HllSketchBuilder |
setCompressedDense(boolean compressedDense)
Sets the Compressed Dense flag
|
HllSketchBuilder |
setDenseMode(boolean denseMode)
Sets the Dense Mode flag
|
HllSketchBuilder |
setHipEstimator(boolean hipEstimator)
Sets the Hip Estimator option
|
HllSketchBuilder |
setLogBuckets(int logBuckets)
Sets the number of buckets (k) from the log_base2 of the desired value.
|
HllSketchBuilder |
setPreamble(Preamble preamble)
Sets the Preamble
|
String |
toString() |
public HllSketchBuilder()
public HllSketchBuilder copy()
public HllSketchBuilder setLogBuckets(int logBuckets)
logBuckets - the given log_base2 of the desired number of bucketspublic int getLogBuckets()
public HllSketchBuilder setPreamble(Preamble preamble)
preamble - the given Preamblepublic Preamble getPreamble()
public HllSketchBuilder setDenseMode(boolean denseMode)
denseMode - the state of dense modepublic boolean isDenseMode()
public HllSketchBuilder setCompressedDense(boolean compressedDense)
compressedDense - the state of Compressed Densepublic boolean isCompressedDense()
public HllSketchBuilder setHipEstimator(boolean hipEstimator)
hipEstimator - true if the Hip Estimater option is to be usedpublic boolean isHipEstimator()
public HllSketch build()
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.