@Test public void testGetInstance() throws Exception { Assert.assertNotNull(getInstance(getTestConfig())); Assert.assertNotNull(getInstance(getTestConfig()).listAllTables(null)); Assert.assertTrue(getInstance(getTestConfig()).listAllTables(null).size() > 0); }
public static TableMetadataManager getInstance(KylinConfig config) { return config.getManager(TableMetadataManager.class); }
TableMetadataManager { public static TableMetadataManager getInstance(KylinConfig config) { return config.getManager(TableMetadataManager.class); } }
TableMetadataManager { public static TableMetadataManager getInstance(KylinConfig config) { return config.getManager(TableMetadataManager.class); } private  TableMetadataManager(KylinConfig cfg); }
TableMetadataManager { public static TableMetadataManager getInstance(KylinConfig config) { return config.getManager(TableMetadataManager.class); } private  TableMetadataManager(KylinConfig cfg); static TableMetadataManager getInstance(KylinConfig config); KylinConfig getConfig(); ResourceStore getStore(); void reloadSourceTableQuietly(String table, String project); List<TableDesc> listAllTables(String prj); Map<String, TableDesc> getAllTablesMap(String prj); TableDesc getTableDesc(String tableName, String prj); void saveSourceTable(TableDesc srcTable, String prj); void removeSourceTable(String tableIdentity, String prj); void resetProjectSpecificTableDesc(String prj); void reloadTableExtQuietly(String table, String project); TableExtDesc getTableExt(String tableName, String prj); TableExtDesc getTableExt(TableDesc t); void saveTableExt(TableExtDesc tableExt, String prj); void removeTableExt(String tableName, String prj); List<ExternalFilterDesc> listAllExternalFilters(); ExternalFilterDesc getExtFilterDesc(String filterTableName); void saveExternalFilter(ExternalFilterDesc desc); void removeExternalFilter(String name); }
TableMetadataManager { public static TableMetadataManager getInstance(KylinConfig config) { return config.getManager(TableMetadataManager.class); } private  TableMetadataManager(KylinConfig cfg); static TableMetadataManager getInstance(KylinConfig config); KylinConfig getConfig(); ResourceStore getStore(); void reloadSourceTableQuietly(String table, String project); List<TableDesc> listAllTables(String prj); Map<String, TableDesc> getAllTablesMap(String prj); TableDesc getTableDesc(String tableName, String prj); void saveSourceTable(TableDesc srcTable, String prj); void removeSourceTable(String tableIdentity, String prj); void resetProjectSpecificTableDesc(String prj); void reloadTableExtQuietly(String table, String project); TableExtDesc getTableExt(String tableName, String prj); TableExtDesc getTableExt(TableDesc t); void saveTableExt(TableExtDesc tableExt, String prj); void removeTableExt(String tableName, String prj); List<ExternalFilterDesc> listAllExternalFilters(); ExternalFilterDesc getExtFilterDesc(String filterTableName); void saveExternalFilter(ExternalFilterDesc desc); void removeExternalFilter(String name); static final Serializer<TableDesc> TABLE_SERIALIZER; }