public class MemStore extends Object implements CatalogStore
Constructor and Description |
---|
MemStore(org.apache.hadoop.conf.Configuration conf) |
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void createTablespace(String spaceName, String spaceUri) throws CatalogException
CatalogStore
createTablespace
in interface CatalogStore
CatalogException
public boolean existTablespace(String spaceName) throws CatalogException
existTablespace
in interface CatalogStore
CatalogException
public void dropTablespace(String spaceName) throws CatalogException
dropTablespace
in interface CatalogStore
CatalogException
public Collection<String> getAllTablespaceNames() throws CatalogException
getAllTablespaceNames
in interface CatalogStore
CatalogException
public CatalogProtos.TablespaceProto getTablespace(String spaceName) throws CatalogException
getTablespace
in interface CatalogStore
CatalogException
public void alterTablespace(CatalogProtos.AlterTablespaceProto alterProto) throws CatalogException
alterTablespace
in interface CatalogStore
CatalogException
public void createDatabase(String databaseName, String tablespaceName) throws CatalogException
CatalogStore
createDatabase
in interface CatalogStore
CatalogException
public boolean existDatabase(String databaseName) throws CatalogException
existDatabase
in interface CatalogStore
CatalogException
public void dropDatabase(String databaseName) throws CatalogException
dropDatabase
in interface CatalogStore
CatalogException
public Collection<String> getAllDatabaseNames() throws CatalogException
getAllDatabaseNames
in interface CatalogStore
CatalogException
public void createTable(CatalogProtos.TableDescProto request) throws CatalogException
CatalogStore
createTable
in interface CatalogStore
CatalogException
public boolean existTable(String dbName, String tbName) throws CatalogException
existTable
in interface CatalogStore
CatalogException
public void dropTable(String dbName, String tbName) throws CatalogException
dropTable
in interface CatalogStore
CatalogException
public void alterTable(CatalogProtos.AlterTableDescProto alterTableDescProto) throws CatalogException
alterTable
in interface CatalogStore
CatalogException
public CatalogProtos.TableDescProto getTable(String databaseName, String tableName) throws CatalogException
getTable
in interface CatalogStore
CatalogException
public List<String> getAllTableNames(String databaseName) throws CatalogException
getAllTableNames
in interface CatalogStore
CatalogException
public void addPartitionMethod(CatalogProtos.PartitionMethodProto partitionMethodProto) throws CatalogException
CatalogStore
addPartitionMethod
in interface CatalogStore
CatalogException
public CatalogProtos.PartitionMethodProto getPartitionMethod(String databaseName, String tableName) throws CatalogException
getPartitionMethod
in interface CatalogStore
CatalogException
public boolean existPartitionMethod(String databaseName, String tableName) throws CatalogException
existPartitionMethod
in interface CatalogStore
CatalogException
public void dropPartitionMethod(String databaseName, String tableName) throws CatalogException
dropPartitionMethod
in interface CatalogStore
CatalogException
public void addPartitions(CatalogProtos.PartitionsProto partitionDescList) throws CatalogException
CatalogStore
addPartitions
in interface CatalogStore
CatalogException
public void addPartition(String databaseName, String tableName, CatalogProtos.PartitionDescProto partitionDescProto) throws CatalogException
addPartition
in interface CatalogStore
CatalogException
public CatalogProtos.PartitionsProto getPartitions(String tableName) throws CatalogException
CatalogStore
getPartitions
in interface CatalogStore
tableName
- the table nameCatalogException
public CatalogProtos.PartitionDescProto getPartition(String partitionName) throws CatalogException
getPartition
in interface CatalogStore
CatalogException
public void delPartition(String partitionName) throws CatalogException
delPartition
in interface CatalogStore
CatalogException
public void dropPartitions(String tableName) throws CatalogException
dropPartitions
in interface CatalogStore
CatalogException
public void createIndex(CatalogProtos.IndexDescProto proto) throws CatalogException
CatalogStore
createIndex
in interface CatalogStore
CatalogException
public void dropIndex(String databaseName, String indexName) throws CatalogException
dropIndex
in interface CatalogStore
CatalogException
public CatalogProtos.IndexDescProto getIndexByName(String databaseName, String indexName) throws CatalogException
getIndexByName
in interface CatalogStore
CatalogException
public CatalogProtos.IndexDescProto getIndexByColumn(String databaseName, String tableName, String columnName) throws CatalogException
getIndexByColumn
in interface CatalogStore
CatalogException
public boolean existIndexByName(String databaseName, String indexName) throws CatalogException
existIndexByName
in interface CatalogStore
CatalogException
public boolean existIndexByColumn(String databaseName, String tableName, String columnName) throws CatalogException
existIndexByColumn
in interface CatalogStore
CatalogException
public CatalogProtos.IndexDescProto[] getIndexes(String databaseName, String tableName) throws CatalogException
getIndexes
in interface CatalogStore
CatalogException
public void addFunction(FunctionDesc func) throws CatalogException
CatalogStore
addFunction
in interface CatalogStore
CatalogException
public void deleteFunction(FunctionDesc func) throws CatalogException
deleteFunction
in interface CatalogStore
CatalogException
public void existFunction(FunctionDesc func) throws CatalogException
existFunction
in interface CatalogStore
CatalogException
public List<String> getAllFunctionNames() throws CatalogException
getAllFunctionNames
in interface CatalogStore
CatalogException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.