public static class HiveMetaStore.HMSHandler extends com.facebook.fb303.FacebookBase implements IHMSHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
AUDIT_FORMAT |
static org.apache.commons.logging.Log |
auditLog |
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
HiveMetaStore.HMSHandler(String name) |
HiveMetaStore.HMSHandler(String name,
HiveConf conf) |
HiveMetaStore.HMSHandler(String name,
HiveConf conf,
boolean init) |
aliveSince, deleteCounter, getCounter, getCpuProfile, getName, getOption, getOptions, getStatusDetails, incrementCounter, incrementCounter, reinitialize, resetCounter, setCounter, setOptionpublic static final org.apache.commons.logging.Log LOG
public static final String AUDIT_FORMAT
public static final org.apache.commons.logging.Log auditLog
public HiveMetaStore.HMSHandler(String name) throws MetaException
MetaExceptionpublic HiveMetaStore.HMSHandler(String name, HiveConf conf) throws MetaException
MetaExceptionpublic HiveMetaStore.HMSHandler(String name, HiveConf conf, boolean init) throws MetaException
MetaExceptionpublic static RawStore getRawStore()
public static void removeRawStore()
public static void setIpAddress(String ipAddress)
public static String getIpAddress()
public static Integer get()
public HiveConf getHiveConf()
public void init()
throws MetaException
init in interface IHMSHandlerMetaExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic Warehouse getWh()
public void setMetaConf(String key, String value) throws MetaException
setMetaConf in interface ThriftHiveMetastore.IfaceMetaExceptionpublic String getMetaConf(String key) throws MetaException
getMetaConf in interface ThriftHiveMetastore.IfaceMetaException@InterfaceAudience.LimitedPrivate(value="HCATALOG") @InterfaceStability.Evolving public RawStore getMS() throws MetaException
MetaExceptionpublic com.facebook.fb303.fb_status getStatus()
getStatus in interface com.facebook.fb303.FacebookService.IfacegetStatus in class com.facebook.fb303.FacebookBasepublic void shutdown()
shutdown in interface com.facebook.fb303.FacebookService.Ifaceshutdown in class com.facebook.fb303.FacebookBasepublic AbstractMap<String,Long> getCounters()
getCounters in interface com.facebook.fb303.FacebookService.IfacegetCounters in class com.facebook.fb303.FacebookBasepublic void create_database(Database db) throws AlreadyExistsException, InvalidObjectException, MetaException
create_database in interface ThriftHiveMetastore.IfaceAlreadyExistsExceptionInvalidObjectExceptionMetaExceptionpublic Database get_database(String name) throws NoSuchObjectException, MetaException
get_database in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionpublic Database get_database_core(String name) throws NoSuchObjectException, MetaException
name - NoSuchObjectExceptionMetaExceptionpublic void alter_database(String dbName, Database db) throws NoSuchObjectException, org.apache.thrift.TException, MetaException
alter_database in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionorg.apache.thrift.TExceptionMetaExceptionpublic void drop_database(String dbName, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException
drop_database in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic List<String> get_databases(String pattern) throws MetaException
get_databases in interface ThriftHiveMetastore.IfaceMetaExceptionpublic List<String> get_all_databases() throws MetaException
get_all_databases in interface ThriftHiveMetastore.IfaceMetaExceptionpublic boolean create_type(Type type) throws AlreadyExistsException, MetaException, InvalidObjectException
create_type in interface ThriftHiveMetastore.IfaceAlreadyExistsExceptionMetaExceptionInvalidObjectExceptionpublic Type get_type(String name) throws MetaException, NoSuchObjectException
get_type in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionpublic boolean drop_type(String name) throws MetaException, NoSuchObjectException
drop_type in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionpublic Map<String,Type> get_type_all(String name) throws MetaException
get_type_all in interface ThriftHiveMetastore.IfaceMetaExceptionpublic void create_table(Table tbl) throws AlreadyExistsException, MetaException, InvalidObjectException
create_table in interface ThriftHiveMetastore.IfaceAlreadyExistsExceptionMetaExceptionInvalidObjectExceptionpublic void create_table_with_environment_context(Table tbl, EnvironmentContext envContext) throws AlreadyExistsException, MetaException, InvalidObjectException
create_table_with_environment_context in interface ThriftHiveMetastore.IfaceAlreadyExistsExceptionMetaExceptionInvalidObjectExceptionpublic void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException
drop_table in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionpublic void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException
drop_table_with_environment_context in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionpublic Table get_table(String dbname, String name) throws MetaException, NoSuchObjectException
get_table in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionpublic Table get_table_core(String dbname, String name) throws MetaException, NoSuchObjectException
dbname - name - MetaExceptionNoSuchObjectExceptionpublic List<Table> get_table_objects_by_name(String dbname, List<String> names) throws MetaException, InvalidOperationException, UnknownDBException
get_table_objects_by_name in interface ThriftHiveMetastore.Ifacedbname - The name of the database in which the tables residenames - The names of the tables to get.MetaExceptionInvalidOperationExceptionUnknownDBExceptionpublic List<String> get_table_names_by_filter(String dbName, String filter, short maxTables) throws MetaException, InvalidOperationException, UnknownDBException
get_table_names_by_filter in interface ThriftHiveMetastore.IfaceMetaExceptionInvalidOperationExceptionUnknownDBExceptionpublic Partition append_partition(String dbName, String tableName, List<String> part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException
append_partition in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionpublic Partition append_partition_with_environment_context(String dbName, String tableName, List<String> part_vals, EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, MetaException
append_partition_with_environment_context in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionpublic AddPartitionsResult add_partitions_req(AddPartitionsRequest request) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
add_partitions_req in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionorg.apache.thrift.TExceptionpublic int add_partitions(List<Partition> parts) throws MetaException, InvalidObjectException, AlreadyExistsException
add_partitions in interface ThriftHiveMetastore.IfaceMetaExceptionInvalidObjectExceptionAlreadyExistsExceptionpublic int add_partitions_pspec(List<PartitionSpec> partSpecs) throws org.apache.thrift.TException
add_partitions_pspec in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic Partition add_partition(Partition part) throws InvalidObjectException, AlreadyExistsException, MetaException
add_partition in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionpublic Partition add_partition_with_environment_context(Partition part, EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, MetaException
add_partition_with_environment_context in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionpublic Partition exchange_partition(Map<String,String> partitionSpecs, String sourceDbName, String sourceTableName, String destDbName, String destTableName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException
exchange_partition in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionInvalidObjectExceptionInvalidInputExceptionorg.apache.thrift.TExceptionpublic boolean drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
drop_partition in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic DropPartitionsResult drop_partitions_req(DropPartitionsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
drop_partitions_req in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic boolean drop_partition_with_environment_context(String db_name, String tbl_name, List<String> part_vals, boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
drop_partition_with_environment_context in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic Partition get_partition(String db_name, String tbl_name, List<String> part_vals) throws MetaException, NoSuchObjectException
get_partition in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionpublic 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
get_partition_with_auth in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<Partition> get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException
get_partitions in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionpublic List<Partition> get_partitions_with_auth(String dbName, String tblName, short maxParts, String userName, List<String> groupNames) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_partitions_with_auth in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic List<PartitionSpec> get_partitions_pspec(String db_name, String tbl_name, int max_parts) throws NoSuchObjectException, MetaException
get_partitions_pspec in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionpublic List<String> get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, NoSuchObjectException
get_partition_names in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionpublic void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_partition in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionorg.apache.thrift.TExceptionpublic void alter_partition_with_environment_context(String dbName, String tableName, Partition newPartition, EnvironmentContext envContext) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_partition_with_environment_context in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionorg.apache.thrift.TExceptionpublic void rename_partition(String db_name, String tbl_name, List<String> part_vals, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException
rename_partition in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionorg.apache.thrift.TExceptionpublic void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_partitions in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionorg.apache.thrift.TExceptionpublic void alter_index(String dbname, String base_table_name, String index_name, Index newIndex) throws InvalidOperationException, MetaException
alter_index in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionpublic String getVersion() throws org.apache.thrift.TException
getVersion in interface com.facebook.fb303.FacebookService.Ifaceorg.apache.thrift.TExceptionpublic void alter_table(String dbname, String name, Table newTable) throws InvalidOperationException, MetaException
alter_table in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionpublic void alter_table_with_cascade(String dbname, String name, Table newTable, boolean cascade) throws InvalidOperationException, MetaException
alter_table_with_cascade in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionpublic void alter_table_with_environment_context(String dbname, String name, Table newTable, EnvironmentContext envContext) throws InvalidOperationException, MetaException
alter_table_with_environment_context in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionpublic List<String> get_tables(String dbname, String pattern) throws MetaException
get_tables in interface ThriftHiveMetastore.IfaceMetaExceptionpublic List<String> get_all_tables(String dbname) throws MetaException
get_all_tables in interface ThriftHiveMetastore.IfaceMetaExceptionpublic List<FieldSchema> get_fields(String db, String tableName) throws MetaException, UnknownTableException, UnknownDBException
get_fields in interface ThriftHiveMetastore.IfaceMetaExceptionUnknownTableExceptionUnknownDBExceptionpublic List<FieldSchema> get_fields_with_environment_context(String db, String tableName, EnvironmentContext envContext) throws MetaException, UnknownTableException, UnknownDBException
get_fields_with_environment_context in interface ThriftHiveMetastore.IfaceMetaExceptionUnknownTableExceptionUnknownDBExceptionpublic List<FieldSchema> get_schema(String db, String tableName) throws MetaException, UnknownTableException, UnknownDBException
get_schema in interface ThriftHiveMetastore.Ifacedb - Name of the databasetableName - Name of the tableMetaExceptionUnknownTableExceptionUnknownDBExceptionpublic List<FieldSchema> get_schema_with_environment_context(String db, String tableName, EnvironmentContext envContext) throws MetaException, UnknownTableException, UnknownDBException
get_schema_with_environment_context in interface ThriftHiveMetastore.Ifacedb - Name of the databasetableName - Name of the tableenvContext - Store session based propertiesMetaExceptionUnknownTableExceptionUnknownDBExceptionpublic String getCpuProfile(int profileDurationInSec) throws org.apache.thrift.TException
getCpuProfile in interface com.facebook.fb303.FacebookService.Ifaceorg.apache.thrift.TExceptionpublic String get_config_value(String name, String defaultValue) throws org.apache.thrift.TException, ConfigValSecurityException
get_config_value in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionConfigValSecurityExceptionpublic Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_partition_by_name in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
append_partition_by_name in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionorg.apache.thrift.TExceptionpublic Partition append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext env_context) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
append_partition_by_name_with_environment_context in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionorg.apache.thrift.TExceptionpublic boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
drop_partition_by_name in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic boolean drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
drop_partition_by_name_with_environment_context in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, org.apache.thrift.TException, NoSuchObjectException
get_partitions_ps in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionNoSuchObjectExceptionpublic 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, NoSuchObjectException
get_partitions_ps_with_auth in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionNoSuchObjectExceptionpublic 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, NoSuchObjectException
get_partition_names_ps in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionNoSuchObjectExceptionpublic List<String> partition_name_to_vals(String part_name) throws MetaException, org.apache.thrift.TException
partition_name_to_vals in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic Map<String,String> partition_name_to_spec(String part_name) throws MetaException, org.apache.thrift.TException
partition_name_to_spec in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic Index add_index(Index newIndex, Table indexTable) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
add_index in interface ThriftHiveMetastore.IfaceInvalidObjectExceptionAlreadyExistsExceptionMetaExceptionorg.apache.thrift.TExceptionpublic boolean drop_index_by_name(String dbName, String tblName, String indexName, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
drop_index_by_name in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic Index get_index_by_name(String dbName, String tblName, String indexName) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_index_by_name in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<String> get_index_names(String dbName, String tblName, short maxIndexes) throws MetaException, org.apache.thrift.TException
get_index_names in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic List<Index> get_indexes(String dbName, String tblName, short maxIndexes) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_indexes in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic ColumnStatistics get_table_column_statistics(String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, org.apache.thrift.TException, InvalidInputException, InvalidObjectException
get_table_column_statistics in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionInvalidInputExceptionInvalidObjectExceptionpublic TableStatsResult get_table_statistics_req(TableStatsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_table_statistics_req in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic ColumnStatistics get_partition_column_statistics(String dbName, String tableName, String partName, String colName) throws NoSuchObjectException, MetaException, InvalidInputException, org.apache.thrift.TException, InvalidObjectException
get_partition_column_statistics in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionInvalidInputExceptionorg.apache.thrift.TExceptionInvalidObjectExceptionpublic PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_partitions_statistics_req in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic boolean update_table_column_statistics(ColumnStatistics colStats) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
update_table_column_statistics in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionInvalidObjectExceptionMetaExceptionorg.apache.thrift.TExceptionInvalidInputExceptionpublic boolean update_partition_column_statistics(ColumnStatistics colStats) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
update_partition_column_statistics in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionInvalidObjectExceptionMetaExceptionorg.apache.thrift.TExceptionInvalidInputExceptionpublic boolean delete_partition_column_statistics(String dbName, String tableName, String partName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, org.apache.thrift.TException, InvalidInputException
delete_partition_column_statistics in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionInvalidObjectExceptionorg.apache.thrift.TExceptionInvalidInputExceptionpublic boolean delete_table_column_statistics(String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, org.apache.thrift.TException, InvalidInputException
delete_table_column_statistics in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionInvalidObjectExceptionorg.apache.thrift.TExceptionInvalidInputExceptionpublic List<Partition> get_partitions_by_filter(String dbName, String tblName, String filter, short maxParts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_partitions_by_filter in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<PartitionSpec> get_part_specs_by_filter(String dbName, String tblName, String filter, int maxParts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_part_specs_by_filter in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req) throws org.apache.thrift.TException
get_partitions_by_expr in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic List<Partition> get_partitions_by_names(String dbName, String tblName, List<String> partNames) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_partitions_by_names in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String userName, List<String> groupNames) throws MetaException, org.apache.thrift.TException
get_privilege_set in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean grant_role(String roleName, String principalName, PrincipalType principalType, String grantor, PrincipalType grantorType, boolean grantOption) throws MetaException, org.apache.thrift.TException
grant_role in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic List<Role> list_roles(String principalName, PrincipalType principalType) throws MetaException, org.apache.thrift.TException
list_roles in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean create_role(Role role) throws MetaException, org.apache.thrift.TException
create_role in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean drop_role(String roleName) throws MetaException, org.apache.thrift.TException
drop_role in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic List<String> get_role_names() throws MetaException, org.apache.thrift.TException
get_role_names in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean grant_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException
grant_privileges in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean revoke_role(String roleName, String userName, PrincipalType principalType) throws MetaException, org.apache.thrift.TException
revoke_role in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request) throws MetaException, org.apache.thrift.TException
grant_revoke_role in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request) throws MetaException, org.apache.thrift.TException
grant_revoke_privileges in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException
revoke_privileges in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean revoke_privileges(PrivilegeBag privileges, boolean grantOption) throws MetaException, org.apache.thrift.TException
MetaExceptionorg.apache.thrift.TExceptionpublic List<HiveObjectPrivilege> list_privileges(String principalName, PrincipalType principalType, HiveObjectRef hiveObject) throws MetaException, org.apache.thrift.TException
list_privileges in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic void cancel_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException
cancel_delegation_token in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic long renew_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException
renew_delegation_token in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, org.apache.thrift.TException
get_delegation_token in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic 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
markPartitionForEvent in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionNoSuchObjectExceptionUnknownDBExceptionUnknownTableExceptionInvalidPartitionExceptionUnknownPartitionExceptionpublic 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
isPartitionMarkedForEvent in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionUnknownDBExceptionUnknownTableExceptionorg.apache.thrift.TExceptionUnknownPartitionExceptionInvalidPartitionExceptionpublic List<String> set_ugi(String username, List<String> groupNames) throws MetaException, org.apache.thrift.TException
set_ugi in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic boolean partition_name_has_valid_characters(List<String> part_vals, boolean throw_exception) throws org.apache.thrift.TException, MetaException
partition_name_has_valid_characters in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionMetaExceptionpublic void create_function(Function func) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException
create_function in interface ThriftHiveMetastore.IfaceAlreadyExistsExceptionInvalidObjectExceptionMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic void drop_function(String dbName, String funcName) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
drop_function in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionInvalidObjectExceptionInvalidInputExceptionpublic void alter_function(String dbName, String funcName, Function newFunc) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_function in interface ThriftHiveMetastore.IfaceInvalidOperationExceptionMetaExceptionorg.apache.thrift.TExceptionpublic List<String> get_functions(String dbName, String pattern) throws MetaException
get_functions in interface ThriftHiveMetastore.IfaceMetaExceptionpublic Function get_function(String dbName, String funcName) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_function in interface ThriftHiveMetastore.IfaceMetaExceptionNoSuchObjectExceptionorg.apache.thrift.TExceptionpublic GetOpenTxnsResponse get_open_txns() throws org.apache.thrift.TException
get_open_txns in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic GetOpenTxnsInfoResponse get_open_txns_info() throws org.apache.thrift.TException
get_open_txns_info in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic OpenTxnsResponse open_txns(OpenTxnRequest rqst) throws org.apache.thrift.TException
open_txns in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic void abort_txn(AbortTxnRequest rqst) throws NoSuchTxnException, org.apache.thrift.TException
abort_txn in interface ThriftHiveMetastore.IfaceNoSuchTxnExceptionorg.apache.thrift.TExceptionpublic void commit_txn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
commit_txn in interface ThriftHiveMetastore.IfaceNoSuchTxnExceptionTxnAbortedExceptionorg.apache.thrift.TExceptionpublic LockResponse lock(LockRequest rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
lock in interface ThriftHiveMetastore.IfaceNoSuchTxnExceptionTxnAbortedExceptionorg.apache.thrift.TExceptionpublic LockResponse check_lock(CheckLockRequest rqst) throws NoSuchTxnException, TxnAbortedException, NoSuchLockException, org.apache.thrift.TException
check_lock in interface ThriftHiveMetastore.IfaceNoSuchTxnExceptionTxnAbortedExceptionNoSuchLockExceptionorg.apache.thrift.TExceptionpublic void unlock(UnlockRequest rqst) throws NoSuchLockException, TxnOpenException, org.apache.thrift.TException
unlock in interface ThriftHiveMetastore.IfaceNoSuchLockExceptionTxnOpenExceptionorg.apache.thrift.TExceptionpublic ShowLocksResponse show_locks(ShowLocksRequest rqst) throws org.apache.thrift.TException
show_locks in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic void heartbeat(HeartbeatRequest ids) throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
heartbeat in interface ThriftHiveMetastore.IfaceNoSuchLockExceptionNoSuchTxnExceptionTxnAbortedExceptionorg.apache.thrift.TExceptionpublic HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest rqst) throws org.apache.thrift.TException
heartbeat_txn_range in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic void compact(CompactionRequest rqst) throws org.apache.thrift.TException
compact in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic ShowCompactResponse show_compact(ShowCompactRequest rqst) throws org.apache.thrift.TException
show_compact in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic void add_dynamic_partitions(AddDynamicPartitions rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
add_dynamic_partitions in interface ThriftHiveMetastore.IfaceNoSuchTxnExceptionTxnAbortedExceptionorg.apache.thrift.TExceptionpublic GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request) throws MetaException, org.apache.thrift.TException
get_principals_in_role in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request) throws MetaException, org.apache.thrift.TException
get_role_grants_for_principal in interface ThriftHiveMetastore.IfaceMetaExceptionorg.apache.thrift.TExceptionpublic AggrStats get_aggr_stats_for(PartitionsStatsRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_aggr_stats_for in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionMetaExceptionorg.apache.thrift.TExceptionpublic boolean set_aggr_stats_for(SetPartitionsStatsRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException
set_aggr_stats_for in interface ThriftHiveMetastore.IfaceNoSuchObjectExceptionInvalidObjectExceptionMetaExceptionInvalidInputExceptionorg.apache.thrift.TExceptionpublic NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws org.apache.thrift.TException
get_next_notification in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic CurrentNotificationEventId get_current_notificationEventId() throws org.apache.thrift.TException
get_current_notificationEventId in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionpublic FireEventResponse fire_listener_event(FireEventRequest rqst) throws org.apache.thrift.TException
fire_listener_event in interface ThriftHiveMetastore.Ifaceorg.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.