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 |
Partition |
add_partition(Partition new_part)
|
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(String db_name,
String tbl_name,
List<String> part_vals)
|
boolean |
create_database(String name,
String description)
|
void |
create_table(Table tbl)
|
boolean |
create_type(Type type)
|
boolean |
drop_database(String name)
|
boolean |
drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
|
void |
drop_table(String dbname,
String name,
boolean deleteData)
|
boolean |
drop_type(String type)
|
String |
get_config_value(String name,
String defaultValue)
|
Database |
get_database(String name)
|
List<String> |
get_databases()
|
List<FieldSchema> |
get_fields(String db_name,
String table_name)
|
List<String> |
get_partition_names(String db_name,
String tbl_name,
short max_parts)
|
Partition |
get_partition(String db_name,
String tbl_name,
List<String> part_vals)
|
List<Partition> |
get_partitions(String db_name,
String tbl_name,
short max_parts)
|
List<FieldSchema> |
get_schema(String db_name,
String table_name)
|
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)
|
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
aliveSince, getCounter, getCounters, getCpuProfile, getName, getOption, getOptions, getStatus, getStatusDetails, getVersion, reinitialize, setOption, shutdown |
create_database
boolean create_database(String name,
String description)
throws AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
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
boolean drop_database(String name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_databases
List<String> get_databases()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_type
Type get_type(String name)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
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,
org.apache.thrift.TException
- Throws:
MetaException
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_table
Table get_table(String dbname,
String tbl_name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
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
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
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
get_partition
Partition get_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
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_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
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
get_config_value
String get_config_value(String name,
String defaultValue)
throws ConfigValSecurityException,
org.apache.thrift.TException
- Throws:
ConfigValSecurityException
org.apache.thrift.TException
Copyright © 2009 The Apache Software Foundation