You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemall.apache.org by ta...@apache.org on 2017/11/27 03:14:47 UTC

incubator-hivemall git commit: Fix typo

Repository: incubator-hivemall
Updated Branches:
  refs/heads/master fc9694d78 -> e63494998


Fix typo


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

Branch: refs/heads/master
Commit: e63494998f4b91f08fa3cd964422a577cc5cc2a2
Parents: fc9694d
Author: Takuya Kitazawa <ta...@apache.org>
Authored: Mon Nov 27 12:14:36 2017 +0900
Committer: Takuya Kitazawa <ta...@apache.org>
Committed: Mon Nov 27 12:14:36 2017 +0900

----------------------------------------------------------------------
 .../main/java/hivemall/sketch/hll/ApproxCountDistinctUDAF.java   | 4 ++--
 docs/gitbook/misc/approx.md                                      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/e6349499/core/src/main/java/hivemall/sketch/hll/ApproxCountDistinctUDAF.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/hivemall/sketch/hll/ApproxCountDistinctUDAF.java b/core/src/main/java/hivemall/sketch/hll/ApproxCountDistinctUDAF.java
index 79b4ee9..3a1c2a6 100644
--- a/core/src/main/java/hivemall/sketch/hll/ApproxCountDistinctUDAF.java
+++ b/core/src/main/java/hivemall/sketch/hll/ApproxCountDistinctUDAF.java
@@ -217,8 +217,8 @@ public final class ApproxCountDistinctUDAF extends AbstractGenericUDAFResolver {
         public LongWritable terminate(@Nonnull AggregationBuffer agg) throws HiveException {
             HLLBuffer buf = (HLLBuffer) agg;
 
-            long cardinarity = (buf.hll == null) ? 0L : buf.hll.cardinality();
-            return new LongWritable(cardinarity);
+            long cardinality = (buf.hll == null) ? 0L : buf.hll.cardinality();
+            return new LongWritable(cardinality);
         }
 
     }

http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/e6349499/docs/gitbook/misc/approx.md
----------------------------------------------------------------------
diff --git a/docs/gitbook/misc/approx.md b/docs/gitbook/misc/approx.md
index 2e365de..1451151 100644
--- a/docs/gitbook/misc/approx.md
+++ b/docs/gitbook/misc/approx.md
@@ -21,7 +21,7 @@
 
 # Approximate Counting using HyperLogLog
 
-`count(distinct value)` can often cause memory exhausted errors where input data and the cardinarity of value are large.
+`count(distinct value)` can often cause memory exhausted errors where input data and the cardinality of value are large.
 
 [HyperLogLog](https://en.wikipedia.org/wiki/HyperLogLog) is an efficient algorithm for approximating the number of distinct elements in a [multiset](https://en.wikipedia.org/wiki/Multiset). 
 Hivemall implements [HyperLogLog++](https://en.wikipedia.org/wiki/HyperLogLog#HLL.2B.2B) in `approx_count_distinct`.