@Test public void getAllDatabases() throws MetaException { List<String> databases = submarineMetaStore.getAllDatabases(); assertEquals(true, databases.contains("testdb")); }
public List<String> getAllDatabases() throws MetaException { List<String> databases = rs.getAllDatabases(); return databases; }
SubmarineMetaStore { public List<String> getAllDatabases() throws MetaException { List<String> databases = rs.getAllDatabases(); return databases; } }
SubmarineMetaStore { public List<String> getAllDatabases() throws MetaException { List<String> databases = rs.getAllDatabases(); return databases; } SubmarineMetaStore(SubmarineConfiguration submarineConf); }
SubmarineMetaStore { public List<String> getAllDatabases() throws MetaException { List<String> databases = rs.getAllDatabases(); return databases; } SubmarineMetaStore(SubmarineConfiguration submarineConf); int getDatabaseCount(); List<String> getAllDatabases(); Database getDatabase(String databaseName); int getTableCount(); List<String> getAllTables(String databaseName); Table getTable(String databaseName, String tableName); void createDatabase(Database db); boolean alterDatabase(String dbName, Database db); boolean dropDatabase(String dbName); void createTable(Table table); boolean dropTable(String dbName, String tableName); int getPartitionCount(); Partition getPartition(String dbName, String tableName, List<String> partVals); List<TableMeta> getTableMeta(String dbNames, String tableNames, List<String> tableTypes); void createTableWithConstraints(Table tbl,
                                         List<SQLPrimaryKey> primaryKeys,
                                         List<SQLForeignKey> foreignKeys); boolean addPartitions(String dbName, String tblName, List<Partition> parts); boolean dropPartition(String dbName, String tableName, List<String> partVals); void alterTable(String dbname, String tableName, Table newTable); void alterIndex(String dbname, String baseTblName, String indexName, Index newIndex); void alterPartition(String dbname, String tableName, List<String> partVals, Partition newPart); void addPrimaryKeys(List<SQLPrimaryKey> pks); boolean addIndex(Index index); boolean dropIndex(String dbName, String origTableName, String indexName); Index getIndex(String dbName, String origTableName, String indexName); }
SubmarineMetaStore { public List<String> getAllDatabases() throws MetaException { List<String> databases = rs.getAllDatabases(); return databases; } SubmarineMetaStore(SubmarineConfiguration submarineConf); int getDatabaseCount(); List<String> getAllDatabases(); Database getDatabase(String databaseName); int getTableCount(); List<String> getAllTables(String databaseName); Table getTable(String databaseName, String tableName); void createDatabase(Database db); boolean alterDatabase(String dbName, Database db); boolean dropDatabase(String dbName); void createTable(Table table); boolean dropTable(String dbName, String tableName); int getPartitionCount(); Partition getPartition(String dbName, String tableName, List<String> partVals); List<TableMeta> getTableMeta(String dbNames, String tableNames, List<String> tableTypes); void createTableWithConstraints(Table tbl,
                                         List<SQLPrimaryKey> primaryKeys,
                                         List<SQLForeignKey> foreignKeys); boolean addPartitions(String dbName, String tblName, List<Partition> parts); boolean dropPartition(String dbName, String tableName, List<String> partVals); void alterTable(String dbname, String tableName, Table newTable); void alterIndex(String dbname, String baseTblName, String indexName, Index newIndex); void alterPartition(String dbname, String tableName, List<String> partVals, Partition newPart); void addPrimaryKeys(List<SQLPrimaryKey> pks); boolean addIndex(Index index); boolean dropIndex(String dbName, String origTableName, String indexName); Index getIndex(String dbName, String origTableName, String indexName);  }