public class NumDistinctValueEstimator extends Object
Constructor and Description |
---|
NumDistinctValueEstimator(int numBitVectors) |
NumDistinctValueEstimator(String s,
int numBitVectors) |
Modifier and Type | Method and Description |
---|---|
void |
addToEstimator(double d) |
void |
addToEstimator(HiveDecimal decimal) |
void |
addToEstimator(long v) |
void |
addToEstimatorPCSA(double d) |
void |
addToEstimatorPCSA(HiveDecimal decimal) |
void |
addToEstimatorPCSA(long v) |
long |
estimateNumDistinctValues() |
long |
estimateNumDistinctValuesPCSA() |
javolution.util.FastBitSet |
getBitVector(int index) |
int |
getBitVectorSize() |
int |
getnumBitVectors() |
void |
mergeEstimators(NumDistinctValueEstimator o) |
void |
printNumDistinctValueEstimator() |
void |
reset()
Resets a distinctValueEstimator object to its original state.
|
org.apache.hadoop.io.Text |
serialize() |
public NumDistinctValueEstimator(int numBitVectors)
public NumDistinctValueEstimator(String s, int numBitVectors)
public void reset()
public javolution.util.FastBitSet getBitVector(int index)
public int getnumBitVectors()
public int getBitVectorSize()
public void printNumDistinctValueEstimator()
public org.apache.hadoop.io.Text serialize()
public void addToEstimator(long v)
public void addToEstimatorPCSA(long v)
public void addToEstimator(double d)
public void addToEstimatorPCSA(double d)
public void addToEstimator(HiveDecimal decimal)
public void addToEstimatorPCSA(HiveDecimal decimal)
public void mergeEstimators(NumDistinctValueEstimator o)
public long estimateNumDistinctValuesPCSA()
public long estimateNumDistinctValues()
Copyright © 2017 The Apache Software Foundation. All rights reserved.