@Test public void testGetAllCubes() throws Exception { final ResourceStore store = ResourceStore.getStore(getTestConfig()); final NavigableSet<String> cubePath = store.listResources(ResourceStore.CUBE_RESOURCE_ROOT); assertTrue(cubePath.size() > 1); final List<CubeInstance> cubes = store.getAllResources(ResourceStore.CUBE_RESOURCE_ROOT, CubeManager.CUBE_SERIALIZER); assertEquals(cubePath.size(), cubes.size()); }
private ResourceStore getStore() { return ResourceStore.getStore(this.config); }
CubeManager implements IRealizationProvider { private ResourceStore getStore() { return ResourceStore.getStore(this.config); } }
CubeManager implements IRealizationProvider { private ResourceStore getStore() { return ResourceStore.getStore(this.config); } private  CubeManager(KylinConfig cfg); }
CubeManager implements IRealizationProvider { private ResourceStore getStore() { return ResourceStore.getStore(this.config); } private  CubeManager(KylinConfig cfg); static CubeManager getInstance(KylinConfig config); List<CubeInstance> listAllCubes(); List<CubeInstance> reloadAndListAllCubes(); CubeInstance getCube(String cubeName); CubeInstance getCubeByUuid(String uuid); List<String> getErrorCubes(); List<CubeInstance> getCubesByDesc(String descName); CubeInstance createCube(String cubeName, String projectName, CubeDesc desc, String owner); CubeInstance createCube(CubeInstance cube, String projectName, String owner); CubeInstance clearSegments(CubeInstance cube); CubeInstance updateCube(CubeUpdate update); CubeInstance updateCubeStatus(CubeInstance cube, RealizationStatusEnum newStatus); CubeInstance updateCubeDropSegments(CubeInstance cube, Collection<CubeSegment> segsToDrop); CubeInstance updateCubeDropSegments(CubeInstance cube, CubeSegment... segsToDrop); CubeInstance dropOptmizingSegments(CubeInstance cube, CubeSegment... segsToDrop); CubeInstance updateCubeSegStatus(CubeSegment seg, SegmentStatusEnum status); CubeInstance updateCubeLookupSnapshot(CubeInstance cube, String lookupTableName, String newSnapshotResPath); CubeInstance reloadCube(String cubeName); CubeInstance reloadCubeQuietly(String cubeName); void removeCubeLocal(String cubeName); CubeInstance dropCube(String cubeName, boolean deleteDesc); ILookupTable getLookupTable(CubeSegment cubeSegment, JoinDesc join); CubeInstance copyForWrite(CubeInstance cube); @Override RealizationType getRealizationType(); @Override IRealization getRealization(String name); CubeSegment appendSegment(CubeInstance cube); CubeSegment appendSegment(CubeInstance cube, TSRange tsRange); CubeSegment appendSegment(CubeInstance cube, SourcePartition src); CubeSegment refreshSegment(CubeInstance cube, TSRange tsRange, SegmentRange segRange); CubeSegment[] optimizeSegments(CubeInstance cube, Set<Long> cuboidsRecommend); CubeSegment mergeSegments(CubeInstance cube, TSRange tsRange, SegmentRange segRange, boolean force); void promoteNewlyBuiltSegments(CubeInstance cube, CubeSegment newSegment); void promoteNewlyOptimizeSegments(CubeInstance cube, CubeSegment... optimizedSegments); void promoteCheckpointOptimizeSegments(CubeInstance cube, Map<Long, Long> recommendCuboids,
            CubeSegment... optimizedSegments); List<CubeSegment> calculateHoles(String cubeName); DictionaryInfo buildDictionary(CubeSegment cubeSeg, TblColRef col, IReadableTable inpTable); DictionaryInfo saveDictionary(CubeSegment cubeSeg, TblColRef col, IReadableTable inpTable,
            Dictionary<String> dict); Dictionary<String> getDictionary(CubeSegment cubeSeg, TblColRef col); SnapshotTable buildSnapshotTable(CubeSegment cubeSeg, String lookupTable, String uuid); CubeInstance findLatestSnapshot(List<RealizationEntry> realizationEntries, String lookupTableName,
            CubeInstance cubeInstance); }
CubeManager implements IRealizationProvider { private ResourceStore getStore() { return ResourceStore.getStore(this.config); } private  CubeManager(KylinConfig cfg); static CubeManager getInstance(KylinConfig config); List<CubeInstance> listAllCubes(); List<CubeInstance> reloadAndListAllCubes(); CubeInstance getCube(String cubeName); CubeInstance getCubeByUuid(String uuid); List<String> getErrorCubes(); List<CubeInstance> getCubesByDesc(String descName); CubeInstance createCube(String cubeName, String projectName, CubeDesc desc, String owner); CubeInstance createCube(CubeInstance cube, String projectName, String owner); CubeInstance clearSegments(CubeInstance cube); CubeInstance updateCube(CubeUpdate update); CubeInstance updateCubeStatus(CubeInstance cube, RealizationStatusEnum newStatus); CubeInstance updateCubeDropSegments(CubeInstance cube, Collection<CubeSegment> segsToDrop); CubeInstance updateCubeDropSegments(CubeInstance cube, CubeSegment... segsToDrop); CubeInstance dropOptmizingSegments(CubeInstance cube, CubeSegment... segsToDrop); CubeInstance updateCubeSegStatus(CubeSegment seg, SegmentStatusEnum status); CubeInstance updateCubeLookupSnapshot(CubeInstance cube, String lookupTableName, String newSnapshotResPath); CubeInstance reloadCube(String cubeName); CubeInstance reloadCubeQuietly(String cubeName); void removeCubeLocal(String cubeName); CubeInstance dropCube(String cubeName, boolean deleteDesc); ILookupTable getLookupTable(CubeSegment cubeSegment, JoinDesc join); CubeInstance copyForWrite(CubeInstance cube); @Override RealizationType getRealizationType(); @Override IRealization getRealization(String name); CubeSegment appendSegment(CubeInstance cube); CubeSegment appendSegment(CubeInstance cube, TSRange tsRange); CubeSegment appendSegment(CubeInstance cube, SourcePartition src); CubeSegment refreshSegment(CubeInstance cube, TSRange tsRange, SegmentRange segRange); CubeSegment[] optimizeSegments(CubeInstance cube, Set<Long> cuboidsRecommend); CubeSegment mergeSegments(CubeInstance cube, TSRange tsRange, SegmentRange segRange, boolean force); void promoteNewlyBuiltSegments(CubeInstance cube, CubeSegment newSegment); void promoteNewlyOptimizeSegments(CubeInstance cube, CubeSegment... optimizedSegments); void promoteCheckpointOptimizeSegments(CubeInstance cube, Map<Long, Long> recommendCuboids,
            CubeSegment... optimizedSegments); List<CubeSegment> calculateHoles(String cubeName); DictionaryInfo buildDictionary(CubeSegment cubeSeg, TblColRef col, IReadableTable inpTable); DictionaryInfo saveDictionary(CubeSegment cubeSeg, TblColRef col, IReadableTable inpTable,
            Dictionary<String> dict); Dictionary<String> getDictionary(CubeSegment cubeSeg, TblColRef col); SnapshotTable buildSnapshotTable(CubeSegment cubeSeg, String lookupTable, String uuid); CubeInstance findLatestSnapshot(List<RealizationEntry> realizationEntries, String lookupTableName,
            CubeInstance cubeInstance); static final Serializer<CubeInstance> CUBE_SERIALIZER; }