|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RawStore
Method Summary | |
---|---|
boolean |
addIndex(Index index)
|
boolean |
addPartition(Partition part)
|
boolean |
addRole(String rowName,
String ownerName)
|
boolean |
alterDatabase(String dbname,
Database db)
|
void |
alterIndex(String dbname,
String baseTblName,
String name,
Index newIndex)
|
void |
alterPartition(String db_name,
String tbl_name,
Partition new_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. |
void |
createDatabase(Database db)
|
void |
createTable(Table tbl)
|
boolean |
createType(Type type)
|
boolean |
dropDatabase(String dbname)
|
boolean |
dropIndex(String dbName,
String origTableName,
String indexName)
|
boolean |
dropPartition(String dbName,
String tableName,
List<String> part_vals)
|
boolean |
dropTable(String dbName,
String tableName)
|
boolean |
dropType(String typeName)
|
List<String> |
getAllDatabases()
|
List<String> |
getAllTables(String dbName)
|
PrincipalPrivilegeSet |
getColumnPrivilegeSet(String dbName,
String tableName,
String partitionName,
String columnName,
String userName,
List<String> groupNames)
|
Database |
getDatabase(String name)
|
List<String> |
getDatabases(String pattern)
|
PrincipalPrivilegeSet |
getDBPrivilegeSet(String dbName,
String userName,
List<String> groupNames)
|
Index |
getIndex(String dbName,
String origTableName,
String indexName)
|
List<Index> |
getIndexes(String dbName,
String origTableName,
int max)
|
Partition |
getPartition(String dbName,
String tableName,
List<String> part_vals)
|
PrincipalPrivilegeSet |
getPartitionPrivilegeSet(String dbName,
String tableName,
String partition,
String userName,
List<String> groupNames)
|
List<Partition> |
getPartitions(String dbName,
String tableName,
int max)
|
List<Partition> |
getPartitionsByFilter(String dbName,
String tblName,
String filter,
short maxParts)
|
List<Partition> |
getPartitionsWithAuth(String dbName,
String tblName,
short maxParts,
String userName,
List<String> groupNames)
|
Partition |
getPartitionWithAuth(String dbName,
String tblName,
List<String> partVals,
String user_name,
List<String> group_names)
|
Role |
getRole(String roleName)
|
Table |
getTable(String dbName,
String tableName)
|
PrincipalPrivilegeSet |
getTablePrivilegeSet(String dbName,
String tableName,
String userName,
List<String> groupNames)
|
List<String> |
getTables(String dbName,
String pattern)
|
Type |
getType(String typeName)
|
PrincipalPrivilegeSet |
getUserPrivilegeSet(String userName,
List<String> groupNames)
|
boolean |
grantPrivileges(PrivilegeBag privileges)
|
boolean |
grantRole(Role role,
String userName,
PrincipalType principalType,
String grantor,
PrincipalType grantorType,
boolean grantOption)
|
List<MTablePrivilege> |
listAllTableGrants(String principalName,
PrincipalType principalType,
String dbName,
String tableName)
|
List<String> |
listIndexNames(String dbName,
String origTableName,
short max)
|
List<String> |
listPartitionNames(String db_name,
String tbl_name,
short max_parts)
|
List<String> |
listPartitionNamesByFilter(String db_name,
String tbl_name,
String filter,
short max_parts)
|
List<MDBPrivilege> |
listPrincipalDBGrants(String principalName,
PrincipalType principalType,
String dbName)
|
List<MGlobalPrivilege> |
listPrincipalGlobalGrants(String principalName,
PrincipalType principalType)
|
List<MPartitionColumnPrivilege> |
listPrincipalPartitionColumnGrants(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
String partName,
String columnName)
|
List<MPartitionPrivilege> |
listPrincipalPartitionGrants(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
String partName)
|
List<MTableColumnPrivilege> |
listPrincipalTableColumnGrants(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
String columnName)
|
List<String> |
listRoleNames()
|
List<MRoleMap> |
listRoles(String principalName,
PrincipalType principalType)
|
boolean |
openTransaction()
Opens a new one or the one already created Every call of this function must have corresponding commit or rollback function call |
boolean |
removeRole(String roleName)
|
boolean |
revokePrivileges(PrivilegeBag privileges)
|
boolean |
revokeRole(Role role,
String userName,
PrincipalType principalType)
|
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()
void createDatabase(Database db) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
Database getDatabase(String name) throws NoSuchObjectException
NoSuchObjectException
boolean dropDatabase(String dbname) throws NoSuchObjectException, MetaException
NoSuchObjectException
MetaException
boolean alterDatabase(String dbname, Database db) throws NoSuchObjectException, MetaException
NoSuchObjectException
MetaException
List<String> getDatabases(String pattern) throws MetaException
MetaException
List<String> getAllDatabases() 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, NoSuchObjectException
MetaException
NoSuchObjectException
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> getAllTables(String dbName) throws MetaException
MetaException
List<String> listPartitionNames(String db_name, String tbl_name, short max_parts) throws MetaException
MetaException
List<String> listPartitionNamesByFilter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException
MetaException
void alterPartition(String db_name, String tbl_name, Partition new_part) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
boolean addIndex(Index index) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
Index getIndex(String dbName, String origTableName, String indexName) throws MetaException
MetaException
boolean dropIndex(String dbName, String origTableName, String indexName) throws MetaException
MetaException
List<Index> getIndexes(String dbName, String origTableName, int max) throws MetaException
MetaException
List<String> listIndexNames(String dbName, String origTableName, short max) throws MetaException
MetaException
void alterIndex(String dbname, String baseTblName, String name, Index newIndex) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
List<Partition> getPartitionsByFilter(String dbName, String tblName, String filter, short maxParts) throws MetaException, NoSuchObjectException
MetaException
NoSuchObjectException
boolean addRole(String rowName, String ownerName) throws InvalidObjectException, MetaException, NoSuchObjectException
InvalidObjectException
MetaException
NoSuchObjectException
boolean removeRole(String roleName) throws MetaException, NoSuchObjectException
MetaException
NoSuchObjectException
boolean grantRole(Role role, String userName, PrincipalType principalType, String grantor, PrincipalType grantorType, boolean grantOption) throws MetaException, NoSuchObjectException, InvalidObjectException
MetaException
NoSuchObjectException
InvalidObjectException
boolean revokeRole(Role role, String userName, PrincipalType principalType) throws MetaException, NoSuchObjectException
MetaException
NoSuchObjectException
PrincipalPrivilegeSet getUserPrivilegeSet(String userName, List<String> groupNames) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
PrincipalPrivilegeSet getDBPrivilegeSet(String dbName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
PrincipalPrivilegeSet getTablePrivilegeSet(String dbName, String tableName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
PrincipalPrivilegeSet getPartitionPrivilegeSet(String dbName, String tableName, String partition, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
PrincipalPrivilegeSet getColumnPrivilegeSet(String dbName, String tableName, String partitionName, String columnName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
InvalidObjectException
MetaException
List<MGlobalPrivilege> listPrincipalGlobalGrants(String principalName, PrincipalType principalType)
List<MDBPrivilege> listPrincipalDBGrants(String principalName, PrincipalType principalType, String dbName)
List<MTablePrivilege> listAllTableGrants(String principalName, PrincipalType principalType, String dbName, String tableName)
List<MPartitionPrivilege> listPrincipalPartitionGrants(String principalName, PrincipalType principalType, String dbName, String tableName, String partName)
List<MTableColumnPrivilege> listPrincipalTableColumnGrants(String principalName, PrincipalType principalType, String dbName, String tableName, String columnName)
List<MPartitionColumnPrivilege> listPrincipalPartitionColumnGrants(String principalName, PrincipalType principalType, String dbName, String tableName, String partName, String columnName)
boolean grantPrivileges(PrivilegeBag privileges) throws InvalidObjectException, MetaException, NoSuchObjectException
InvalidObjectException
MetaException
NoSuchObjectException
boolean revokePrivileges(PrivilegeBag privileges) throws InvalidObjectException, MetaException, NoSuchObjectException
InvalidObjectException
MetaException
NoSuchObjectException
Role getRole(String roleName) throws NoSuchObjectException
NoSuchObjectException
List<String> listRoleNames()
List<MRoleMap> listRoles(String principalName, PrincipalType principalType)
Partition getPartitionWithAuth(String dbName, String tblName, List<String> partVals, String user_name, List<String> group_names) throws MetaException, NoSuchObjectException, InvalidObjectException
MetaException
NoSuchObjectException
InvalidObjectException
List<Partition> getPartitionsWithAuth(String dbName, String tblName, short maxParts, String userName, List<String> groupNames) throws MetaException, NoSuchObjectException, InvalidObjectException
MetaException
NoSuchObjectException
InvalidObjectException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |