@Test public void testSegmentOverlap() throws IOException { thrown.expect(RuntimeException.class); thrown.expectMessage("Segments has overlap"); HybridManager hybridManager = HybridManager.getInstance(KylinConfig.getInstanceFromEnv()); Assert.assertNull(hybridManager.getHybridInstance("ssb_hybrid")); HybridCubeCLI.main(new String[] { "-name", "ssb_hybrid", "-project", "default", "-model", "ssb", "-cubes", "ssb_cube1,ssb_cube2", "-action", "create" }); CubeManager cubeManager = CubeManager.getInstance(KylinConfig.getInstanceFromEnv()); CubeInstance cube1 = cubeManager.getCube("ssb_cube1"); CubeInstance cube2 = cubeManager.getCube("ssb_cube2"); cubeManager.appendSegment(cube1, new SegmentRange.TSRange(1325376000000L, 1325548800000L)); cubeManager.appendSegment(cube2, new SegmentRange.TSRange(1325462400000L, 1325635200000L)); HybridCubeCLI.main(new String[] { "-name", "ssb_hybrid", "-project", "default", "-model", "ssb", "-cubes", "ssb_cube1,ssb_cube2", "-action", "update" }); }
public static void main(String[] args) { org.apache.kylin.rest.job.HybridCubeCLI cli = new org.apache.kylin.rest.job.HybridCubeCLI(); cli.execute(args); }
HybridCubeCLI { public static void main(String[] args) { org.apache.kylin.rest.job.HybridCubeCLI cli = new org.apache.kylin.rest.job.HybridCubeCLI(); cli.execute(args); } }
HybridCubeCLI { public static void main(String[] args) { org.apache.kylin.rest.job.HybridCubeCLI cli = new org.apache.kylin.rest.job.HybridCubeCLI(); cli.execute(args); }  }
HybridCubeCLI { public static void main(String[] args) { org.apache.kylin.rest.job.HybridCubeCLI cli = new org.apache.kylin.rest.job.HybridCubeCLI(); cli.execute(args); }  static void main(String[] args); }
HybridCubeCLI { public static void main(String[] args) { org.apache.kylin.rest.job.HybridCubeCLI cli = new org.apache.kylin.rest.job.HybridCubeCLI(); cli.execute(args); }  static void main(String[] args);  }