You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/02/12 06:43:19 UTC
[29/50] incubator-kylin git commit: minor formatting
minor formatting
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/6ef8be00
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/6ef8be00
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/6ef8be00
Branch: refs/heads/inverted-index
Commit: 6ef8be00509f554cee4b2707fc1a8180b6aba129
Parents: 75431e3
Author: Li, Yang <ya...@ebay.com>
Authored: Wed Feb 11 15:45:01 2015 +0800
Committer: Li, Yang <ya...@ebay.com>
Committed: Wed Feb 11 15:45:01 2015 +0800
----------------------------------------------------------------------
.../kylin/common/hll/HyperLogLogPlusCounter.java | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/6ef8be00/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java b/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
index e725e21..18b3af1 100644
--- a/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
+++ b/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
@@ -77,7 +77,7 @@ public class HyperLogLogPlusCounter implements Comparable<HyperLogLogPlusCounter
}
public void add(String value) {
- add(hashFunc.hashString(value,Charset.defaultCharset()).asLong());
+ add(hashFunc.hashString(value, Charset.defaultCharset()).asLong());
}
public void add(byte[] value) {
@@ -209,19 +209,9 @@ public class HyperLogLogPlusCounter implements Comparable<HyperLogLogPlusCounter
}
};
- public static final int COMPRESSION_THRESHOLD = Integer.MAX_VALUE; // bytes,
- // disable
- // due to
- // slowness
+ public static final int COMPRESSION_THRESHOLD = Integer.MAX_VALUE; // bytes, disable due to slowness
public static final byte COMPRESSION_FLAG = (byte) 0x02;
- public static final Compressor DEFAULT_COMPRESSOR = GZIP_COMPRESSOR; // LZF
- // lib
- // has
- // a
- // bug
- // at
- // the
- // moment
+ public static final Compressor DEFAULT_COMPRESSOR = GZIP_COMPRESSOR; // LZF lib has a bug at the moment
public void writeRegisters(final ByteBuffer out) throws IOException {
int startPos = out.position();