@Test public void testGetTableNames() throws Exception { assertEquals(Sets.newHashSet("table1", "table2"), Sets.newHashSet(catalog.getAllTableNames("space1"))); }
public Collection<String> getTableNames(String dbName, @Nullable final String schemaPattern, @Nullable final String tablePattern) throws UndefinedDatabaseException { ensureIfDBExists(dbName); return providerMap.get(dbName).getTables(schemaPattern, tablePattern); }
LinkedMetadataManager { public Collection<String> getTableNames(String dbName, @Nullable final String schemaPattern, @Nullable final String tablePattern) throws UndefinedDatabaseException { ensureIfDBExists(dbName); return providerMap.get(dbName).getTables(schemaPattern, tablePattern); } }
LinkedMetadataManager { public Collection<String> getTableNames(String dbName, @Nullable final String schemaPattern, @Nullable final String tablePattern) throws UndefinedDatabaseException { ensureIfDBExists(dbName); return providerMap.get(dbName).getTables(schemaPattern, tablePattern); } LinkedMetadataManager(Collection<MetadataProvider> providers); }
LinkedMetadataManager { public Collection<String> getTableNames(String dbName, @Nullable final String schemaPattern, @Nullable final String tablePattern) throws UndefinedDatabaseException { ensureIfDBExists(dbName); return providerMap.get(dbName).getTables(schemaPattern, tablePattern); } LinkedMetadataManager(Collection<MetadataProvider> providers); Collection<String> getTablespaceNames(); Optional<Pair<String, URI>> getTablespace(final String spaceName); Collection<Pair<String, URI>> getTablespaces(); boolean existsTablespace(String tablespaceName); Collection<String> getDatabases(); boolean existsDatabase(String dbName); Collection<String> getSchemas(@Nullable String dbName); Collection<String> getTableNames(String dbName,
                                          @Nullable final String schemaPattern,
                                          @Nullable final String tablePattern); void createTable(TableDesc desc); void dropTable(String databaseName, String schemaName, String tableName); boolean existsTable(String dbName, String schemaName, String tableName); TableDesc getTable(String dbName, String schemaName, String tbName); }
LinkedMetadataManager { public Collection<String> getTableNames(String dbName, @Nullable final String schemaPattern, @Nullable final String tablePattern) throws UndefinedDatabaseException { ensureIfDBExists(dbName); return providerMap.get(dbName).getTables(schemaPattern, tablePattern); } LinkedMetadataManager(Collection<MetadataProvider> providers); Collection<String> getTablespaceNames(); Optional<Pair<String, URI>> getTablespace(final String spaceName); Collection<Pair<String, URI>> getTablespaces(); boolean existsTablespace(String tablespaceName); Collection<String> getDatabases(); boolean existsDatabase(String dbName); Collection<String> getSchemas(@Nullable String dbName); Collection<String> getTableNames(String dbName,
                                          @Nullable final String schemaPattern,
                                          @Nullable final String tablePattern); void createTable(TableDesc desc); void dropTable(String databaseName, String schemaName, String tableName); boolean existsTable(String dbName, String schemaName, String tableName); TableDesc getTable(String dbName, String schemaName, String tbName);  }