Java Code Examples for org.apache.kylin.cube.CubeSegment#getCuboidScheduler()

The following examples show how to use org.apache.kylin.cube.CubeSegment#getCuboidScheduler() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CuboidSchedulerUtil.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public static CuboidScheduler getCuboidSchedulerByMode(CubeSegment segment, String cuboidModeName) {
    if (cuboidModeName == null)
        return segment.getCuboidScheduler();
    else
        return getCuboidSchedulerByMode(segment, CuboidModeEnum.getByModeName(cuboidModeName));
}
 
Example 2
Source File: CuboidSchedulerUtil.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public static CuboidScheduler getCuboidSchedulerByMode(CubeSegment segment, CuboidModeEnum cuboidMode) {
    if (cuboidMode == CuboidModeEnum.CURRENT || cuboidMode == null)
        return segment.getCuboidScheduler();
    else
        return getCuboidScheduler(segment, segment.getCubeInstance().getCuboidsByMode(cuboidMode));
}
 
Example 3
Source File: CubeStatsReader.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public CubeStatsReader(CubeSegment cubeSegment, KylinConfig kylinConfig) throws IOException {
    this(cubeSegment, cubeSegment.getCuboidScheduler(), kylinConfig);
}
 
Example 4
Source File: CuboidSchedulerUtil.java    From kylin with Apache License 2.0 4 votes vote down vote up
public static CuboidScheduler getCuboidSchedulerByMode(CubeSegment segment, String cuboidModeName) {
    if (cuboidModeName == null)
        return segment.getCuboidScheduler();
    else
        return getCuboidSchedulerByMode(segment, CuboidModeEnum.getByModeName(cuboidModeName));
}
 
Example 5
Source File: CuboidSchedulerUtil.java    From kylin with Apache License 2.0 4 votes vote down vote up
public static CuboidScheduler getCuboidSchedulerByMode(CubeSegment segment, CuboidModeEnum cuboidMode) {
    if (cuboidMode == CuboidModeEnum.CURRENT || cuboidMode == null)
        return segment.getCuboidScheduler();
    else
        return getCuboidScheduler(segment, segment.getCubeInstance().getCuboidsByMode(cuboidMode));
}
 
Example 6
Source File: CubeStatsReader.java    From kylin with Apache License 2.0 4 votes vote down vote up
public CubeStatsReader(CubeSegment cubeSegment, KylinConfig kylinConfig) throws IOException {
    this(cubeSegment, cubeSegment.getCuboidScheduler(), kylinConfig);
}