You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/09/09 10:36:17 UTC

incubator-kylin git commit: KYLIN-1020 remove HARD_THRESHOLD from StorageContext

Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging fbe3395f2 -> b338dc3ea


KYLIN-1020 remove HARD_THRESHOLD from StorageContext


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

Branch: refs/heads/1.x-staging
Commit: b338dc3eacb874c661e58eeb8fba13cbe91adb37
Parents: fbe3395
Author: shaofengshi <sh...@apache.org>
Authored: Wed Sep 9 16:35:43 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Wed Sep 9 16:36:09 2015 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/kylin/storage/StorageContext.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/b338dc3e/storage/src/main/java/org/apache/kylin/storage/StorageContext.java
----------------------------------------------------------------------
diff --git a/storage/src/main/java/org/apache/kylin/storage/StorageContext.java b/storage/src/main/java/org/apache/kylin/storage/StorageContext.java
index ae2436d..536e09d 100644
--- a/storage/src/main/java/org/apache/kylin/storage/StorageContext.java
+++ b/storage/src/main/java/org/apache/kylin/storage/StorageContext.java
@@ -34,7 +34,6 @@ import com.google.common.collect.HashBiMap;
  */
 public class StorageContext {
 
-    public static final int HARD_THRESHOLD = 4000000;
     public static final int DEFAULT_THRESHOLD = 1000000;
 
     public enum OrderEnum {
@@ -102,7 +101,7 @@ public class StorageContext {
     }
 
     public void setThreshold(int t) {
-        threshold = Math.min(t, HARD_THRESHOLD);
+        threshold = t;
     }
 
     public int getLimit() {