public interface CatalogService
Boolean createTablespace(String tableSpaceName, String uri)
tableSpaceName
- Tablespace name to be createdBoolean existTablespace(String tableSpaceName)
tableSpaceName
- Tablespace name to be createdBoolean dropTablespace(String tableSpaceName)
tableSpaceName
- Tablespace name to be createdCollection<String> getAllTablespaceNames()
CatalogProtos.TablespaceProto getTablespace(String tablespaceName)
tablespaceName
- Tablespace name to getBoolean alterTablespace(CatalogProtos.AlterTablespaceProto alterTablespace)
alterTablespace
- AlterTablespaceBoolean createDatabase(String databaseName, String tablespaceName)
databaseName
- Database name to be createdBoolean dropDatabase(String databaseName)
databaseName
- Database name to be droppedBoolean existDatabase(String databaseName)
databaseName
- Database name to be checkedCollection<String> getAllDatabaseNames()
TableDesc getTableDesc(String databaseName, String tableName)
Collection<String> getAllTableNames(String databaseName)
Collection<FunctionDesc> getFunctions()
boolean createTable(TableDesc desc)
boolean dropTable(String tableName)
tableName
- table nameThrowable
boolean existsTable(String tableName)
PartitionMethodDesc getPartitionMethod(String databaseName, String tableName)
boolean createIndex(IndexDesc index)
boolean existIndexByColumn(String databaseName, String tableName, String columnName)
IndexDesc getIndexByColumn(String databaseName, String tableName, String columnName)
boolean createFunction(FunctionDesc funcDesc)
boolean dropFunction(String signature)
FunctionDesc getFunction(String signature, TajoDataTypes.DataType... paramTypes)
FunctionDesc getFunction(String signature, CatalogProtos.FunctionType funcType, TajoDataTypes.DataType... paramTypes)
boolean containFunction(String signature, TajoDataTypes.DataType... paramTypes)
boolean containFunction(String signature, CatalogProtos.FunctionType funcType, TajoDataTypes.DataType... paramTypes)
boolean alterTable(AlterTableDesc desc)
Throwable
AlterTableDesc
Copyright © 2014 Apache Software Foundation. All Rights Reserved.