public static class HiveMetaStore.HMSHandler extends com.facebook.fb303.FacebookBase implements IHMSHandler
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
HMSHandler(String name) |
HMSHandler(String name,
org.apache.hadoop.conf.Configuration conf) |
HMSHandler(String name,
org.apache.hadoop.conf.Configuration conf,
boolean init) |
aliveSince, deleteCounter, getCounter, getCpuProfile, getName, getOption, getOptions, getStatusDetails, incrementCounter, incrementCounter, reinitialize, resetCounter, setCounter, setOption
public HMSHandler(String name) throws MetaException
MetaException
public HMSHandler(String name, org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaException
public HMSHandler(String name, org.apache.hadoop.conf.Configuration conf, boolean init) throws MetaException
MetaException
public static RawStore getRawStore()
@Deprecated public static Integer get()
getThreadId()
instead.public int getThreadId()
IHMSHandler
getThreadId
in interface IHMSHandler
@Deprecated public org.apache.hadoop.conf.Configuration getHiveConf()
getConf()
instead.public List<TransactionalMetaStoreEventListener> getTransactionalListeners()
IHMSHandler
getTransactionalListeners
in interface IHMSHandler
public List<MetaStoreEventListener> getListeners()
IHMSHandler
getListeners
in interface IHMSHandler
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()
IHMSHandler
getWh
in interface IHMSHandler
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
public RawStore getMS() throws MetaException
getMS
in interface IHMSHandler
MetaException
public static RawStore getMSForConf(org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaException
public TxnStore getTxnHandler()
IHMSHandler
getTxnHandler
in interface IHMSHandler
public static void createDefaultCatalog(RawStore ms, Warehouse wh) throws MetaException, InvalidOperationException
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_catalog(CreateCatalogRequest rqst) throws AlreadyExistsException, InvalidObjectException, MetaException
create_catalog
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
InvalidObjectException
MetaException
public void alter_catalog(AlterCatalogRequest rqst) throws org.apache.thrift.TException
alter_catalog
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GetCatalogResponse get_catalog(GetCatalogRequest rqst) throws NoSuchObjectException, org.apache.thrift.TException
get_catalog
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
org.apache.thrift.TException
public GetCatalogsResponse get_catalogs() throws MetaException
get_catalogs
in interface ThriftHiveMetastore.Iface
MetaException
public void drop_catalog(DropCatalogRequest rqst) throws NoSuchObjectException, InvalidOperationException, MetaException
drop_catalog
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
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 catName, String name) throws NoSuchObjectException, MetaException
IHMSHandler
get_database_core
in interface IHMSHandler
catName
- catalog namename
- database nameNoSuchObjectException
- If the database does not exist.MetaException
- If another error occurs.public void alter_database(String dbName, Database newDB) throws org.apache.thrift.TException
alter_database
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
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 create_table_with_constraints(Table tbl, List<SQLPrimaryKey> primaryKeys, List<SQLForeignKey> foreignKeys, List<SQLUniqueConstraint> uniqueConstraints, List<SQLNotNullConstraint> notNullConstraints, List<SQLDefaultConstraint> defaultConstraints, List<SQLCheckConstraint> checkConstraints) throws AlreadyExistsException, MetaException, InvalidObjectException
create_table_with_constraints
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
MetaException
InvalidObjectException
public void drop_constraint(DropConstraintRequest req) throws MetaException, InvalidObjectException
drop_constraint
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
public void add_primary_key(AddPrimaryKeyRequest req) throws MetaException, InvalidObjectException
add_primary_key
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
public void add_foreign_key(AddForeignKeyRequest req) throws MetaException, InvalidObjectException
add_foreign_key
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
public void add_unique_constraint(AddUniqueConstraintRequest req) throws MetaException, InvalidObjectException
add_unique_constraint
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
public void add_not_null_constraint(AddNotNullConstraintRequest req) throws MetaException, InvalidObjectException
add_not_null_constraint
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
public void add_default_constraint(AddDefaultConstraintRequest req) throws MetaException, InvalidObjectException
add_default_constraint
in interface ThriftHiveMetastore.Iface
MetaException
InvalidObjectException
public void add_check_constraint(AddCheckConstraintRequest req) throws MetaException, InvalidObjectException
add_check_constraint
in interface ThriftHiveMetastore.Iface
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 CmRecycleResponse cm_recycle(CmRecycleRequest request) throws MetaException
cm_recycle
in interface ThriftHiveMetastore.Iface
MetaException
public void truncate_table(String dbName, String tableName, List<String> partNames) throws NoSuchObjectException, MetaException
truncate_table
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
@Deprecated public Table get_table(String dbname, String name) throws MetaException, NoSuchObjectException
get_table
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public GetTableResult get_table_req(GetTableRequest req) throws MetaException, NoSuchObjectException
get_table_req
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public List<TableMeta> get_table_meta(String dbnames, String tblNames, List<String> tblTypes) throws MetaException, NoSuchObjectException
get_table_meta
in interface ThriftHiveMetastore.Iface
MetaException
NoSuchObjectException
public Table get_table_core(String catName, String dbname, String name) throws MetaException, NoSuchObjectException
IHMSHandler
get_table_core
in interface IHMSHandler
catName
- catalog namedbname
- database namename
- table nameMetaException
- If another error occurs.NoSuchObjectException
- If the table does not exist.@Deprecated public List<Table> get_table_objects_by_name(String dbName, List<String> tableNames) throws MetaException, InvalidOperationException, UnknownDBException
get_table_objects_by_name
in interface ThriftHiveMetastore.Iface
dbName
- The name of the database in which the tables residetableNames
- The names of the tables to get.MetaException
InvalidOperationException
UnknownDBException
public GetTablesResult get_table_objects_by_name_req(GetTablesRequest req) throws org.apache.thrift.TException
get_table_objects_by_name_req
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public Materialization get_materialization_invalidation_info(CreationMetadata cm, String validTxnList) throws MetaException
get_materialization_invalidation_info
in interface ThriftHiveMetastore.Iface
MetaException
public void update_creation_metadata(String catName, String dbName, String tableName, CreationMetadata cm) throws MetaException
update_creation_metadata
in interface ThriftHiveMetastore.Iface
MetaException
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 org.apache.thrift.TException
add_partitions_req
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
exchange_partition
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<Partition> exchange_partitions(Map<String,String> partitionSpecs, String sourceDbName, String sourceTableName, String destDbName, String destTableName) throws org.apache.thrift.TException
exchange_partitions
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws org.apache.thrift.TException
drop_partition
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public DropPartitionsResult drop_partitions_req(DropPartitionsRequest request) throws org.apache.thrift.TException
drop_partitions_req
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
drop_partition_with_environment_context
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
get_partition_with_auth
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
get_partitions_with_auth
in interface ThriftHiveMetastore.Iface
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 NoSuchObjectException, MetaException
get_partition_names
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException
get_partition_values
in interface ThriftHiveMetastore.Iface
MetaException
public void alter_partition(String db_name, String tbl_name, Partition new_part) throws org.apache.thrift.TException
alter_partition
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void alter_partition_with_environment_context(String dbName, String tableName, Partition newPartition, EnvironmentContext envContext) throws org.apache.thrift.TException
alter_partition_with_environment_context
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void rename_partition(String db_name, String tbl_name, List<String> part_vals, Partition new_part) throws org.apache.thrift.TException
rename_partition
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void alter_partitions(String db_name, String tbl_name, List<Partition> new_parts) throws org.apache.thrift.TException
alter_partitions
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void alter_partitions_with_environment_context(String db_name, String tbl_name, List<Partition> new_parts, EnvironmentContext environmentContext) throws org.apache.thrift.TException
alter_partitions_with_environment_context
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
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_tables_by_type(String dbname, String pattern, String tableType) throws MetaException
get_tables_by_type
in interface ThriftHiveMetastore.Iface
MetaException
public List<String> get_materialized_views_for_rewriting(String dbname) throws MetaException
get_materialized_views_for_rewriting
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
get_config_value
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws org.apache.thrift.TException
get_partition_by_name
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws org.apache.thrift.TException
append_partition_by_name
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
append_partition_by_name_with_environment_context
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws org.apache.thrift.TException
drop_partition_by_name
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
drop_partition_by_name_with_environment_context
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws org.apache.thrift.TException
get_partitions_ps
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
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 org.apache.thrift.TException
get_partitions_ps_with_auth
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws org.apache.thrift.TException
get_partition_names_ps
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> partition_name_to_vals(String part_name) throws org.apache.thrift.TException
partition_name_to_vals
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public Map<String,String> partition_name_to_spec(String part_name) throws org.apache.thrift.TException
partition_name_to_spec
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public ColumnStatistics get_table_column_statistics(String dbName, String tableName, String colName) throws org.apache.thrift.TException
get_table_column_statistics
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public TableStatsResult get_table_statistics_req(TableStatsRequest request) throws org.apache.thrift.TException
get_table_statistics_req
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public ColumnStatistics get_partition_column_statistics(String dbName, String tableName, String partName, String colName) throws org.apache.thrift.TException
get_partition_column_statistics
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request) throws org.apache.thrift.TException
get_partitions_statistics_req
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean update_table_column_statistics(ColumnStatistics colStats) throws org.apache.thrift.TException
update_table_column_statistics
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean update_partition_column_statistics(ColumnStatistics colStats) throws org.apache.thrift.TException
update_partition_column_statistics
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean delete_partition_column_statistics(String dbName, String tableName, String partName, String colName) throws org.apache.thrift.TException
delete_partition_column_statistics
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean delete_table_column_statistics(String dbName, String tableName, String colName) throws org.apache.thrift.TException
delete_table_column_statistics
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<Partition> get_partitions_by_filter(String dbName, String tblName, String filter, short maxParts) throws org.apache.thrift.TException
get_partitions_by_filter
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<PartitionSpec> get_part_specs_by_filter(String dbName, String tblName, String filter, int maxParts) throws org.apache.thrift.TException
get_part_specs_by_filter
in interface ThriftHiveMetastore.Iface
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 int get_num_partitions_by_filter(String dbName, String tblName, String filter) throws org.apache.thrift.TException
get_num_partitions_by_filter
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<Partition> get_partitions_by_names(String dbName, String tblName, List<String> partNames) throws org.apache.thrift.TException
get_partitions_by_names
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String userName, List<String> groupNames) throws org.apache.thrift.TException
get_privilege_set
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean grant_role(String roleName, String principalName, PrincipalType principalType, String grantor, PrincipalType grantorType, boolean grantOption) throws org.apache.thrift.TException
grant_role
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<Role> list_roles(String principalName, PrincipalType principalType) throws org.apache.thrift.TException
list_roles
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean create_role(Role role) throws org.apache.thrift.TException
create_role
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean drop_role(String roleName) throws org.apache.thrift.TException
drop_role
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> get_role_names() throws org.apache.thrift.TException
get_role_names
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean grant_privileges(PrivilegeBag privileges) throws org.apache.thrift.TException
grant_privileges
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean revoke_role(String roleName, String userName, PrincipalType principalType) throws org.apache.thrift.TException
revoke_role
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request) throws org.apache.thrift.TException
grant_revoke_role
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request) throws org.apache.thrift.TException
grant_revoke_privileges
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GrantRevokePrivilegeResponse refresh_privileges(HiveObjectRef objToRefresh, String authorizer, GrantRevokePrivilegeRequest grantRequest) throws org.apache.thrift.TException
refresh_privileges
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean revoke_privileges(PrivilegeBag privileges) throws org.apache.thrift.TException
revoke_privileges
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean revoke_privileges(PrivilegeBag privileges, boolean grantOption) throws org.apache.thrift.TException
org.apache.thrift.TException
public List<HiveObjectPrivilege> list_privileges(String principalName, PrincipalType principalType, HiveObjectRef hiveObject) throws org.apache.thrift.TException
list_privileges
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void cancel_delegation_token(String token_str_form) throws org.apache.thrift.TException
cancel_delegation_token
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public long renew_delegation_token(String token_str_form) throws org.apache.thrift.TException
renew_delegation_token
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws org.apache.thrift.TException
get_delegation_token
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean add_token(String token_identifier, String delegation_token) throws org.apache.thrift.TException
add_token
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean remove_token(String token_identifier) throws org.apache.thrift.TException
remove_token
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public String get_token(String token_identifier) throws org.apache.thrift.TException
get_token
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> get_all_token_identifiers() throws org.apache.thrift.TException
get_all_token_identifiers
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public int add_master_key(String key) throws org.apache.thrift.TException
add_master_key
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void update_master_key(int seq_number, String key) throws org.apache.thrift.TException
update_master_key
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean remove_master_key(int key_seq) throws org.apache.thrift.TException
remove_master_key
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> get_master_keys() throws org.apache.thrift.TException
get_master_keys
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void markPartitionForEvent(String db_name, String tbl_name, Map<String,String> partName, PartitionEventType evtType) throws org.apache.thrift.TException
markPartitionForEvent
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map<String,String> partName, PartitionEventType evtType) throws org.apache.thrift.TException
isPartitionMarkedForEvent
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> set_ugi(String username, List<String> groupNames) throws org.apache.thrift.TException
set_ugi
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean partition_name_has_valid_characters(List<String> part_vals, boolean throw_exception) throws org.apache.thrift.TException
partition_name_has_valid_characters
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void create_function(Function func) throws org.apache.thrift.TException
create_function
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
alter_function
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<String> get_functions(String dbName, String pattern) throws MetaException
get_functions
in interface ThriftHiveMetastore.Iface
MetaException
public GetAllFunctionsResponse get_all_functions() throws MetaException
get_all_functions
in interface ThriftHiveMetastore.Iface
MetaException
public Function get_function(String dbName, String funcName) throws org.apache.thrift.TException
get_function
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
abort_txn
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void abort_txns(AbortTxnsRequest rqst) throws org.apache.thrift.TException
abort_txns
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void commit_txn(CommitTxnRequest rqst) throws org.apache.thrift.TException
commit_txn
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void repl_tbl_writeid_state(ReplTblWriteIdStateRequest rqst) throws org.apache.thrift.TException
repl_tbl_writeid_state
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GetValidWriteIdsResponse get_valid_write_ids(GetValidWriteIdsRequest rqst) throws org.apache.thrift.TException
get_valid_write_ids
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public AllocateTableWriteIdsResponse allocate_table_write_ids(AllocateTableWriteIdsRequest rqst) throws org.apache.thrift.TException
allocate_table_write_ids
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public LockResponse lock(LockRequest rqst) throws org.apache.thrift.TException
lock
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public LockResponse check_lock(CheckLockRequest rqst) throws org.apache.thrift.TException
check_lock
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void unlock(UnlockRequest rqst) throws org.apache.thrift.TException
unlock
in interface ThriftHiveMetastore.Iface
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 org.apache.thrift.TException
heartbeat
in interface ThriftHiveMetastore.Iface
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
@Deprecated public void compact(CompactionRequest rqst) throws org.apache.thrift.TException
compact
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public CompactionResponse compact2(CompactionRequest rqst) throws org.apache.thrift.TException
compact2
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 flushCache() throws org.apache.thrift.TException
flushCache
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void add_dynamic_partitions(AddDynamicPartitions rqst) throws org.apache.thrift.TException
add_dynamic_partitions
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request) throws org.apache.thrift.TException
get_principals_in_role
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request) throws org.apache.thrift.TException
get_role_grants_for_principal
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public AggrStats get_aggr_stats_for(PartitionsStatsRequest request) throws org.apache.thrift.TException
get_aggr_stats_for
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean set_aggr_stats_for(SetPartitionsStatsRequest request) throws org.apache.thrift.TException
set_aggr_stats_for
in interface ThriftHiveMetastore.Iface
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 NotificationEventsCountResponse get_notification_events_count(NotificationEventsCountRequest rqst) throws org.apache.thrift.TException
get_notification_events_count
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
public GetFileMetadataByExprResult get_file_metadata_by_expr(GetFileMetadataByExprRequest req) throws org.apache.thrift.TException
get_file_metadata_by_expr
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public GetFileMetadataResult get_file_metadata(GetFileMetadataRequest req) throws org.apache.thrift.TException
get_file_metadata
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public PutFileMetadataResult put_file_metadata(PutFileMetadataRequest req) throws org.apache.thrift.TException
put_file_metadata
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public ClearFileMetadataResult clear_file_metadata(ClearFileMetadataRequest req) throws org.apache.thrift.TException
clear_file_metadata
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public CacheFileMetadataResult cache_file_metadata(CacheFileMetadataRequest req) throws org.apache.thrift.TException
cache_file_metadata
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public PrimaryKeysResponse get_primary_keys(PrimaryKeysRequest request) throws org.apache.thrift.TException
get_primary_keys
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public ForeignKeysResponse get_foreign_keys(ForeignKeysRequest request) throws org.apache.thrift.TException
get_foreign_keys
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public UniqueConstraintsResponse get_unique_constraints(UniqueConstraintsRequest request) throws org.apache.thrift.TException
get_unique_constraints
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public NotNullConstraintsResponse get_not_null_constraints(NotNullConstraintsRequest request) throws org.apache.thrift.TException
get_not_null_constraints
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public DefaultConstraintsResponse get_default_constraints(DefaultConstraintsRequest request) throws org.apache.thrift.TException
get_default_constraints
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public CheckConstraintsResponse get_check_constraints(CheckConstraintsRequest request) throws org.apache.thrift.TException
get_check_constraints
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public String get_metastore_db_uuid() throws org.apache.thrift.TException
get_metastore_db_uuid
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public WMCreateResourcePlanResponse create_resource_plan(WMCreateResourcePlanRequest request) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
create_resource_plan
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
public WMGetResourcePlanResponse get_resource_plan(WMGetResourcePlanRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_resource_plan
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public WMGetAllResourcePlanResponse get_all_resource_plans(WMGetAllResourcePlanRequest request) throws MetaException, org.apache.thrift.TException
get_all_resource_plans
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public WMAlterResourcePlanResponse alter_resource_plan(WMAlterResourcePlanRequest request) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
alter_resource_plan
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public WMGetActiveResourcePlanResponse get_active_resource_plan(WMGetActiveResourcePlanRequest request) throws MetaException, org.apache.thrift.TException
get_active_resource_plan
in interface ThriftHiveMetastore.Iface
MetaException
org.apache.thrift.TException
public WMValidateResourcePlanResponse validate_resource_plan(WMValidateResourcePlanRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
validate_resource_plan
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public WMDropResourcePlanResponse drop_resource_plan(WMDropResourcePlanRequest request) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
drop_resource_plan
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public WMCreateTriggerResponse create_wm_trigger(WMCreateTriggerRequest request) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
create_wm_trigger
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
public WMAlterTriggerResponse alter_wm_trigger(WMAlterTriggerRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException
alter_wm_trigger
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
public WMDropTriggerResponse drop_wm_trigger(WMDropTriggerRequest request) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
drop_wm_trigger
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public WMGetTriggersForResourePlanResponse get_triggers_for_resourceplan(WMGetTriggersForResourePlanRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
get_triggers_for_resourceplan
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
MetaException
org.apache.thrift.TException
public WMAlterPoolResponse alter_wm_pool(WMAlterPoolRequest request) throws AlreadyExistsException, NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException
alter_wm_pool
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
public WMCreatePoolResponse create_wm_pool(WMCreatePoolRequest request) throws AlreadyExistsException, NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException
create_wm_pool
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
public WMDropPoolResponse drop_wm_pool(WMDropPoolRequest request) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
drop_wm_pool
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public WMCreateOrUpdateMappingResponse create_or_update_wm_mapping(WMCreateOrUpdateMappingRequest request) throws AlreadyExistsException, NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException
create_or_update_wm_mapping
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
public WMDropMappingResponse drop_wm_mapping(WMDropMappingRequest request) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
drop_wm_mapping
in interface ThriftHiveMetastore.Iface
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public WMCreateOrDropTriggerToPoolMappingResponse create_or_drop_wm_trigger_to_pool_mapping(WMCreateOrDropTriggerToPoolMappingRequest request) throws AlreadyExistsException, NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException
create_or_drop_wm_trigger_to_pool_mapping
in interface ThriftHiveMetastore.Iface
AlreadyExistsException
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
public void create_ischema(ISchema schema) throws org.apache.thrift.TException
create_ischema
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void alter_ischema(AlterISchemaRequest rqst) throws org.apache.thrift.TException
alter_ischema
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public ISchema get_ischema(ISchemaName schemaName) throws org.apache.thrift.TException
get_ischema
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void drop_ischema(ISchemaName schemaName) throws org.apache.thrift.TException
drop_ischema
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void add_schema_version(SchemaVersion schemaVersion) throws org.apache.thrift.TException
add_schema_version
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public SchemaVersion get_schema_version(SchemaVersionDescriptor version) throws org.apache.thrift.TException
get_schema_version
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public SchemaVersion get_schema_latest_version(ISchemaName schemaName) throws org.apache.thrift.TException
get_schema_latest_version
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<SchemaVersion> get_schema_all_versions(ISchemaName schemaName) throws org.apache.thrift.TException
get_schema_all_versions
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void drop_schema_version(SchemaVersionDescriptor version) throws org.apache.thrift.TException
drop_schema_version
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public FindSchemasByColsResp get_schemas_by_cols(FindSchemasByColsRqst rqst) throws org.apache.thrift.TException
get_schemas_by_cols
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void map_schema_version_to_serde(MapSchemaVersionToSerdeRequest rqst) throws org.apache.thrift.TException
map_schema_version_to_serde
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void set_schema_version_state(SetSchemaVersionStateRequest rqst) throws org.apache.thrift.TException
set_schema_version_state
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void add_serde(SerDeInfo serde) throws org.apache.thrift.TException
add_serde
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public SerDeInfo get_serde(GetSerdeRequest rqst) throws org.apache.thrift.TException
get_serde
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public LockResponse get_lock_materialization_rebuild(String dbName, String tableName, long txnId) throws org.apache.thrift.TException
get_lock_materialization_rebuild
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public boolean heartbeat_lock_materialization_rebuild(String dbName, String tableName, long txnId) throws org.apache.thrift.TException
heartbeat_lock_materialization_rebuild
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public void add_runtime_stats(RuntimeStat stat) throws org.apache.thrift.TException
add_runtime_stats
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
public List<RuntimeStat> get_runtime_stats(GetRuntimeStatsRequest rqst) throws org.apache.thrift.TException
get_runtime_stats
in interface ThriftHiveMetastore.Iface
org.apache.thrift.TException
Copyright © 2022 The Apache Software Foundation. All rights reserved.