kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luke...@apache.org
Subject [40/50] [abbrv] incubator-kylin git commit: minor, less verbose HyperLogLogCounterTest
Date Sun, 06 Sep 2015 07:39:46 GMT
minor, less verbose HyperLogLogCounterTest


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/19e4c236
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/19e4c236
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/19e4c236

Branch: refs/heads/master
Commit: 19e4c2363ba88a9713c9cfa56f9c1b2c93098692
Parents: ebfa38d
Author: Li, Yang <yangli9@ebay.com>
Authored: Thu Aug 20 14:29:01 2015 +0800
Committer: Li, Yang <yangli9@ebay.com>
Committed: Thu Aug 20 14:29:01 2015 +0800

----------------------------------------------------------------------
 .../apache/kylin/common/util/HyperLogLogCounterTest.java  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/19e4c236/common/src/test/java/org/apache/kylin/common/util/HyperLogLogCounterTest.java
----------------------------------------------------------------------
diff --git a/common/src/test/java/org/apache/kylin/common/util/HyperLogLogCounterTest.java
b/common/src/test/java/org/apache/kylin/common/util/HyperLogLogCounterTest.java
index 571a12d..5943bb6 100644
--- a/common/src/test/java/org/apache/kylin/common/util/HyperLogLogCounterTest.java
+++ b/common/src/test/java/org/apache/kylin/common/util/HyperLogLogCounterTest.java
@@ -119,16 +119,15 @@ public class HyperLogLogCounterTest {
         double absError = 0;
         int n = 100;
         for (int i = 0; i < n; i++) {
-            System.out.println("============" + i);
             double e = merge();
             error += e;
             absError += Math.abs(e);
         }
         System.out.println("Total average error is " + error / n + " and absolute error is
" + absError / n);
 
-        System.out.println("errorCount1 is " + errorCount1 + "!");
-        System.out.println("errorCount2 is " + errorCount2 + "!");
-        System.out.println("errorCount3 is " + errorCount3 + "!");
+        System.out.println("  errorRateCount1 is " + errorCount1 + "!");
+        System.out.println("  errorRateCount2 is " + errorCount2 + "!");
+        System.out.println("  errorRateCount3 is " + errorCount3 + "!");
 
         Assert.assertTrue(errorCount1 <= n * 0.40);
         Assert.assertTrue(errorCount2 <= n * 0.08);
@@ -161,9 +160,8 @@ public class HyperLogLogCounterTest {
         long estimate = mergeHllc.getCountEstimate();
         double actualError = (double) (testSet.size() - estimate) / testSet.size();
 
-        System.out.println(testSet.size() + "-" + estimate);
+        System.out.println(testSet.size() + "-" + estimate + " ~ " + actualError);
 
-        System.out.println("=" + actualError);
         if (Math.abs(actualError) > errorRate) {
             errorCount1++;
         }


Mime
View raw message