@Test(expected=RuntimeException.class) public void testTooManyCombination() { File twentyFile = new File(new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc"), "twenty_dim"); twentyFile.renameTo(new File(twentyFile.getPath().substring(0, twentyFile.getPath().length() - 4))); CubeDesc cube = getTwentyDimCubeDesc(); CuboidScheduler cuboidScheduler = cube.getInitialCuboidScheduler(); cuboidScheduler.getCuboidCount(); twentyFile.renameTo(new File(twentyFile.getPath() + ".bad")); }
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();  }