org.apache.hadoop.hive.metastore
Class HiveMetaStore.HMSHandler
java.lang.Object
com.facebook.fb303.FacebookBase
org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler
- All Implemented Interfaces:
- com.facebook.fb303.FacebookService.Iface, ThriftHiveMetastore.Iface
- Direct Known Subclasses:
- HiveServer.HiveServerHandler
- Enclosing class:
- HiveMetaStore
public static class HiveMetaStore.HMSHandler
- extends com.facebook.fb303.FacebookBase
- implements ThriftHiveMetastore.Iface
Nested Class Summary |
static class |
HiveMetaStore.HMSHandler.Command<T>
A Command is a closure used to pass a block of code from individual
functions to executeWithRetry, which centralizes connection error
handling. |
Method Summary |
Index |
add_index(Index newIndex,
Table indexTable)
|
Partition |
add_partition(Partition part)
|
int |
add_partitions(List<Partition> parts)
|
void |
alter_database(String dbName,
Database db)
|
void |
alter_index(String dbname,
String base_table_name,
String index_name,
Index newIndex)
|
void |
alter_partition(String db_name,
String tbl_name,
Partition new_part)
|
void |
alter_table(String dbname,
String name,
Table newTable)
|
Partition |
append_partition_by_name(String db_name,
String tbl_name,
String part_name)
|
Partition |
append_partition(String dbName,
String tableName,
List<String> part_vals)
|
void |
cancel_delegation_token(String token_str_form)
|
void |
create_database(Database db)
|
boolean |
create_index(Index index_def)
|
boolean |
create_role(Role role)
|
void |
create_table(Table tbl)
|
boolean |
create_type(Type type)
|
void |
drop_database(String dbName,
boolean deleteData,
boolean cascade)
|
boolean |
drop_index_by_name(String dbName,
String tblName,
String indexName,
boolean deleteData)
|
boolean |
drop_partition_by_name(String db_name,
String tbl_name,
String part_name,
boolean deleteData)
|
boolean |
drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
|
boolean |
drop_role(String roleName)
|
void |
drop_table(String dbname,
String name,
boolean deleteData)
|
boolean |
drop_type(String name)
|
void |
endFunction(String function,
boolean successful)
|
void |
endFunction(String function,
MetaStoreEndFunctionContext context)
|
|
executeWithRetry(HiveMetaStore.HMSHandler.Command<T> cmd)
|
List<String> |
get_all_databases()
|
List<String> |
get_all_tables(String dbname)
|
PrincipalPrivilegeSet |
get_column_privilege_set(String dbName,
String tableName,
String partName,
String columnName,
String userName,
List<String> groupNames)
|
String |
get_config_value(String name,
String defaultValue)
Returns the value of the given configuration variable name. |
Database |
get_database(String name)
|
List<String> |
get_databases(String pattern)
|
PrincipalPrivilegeSet |
get_db_privilege_set(String dbName,
String userName,
List<String> groupNames)
|
String |
get_delegation_token(String token_owner,
String renewer_kerberos_principal_name)
|
List<FieldSchema> |
get_fields(String db,
String tableName)
|
Index |
get_index_by_name(String dbName,
String tblName,
String indexName)
|
List<String> |
get_index_names(String dbName,
String tblName,
short maxIndexes)
|
List<Index> |
get_indexes(String dbName,
String tblName,
short maxIndexes)
|
Partition |
get_partition_by_name(String db_name,
String tbl_name,
String part_name)
|
List<String> |
get_partition_names_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
|
List<String> |
get_partition_names(String db_name,
String tbl_name,
short max_parts)
|
PrincipalPrivilegeSet |
get_partition_privilege_set(String dbName,
String tableName,
String partName,
String userName,
List<String> groupNames)
|
Partition |
get_partition_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
String user_name,
List<String> group_names)
|
Partition |
get_partition(String db_name,
String tbl_name,
List<String> part_vals)
|
List<Partition> |
get_partitions_by_filter(String dbName,
String tblName,
String filter,
short maxParts)
|
List<Partition> |
get_partitions_by_names(String dbName,
String tblName,
List<String> partNames)
|
List<Partition> |
get_partitions_ps_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String userName,
List<String> groupNames)
|
List<Partition> |
get_partitions_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
|
List<Partition> |
get_partitions_with_auth(String dbName,
String tblName,
short maxParts,
String userName,
List<String> groupNames)
|
List<Partition> |
get_partitions(String db_name,
String tbl_name,
short max_parts)
|
PrincipalPrivilegeSet |
get_privilege_set(HiveObjectRef hiveObject,
String userName,
List<String> groupNames)
|
List<String> |
get_role_names()
|
List<FieldSchema> |
get_schema(String db,
String tableName)
Return the schema of the table. |
List<String> |
get_table_names_by_filter(String dbName,
String filter,
short maxTables)
|
List<Table> |
get_table_objects_by_name(String dbname,
List<String> names)
Gets multiple tables from the hive metastore. |
PrincipalPrivilegeSet |
get_table_privilege_set(String dbName,
String tableName,
String userName,
List<String> groupNames)
|
Table |
get_table(String dbname,
String name)
|
List<String> |
get_tables(String dbname,
String pattern)
|
Map<String,Type> |
get_type_all(String name)
|
Type |
get_type(String name)
|
PrincipalPrivilegeSet |
get_user_privilege_set(String userName,
List<String> groupNames)
|
static Integer |
get()
|
AbstractMap<String,Long> |
getCounters()
|
String |
getCpuProfile(int profileDurationInSec)
|
HiveConf |
getHiveConf()
|
RawStore |
getMS(boolean reloadConf)
Get a cached RawStore. |
PrincipalType |
getPrincipalType(String principalType)
|
com.facebook.fb303.fb_status |
getStatus()
|
String |
getVersion()
|
boolean |
grant_privileges(PrivilegeBag privileges)
|
boolean |
grant_role(String roleName,
String userName,
PrincipalType principalType,
String grantor,
PrincipalType grantorType,
boolean grantOption)
|
boolean |
isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> partName,
PartitionEventType evtType)
|
List<HiveObjectPrivilege> |
list_column_privileges(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
List<String> partValues,
String columnName)
|
List<HiveObjectPrivilege> |
list_db_privileges(String principalName,
PrincipalType principalType,
String dbName)
|
List<HiveObjectPrivilege> |
list_global_privileges(String principalName,
PrincipalType principalType)
|
List<HiveObjectPrivilege> |
list_partition_privileges(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
List<String> partValues)
|
List<HiveObjectPrivilege> |
list_privileges(String principalName,
PrincipalType principalType,
HiveObjectRef hiveObject)
|
List<Role> |
list_roles(String principalName,
PrincipalType principalType)
|
List<HiveObjectPrivilege> |
list_table_privileges(String principalName,
PrincipalType principalType,
String dbName,
String tableName)
|
void |
markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> partName,
PartitionEventType evtType)
|
Map<String,String> |
partition_name_to_spec(String part_name)
|
List<String> |
partition_name_to_vals(String part_name)
|
void |
rename_partition(String db_name,
String tbl_name,
List<String> part_vals,
Partition new_part)
|
long |
renew_delegation_token(String token_str_form)
|
boolean |
revoke_privileges(PrivilegeBag privileges)
|
boolean |
revoke_role(String roleName,
String userName,
PrincipalType principalType)
|
boolean |
set_table_parameters(String dbname,
String name,
Map<String,String> params)
|
void |
shutdown()
|
String |
startFunction(String function)
|
String |
startFunction(String function,
String extraLogInfo)
|
String |
startMultiTableFunction(String function,
String db,
List<String> tbls)
|
String |
startPartitionFunction(String function,
String db,
String tbl,
List<String> partVals)
|
String |
startPartitionFunction(String function,
String db,
String tbl,
Map<String,String> partName)
|
String |
startTableFunction(String function,
String db,
String tbl)
|
Methods inherited from class com.facebook.fb303.FacebookBase |
aliveSince, deleteCounter, getCounter, getCpuProfile, getName, getOption, getOptions, getStatusDetails, incrementCounter, incrementCounter, reinitialize, resetCounter, setCounter, setOption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
aliveSince, getCounter, getName, getOption, getOptions, getStatusDetails, reinitialize, setOption |
LOG
public static final org.apache.commons.logging.Log LOG
AUDIT_FORMAT
public static final String AUDIT_FORMAT
- See Also:
- Constant Field Values
auditLog
public static final org.apache.commons.logging.Log auditLog
HiveMetaStore.HMSHandler
public HiveMetaStore.HMSHandler(String name)
throws MetaException
- Throws:
MetaException
HiveMetaStore.HMSHandler
public HiveMetaStore.HMSHandler(String name,
HiveConf conf)
throws MetaException
- Throws:
MetaException
get
public static Integer get()
getHiveConf
public HiveConf getHiveConf()
executeWithRetry
@InterfaceAudience.LimitedPrivate(value="HCATALOG")
@InterfaceStability.Evolving
public <T> T executeWithRetry(HiveMetaStore.HMSHandler.Command<T> cmd)
throws Exception
- Throws:
Exception
getMS
@InterfaceAudience.LimitedPrivate(value="HCATALOG")
@InterfaceStability.Evolving
public RawStore getMS(boolean reloadConf)
throws MetaException
- Get a cached RawStore.
- Returns:
-
- Throws:
MetaException
startFunction
public String startFunction(String function,
String extraLogInfo)
startFunction
public String startFunction(String function)
startTableFunction
public String startTableFunction(String function,
String db,
String tbl)
startMultiTableFunction
public String startMultiTableFunction(String function,
String db,
List<String> tbls)
startPartitionFunction
public String startPartitionFunction(String function,
String db,
String tbl,
List<String> partVals)
startPartitionFunction
public String startPartitionFunction(String function,
String db,
String tbl,
Map<String,String> partName)
endFunction
public void endFunction(String function,
boolean successful)
endFunction
public void endFunction(String function,
MetaStoreEndFunctionContext context)
getStatus
public com.facebook.fb303.fb_status getStatus()
- Specified by:
getStatus
in interface com.facebook.fb303.FacebookService.Iface
- Specified by:
getStatus
in class com.facebook.fb303.FacebookBase
shutdown
public void shutdown()
- Specified by:
shutdown
in interface com.facebook.fb303.FacebookService.Iface
- Overrides:
shutdown
in class com.facebook.fb303.FacebookBase
getCounters
public AbstractMap<String,Long> getCounters()
- Specified by:
getCounters
in interface com.facebook.fb303.FacebookService.Iface
- Overrides:
getCounters
in class com.facebook.fb303.FacebookBase
create_database
public void create_database(Database db)
throws AlreadyExistsException,
InvalidObjectException,
MetaException
- Specified by:
create_database
in interface ThriftHiveMetastore.Iface
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
get_database
public Database get_database(String name)
throws NoSuchObjectException,
MetaException
- Specified by:
get_database
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
alter_database
public void alter_database(String dbName,
Database db)
throws NoSuchObjectException,
org.apache.thrift.TException,
MetaException
- Specified by:
alter_database
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
org.apache.thrift.TException
MetaException
drop_database
public void drop_database(String dbName,
boolean deleteData,
boolean cascade)
throws NoSuchObjectException,
InvalidOperationException,
MetaException
- Specified by:
drop_database
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
InvalidOperationException
MetaException
get_databases
public List<String> get_databases(String pattern)
throws MetaException
- Specified by:
get_databases
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
get_all_databases
public List<String> get_all_databases()
throws MetaException
- Specified by:
get_all_databases
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
create_type
public boolean create_type(Type type)
throws AlreadyExistsException,
MetaException,
InvalidObjectException
- Specified by:
create_type
in interface ThriftHiveMetastore.Iface
- Throws:
AlreadyExistsException
MetaException
InvalidObjectException
get_type
public Type get_type(String name)
throws MetaException,
NoSuchObjectException
- Specified by:
get_type
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
drop_type
public boolean drop_type(String name)
throws MetaException
- Specified by:
drop_type
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
get_type_all
public Map<String,Type> get_type_all(String name)
throws MetaException
- Specified by:
get_type_all
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
create_table
public void create_table(Table tbl)
throws AlreadyExistsException,
MetaException,
InvalidObjectException
- Specified by:
create_table
in interface ThriftHiveMetastore.Iface
- Throws:
AlreadyExistsException
MetaException
InvalidObjectException
drop_table
public void drop_table(String dbname,
String name,
boolean deleteData)
throws NoSuchObjectException,
MetaException
- Specified by:
drop_table
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
get_table
public Table get_table(String dbname,
String name)
throws MetaException,
NoSuchObjectException
- Specified by:
get_table
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
get_table_objects_by_name
public List<Table> get_table_objects_by_name(String dbname,
List<String> names)
throws MetaException,
InvalidOperationException,
UnknownDBException
- Gets multiple tables from the hive metastore.
- Specified by:
get_table_objects_by_name
in interface ThriftHiveMetastore.Iface
- Parameters:
dbname
- The name of the database in which the tables residenames
- The names of the tables to get.
- Returns:
- A list of tables whose names are in the the list "names" and
are retrievable from the database specified by "dbnames."
There is no guarantee of the order of the returned tables.
If there are duplicate names, only one instance of the table will be returned.
- Throws:
MetaException
InvalidOperationException
UnknownDBException
get_table_names_by_filter
public List<String> get_table_names_by_filter(String dbName,
String filter,
short maxTables)
throws MetaException,
InvalidOperationException,
UnknownDBException
- Specified by:
get_table_names_by_filter
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
InvalidOperationException
UnknownDBException
set_table_parameters
public boolean set_table_parameters(String dbname,
String name,
Map<String,String> params)
throws NoSuchObjectException,
MetaException
- Throws:
NoSuchObjectException
MetaException
append_partition
public Partition append_partition(String dbName,
String tableName,
List<String> part_vals)
throws InvalidObjectException,
AlreadyExistsException,
MetaException
- Specified by:
append_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
add_partitions
public int add_partitions(List<Partition> parts)
throws MetaException,
InvalidObjectException,
AlreadyExistsException
- Specified by:
add_partitions
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
InvalidObjectException
AlreadyExistsException
add_partition
public Partition add_partition(Partition part)
throws InvalidObjectException,
AlreadyExistsException,
MetaException
- Specified by:
add_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
drop_partition
public boolean drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
drop_partition
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition
public Partition get_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws MetaException,
NoSuchObjectException
- Specified by:
get_partition
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
get_partition_with_auth
public Partition get_partition_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
String user_name,
List<String> group_names)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
get_partition_with_auth
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_partitions
public List<Partition> get_partitions(String db_name,
String tbl_name,
short max_parts)
throws NoSuchObjectException,
MetaException
- Specified by:
get_partitions
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
get_partitions_with_auth
public List<Partition> get_partitions_with_auth(String dbName,
String tblName,
short maxParts,
String userName,
List<String> groupNames)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
get_partitions_with_auth
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition_names
public List<String> get_partition_names(String db_name,
String tbl_name,
short max_parts)
throws MetaException
- Specified by:
get_partition_names
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
alter_partition
public void alter_partition(String db_name,
String tbl_name,
Partition new_part)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Specified by:
alter_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
rename_partition
public void rename_partition(String db_name,
String tbl_name,
List<String> part_vals,
Partition new_part)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Specified by:
rename_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
create_index
public boolean create_index(Index index_def)
throws IndexAlreadyExistsException,
MetaException
- Throws:
IndexAlreadyExistsException
MetaException
alter_index
public void alter_index(String dbname,
String base_table_name,
String index_name,
Index newIndex)
throws InvalidOperationException,
MetaException
- Specified by:
alter_index
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidOperationException
MetaException
getVersion
public String getVersion()
throws org.apache.thrift.TException
- Specified by:
getVersion
in interface com.facebook.fb303.FacebookService.Iface
- Throws:
org.apache.thrift.TException
alter_table
public void alter_table(String dbname,
String name,
Table newTable)
throws InvalidOperationException,
MetaException
- Specified by:
alter_table
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidOperationException
MetaException
get_tables
public List<String> get_tables(String dbname,
String pattern)
throws MetaException
- Specified by:
get_tables
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
get_all_tables
public List<String> get_all_tables(String dbname)
throws MetaException
- Specified by:
get_all_tables
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
get_fields
public List<FieldSchema> get_fields(String db,
String tableName)
throws MetaException,
UnknownTableException,
UnknownDBException
- Specified by:
get_fields
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
UnknownTableException
UnknownDBException
get_schema
public List<FieldSchema> get_schema(String db,
String tableName)
throws MetaException,
UnknownTableException,
UnknownDBException
- Return the schema of the table. This function includes partition columns
in addition to the regular columns.
- Specified by:
get_schema
in interface ThriftHiveMetastore.Iface
- Parameters:
db
- Name of the databasetableName
- Name of the table
- Returns:
- List of columns, each column is a FieldSchema structure
- Throws:
MetaException
UnknownTableException
UnknownDBException
getCpuProfile
public String getCpuProfile(int profileDurationInSec)
throws org.apache.thrift.TException
- Specified by:
getCpuProfile
in interface com.facebook.fb303.FacebookService.Iface
- Throws:
org.apache.thrift.TException
get_config_value
public String get_config_value(String name,
String defaultValue)
throws org.apache.thrift.TException,
ConfigValSecurityException
- Returns the value of the given configuration variable name. If the
configuration variable with the given name doesn't exist, or if there
were an exception thrown while retrieving the variable, or if name is
null, defaultValue is returned.
- Specified by:
get_config_value
in interface ThriftHiveMetastore.Iface
- Throws:
org.apache.thrift.TException
ConfigValSecurityException
get_partition_by_name
public Partition get_partition_by_name(String db_name,
String tbl_name,
String part_name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
get_partition_by_name
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
append_partition_by_name
public Partition append_partition_by_name(String db_name,
String tbl_name,
String part_name)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Specified by:
append_partition_by_name
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
drop_partition_by_name
public boolean drop_partition_by_name(String db_name,
String tbl_name,
String part_name,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
drop_partition_by_name
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partitions_ps
public List<Partition> get_partitions_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_partitions_ps
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_partitions_ps_with_auth
public List<Partition> get_partitions_ps_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_partitions_ps_with_auth
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_partition_names_ps
public List<String> get_partition_names_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_partition_names_ps
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
partition_name_to_vals
public List<String> partition_name_to_vals(String part_name)
throws MetaException,
org.apache.thrift.TException
- Specified by:
partition_name_to_vals
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
partition_name_to_spec
public Map<String,String> partition_name_to_spec(String part_name)
throws MetaException,
org.apache.thrift.TException
- Specified by:
partition_name_to_spec
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
add_index
public Index add_index(Index newIndex,
Table indexTable)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Specified by:
add_index
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
drop_index_by_name
public boolean drop_index_by_name(String dbName,
String tblName,
String indexName,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
drop_index_by_name
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_index_by_name
public Index get_index_by_name(String dbName,
String tblName,
String indexName)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
get_index_by_name
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_index_names
public List<String> get_index_names(String dbName,
String tblName,
short maxIndexes)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_index_names
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_indexes
public List<Index> get_indexes(String dbName,
String tblName,
short maxIndexes)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
get_indexes
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partitions_by_filter
public List<Partition> get_partitions_by_filter(String dbName,
String tblName,
String filter,
short maxParts)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
get_partitions_by_filter
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_partitions_by_names
public List<Partition> get_partitions_by_names(String dbName,
String tblName,
List<String> partNames)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
get_partitions_by_names
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_privilege_set
public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_privilege_set
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_column_privilege_set
public PrincipalPrivilegeSet get_column_privilege_set(String dbName,
String tableName,
String partName,
String columnName,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_db_privilege_set
public PrincipalPrivilegeSet get_db_privilege_set(String dbName,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_partition_privilege_set
public PrincipalPrivilegeSet get_partition_privilege_set(String dbName,
String tableName,
String partName,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_table_privilege_set
public PrincipalPrivilegeSet get_table_privilege_set(String dbName,
String tableName,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
grant_role
public boolean grant_role(String roleName,
String userName,
PrincipalType principalType,
String grantor,
PrincipalType grantorType,
boolean grantOption)
throws MetaException,
org.apache.thrift.TException
- Specified by:
grant_role
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
list_roles
public List<Role> list_roles(String principalName,
PrincipalType principalType)
throws MetaException,
org.apache.thrift.TException
- Specified by:
list_roles
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
create_role
public boolean create_role(Role role)
throws MetaException,
org.apache.thrift.TException
- Specified by:
create_role
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
drop_role
public boolean drop_role(String roleName)
throws MetaException,
org.apache.thrift.TException
- Specified by:
drop_role
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_role_names
public List<String> get_role_names()
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_role_names
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
grant_privileges
public boolean grant_privileges(PrivilegeBag privileges)
throws MetaException,
org.apache.thrift.TException
- Specified by:
grant_privileges
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
revoke_role
public boolean revoke_role(String roleName,
String userName,
PrincipalType principalType)
throws MetaException,
org.apache.thrift.TException
- Specified by:
revoke_role
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
revoke_privileges
public boolean revoke_privileges(PrivilegeBag privileges)
throws MetaException,
org.apache.thrift.TException
- Specified by:
revoke_privileges
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_user_privilege_set
public PrincipalPrivilegeSet get_user_privilege_set(String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
getPrincipalType
public PrincipalType getPrincipalType(String principalType)
list_privileges
public List<HiveObjectPrivilege> list_privileges(String principalName,
PrincipalType principalType,
HiveObjectRef hiveObject)
throws MetaException,
org.apache.thrift.TException
- Specified by:
list_privileges
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
list_column_privileges
public List<HiveObjectPrivilege> list_column_privileges(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
List<String> partValues,
String columnName)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
list_db_privileges
public List<HiveObjectPrivilege> list_db_privileges(String principalName,
PrincipalType principalType,
String dbName)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
list_partition_privileges
public List<HiveObjectPrivilege> list_partition_privileges(String principalName,
PrincipalType principalType,
String dbName,
String tableName,
List<String> partValues)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
list_table_privileges
public List<HiveObjectPrivilege> list_table_privileges(String principalName,
PrincipalType principalType,
String dbName,
String tableName)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
list_global_privileges
public List<HiveObjectPrivilege> list_global_privileges(String principalName,
PrincipalType principalType)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
cancel_delegation_token
public void cancel_delegation_token(String token_str_form)
throws MetaException,
org.apache.thrift.TException
- Specified by:
cancel_delegation_token
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
renew_delegation_token
public long renew_delegation_token(String token_str_form)
throws MetaException,
org.apache.thrift.TException
- Specified by:
renew_delegation_token
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
get_delegation_token
public String get_delegation_token(String token_owner,
String renewer_kerberos_principal_name)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_delegation_token
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
markPartitionForEvent
public void markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> partName,
PartitionEventType evtType)
throws MetaException,
org.apache.thrift.TException,
NoSuchObjectException,
UnknownDBException,
UnknownTableException,
InvalidPartitionException,
UnknownPartitionException
- Specified by:
markPartitionForEvent
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
NoSuchObjectException
UnknownDBException
UnknownTableException
InvalidPartitionException
UnknownPartitionException
isPartitionMarkedForEvent
public boolean isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> partName,
PartitionEventType evtType)
throws MetaException,
NoSuchObjectException,
UnknownDBException,
UnknownTableException,
org.apache.thrift.TException,
UnknownPartitionException,
InvalidPartitionException
- Specified by:
isPartitionMarkedForEvent
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
UnknownDBException
UnknownTableException
org.apache.thrift.TException
UnknownPartitionException
InvalidPartitionException
Copyright © 2011 The Apache Software Foundation