You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/07/21 10:05:24 UTC
[18/50] [abbrv] incubator-kylin git commit: KYLIN-839 use dictionary
in building snapshot
KYLIN-839 use dictionary in building snapshot
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/08c8e910
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/08c8e910
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/08c8e910
Branch: refs/heads/master
Commit: 08c8e9103fa757330d8e4848552e563be9bcbf2e
Parents: b97d0e5
Author: shaofengshi <sh...@apache.org>
Authored: Mon Jun 29 10:52:49 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Mon Jun 29 10:52:49 2015 +0800
----------------------------------------------------------------------
.../java/org/apache/kylin/dict/lookup/SnapshotTable.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/08c8e910/dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
----------------------------------------------------------------------
diff --git a/dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java b/dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
index 35cbb84..4764dd0 100644
--- a/dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
+++ b/dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
@@ -49,7 +49,7 @@ public class SnapshotTable extends RootPersistentEntity implements ReadableTable
@JsonProperty("column_delimeter")
private String columnDelimeter;
@JsonProperty("useDictionary")
- private Boolean useDictionary;
+ private boolean useDictionary;
private ArrayList<String[]> rows;
@@ -60,7 +60,7 @@ public class SnapshotTable extends RootPersistentEntity implements ReadableTable
SnapshotTable(ReadableTable table) throws IOException {
this.signature = table.getSignature();
this.columnDelimeter = table.getColumnDelimeter();
- this.useDictionary = Boolean.TRUE;
+ this.useDictionary = true;
}
public void takeSnapshot(ReadableTable table, TableDesc tableDesc) throws IOException {
@@ -162,7 +162,7 @@ public class SnapshotTable extends RootPersistentEntity implements ReadableTable
int n = rows.get(0).length;
out.writeInt(n);
- if (this.useDictionary == Boolean.TRUE) {
+ if (this.useDictionary == true) {
Dictionary<String> dict = buildDictionary();
dict.write(out);
for (int i = 0; i < rows.size(); i++) {
@@ -199,7 +199,7 @@ public class SnapshotTable extends RootPersistentEntity implements ReadableTable
rows = new ArrayList<String[]>(rowNum);
if (rowNum > 0) {
int n = in.readInt();
- if (this.useDictionary == Boolean.TRUE) {
+ if (this.useDictionary == true) {
Dictionary<String> dict = new TrieDictionary<String>();
dict.readFields(in);
for (int i = 0; i < rowNum; i++) {