You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by 仇同心 <qi...@jd.com> on 2016/06/18 02:05:21 UTC

关于measure预计算

大家好:
在cube构建时,根据cube 设计时,measure可以有不同的聚合函数。我想找到根据不同的聚合函数来做计算的源码,但是在

// Phase 3: Build Cube
addLayerCubingSteps(result, jobId, cuboidRootPath); // layer cubing, only selected algorithm will execute
result.addTask(createInMemCubingStep(jobId, cuboidRootPath)); // inmem cubing, only selected algorithm will execute
outputSide.addStepPhase3_BuildCube(result, cuboidRootPath);


我并没有找到相应的mapreduce函数来实现度量使用的聚合函数计算,也就是在存入hbase前,预计算的那段代码,谁能告诉我具体在哪实现的?

谢谢!


Re: 关于measure预计算

Posted by 王晓雨 <wa...@jd.com>.
Hi tongxin!
for the in memory build you can see:
https://github.com/apache/kylin/blob/master/core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/InMemCubeBuilder.java
and the mr build:
https://github.com/apache/kylin/blob/master/engine-mr/src/main/java/org/apache/kylin/engine/mr/steps/CuboidReducer.java


在 2016年6月18日,10:05,仇同心 <qi...@jd.com>> 写道:

大家好:
在cube构建时,根据cube 设计时,measure可以有不同的聚合函数。我想找到根据不同的聚合函数来做计算的源码,但是在

// Phase 3: Build Cube
addLayerCubingSteps(result, jobId, cuboidRootPath); // layer cubing, only selected algorithm will execute
result.addTask(createInMemCubingStep(jobId, cuboidRootPath)); // inmem cubing, only selected algorithm will execute
outputSide.addStepPhase3_BuildCube(result, cuboidRootPath);


我并没有找到相应的mapreduce函数来实现度量使用的聚合函数计算,也就是在存入hbase前,预计算的那段代码,谁能告诉我具体在哪实现的?

谢谢!



Re: 关于measure预计算

Posted by 王晓雨 <wa...@jd.com>.
Hi tongxin!
for the in memory build you can see:
https://github.com/apache/kylin/blob/master/core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/InMemCubeBuilder.java
and the mr build:
https://github.com/apache/kylin/blob/master/engine-mr/src/main/java/org/apache/kylin/engine/mr/steps/CuboidReducer.java


在 2016年6月18日,10:05,仇同心 <qi...@jd.com>> 写道:

大家好:
在cube构建时,根据cube 设计时,measure可以有不同的聚合函数。我想找到根据不同的聚合函数来做计算的源码,但是在

// Phase 3: Build Cube
addLayerCubingSteps(result, jobId, cuboidRootPath); // layer cubing, only selected algorithm will execute
result.addTask(createInMemCubingStep(jobId, cuboidRootPath)); // inmem cubing, only selected algorithm will execute
outputSide.addStepPhase3_BuildCube(result, cuboidRootPath);


我并没有找到相应的mapreduce函数来实现度量使用的聚合函数计算,也就是在存入hbase前,预计算的那段代码,谁能告诉我具体在哪实现的?

谢谢!