diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/common/ndv/hll/HyperLogLog.java standalone-metastore/src/main/java/org/apache/hadoop/hive/common/ndv/hll/HyperLogLog.java index 8bdb47b..927b4ec 100644 --- standalone-metastore/src/main/java/org/apache/hadoop/hive/common/ndv/hll/HyperLogLog.java +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/common/ndv/hll/HyperLogLog.java @@ -46,7 +46,7 @@ * Following are the constructor parameters that determines which algorithm is * used * numRegisterIndexBits - number of LSB hashcode bits to be used as register index. - * Default is 14. min = 4 and max = 16 + * Default is 10. min = 4 and max = 16 * numHashBits - number of bits for hashcode. Default is 64. min = 32 and max = 128 * encoding - Type of encoding to use (SPARSE or DENSE). The algorithm automatically * switches to DENSE beyond a threshold. Default: SPARSE @@ -150,7 +150,7 @@ public static HyperLogLogBuilder builder() { } public static class HyperLogLogBuilder { - private int numRegisterIndexBits = 14; + private int numRegisterIndexBits = 10; private EncodingType encoding = EncodingType.SPARSE; private boolean bitPacking = true; private boolean noBias = true;