org.apache.hadoop.hive.metastore.api
Class ThriftHiveMetastore.Client
java.lang.Object
com.facebook.fb303.FacebookService.Client
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Client
- All Implemented Interfaces:
- com.facebook.fb303.FacebookService.Iface, ThriftHiveMetastore.Iface
- Direct Known Subclasses:
- ThriftHive.Client
- Enclosing class:
- ThriftHiveMetastore
public static class ThriftHiveMetastore.Client
- extends com.facebook.fb303.FacebookService.Client
- implements ThriftHiveMetastore.Iface
Fields inherited from class com.facebook.fb303.FacebookService.Client |
iprot_, oprot_, seqid_ |
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)
|
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)
|
Partition |
recv_add_partition()
|
void |
recv_alter_partition()
|
void |
recv_alter_table()
|
Partition |
recv_append_partition()
|
boolean |
recv_create_database()
|
void |
recv_create_table()
|
boolean |
recv_create_type()
|
boolean |
recv_drop_database()
|
boolean |
recv_drop_partition()
|
void |
recv_drop_table()
|
boolean |
recv_drop_type()
|
Database |
recv_get_database()
|
List<String> |
recv_get_databases()
|
List<FieldSchema> |
recv_get_fields()
|
List<String> |
recv_get_partition_names()
|
Partition |
recv_get_partition()
|
List<Partition> |
recv_get_partitions()
|
List<FieldSchema> |
recv_get_schema()
|
Table |
recv_get_table()
|
List<String> |
recv_get_tables()
|
Map<String,Type> |
recv_get_type_all()
|
Type |
recv_get_type()
|
void |
send_add_partition(Partition new_part)
|
void |
send_alter_partition(String db_name,
String tbl_name,
Partition new_part)
|
void |
send_alter_table(String dbname,
String tbl_name,
Table new_tbl)
|
void |
send_append_partition(String db_name,
String tbl_name,
List<String> part_vals)
|
void |
send_create_database(String name,
String description)
|
void |
send_create_table(Table tbl)
|
void |
send_create_type(Type type)
|
void |
send_drop_database(String name)
|
void |
send_drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
|
void |
send_drop_table(String dbname,
String name,
boolean deleteData)
|
void |
send_drop_type(String type)
|
void |
send_get_database(String name)
|
void |
send_get_databases()
|
void |
send_get_fields(String db_name,
String table_name)
|
void |
send_get_partition_names(String db_name,
String tbl_name,
short max_parts)
|
void |
send_get_partition(String db_name,
String tbl_name,
List<String> part_vals)
|
void |
send_get_partitions(String db_name,
String tbl_name,
short max_parts)
|
void |
send_get_schema(String db_name,
String table_name)
|
void |
send_get_table(String dbname,
String tbl_name)
|
void |
send_get_tables(String db_name,
String pattern)
|
void |
send_get_type_all(String name)
|
void |
send_get_type(String name)
|
Methods inherited from class com.facebook.fb303.FacebookService.Client |
aliveSince, getCounter, getCounters, getCpuProfile, getInputProtocol, getName, getOption, getOptions, getOutputProtocol, getStatus, getStatusDetails, getVersion, recv_aliveSince, recv_getCounter, recv_getCounters, recv_getCpuProfile, recv_getName, recv_getOption, recv_getOptions, recv_getStatus, recv_getStatusDetails, recv_getVersion, recv_setOption, reinitialize, send_aliveSince, send_getCounter, send_getCounters, send_getCpuProfile, send_getName, send_getOption, send_getOptions, send_getStatus, send_getStatusDetails, send_getVersion, send_reinitialize, send_setOption, send_shutdown, setOption, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.facebook.fb303.FacebookService.Iface |
aliveSince, getCounter, getCounters, getCpuProfile, getName, getOption, getOptions, getStatus, getStatusDetails, getVersion, reinitialize, setOption, shutdown |
ThriftHiveMetastore.Client
public ThriftHiveMetastore.Client(org.apache.thrift.protocol.TProtocol prot)
ThriftHiveMetastore.Client
public ThriftHiveMetastore.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot)
create_database
public boolean create_database(String name,
String description)
throws AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Specified by:
create_database
in interface ThriftHiveMetastore.Iface
- Throws:
AlreadyExistsException
MetaException
org.apache.thrift.TException
send_create_database
public void send_create_database(String name,
String description)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_create_database
public boolean recv_create_database()
throws AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
MetaException
org.apache.thrift.TException
get_database
public Database get_database(String name)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
get_database
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
send_get_database
public void send_get_database(String name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_database
public Database recv_get_database()
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
drop_database
public boolean drop_database(String name)
throws MetaException,
org.apache.thrift.TException
- Specified by:
drop_database
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_drop_database
public void send_drop_database(String name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_drop_database
public boolean recv_drop_database()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_databases
public List<String> get_databases()
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_databases
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_get_databases
public void send_get_databases()
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_databases
public List<String> recv_get_databases()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_type
public Type get_type(String name)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_type
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_get_type
public void send_get_type(String name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_type
public Type recv_get_type()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
create_type
public boolean create_type(Type type)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
create_type
in interface ThriftHiveMetastore.Iface
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
send_create_type
public void send_create_type(Type type)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_create_type
public boolean recv_create_type()
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
drop_type
public boolean drop_type(String type)
throws MetaException,
org.apache.thrift.TException
- Specified by:
drop_type
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_drop_type
public void send_drop_type(String type)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_drop_type
public boolean recv_drop_type()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_type_all
public Map<String,Type> get_type_all(String name)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_type_all
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_get_type_all
public void send_get_type_all(String name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_type_all
public Map<String,Type> recv_get_type_all()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_fields
public List<FieldSchema> get_fields(String db_name,
String table_name)
throws MetaException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException
- Specified by:
get_fields
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
send_get_fields
public void send_get_fields(String db_name,
String table_name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_fields
public List<FieldSchema> recv_get_fields()
throws MetaException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException
- Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
get_schema
public List<FieldSchema> get_schema(String db_name,
String table_name)
throws MetaException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException
- Specified by:
get_schema
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
send_get_schema
public void send_get_schema(String db_name,
String table_name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_schema
public List<FieldSchema> recv_get_schema()
throws MetaException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException
- Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
create_table
public void create_table(Table tbl)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
create_table
in interface ThriftHiveMetastore.Iface
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException
send_create_table
public void send_create_table(Table tbl)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_create_table
public void recv_create_table()
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
AlreadyExistsException
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException
drop_table
public void drop_table(String dbname,
String name,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
drop_table
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
send_drop_table
public void send_drop_table(String dbname,
String name,
boolean deleteData)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_drop_table
public void recv_drop_table()
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_tables
public List<String> get_tables(String db_name,
String pattern)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_tables
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_get_tables
public void send_get_tables(String db_name,
String pattern)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_tables
public List<String> recv_get_tables()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_table
public Table get_table(String dbname,
String tbl_name)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Specified by:
get_table
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
send_get_table
public void send_get_table(String dbname,
String tbl_name)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_table
public Table recv_get_table()
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
- Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException
alter_table
public void alter_table(String dbname,
String tbl_name,
Table new_tbl)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Specified by:
alter_table
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
send_alter_table
public void send_alter_table(String dbname,
String tbl_name,
Table new_tbl)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_alter_table
public void recv_alter_table()
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
add_partition
public Partition add_partition(Partition new_part)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Specified by:
add_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
send_add_partition
public void send_add_partition(Partition new_part)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_add_partition
public Partition recv_add_partition()
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
append_partition
public Partition append_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Specified by:
append_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
send_append_partition
public void send_append_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_append_partition
public Partition recv_append_partition()
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
drop_partition
public boolean drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
drop_partition
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
send_drop_partition
public void send_drop_partition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_drop_partition
public boolean recv_drop_partition()
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition
public Partition get_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_partition
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_get_partition
public void send_get_partition(String db_name,
String tbl_name,
List<String> part_vals)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_partition
public Partition recv_get_partition()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
get_partitions
public List<Partition> get_partitions(String db_name,
String tbl_name,
short max_parts)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Specified by:
get_partitions
in interface ThriftHiveMetastore.Iface
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
send_get_partitions
public void send_get_partitions(String db_name,
String tbl_name,
short max_parts)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_partitions
public List<Partition> recv_get_partitions()
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
- Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException
get_partition_names
public List<String> get_partition_names(String db_name,
String tbl_name,
short max_parts)
throws MetaException,
org.apache.thrift.TException
- Specified by:
get_partition_names
in interface ThriftHiveMetastore.Iface
- Throws:
MetaException
org.apache.thrift.TException
send_get_partition_names
public void send_get_partition_names(String db_name,
String tbl_name,
short max_parts)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_get_partition_names
public List<String> recv_get_partition_names()
throws MetaException,
org.apache.thrift.TException
- Throws:
MetaException
org.apache.thrift.TException
alter_partition
public void alter_partition(String db_name,
String tbl_name,
Partition new_part)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Specified by:
alter_partition
in interface ThriftHiveMetastore.Iface
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
send_alter_partition
public void send_alter_partition(String db_name,
String tbl_name,
Partition new_part)
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
recv_alter_partition
public void recv_alter_partition()
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
- Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException
Copyright © 2009 The Apache Software Foundation