@Test public void testCuboidCounts2() { CubeDesc cube = getTestKylinCubeWithoutSellerLeftJoin(); CuboidScheduler cuboidScheduler = cube.getInitialCuboidScheduler(); int[] counts = CuboidCLI.calculateAllLevelCount(cube); printCount(counts); int sum = 0; for (Integer x : counts) { sum += x; } assertEquals(cuboidScheduler.getCuboidCount(), sum); }
abstract public int getCuboidCount();
CuboidScheduler { abstract public int getCuboidCount(); }
CuboidScheduler { abstract public int getCuboidCount(); protected  CuboidScheduler(CubeDesc cubeDesc); }
CuboidScheduler { abstract public int getCuboidCount(); protected  CuboidScheduler(CubeDesc cubeDesc); static CuboidScheduler getInstance(CubeDesc cubeDesc); abstract Set<Long> getAllCuboidIds(); abstract int getCuboidCount(); abstract List<Long> getSpanningCuboid(long parentCuboid); abstract long findBestMatchCuboid(long requestCuboid); abstract Set<Long> calculateCuboidsForAggGroup(AggregationGroup agg); long getBaseCuboidId(); CubeDesc getCubeDesc(); boolean isValid(long requestCuboid); List<List<Long>> getCuboidsByLayer(); int getBuildLevel(); String getCuboidCacheKey(); }
CuboidScheduler { abstract public int getCuboidCount(); protected  CuboidScheduler(CubeDesc cubeDesc); static CuboidScheduler getInstance(CubeDesc cubeDesc); abstract Set<Long> getAllCuboidIds(); abstract int getCuboidCount(); abstract List<Long> getSpanningCuboid(long parentCuboid); abstract long findBestMatchCuboid(long requestCuboid); abstract Set<Long> calculateCuboidsForAggGroup(AggregationGroup agg); long getBaseCuboidId(); CubeDesc getCubeDesc(); boolean isValid(long requestCuboid); List<List<Long>> getCuboidsByLayer(); int getBuildLevel(); String getCuboidCacheKey();  }