kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject kylin git commit: minor code format in TopNMeasureType.java
Date Tue, 07 Jun 2016 08:19:16 GMT
Repository: kylin
Updated Branches:
  refs/heads/master d2e96bda0 -> 5d5a09e36


minor code format in TopNMeasureType.java


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

Branch: refs/heads/master
Commit: 5d5a09e36835c8ddcaa16651a3a0810bfa03576c
Parents: d2e96bd
Author: shaofengshi <shaofengshi@apache.org>
Authored: Tue Jun 7 16:19:06 2016 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Tue Jun 7 16:19:06 2016 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kylin/measure/topn/TopNMeasureType.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/5d5a09e3/core-metadata/src/main/java/org/apache/kylin/measure/topn/TopNMeasureType.java
----------------------------------------------------------------------
diff --git a/core-metadata/src/main/java/org/apache/kylin/measure/topn/TopNMeasureType.java
b/core-metadata/src/main/java/org/apache/kylin/measure/topn/TopNMeasureType.java
index 26519fd..e2eaf22 100644
--- a/core-metadata/src/main/java/org/apache/kylin/measure/topn/TopNMeasureType.java
+++ b/core-metadata/src/main/java/org/apache/kylin/measure/topn/TopNMeasureType.java
@@ -135,8 +135,8 @@ public class TopNMeasureType extends MeasureType<TopNCounter<ByteArray>>
{
 
                 final ByteArray key = new ByteArray(keyLength);
                 int offset = 0;
-                for (int i=0; i<dimensionEncodings.length; i++) {
-                    byte[] valueBytes = Bytes.toBytes(values[i+1]);
+                for (int i = 0; i < dimensionEncodings.length; i++) {
+                    byte[] valueBytes = Bytes.toBytes(values[i + 1]);
                     dimensionEncodings[i].encode(valueBytes, valueBytes.length, key.array(),
offset);
                     offset += dimensionEncodings[i].getLengthOfEncoding();
                 }


Mime
View raw message