@Test public void testSpanningChild() { long basicCuboid = getBaseCuboid(10); List<Long> cuboids = genRandomCuboids(basicCuboid, 50); long testCuboid = cuboids.get(10); System.out.println(cuboids); CuboidTree cuboidTree = CuboidTree.createFromCuboids(cuboids); PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out, StandardCharsets.UTF_8)); cuboidTree.print(out); out.flush(); List<Long> spanningChildren = cuboidTree.getSpanningCuboid(testCuboid); System.out.println(testCuboid + ":" + spanningChildren); }
@Override public List<Long> getSpanningCuboid(long cuboidId) { return cuboidTree.getSpanningCuboid(cuboidId); }
TreeCuboidScheduler extends CuboidScheduler { @Override public List<Long> getSpanningCuboid(long cuboidId) { return cuboidTree.getSpanningCuboid(cuboidId); } }
TreeCuboidScheduler extends CuboidScheduler { @Override public List<Long> getSpanningCuboid(long cuboidId) { return cuboidTree.getSpanningCuboid(cuboidId); } TreeCuboidScheduler(CubeDesc cubeDesc, List<Long> allCuboidIds, Comparator<Long> cuboidComparator); }
TreeCuboidScheduler extends CuboidScheduler { @Override public List<Long> getSpanningCuboid(long cuboidId) { return cuboidTree.getSpanningCuboid(cuboidId); } TreeCuboidScheduler(CubeDesc cubeDesc, List<Long> allCuboidIds, Comparator<Long> cuboidComparator); @Override Set<Long> getAllCuboidIds(); @Override int getCuboidCount(); @Override List<Long> getSpanningCuboid(long cuboidId); @Override long findBestMatchCuboid(long cuboidId); @Override boolean isValid(long requestCuboid); @Override String getCuboidCacheKey(); @Override Set<Long> calculateCuboidsForAggGroup(AggregationGroup agg); }
TreeCuboidScheduler extends CuboidScheduler { @Override public List<Long> getSpanningCuboid(long cuboidId) { return cuboidTree.getSpanningCuboid(cuboidId); } TreeCuboidScheduler(CubeDesc cubeDesc, List<Long> allCuboidIds, Comparator<Long> cuboidComparator); @Override Set<Long> getAllCuboidIds(); @Override int getCuboidCount(); @Override List<Long> getSpanningCuboid(long cuboidId); @Override long findBestMatchCuboid(long cuboidId); @Override boolean isValid(long requestCuboid); @Override String getCuboidCacheKey(); @Override Set<Long> calculateCuboidsForAggGroup(AggregationGroup agg);  }