@Test public void testBasics() throws Exception { HybridInstance hybridInstance = getHybridManager().getHybridInstance("test_kylin_hybrid_ready"); System.out.println(JsonUtil.writeValueAsIndentString(hybridInstance)); IRealization[] realizations = hybridInstance.getRealizations(); Assert.assertEquals(realizations.length, 2); IRealization lastReal = hybridInstance.getLatestRealization(); Assert.assertTrue(lastReal instanceof CubeInstance); Assert.assertEquals(lastReal.getName(), "test_kylin_cube_with_slr_ready_2_segments"); }
public HybridInstance getHybridInstance(String name) { try (AutoLock l = lock.lockForRead()) { return hybridMap.get(name); } }
HybridManager implements IRealizationProvider { public HybridInstance getHybridInstance(String name) { try (AutoLock l = lock.lockForRead()) { return hybridMap.get(name); } } }
HybridManager implements IRealizationProvider { public HybridInstance getHybridInstance(String name) { try (AutoLock l = lock.lockForRead()) { return hybridMap.get(name); } } private  HybridManager(KylinConfig cfg); }
HybridManager implements IRealizationProvider { public HybridInstance getHybridInstance(String name) { try (AutoLock l = lock.lockForRead()) { return hybridMap.get(name); } } private  HybridManager(KylinConfig cfg); static HybridManager getInstance(KylinConfig config); List<HybridInstance> getHybridInstancesByChild(RealizationType type, String realizationName); @Override RealizationType getRealizationType(); @Override IRealization getRealization(String name); Collection<HybridInstance> listHybridInstances(); HybridInstance getHybridInstance(String name); HybridInstance reloadHybridInstance(String name); void reloadAllHybridInstance(); }
HybridManager implements IRealizationProvider { public HybridInstance getHybridInstance(String name) { try (AutoLock l = lock.lockForRead()) { return hybridMap.get(name); } } private  HybridManager(KylinConfig cfg); static HybridManager getInstance(KylinConfig config); List<HybridInstance> getHybridInstancesByChild(RealizationType type, String realizationName); @Override RealizationType getRealizationType(); @Override IRealization getRealization(String name); Collection<HybridInstance> listHybridInstances(); HybridInstance getHybridInstance(String name); HybridInstance reloadHybridInstance(String name); void reloadAllHybridInstance(); static final Serializer<HybridInstance> HYBRID_SERIALIZER; }