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, setOption
public 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
MetaException
public HiveMetaStore.HMSHandler(String name, HiveConf conf) throws MetaException
MetaException
public HiveMetaStore.HMSHandler(String name, HiveConf conf, boolean init) throws MetaException
MetaException
public 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 IHMSHandler
MetaException
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public Warehouse getWh()
public void setMetaConf(String key, String value) throws MetaException
setMetaConf
in interface ThriftHiveMetastore.Iface
MetaException
public String getMetaConf(String key) throws MetaException
getMetaConf
in interface ThriftHiveMetastore.Iface
MetaException
@InterfaceAudience.LimitedPrivate(value="HCATALOG") @InterfaceStability.Evolving public RawStore getMS() throws MetaException
MetaException
public com.facebook.fb303.fb_status getStatus()
getStatus
in interface com.facebook.fb303.FacebookService.Iface
getStatus
in class com.facebook.fb303.FacebookBase
public void shutdown()
shutdown
in interface com.facebook.fb303.FacebookService.Iface
shutdown
in class com.facebook.fb303.FacebookBase
public AbstractMap<String,Long> getCounters()
getCounters
in interface com.facebook.fb303.FacebookService.Iface
getCounters
in class com.facebook.fb303.FacebookBase
public void create_database(Database db) throws AlreadyExistsException, InvalidObjectException, MetaException
create_database
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
InvalidObjectException
MetaException
public Database get_database(String name) throws NoSuchObjectException, MetaException
get_database
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
public Database get_database_core(String name) throws NoSuchObjectException, MetaException
name
- NoSuchObjectException
MetaException
public void alter_database(String dbName, Database db) throws NoSuchObjectException, org.apache.thrift.TException, MetaException
alter_database
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
org.apache.thrift.TException
MetaException
public void drop_database(String dbName, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException
drop_database
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
public List<String> get_databases(String pattern) throws MetaException
get_databases
in interface ThriftHiveMetastore.Iface
MetaException
public List<String> get_all_databases() throws MetaException
get_all_databases
in interface ThriftHiveMetastore.Iface
MetaException
public boolean create_type(Type type) throws AlreadyExistsException, MetaException, InvalidObjectException
create_type
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
MetaException
InvalidObjectException
public Type get_type(String name) throws MetaException, NoSuchObjectException
get_type
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public boolean drop_type(String name) throws MetaException, NoSuchObjectException
drop_type
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public Map<String,Type> get_type_all(String name) throws MetaException
get_type_all
in interface ThriftHiveMetastore.Iface
MetaException
public void create_table(Table tbl) throws AlreadyExistsException, MetaException, InvalidObjectException
create_table
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
MetaException
InvalidObjectException
public void create_table_with_environment_context(Table tbl, EnvironmentContext envContext) throws AlreadyExistsException, MetaException, InvalidObjectException
create_table_with_environment_context
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
MetaException
InvalidObjectException
public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException
drop_table
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
public 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.Iface
NoSuchObjectException
MetaException
public Table get_table(String dbname, String name) throws MetaException, NoSuchObjectException
get_table
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public Table get_table_core(String dbname, String name) throws MetaException, NoSuchObjectException
dbname
- name
- MetaException
NoSuchObjectException
public List<Table> get_table_objects_by_name(String dbname, List<String> names) throws MetaException, InvalidOperationException, UnknownDBException
get_table_objects_by_name
in interface ThriftHiveMetastore.Iface
dbname
- The name of the database in which the tables residenames
- The names of the tables to get.MetaException
InvalidOperationException
UnknownDBException
public 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.Iface
MetaException
InvalidOperationException
UnknownDBException
public Partition append_partition(String dbName, String tableName, List<String> part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException
append_partition
in interface ThriftHiveMetastore.Iface
InvalidObjectException
AlreadyExistsException
MetaException
public 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.Iface
InvalidObjectException
AlreadyExistsException
MetaException
public AddPartitionsResult add_partitions_req(AddPartitionsRequest request) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
add_partitions_req
in interface ThriftHiveMetastore.Iface
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public int add_partitions(List<Partition> parts) throws MetaException, InvalidObjectException, AlreadyExistsException
add_partitions
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
AlreadyExistsException
public int add_partitions_pspec(List<PartitionSpec> partSpecs) throws org.apache.thrift.TException
add_partitions_pspec
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public Partition add_partition(Partition part) throws InvalidObjectException, AlreadyExistsException, MetaException
add_partition
in interface ThriftHiveMetastore.Iface
InvalidObjectException
AlreadyExistsException
MetaException
public Partition add_partition_with_environment_context(Partition part, EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, MetaException
add_partition_with_environment_context
in interface ThriftHiveMetastore.Iface
InvalidObjectException
AlreadyExistsException
MetaException
public 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.Iface
MetaException
NoSuchObjectException
InvalidObjectException
InvalidInputException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public DropPartitionsResult drop_partitions_req(DropPartitionsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
drop_partitions_req
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public Partition get_partition(String db_name, String tbl_name, List<String> part_vals) throws MetaException, NoSuchObjectException
get_partition
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
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
get_partition_with_auth
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public List<Partition> get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException
get_partitions
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
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
get_partitions_with_auth
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public List<PartitionSpec> get_partitions_pspec(String db_name, String tbl_name, int max_parts) throws NoSuchObjectException, MetaException
get_partitions_pspec
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
public List<String> get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, NoSuchObjectException
get_partition_names
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_partition
in interface ThriftHiveMetastore.Iface
InvalidOperationException
MetaException
org.apache.thrift.TException
public 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.Iface
InvalidOperationException
MetaException
org.apache.thrift.TException
public 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.Iface
InvalidOperationException
MetaException
org.apache.thrift.TException
public 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.Iface
InvalidOperationException
MetaException
org.apache.thrift.TException
public void alter_index(String dbname, String base_table_name, String index_name, Index newIndex) throws InvalidOperationException, MetaException
alter_index
in interface ThriftHiveMetastore.Iface
InvalidOperationException
MetaException
public String getVersion() throws org.apache.thrift.TException
getVersion
in interface com.facebook.fb303.FacebookService.Iface
org.apache.thrift.TException
public void alter_table(String dbname, String name, Table newTable) throws InvalidOperationException, MetaException
alter_table
in interface ThriftHiveMetastore.Iface
InvalidOperationException
MetaException
public void alter_table_with_cascade(String dbname, String name, Table newTable, boolean cascade) throws InvalidOperationException, MetaException
alter_table_with_cascade
in interface ThriftHiveMetastore.Iface
InvalidOperationException
MetaException
public 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.Iface
InvalidOperationException
MetaException
public List<String> get_tables(String dbname, String pattern) throws MetaException
get_tables
in interface ThriftHiveMetastore.Iface
MetaException
public List<String> get_all_tables(String dbname) throws MetaException
get_all_tables
in interface ThriftHiveMetastore.Iface
MetaException
public List<FieldSchema> get_fields(String db, String tableName) throws MetaException, UnknownTableException, UnknownDBException
get_fields
in interface ThriftHiveMetastore.Iface
MetaException
UnknownTableException
UnknownDBException
public 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.Iface
MetaException
UnknownTableException
UnknownDBException
public List<FieldSchema> get_schema(String db, String tableName) throws MetaException, UnknownTableException, UnknownDBException
get_schema
in interface ThriftHiveMetastore.Iface
db
- Name of the databasetableName
- Name of the tableMetaException
UnknownTableException
UnknownDBException
public 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.Iface
db
- Name of the databasetableName
- Name of the tableenvContext
- Store session based propertiesMetaException
UnknownTableException
UnknownDBException
public String getCpuProfile(int profileDurationInSec) throws org.apache.thrift.TException
getCpuProfile
in interface com.facebook.fb303.FacebookService.Iface
org.apache.thrift.TException
public String get_config_value(String name, String defaultValue) throws org.apache.thrift.TException, ConfigValSecurityException
get_config_value
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
ConfigValSecurityException
public 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.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public 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.Iface
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public 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.Iface
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
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, NoSuchObjectException
get_partitions_ps
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
NoSuchObjectException
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, NoSuchObjectException
get_partitions_ps_with_auth
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
NoSuchObjectException
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, NoSuchObjectException
get_partition_names_ps
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
NoSuchObjectException
public List<String> partition_name_to_vals(String part_name) throws MetaException, org.apache.thrift.TException
partition_name_to_vals
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public Map<String,String> partition_name_to_spec(String part_name) throws MetaException, org.apache.thrift.TException
partition_name_to_spec
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public Index add_index(Index newIndex, Table indexTable) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
add_index
in interface ThriftHiveMetastore.Iface
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public 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.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public List<String> get_index_names(String dbName, String tblName, short maxIndexes) throws MetaException, org.apache.thrift.TException
get_index_names
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public List<Index> get_indexes(String dbName, String tblName, short maxIndexes) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_indexes
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
InvalidObjectException
public TableStatsResult get_table_statistics_req(TableStatsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_table_statistics_req
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public 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.Iface
NoSuchObjectException
MetaException
InvalidInputException
org.apache.thrift.TException
InvalidObjectException
public PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_partitions_statistics_req
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public boolean update_table_column_statistics(ColumnStatistics colStats) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
update_table_column_statistics
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
public boolean update_partition_column_statistics(ColumnStatistics colStats) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
update_partition_column_statistics
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
public 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.Iface
NoSuchObjectException
MetaException
InvalidObjectException
org.apache.thrift.TException
InvalidInputException
public 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.Iface
NoSuchObjectException
MetaException
InvalidObjectException
org.apache.thrift.TException
InvalidInputException
public 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.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public 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.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req) throws org.apache.thrift.TException
get_partitions_by_expr
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public 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.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String userName, List<String> groupNames) throws MetaException, org.apache.thrift.TException
get_privilege_set
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public 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.Iface
MetaException
org.apache.thrift.TException
public List<Role> list_roles(String principalName, PrincipalType principalType) throws MetaException, org.apache.thrift.TException
list_roles
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public boolean create_role(Role role) throws MetaException, org.apache.thrift.TException
create_role
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public boolean drop_role(String roleName) throws MetaException, org.apache.thrift.TException
drop_role
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public List<String> get_role_names() throws MetaException, org.apache.thrift.TException
get_role_names
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException
grant_privileges
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public boolean revoke_role(String roleName, String userName, PrincipalType principalType) throws MetaException, org.apache.thrift.TException
revoke_role
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request) throws MetaException, org.apache.thrift.TException
grant_revoke_role
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request) throws MetaException, org.apache.thrift.TException
grant_revoke_privileges
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException
revoke_privileges
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public boolean revoke_privileges(PrivilegeBag privileges, boolean grantOption) throws MetaException, org.apache.thrift.TException
MetaException
org.apache.thrift.TException
public List<HiveObjectPrivilege> list_privileges(String principalName, PrincipalType principalType, HiveObjectRef hiveObject) throws MetaException, org.apache.thrift.TException
list_privileges
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public void cancel_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException
cancel_delegation_token
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public long renew_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException
renew_delegation_token
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, org.apache.thrift.TException
get_delegation_token
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
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
markPartitionForEvent
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
NoSuchObjectException
UnknownDBException
UnknownTableException
InvalidPartitionException
UnknownPartitionException
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
isPartitionMarkedForEvent
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
UnknownDBException
UnknownTableException
org.apache.thrift.TException
UnknownPartitionException
InvalidPartitionException
public List<String> set_ugi(String username, List<String> groupNames) throws MetaException, org.apache.thrift.TException
set_ugi
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public 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.Iface
org.apache.thrift.TException
MetaException
public void create_function(Function func) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException
create_function
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException
public void drop_function(String dbName, String funcName) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
drop_function
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
InvalidObjectException
InvalidInputException
public void alter_function(String dbName, String funcName, Function newFunc) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_function
in interface ThriftHiveMetastore.Iface
InvalidOperationException
MetaException
org.apache.thrift.TException
public List<String> get_functions(String dbName, String pattern) throws MetaException
get_functions
in interface ThriftHiveMetastore.Iface
MetaException
public Function get_function(String dbName, String funcName) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
get_function
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
org.apache.thrift.TException
public GetOpenTxnsResponse get_open_txns() throws org.apache.thrift.TException
get_open_txns
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GetOpenTxnsInfoResponse get_open_txns_info() throws org.apache.thrift.TException
get_open_txns_info
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public OpenTxnsResponse open_txns(OpenTxnRequest rqst) throws org.apache.thrift.TException
open_txns
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void abort_txn(AbortTxnRequest rqst) throws NoSuchTxnException, org.apache.thrift.TException
abort_txn
in interface ThriftHiveMetastore.Iface
NoSuchTxnException
org.apache.thrift.TException
public void commit_txn(CommitTxnRequest rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
commit_txn
in interface ThriftHiveMetastore.Iface
NoSuchTxnException
TxnAbortedException
org.apache.thrift.TException
public LockResponse lock(LockRequest rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
lock
in interface ThriftHiveMetastore.Iface
NoSuchTxnException
TxnAbortedException
org.apache.thrift.TException
public LockResponse check_lock(CheckLockRequest rqst) throws NoSuchTxnException, TxnAbortedException, NoSuchLockException, org.apache.thrift.TException
check_lock
in interface ThriftHiveMetastore.Iface
NoSuchTxnException
TxnAbortedException
NoSuchLockException
org.apache.thrift.TException
public void unlock(UnlockRequest rqst) throws NoSuchLockException, TxnOpenException, org.apache.thrift.TException
unlock
in interface ThriftHiveMetastore.Iface
NoSuchLockException
TxnOpenException
org.apache.thrift.TException
public ShowLocksResponse show_locks(ShowLocksRequest rqst) throws org.apache.thrift.TException
show_locks
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void heartbeat(HeartbeatRequest ids) throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
heartbeat
in interface ThriftHiveMetastore.Iface
NoSuchLockException
NoSuchTxnException
TxnAbortedException
org.apache.thrift.TException
public HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest rqst) throws org.apache.thrift.TException
heartbeat_txn_range
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void compact(CompactionRequest rqst) throws org.apache.thrift.TException
compact
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public ShowCompactResponse show_compact(ShowCompactRequest rqst) throws org.apache.thrift.TException
show_compact
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void add_dynamic_partitions(AddDynamicPartitions rqst) throws NoSuchTxnException, TxnAbortedException, org.apache.thrift.TException
add_dynamic_partitions
in interface ThriftHiveMetastore.Iface
NoSuchTxnException
TxnAbortedException
org.apache.thrift.TException
public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request) throws MetaException, org.apache.thrift.TException
get_principals_in_role
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request) throws MetaException, org.apache.thrift.TException
get_role_grants_for_principal
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public AggrStats get_aggr_stats_for(PartitionsStatsRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_aggr_stats_for
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public boolean set_aggr_stats_for(SetPartitionsStatsRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException
set_aggr_stats_for
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidObjectException
MetaException
InvalidInputException
org.apache.thrift.TException
public NotificationEventResponse get_next_notification(NotificationEventRequest rqst) throws org.apache.thrift.TException
get_next_notification
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public CurrentNotificationEventId get_current_notificationEventId() throws org.apache.thrift.TException
get_current_notificationEventId
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public FireEventResponse fire_listener_event(FireEventRequest rqst) throws org.apache.thrift.TException
fire_listener_event
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.