|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RawStore
Method Summary | |
---|---|
boolean |
addPartition(Partition part)
|
void |
alterTable(String dbname,
String name,
Table newTable)
|
boolean |
commitTransaction()
if this is the commit of the first open call then an actual commit is called. |
boolean |
createDatabase(Database db)
|
boolean |
createDatabase(String name)
|
void |
createTable(Table tbl)
|
boolean |
createType(Type type)
|
boolean |
dropDatabase(String dbname)
|
boolean |
dropPartition(String dbName,
String tableName,
List<String> part_vals)
|
boolean |
dropTable(String dbName,
String tableName)
|
boolean |
dropType(String typeName)
|
Database |
getDatabase(String name)
|
List<String> |
getDatabases()
|
Partition |
getPartition(String dbName,
String tableName,
List<String> part_vals)
|
List<Partition> |
getPartitions(String dbName,
String tableName,
int max)
|
Table |
getTable(String dbName,
String tableName)
|
List<String> |
getTables(String dbName,
String pattern)
|
Type |
getType(String typeName)
|
List<String> |
listPartitionNames(String db_name,
String tbl_name,
short max_parts)
|
boolean |
openTransaction()
Opens a new one or the one already created Every call of this function must have corresponding commit or rollback function call |
void |
rollbackTransaction()
Rolls back the current transaction if it is active |
void |
shutdown()
|
Methods inherited from interface org.apache.hadoop.conf.Configurable |
---|
getConf, setConf |
Method Detail |
---|
void shutdown()
boolean openTransaction()
boolean commitTransaction()
void rollbackTransaction()
boolean createDatabase(Database db) throws MetaException
MetaException
boolean createDatabase(String name) throws MetaException
MetaException
Database getDatabase(String name) throws NoSuchObjectException
NoSuchObjectException
boolean dropDatabase(String dbname)
List<String> getDatabases() throws MetaException
MetaException
boolean createType(Type type)
Type getType(String typeName)
boolean dropType(String typeName)
void createTable(Table tbl) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
boolean dropTable(String dbName, String tableName) throws MetaException
MetaException
Table getTable(String dbName, String tableName) throws MetaException
MetaException
boolean addPartition(Partition part) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
Partition getPartition(String dbName, String tableName, List<String> part_vals) throws MetaException
MetaException
boolean dropPartition(String dbName, String tableName, List<String> part_vals) throws MetaException
MetaException
List<Partition> getPartitions(String dbName, String tableName, int max) throws MetaException
MetaException
void alterTable(String dbname, String name, Table newTable) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
List<String> getTables(String dbName, String pattern) throws MetaException
MetaException
List<String> listPartitionNames(String db_name, String tbl_name, short max_parts) throws MetaException
MetaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |