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,仇同心 <qiutong...@jd.com<mailto:qiutong...@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前,预计算的那段代码,谁能告诉我具体在哪实现的? 谢谢!