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/21 00:52:50 UTC
[09/11] kylin git commit: Minor, layer cuboid folder name convension
Minor, layer cuboid folder name convension
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/5d2e6c10
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/5d2e6c10
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/5d2e6c10
Branch: refs/heads/master-hbase0.98
Commit: 5d2e6c10c40c725c8e068242da5f719a71505099
Parents: e05d8f3
Author: shaofengshi <sh...@apache.org>
Authored: Mon Feb 20 23:11:53 2017 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Mon Feb 20 23:12:01 2017 +0800
----------------------------------------------------------------------
.../java/org/apache/kylin/engine/mr/JobBuilderSupport.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/5d2e6c10/engine-mr/src/main/java/org/apache/kylin/engine/mr/JobBuilderSupport.java
----------------------------------------------------------------------
diff --git a/engine-mr/src/main/java/org/apache/kylin/engine/mr/JobBuilderSupport.java b/engine-mr/src/main/java/org/apache/kylin/engine/mr/JobBuilderSupport.java
index c34a904..c1ed345 100644
--- a/engine-mr/src/main/java/org/apache/kylin/engine/mr/JobBuilderSupport.java
+++ b/engine-mr/src/main/java/org/apache/kylin/engine/mr/JobBuilderSupport.java
@@ -45,6 +45,8 @@ public class JobBuilderSupport {
final protected CubeSegment seg;
final protected String submitter;
+ final public static String LayeredCuboidFolderPrefix = "level_";
+
public JobBuilderSupport(CubeSegment seg, String submitter) {
Preconditions.checkNotNull(seg, "segment cannot be null");
this.config = new JobEngineConfig(seg.getConfig());
@@ -195,9 +197,9 @@ public class JobBuilderSupport {
public static String getCuboidOutputPathsByLevel(String cuboidRootPath, int level) {
if (level == 0) {
- return cuboidRootPath + "base_cuboid";
+ return cuboidRootPath + LayeredCuboidFolderPrefix + "base_cuboid";
} else {
- return cuboidRootPath + "level_" + level + "_cuboid";
+ return cuboidRootPath + LayeredCuboidFolderPrefix + level + "_cuboid";
}
}