public class KllHistogramEstimatorFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static KllHistogramEstimator |
getEmptyHistogramEstimator()
This method creates an empty histogram estimator with a KLL sketch with k=200.
|
static KllHistogramEstimator |
getEmptyHistogramEstimator(int k)
This method creates an empty histogram estimator with a KLL sketch of a given k parameter.
|
static KllHistogramEstimator |
getEmptyHistogramEstimator(KllHistogramEstimator kllHistogramEstimator)
This method creates an empty KLL histogram estimator, using the k parameter from the given estimator.
|
static KllHistogramEstimator |
getKllHistogramEstimator(byte[] buf)
This function deserializes the serialized KLL histogram estimator from a byte array.
|
static KllHistogramEstimator |
getKllHistogramEstimator(byte[] buf,
int start,
int len)
This function deserializes the serialized KLL histogram estimator from a byte array.
|
public static KllHistogramEstimator getKllHistogramEstimator(byte[] buf)
buf - to deserializepublic static KllHistogramEstimator getKllHistogramEstimator(byte[] buf, int start, int len)
buf - to deserializestart - start index for deserializationlen - start+len is deserializedpublic static KllHistogramEstimator getEmptyHistogramEstimator()
public static KllHistogramEstimator getEmptyHistogramEstimator(int k)
k - the KLL parameter k for initializing the sketchpublic static KllHistogramEstimator getEmptyHistogramEstimator(KllHistogramEstimator kllHistogramEstimator)
kllHistogramEstimator - the estimator used to build the new oneCopyright © 2024 The Apache Software Foundation. All rights reserved.