public abstract class AbstractCatalogClient extends Object implements CatalogService
Modifier and Type | Field and Description |
---|---|
protected InetSocketAddress |
catalogServerAddr |
protected TajoConf |
conf |
protected RpcConnectionPool |
pool |
Constructor and Description |
---|
AbstractCatalogClient(TajoConf conf,
InetSocketAddress catalogServerAddr) |
protected RpcConnectionPool pool
protected InetSocketAddress catalogServerAddr
protected TajoConf conf
public AbstractCatalogClient(TajoConf conf, InetSocketAddress catalogServerAddr)
public final Boolean createTablespace(String tablespaceName, String tablespaceUri)
createTablespace
in interface CatalogService
tablespaceName
- Tablespace name to be createdpublic final Boolean dropTablespace(String tablespaceName)
dropTablespace
in interface CatalogService
tablespaceName
- Tablespace name to be createdpublic final Boolean existTablespace(String tablespaceName)
existTablespace
in interface CatalogService
tablespaceName
- Tablespace name to be createdpublic final Collection<String> getAllTablespaceNames()
getAllTablespaceNames
in interface CatalogService
public CatalogProtos.TablespaceProto getTablespace(String tablespaceName)
getTablespace
in interface CatalogService
tablespaceName
- Tablespace name to getpublic Boolean alterTablespace(CatalogProtos.AlterTablespaceProto alterTablespace)
alterTablespace
in interface CatalogService
alterTablespace
- AlterTablespacepublic final Boolean createDatabase(String databaseName, @Nullable String tablespaceName)
createDatabase
in interface CatalogService
databaseName
- Database name to be createdpublic final Boolean dropDatabase(String databaseName)
dropDatabase
in interface CatalogService
databaseName
- Database name to be droppedpublic final Boolean existDatabase(String databaseName)
existDatabase
in interface CatalogService
databaseName
- Database name to be checkedpublic final Collection<String> getAllDatabaseNames()
getAllDatabaseNames
in interface CatalogService
public final TableDesc getTableDesc(String databaseName, String tableName)
CatalogService
getTableDesc
in interface CatalogService
tableName
- table nameTableDesc
public TableDesc getTableDesc(String qualifiedName)
CatalogService
getTableDesc
in interface CatalogService
TableDesc
public final PartitionMethodDesc getPartitionMethod(String databaseName, String tableName)
getPartitionMethod
in interface CatalogService
public final boolean existPartitionMethod(String databaseName, String tableName)
existPartitionMethod
in interface CatalogService
public final Collection<String> getAllTableNames(String databaseName)
getAllTableNames
in interface CatalogService
public final Collection<FunctionDesc> getFunctions()
getFunctions
in interface CatalogService
public final boolean createTable(TableDesc desc)
CatalogService
createTable
in interface CatalogService
TableDesc
public boolean dropTable(String tableName)
CatalogService
dropTable
in interface CatalogService
tableName
- table namepublic final boolean existsTable(String databaseName, String tableName)
existsTable
in interface CatalogService
public final boolean existsTable(String tableName)
existsTable
in interface CatalogService
public final boolean createIndex(IndexDesc index)
createIndex
in interface CatalogService
public final boolean existIndexByName(String databaseName, String indexName)
existIndexByName
in interface CatalogService
public boolean existIndexByColumn(String databaseName, String tableName, String columnName)
existIndexByColumn
in interface CatalogService
public final IndexDesc getIndexByName(String databaseName, String indexName)
getIndexByName
in interface CatalogService
public final IndexDesc getIndexByColumn(String databaseName, String tableName, String columnName)
getIndexByColumn
in interface CatalogService
public boolean dropIndex(String databaseName, String indexName)
dropIndex
in interface CatalogService
public final boolean createFunction(FunctionDesc funcDesc)
createFunction
in interface CatalogService
public final boolean dropFunction(String signature)
dropFunction
in interface CatalogService
public final FunctionDesc getFunction(String signature, TajoDataTypes.DataType... paramTypes)
getFunction
in interface CatalogService
public final FunctionDesc getFunction(String signature, CatalogProtos.FunctionType funcType, TajoDataTypes.DataType... paramTypes)
getFunction
in interface CatalogService
public final boolean containFunction(String signature, TajoDataTypes.DataType... paramTypes)
containFunction
in interface CatalogService
public final boolean containFunction(String signature, CatalogProtos.FunctionType funcType, TajoDataTypes.DataType... paramTypes)
containFunction
in interface CatalogService
public final boolean alterTable(AlterTableDesc desc)
CatalogService
alterTable
in interface CatalogService
AlterTableDesc
Copyright © 2014 Apache Software Foundation. All Rights Reserved.