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 2017/05/23 12:23:33 UTC
[4/5] kylin git commit: minor, use soft reference in dict cache
minor, use soft reference in dict cache
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/ed0430bc
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/ed0430bc
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/ed0430bc
Branch: refs/heads/master
Commit: ed0430bc0649ac5b4de7a6c3df0f65b8121d12cd
Parents: 0e44a19
Author: Li Yang <li...@apache.org>
Authored: Fri May 12 15:23:19 2017 +0800
Committer: hongbin ma <ma...@kyligence.io>
Committed: Tue May 23 20:18:17 2017 +0800
----------------------------------------------------------------------
.../src/main/java/org/apache/kylin/dict/DictionaryManager.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/ed0430bc/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
----------------------------------------------------------------------
diff --git a/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java b/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
index bbe6cac..1628f4e 100644
--- a/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
+++ b/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
@@ -99,8 +99,7 @@ public class DictionaryManager {
}
})//
.maximumSize(config.getCachedDictMaxEntrySize())//
- .expireAfterWrite(1, TimeUnit.DAYS)//
- .build(new CacheLoader<String, DictionaryInfo>() {
+ .expireAfterWrite(1, TimeUnit.DAYS).build(new CacheLoader<String, DictionaryInfo>() {
@Override
public DictionaryInfo load(String key) throws Exception {
DictionaryInfo dictInfo = DictionaryManager.this.load(key, true);