|
||||||||||
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,
List<String> part_vals,
Partition new_part)
|
void |
alterTable(String dbname,
String name,
Table newTable)
|
long |
cleanupEvents()
|
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> |
getPartitionsByNames(String dbName,
String tblName,
List<String> partNames)
|
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)
|
List<Table> |
getTableObjectsByName(String dbname,
List<String> tableNames)
|
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)
|
boolean |
isPartitionMarkedForEvent(String dbName,
String tblName,
Map<String,String> partName,
PartitionEventType evtType)
|
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<String> |
listPartitionNamesPs(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
Lists partition names that match a given partial specification |
List<Partition> |
listPartitionsPsWithAuth(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String userName,
List<String> groupNames)
Lists partitions that match a given partial specification and sets their auth privileges. |
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)
|
List<String> |
listTableNamesByFilter(String dbName,
String filter,
short max_tables)
Gets a list of tables based on a filter string and filter type. |
Table |
markPartitionForEvent(String dbName,
String tblName,
Map<String,String> partVals,
PartitionEventType evtType)
|
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<Table> getTableObjectsByName(String dbname, List<String> tableNames) throws MetaException, UnknownDBException
dbname
- The name of the database from which to retrieve the tablestableNames
- The names of the tables to retrieve.
MetaException
UnknownDBException
List<String> getAllTables(String dbName) throws MetaException
MetaException
List<String> listTableNamesByFilter(String dbName, String filter, short max_tables) throws MetaException, UnknownDBException
dbName
- The name of the database from which you will retrieve the table namesfilter
- The filter stringmax_tables
- The maximum number of tables returned
MetaException
UnknownDBException
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, List<String> part_vals, 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
List<Partition> getPartitionsByNames(String dbName, String tblName, List<String> partNames) throws MetaException, NoSuchObjectException
MetaException
NoSuchObjectException
Table markPartitionForEvent(String dbName, String tblName, Map<String,String> partVals, PartitionEventType evtType) throws MetaException, UnknownTableException, InvalidPartitionException, UnknownPartitionException
MetaException
UnknownTableException
InvalidPartitionException
UnknownPartitionException
boolean isPartitionMarkedForEvent(String dbName, String tblName, Map<String,String> partName, PartitionEventType evtType) throws MetaException, UnknownTableException, InvalidPartitionException, UnknownPartitionException
MetaException
UnknownTableException
InvalidPartitionException
UnknownPartitionException
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
List<String> listPartitionNamesPs(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, NoSuchObjectException
db_name
- The name of the database which has the partitionstbl_name
- The name of the table which has the partitionspart_vals
- A partial list of values for partitions in order of the table's partition keys.
Entries can be empty if you only want to specify latter partitions.max_parts
- The maximum number of partitions to return
MetaException
NoSuchObjectException
List<Partition> listPartitionsPsWithAuth(String db_name, String tbl_name, List<String> part_vals, short max_parts, String userName, List<String> groupNames) throws MetaException, InvalidObjectException, NoSuchObjectException
db_name
- The name of the database which has the partitionstbl_name
- The name of the table which has the partitionspart_vals
- A partial list of values for partitions in order of the table's partition keys
Entries can be empty if you need to specify latter partitions.max_parts
- The maximum number of partitions to returnuserName
- The user name for the partition for authentication privilegesgroupNames
- The groupNames for the partition for authentication privileges
MetaException
NoSuchObjectException
InvalidObjectException
long cleanupEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |