org.apache.hadoop.hive.metastore.api
Interface ThriftHiveMetastore.Iface
- All Superinterfaces:
- com.facebook.fb303.FacebookService.Iface
- All Known Subinterfaces:
- HiveInterface, ThriftHive.Iface
- All Known Implementing Classes:
- HiveClient, HiveMetaStore.HMSHandler, HiveServer.HiveServerHandler, ThriftHive.Client, ThriftHiveMetastore.Client
- Enclosing class:
- ThriftHiveMetastore
public static interface ThriftHiveMetastore.Iface
- extends com.facebook.fb303.FacebookService.Iface
This interface is live.
Method Summary |
Index |
add_index(Index new_index,
Table index_table)
|
Partition |
add_partition(Partition new_part)
|
int |
add_partitions(List<Partition> new_parts)
|
void |
alter_database(String dbname,
Database db)
|
void |
alter_index(String dbname,
String base_tbl_name,
String idx_name,
Index new_idx)
|
void |
alter_partition(String db_name,
String tbl_name,
Partition new_part)
|
void |
alter_table(String dbname,
String tbl_name,
Table new_tbl)
|
Partition |
append_partition_by_name(String db_name,
String tbl_name,
String part_name)
|
Partition |
append_partition(String db_name,
String tbl_name,
List<String> part_vals)
|
void |
cancel_delegation_token(String token_str_form)
|
void |
create_database(Database database)
|
boolean |
create_role(Role role)
|
void |
create_table(Table tbl)
|
boolean |
create_type(Type type)
|
void |
drop_database(String name,
boolean deleteData,
boolean cascade)
|
boolean |
drop_index_by_name(String db_name,
String tbl_name,
String index_name,
boolean deleteData)
|
boolean |
drop_partition_by_name(String db_name,
String tbl_name,
String part_name,
boolean deleteData)
|
boolean |
drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
|
boolean |
drop_role(String role_name)
|
void |
drop_table(String dbname,
String name,
boolean deleteData)
|
boolean |
drop_type(String type)
|
List<String> |
get_all_databases()
|
List<String> |
get_all_tables(String db_name)
|
String |
get_config_value(String name,
String defaultValue)
|
Database |
get_database(String name)
|
List<String> |
get_databases(String pattern)
|
String |
get_delegation_token(String token_owner,
String renewer_kerberos_principal_name)
|
List<FieldSchema> |
get_fields(String db_name,
String table_name)
|
Index |
get_index_by_name(String db_name,
String tbl_name,
String index_name)
|
List<String> |
get_index_names(String db_name,
String tbl_name,
short max_indexes)
|
List<Index> |
get_indexes(String db_name,
String tbl_name,
short max_indexes)
|
Partition |
get_partition_by_name(String db_name,
String tbl_name,
String part_name)
|
List<String> |
get_partition_names_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
|
List<String> |
get_partition_names(String db_name,
String tbl_name,
short max_parts)
|
Partition |
get_partition_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
String user_name,
List<String> group_names)
|
Partition |
get_partition(String db_name,
String tbl_name,
List<String> part_vals)
|
List<Partition> |
get_partitions_by_filter(String db_name,
String tbl_name,
String filter,
short max_parts)
|
List<Partition> |
get_partitions_by_names(String db_name,
String tbl_name,
List<String> names)
|
List<Partition> |
get_partitions_ps_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String user_name,
List<String> group_names)
|
List<Partition> |
get_partitions_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
|
List<Partition> |
get_partitions_with_auth(String db_name,
String tbl_name,
short max_parts,
String user_name,
List<String> group_names)
|
List<Partition> |
get_partitions(String db_name,
String tbl_name,
short max_parts)
|
PrincipalPrivilegeSet |
get_privilege_set(HiveObjectRef hiveObject,
String user_name,
List<String> group_names)
|
List<String> |
get_role_names()
|
List<FieldSchema> |
get_schema(String db_name,
String table_name)
|
List<String> |
get_table_names_by_filter(String dbname,
String filter,
short max_tables)
|
List<Table> |
get_table_objects_by_name(String dbname,
List<String> tbl_names)
|
Table |
get_table(String dbname,
String tbl_name)
|
List<String> |
get_tables(String db_name,
String pattern)
|
Map<String,Type> |
get_type_all(String name)
|
Type |
get_type(String name)
|
boolean |
grant_privileges(PrivilegeBag privileges)
|
boolean |
grant_role(String role_name,
String principal_name,
PrincipalType principal_type,
String grantor,
PrincipalType grantorType,
boolean grant_option)
|
boolean |
isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> part_vals,
PartitionEventType eventType)
|
List<HiveObjectPrivilege> |
list_privileges(String principal_name,
PrincipalType principal_type,
HiveObjectRef hiveObject)
|
List<Role> |
list_roles(String principal_name,
PrincipalType principal_type)
|
void |
markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> part_vals,
PartitionEventType eventType)
|
Map<String,String> |
partition_name_to_spec(String part_name)
|
List<String> |
partition_name_to_vals(String part_name)
|
void |
rename_partition(String db_name,
String tbl_name,
List<String> part_vals,
Partition new_part)
|
long |
renew_delegation_token(String token_str_form)
|
boolean |
revoke_privileges(PrivilegeBag privileges)
|
boolean |
revoke_role(String role_name,
String principal_name,
PrincipalType principal_type)
|
List<String> |
set_ugi(String user_name,
List<String> group_names)
|
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
aliveSince, getCounter, getCounters, getCpuProfile, getName, getOption, getOptions, getStatus, getStatusDetails, getVersion, reinitialize, setOption, shutdown |
create_database
void create_database(Database database)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
get_database
Database get_database(String name)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
drop_database
void drop_database(String name,
boolean deleteData,
boolean cascade)
throws NoSuchObjectException,
InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
get_databases
List<String> get_databases(String pattern)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_all_databases
List<String> get_all_databases()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
alter_database
void alter_database(String dbname,
Database db)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_type
Type get_type(String name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
create_type
boolean create_type(Type type)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
drop_type
boolean drop_type(String type)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_type_all
Map<String,Type> get_type_all(String name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_fields
List<FieldSchema> get_fields(String db_name,
String table_name)
throws MetaException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException
- Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
get_schema
List<FieldSchema> get_schema(String db_name,
String table_name)
throws MetaException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException
- Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
create_table
void create_table(Table tbl)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException
drop_table
void drop_table(String dbname,
String name,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_tables
List<String> get_tables(String db_name,
String pattern)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_all_tables
List<String> get_all_tables(String db_name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_table
Table get_table(String dbname,
String tbl_name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_table_objects_by_name
List<Table> get_table_objects_by_name(String dbname,
List<String> tbl_names)
throws MetaException,
InvalidOperationException,
UnknownDBException,
org.apache.thrift.TException
- Throws:
MetaException
InvalidOperationException
UnknownDBException
org.apache.thrift.TException
get_table_names_by_filter
List<String> get_table_names_by_filter(String dbname,
String filter,
short max_tables)
throws MetaException,
InvalidOperationException,
UnknownDBException,
org.apache.thrift.TException
- Throws:
MetaException
InvalidOperationException
UnknownDBException
org.apache.thrift.TException
alter_table
void alter_table(String dbname,
String tbl_name,
Table new_tbl)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
add_partition
Partition add_partition(Partition new_part)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
add_partitions
int add_partitions(List<Partition> new_parts)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
append_partition
Partition append_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
append_partition_by_name
Partition append_partition_by_name(String db_name,
String tbl_name,
String part_name)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
drop_partition
boolean drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
drop_partition_by_name
boolean drop_partition_by_name(String db_name,
String tbl_name,
String part_name,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition
Partition get_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_partition_with_auth
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
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_partition_by_name
Partition get_partition_by_name(String db_name,
String tbl_name,
String part_name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_partitions
List<Partition> get_partitions(String db_name,
String tbl_name,
short max_parts)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partitions_with_auth
List<Partition> get_partitions_with_auth(String db_name,
String tbl_name,
short max_parts,
String user_name,
List<String> group_names)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition_names
List<String> get_partition_names(String db_name,
String tbl_name,
short max_parts)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_partitions_ps
List<Partition> get_partitions_ps(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_partitions_ps_with_auth
List<Partition> get_partitions_ps_with_auth(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String user_name,
List<String> group_names)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition_names_ps
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
- Throws:
MetaException
org.apache.thrift.TException
get_partitions_by_filter
List<Partition> get_partitions_by_filter(String db_name,
String tbl_name,
String filter,
short max_parts)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_partitions_by_names
List<Partition> get_partitions_by_names(String db_name,
String tbl_name,
List<String> names)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
alter_partition
void alter_partition(String db_name,
String tbl_name,
Partition new_part)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
rename_partition
void rename_partition(String db_name,
String tbl_name,
List<String> part_vals,
Partition new_part)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
get_config_value
String get_config_value(String name,
String defaultValue)
throws ConfigValSecurityException,
org.apache.thrift.TException
- Throws:
ConfigValSecurityException
org.apache.thrift.TException
partition_name_to_vals
List<String> partition_name_to_vals(String part_name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
partition_name_to_spec
Map<String,String> partition_name_to_spec(String part_name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
markPartitionForEvent
void markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> part_vals,
PartitionEventType eventType)
throws MetaException,
NoSuchObjectException,
UnknownDBException,
UnknownTableException,
UnknownPartitionException,
InvalidPartitionException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
UnknownDBException
UnknownTableException
UnknownPartitionException
InvalidPartitionException
org.apache.thrift.TException
isPartitionMarkedForEvent
boolean isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> part_vals,
PartitionEventType eventType)
throws MetaException,
NoSuchObjectException,
UnknownDBException,
UnknownTableException,
UnknownPartitionException,
InvalidPartitionException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
UnknownDBException
UnknownTableException
UnknownPartitionException
InvalidPartitionException
org.apache.thrift.TException
add_index
Index add_index(Index new_index,
Table index_table)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
alter_index
void alter_index(String dbname,
String base_tbl_name,
String idx_name,
Index new_idx)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
drop_index_by_name
boolean drop_index_by_name(String db_name,
String tbl_name,
String index_name,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_index_by_name
Index get_index_by_name(String db_name,
String tbl_name,
String index_name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
get_indexes
List<Index> get_indexes(String db_name,
String tbl_name,
short max_indexes)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_index_names
List<String> get_index_names(String db_name,
String tbl_name,
short max_indexes)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
create_role
boolean create_role(Role role)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
drop_role
boolean drop_role(String role_name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_role_names
List<String> get_role_names()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
grant_role
boolean grant_role(String role_name,
String principal_name,
PrincipalType principal_type,
String grantor,
PrincipalType grantorType,
boolean grant_option)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
revoke_role
boolean revoke_role(String role_name,
String principal_name,
PrincipalType principal_type)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
list_roles
List<Role> list_roles(String principal_name,
PrincipalType principal_type)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_privilege_set
PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject,
String user_name,
List<String> group_names)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
list_privileges
List<HiveObjectPrivilege> list_privileges(String principal_name,
PrincipalType principal_type,
HiveObjectRef hiveObject)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
grant_privileges
boolean grant_privileges(PrivilegeBag privileges)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
revoke_privileges
boolean revoke_privileges(PrivilegeBag privileges)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
set_ugi
List<String> set_ugi(String user_name,
List<String> group_names)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_delegation_token
String get_delegation_token(String token_owner,
String renewer_kerberos_principal_name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
renew_delegation_token
long renew_delegation_token(String token_str_form)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
cancel_delegation_token
void cancel_delegation_token(String token_str_form)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
Copyright © 2011 The Apache Software Foundation