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/02/22 02:31:39 UTC
[05/13] kylin git commit: KYLIN-2384 keep old Number2BytesConverter
for backward compatibility
KYLIN-2384 keep old Number2BytesConverter for backward compatibility
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/a0dba296
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/a0dba296
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/a0dba296
Branch: refs/heads/master-hbase0.98
Commit: a0dba2962e70449fc8dad8cc770361581f00ad0d
Parents: f2feae2
Author: Li Yang <li...@apache.org>
Authored: Tue Feb 21 15:40:10 2017 +0800
Committer: Li Yang <li...@apache.org>
Committed: Tue Feb 21 15:40:10 2017 +0800
----------------------------------------------------------------------
.../dict/NumberDictionaryForestBuilder.java | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/a0dba296/core-dictionary/src/main/java/org/apache/kylin/dict/NumberDictionaryForestBuilder.java
----------------------------------------------------------------------
diff --git a/core-dictionary/src/main/java/org/apache/kylin/dict/NumberDictionaryForestBuilder.java b/core-dictionary/src/main/java/org/apache/kylin/dict/NumberDictionaryForestBuilder.java
index 8b7026d..380cd1d 100644
--- a/core-dictionary/src/main/java/org/apache/kylin/dict/NumberDictionaryForestBuilder.java
+++ b/core-dictionary/src/main/java/org/apache/kylin/dict/NumberDictionaryForestBuilder.java
@@ -23,15 +23,28 @@ package org.apache.kylin.dict;
*/
public class NumberDictionaryForestBuilder extends TrieDictionaryForestBuilder<String> {
+ // keep this class for backward compatibility
+ public static class Number2BytesConverter extends org.apache.kylin.dict.Number2BytesConverter {
+ private static final long serialVersionUID = 1L;
+
+ public Number2BytesConverter() {
+ super();
+ }
+
+ public Number2BytesConverter(int maxDigitsBeforeDecimalPoint) {
+ super(maxDigitsBeforeDecimalPoint);
+ }
+ }
+
public NumberDictionaryForestBuilder() {
- super(new Number2BytesConverter(Number2BytesConverter.MAX_DIGITS_BEFORE_DECIMAL_POINT));
+ super(new org.apache.kylin.dict.Number2BytesConverter(Number2BytesConverter.MAX_DIGITS_BEFORE_DECIMAL_POINT));
}
public NumberDictionaryForestBuilder(int baseId) {
- super(new Number2BytesConverter(Number2BytesConverter.MAX_DIGITS_BEFORE_DECIMAL_POINT), 0);
+ super(new org.apache.kylin.dict.Number2BytesConverter(Number2BytesConverter.MAX_DIGITS_BEFORE_DECIMAL_POINT), 0);
}
public NumberDictionaryForestBuilder(int baseId, int maxTrieSizeMB) {
- super(new Number2BytesConverter(Number2BytesConverter.MAX_DIGITS_BEFORE_DECIMAL_POINT), 0, maxTrieSizeMB);
+ super(new org.apache.kylin.dict.Number2BytesConverter(Number2BytesConverter.MAX_DIGITS_BEFORE_DECIMAL_POINT), 0, maxTrieSizeMB);
}
}