hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amareshw...@apache.org
Subject svn commit: r1165216 [8/19] - in /hive/branches/branch-0.8: ./ cli/ eclipse-templates/ ivy/ jdbc/ lib/ metastore/ metastore/src/gen/thrift/gen-cpp/ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen/thrift/gen...
Date Mon, 05 Sep 2011 09:08:20 GMT
Modified: hive/branches/branch-0.8/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.8/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=1165216&r1=1165215&r2=1165216&view=diff
==============================================================================
--- hive/branches/branch-0.8/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
+++ hive/branches/branch-0.8/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Mon Sep  5 09:08:16 2011
@@ -1,5 +1,5 @@
 /**
- * Autogenerated by Thrift
+ * Autogenerated by Thrift Compiler (0.7.0)
  *
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  */
@@ -20,12 +20,6 @@ import java.util.Arrays;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.thrift.*;
-import org.apache.thrift.async.*;
-import org.apache.thrift.meta_data.*;
-import org.apache.thrift.transport.*;
-import org.apache.thrift.protocol.*;
-
 public class ThriftHiveMetastore {
 
   /**
@@ -33,311 +27,297 @@ public class ThriftHiveMetastore {
    */
   public interface Iface extends com.facebook.fb303.FacebookService.Iface {
 
-    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
+    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException;
 
-    public Database get_database(String name) throws NoSuchObjectException, MetaException, TException;
+    public Database get_database(String name) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, TException;
+    public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException;
 
-    public List<String> get_databases(String pattern) throws MetaException, TException;
+    public List<String> get_databases(String pattern) throws MetaException, org.apache.thrift.TException;
 
-    public List<String> get_all_databases() throws MetaException, TException;
+    public List<String> get_all_databases() throws MetaException, org.apache.thrift.TException;
 
-    public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, TException;
+    public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public Type get_type(String name) throws MetaException, NoSuchObjectException, TException;
+    public Type get_type(String name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
+    public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException;
 
-    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException;
+    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public Map<String,Type> get_type_all(String name) throws MetaException, TException;
+    public Map<String,Type> get_type_all(String name) throws MetaException, org.apache.thrift.TException;
 
-    public List<FieldSchema> get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException;
+    public List<FieldSchema> get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException;
 
-    public List<FieldSchema> get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException;
+    public List<FieldSchema> get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException;
 
-    public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException;
+    public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
+    public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public List<String> get_tables(String db_name, String pattern) throws MetaException, TException;
+    public List<String> get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException;
 
-    public List<String> get_all_tables(String db_name) throws MetaException, TException;
+    public List<String> get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException;
 
-    public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException;
+    public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public List<Table> get_table_objects_by_name(String dbname, List<String> tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, TException;
+    public List<Table> get_table_objects_by_name(String dbname, List<String> tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException;
 
-    public List<String> get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, TException;
+    public List<String> get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException;
 
-    public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException;
+    public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
 
-    public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
+    public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException;
 
-    public int add_partitions(List<Partition> new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
+    public int add_partitions(List<Partition> new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException;
 
-    public Partition append_partition(String db_name, String tbl_name, List<String> part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
+    public Partition append_partition(String db_name, String tbl_name, List<String> part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException;
 
-    public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
+    public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException;
 
-    public boolean drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
+    public boolean drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
+    public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public Partition get_partition(String db_name, String tbl_name, List<String> part_vals) throws MetaException, NoSuchObjectException, TException;
+    public Partition get_partition(String db_name, String tbl_name, List<String> part_vals) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public Partition get_partition_with_auth(String db_name, String tbl_name, List<String> part_vals, String user_name, List<String> group_names) throws MetaException, NoSuchObjectException, TException;
+    public Partition get_partition_with_auth(String db_name, String tbl_name, List<String> part_vals, String user_name, List<String> group_names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, TException;
+    public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public List<Partition> get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, TException;
+    public List<Partition> get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public 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, TException;
+    public 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;
 
-    public List<String> get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, TException;
+    public List<String> get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, org.apache.thrift.TException;
 
-    public List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, TException;
+    public List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, org.apache.thrift.TException;
 
-    public 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, TException;
+    public 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;
 
-    public List<String> get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, TException;
+    public List<String> get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, org.apache.thrift.TException;
 
-    public List<Partition> get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, TException;
+    public List<Partition> get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public List<Partition> get_partitions_by_names(String db_name, String tbl_name, List<String> names) throws MetaException, NoSuchObjectException, TException;
+    public List<Partition> get_partitions_by_names(String db_name, String tbl_name, List<String> names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, TException;
+    public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
 
-    public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, TException;
+    public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, org.apache.thrift.TException;
 
-    public List<String> partition_name_to_vals(String part_name) throws MetaException, TException;
+    public List<String> partition_name_to_vals(String part_name) throws MetaException, org.apache.thrift.TException;
 
-    public Map<String,String> partition_name_to_spec(String part_name) throws MetaException, TException;
+    public Map<String,String> partition_name_to_spec(String part_name) throws MetaException, org.apache.thrift.TException;
 
-    public void markPartitionForEvent(String db_name, String tbl_name, Map<String,String> part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException;
+    public 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;
 
-    public boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map<String,String> part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException;
+    public 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;
 
-    public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
+    public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException;
 
-    public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, TException;
+    public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
 
-    public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
+    public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, TException;
+    public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
-    public List<Index> get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, TException;
+    public List<Index> get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
-    public List<String> get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, TException;
+    public List<String> get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, org.apache.thrift.TException;
 
-    public boolean create_role(Role role) throws MetaException, TException;
+    public boolean create_role(Role role) throws MetaException, org.apache.thrift.TException;
 
-    public boolean drop_role(String role_name) throws MetaException, TException;
+    public boolean drop_role(String role_name) throws MetaException, org.apache.thrift.TException;
 
-    public List<String> get_role_names() throws MetaException, TException;
+    public List<String> get_role_names() throws MetaException, org.apache.thrift.TException;
 
-    public boolean grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws MetaException, TException;
+    public 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;
 
-    public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, TException;
+    public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException;
 
-    public List<Role> list_roles(String principal_name, PrincipalType principal_type) throws MetaException, TException;
+    public List<Role> list_roles(String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException;
 
-    public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List<String> group_names) throws MetaException, TException;
+    public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List<String> group_names) throws MetaException, org.apache.thrift.TException;
 
-    public List<HiveObjectPrivilege> list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, TException;
+    public List<HiveObjectPrivilege> list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, org.apache.thrift.TException;
 
-    public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, TException;
+    public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException;
 
-    public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, TException;
+    public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException;
 
-    public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, TException;
+    public String get_delegation_token(String token_owner, String renewer_kerberos_principal_name) throws MetaException, org.apache.thrift.TException;
 
-    public long renew_delegation_token(String token_str_form) throws MetaException, TException;
+    public long renew_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException;
 
-    public void cancel_delegation_token(String token_str_form) throws MetaException, TException;
+    public void cancel_delegation_token(String token_str_form) throws MetaException, org.apache.thrift.TException;
 
   }
 
   public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface {
 
-    public void create_database(Database database, AsyncMethodCallback<AsyncClient.create_database_call> resultHandler) throws TException;
+    public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_database_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_database(String name, AsyncMethodCallback<AsyncClient.get_database_call> resultHandler) throws TException;
+    public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_database_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_database(String name, boolean deleteData, boolean cascade, AsyncMethodCallback<AsyncClient.drop_database_call> resultHandler) throws TException;
+    public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_database_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_databases(String pattern, AsyncMethodCallback<AsyncClient.get_databases_call> resultHandler) throws TException;
+    public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_databases_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_all_databases(AsyncMethodCallback<AsyncClient.get_all_databases_call> resultHandler) throws TException;
+    public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_all_databases_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_database(String dbname, Database db, AsyncMethodCallback<AsyncClient.alter_database_call> resultHandler) throws TException;
+    public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_database_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_type(String name, AsyncMethodCallback<AsyncClient.get_type_call> resultHandler) throws TException;
+    public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_type_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void create_type(Type type, AsyncMethodCallback<AsyncClient.create_type_call> resultHandler) throws TException;
+    public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_type_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_type(String type, AsyncMethodCallback<AsyncClient.drop_type_call> resultHandler) throws TException;
+    public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_type_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_type_all(String name, AsyncMethodCallback<AsyncClient.get_type_all_call> resultHandler) throws TException;
+    public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_type_all_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_fields(String db_name, String table_name, AsyncMethodCallback<AsyncClient.get_fields_call> resultHandler) throws TException;
+    public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_fields_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_schema(String db_name, String table_name, AsyncMethodCallback<AsyncClient.get_schema_call> resultHandler) throws TException;
+    public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_schema_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void create_table(Table tbl, AsyncMethodCallback<AsyncClient.create_table_call> resultHandler) throws TException;
+    public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_table_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_table(String dbname, String name, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_table_call> resultHandler) throws TException;
+    public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_table_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_tables(String db_name, String pattern, AsyncMethodCallback<AsyncClient.get_tables_call> resultHandler) throws TException;
+    public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_tables_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_all_tables(String db_name, AsyncMethodCallback<AsyncClient.get_all_tables_call> resultHandler) throws TException;
+    public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_all_tables_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_table(String dbname, String tbl_name, AsyncMethodCallback<AsyncClient.get_table_call> resultHandler) throws TException;
+    public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_table_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_table_objects_by_name(String dbname, List<String> tbl_names, AsyncMethodCallback<AsyncClient.get_table_objects_by_name_call> resultHandler) throws TException;
+    public void get_table_objects_by_name(String dbname, List<String> tbl_names, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_table_objects_by_name_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_table_names_by_filter(String dbname, String filter, short max_tables, AsyncMethodCallback<AsyncClient.get_table_names_by_filter_call> resultHandler) throws TException;
+    public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_table_names_by_filter_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_table(String dbname, String tbl_name, Table new_tbl, AsyncMethodCallback<AsyncClient.alter_table_call> resultHandler) throws TException;
+    public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_table_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void add_partition(Partition new_part, AsyncMethodCallback<AsyncClient.add_partition_call> resultHandler) throws TException;
+    public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.add_partition_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void add_partitions(List<Partition> new_parts, AsyncMethodCallback<AsyncClient.add_partitions_call> resultHandler) throws TException;
+    public void add_partitions(List<Partition> new_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.add_partitions_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void append_partition(String db_name, String tbl_name, List<String> part_vals, AsyncMethodCallback<AsyncClient.append_partition_call> resultHandler) throws TException;
+    public void append_partition(String db_name, String tbl_name, List<String> part_vals, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.append_partition_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void append_partition_by_name(String db_name, String tbl_name, String part_name, AsyncMethodCallback<AsyncClient.append_partition_by_name_call> resultHandler) throws TException;
+    public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.append_partition_by_name_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_partition_call> resultHandler) throws TException;
+    public void drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_partition_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_partition_by_name_call> resultHandler) throws TException;
+    public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_partition_by_name_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partition(String db_name, String tbl_name, List<String> part_vals, AsyncMethodCallback<AsyncClient.get_partition_call> resultHandler) throws TException;
+    public void get_partition(String db_name, String tbl_name, List<String> part_vals, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partition_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partition_with_auth(String db_name, String tbl_name, List<String> part_vals, String user_name, List<String> group_names, AsyncMethodCallback<AsyncClient.get_partition_with_auth_call> resultHandler) throws TException;
+    public void get_partition_with_auth(String db_name, String tbl_name, List<String> part_vals, String user_name, List<String> group_names, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partition_with_auth_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partition_by_name(String db_name, String tbl_name, String part_name, AsyncMethodCallback<AsyncClient.get_partition_by_name_call> resultHandler) throws TException;
+    public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partition_by_name_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partitions(String db_name, String tbl_name, short max_parts, AsyncMethodCallback<AsyncClient.get_partitions_call> resultHandler) throws TException;
+    public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partitions_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List<String> group_names, AsyncMethodCallback<AsyncClient.get_partitions_with_auth_call> resultHandler) throws TException;
+    public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List<String> group_names, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partitions_with_auth_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partition_names(String db_name, String tbl_name, short max_parts, AsyncMethodCallback<AsyncClient.get_partition_names_call> resultHandler) throws TException;
+    public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partition_names_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts, AsyncMethodCallback<AsyncClient.get_partitions_ps_call> resultHandler) throws TException;
+    public void get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partitions_ps_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void 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, AsyncMethodCallback<AsyncClient.get_partitions_ps_with_auth_call> resultHandler) throws TException;
+    public void 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, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partitions_ps_with_auth_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts, AsyncMethodCallback<AsyncClient.get_partition_names_ps_call> resultHandler) throws TException;
+    public void get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partition_names_ps_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, AsyncMethodCallback<AsyncClient.get_partitions_by_filter_call> resultHandler) throws TException;
+    public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partitions_by_filter_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_partitions_by_names(String db_name, String tbl_name, List<String> names, AsyncMethodCallback<AsyncClient.get_partitions_by_names_call> resultHandler) throws TException;
+    public void get_partitions_by_names(String db_name, String tbl_name, List<String> names, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_partitions_by_names_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_partition(String db_name, String tbl_name, Partition new_part, AsyncMethodCallback<AsyncClient.alter_partition_call> resultHandler) throws TException;
+    public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_partition_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_config_value(String name, String defaultValue, AsyncMethodCallback<AsyncClient.get_config_value_call> resultHandler) throws TException;
+    public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_config_value_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void partition_name_to_vals(String part_name, AsyncMethodCallback<AsyncClient.partition_name_to_vals_call> resultHandler) throws TException;
+    public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.partition_name_to_vals_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void partition_name_to_spec(String part_name, AsyncMethodCallback<AsyncClient.partition_name_to_spec_call> resultHandler) throws TException;
+    public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.partition_name_to_spec_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void markPartitionForEvent(String db_name, String tbl_name, Map<String,String> part_vals, PartitionEventType eventType, AsyncMethodCallback<AsyncClient.markPartitionForEvent_call> resultHandler) throws TException;
+    public void markPartitionForEvent(String db_name, String tbl_name, Map<String,String> part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPartitionForEvent_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map<String,String> part_vals, PartitionEventType eventType, AsyncMethodCallback<AsyncClient.isPartitionMarkedForEvent_call> resultHandler) throws TException;
+    public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map<String,String> part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPartitionMarkedForEvent_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void add_index(Index new_index, Table index_table, AsyncMethodCallback<AsyncClient.add_index_call> resultHandler) throws TException;
+    public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.add_index_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, AsyncMethodCallback<AsyncClient.alter_index_call> resultHandler) throws TException;
+    public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.alter_index_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_index_by_name_call> resultHandler) throws TException;
+    public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_index_by_name_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_index_by_name(String db_name, String tbl_name, String index_name, AsyncMethodCallback<AsyncClient.get_index_by_name_call> resultHandler) throws TException;
+    public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_index_by_name_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_indexes(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback<AsyncClient.get_indexes_call> resultHandler) throws TException;
+    public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_indexes_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_index_names(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback<AsyncClient.get_index_names_call> resultHandler) throws TException;
+    public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_index_names_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void create_role(Role role, AsyncMethodCallback<AsyncClient.create_role_call> resultHandler) throws TException;
+    public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.create_role_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void drop_role(String role_name, AsyncMethodCallback<AsyncClient.drop_role_call> resultHandler) throws TException;
+    public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.drop_role_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_role_names(AsyncMethodCallback<AsyncClient.get_role_names_call> resultHandler) throws TException;
+    public void get_role_names(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_role_names_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, AsyncMethodCallback<AsyncClient.grant_role_call> resultHandler) throws TException;
+    public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.grant_role_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, AsyncMethodCallback<AsyncClient.revoke_role_call> resultHandler) throws TException;
+    public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.revoke_role_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void list_roles(String principal_name, PrincipalType principal_type, AsyncMethodCallback<AsyncClient.list_roles_call> resultHandler) throws TException;
+    public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_roles_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List<String> group_names, AsyncMethodCallback<AsyncClient.get_privilege_set_call> resultHandler) throws TException;
+    public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List<String> group_names, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_privilege_set_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, AsyncMethodCallback<AsyncClient.list_privileges_call> resultHandler) throws TException;
+    public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.list_privileges_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void grant_privileges(PrivilegeBag privileges, AsyncMethodCallback<AsyncClient.grant_privileges_call> resultHandler) throws TException;
+    public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.grant_privileges_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void revoke_privileges(PrivilegeBag privileges, AsyncMethodCallback<AsyncClient.revoke_privileges_call> resultHandler) throws TException;
+    public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.revoke_privileges_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, AsyncMethodCallback<AsyncClient.get_delegation_token_call> resultHandler) throws TException;
+    public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_delegation_token_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void renew_delegation_token(String token_str_form, AsyncMethodCallback<AsyncClient.renew_delegation_token_call> resultHandler) throws TException;
+    public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.renew_delegation_token_call> resultHandler) throws org.apache.thrift.TException;
 
-    public void cancel_delegation_token(String token_str_form, AsyncMethodCallback<AsyncClient.cancel_delegation_token_call> resultHandler) throws TException;
+    public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.cancel_delegation_token_call> resultHandler) throws org.apache.thrift.TException;
 
   }
 
-  public static class Client extends com.facebook.fb303.FacebookService.Client implements TServiceClient, Iface {
-    public static class Factory implements TServiceClientFactory<Client> {
+  public static class Client extends com.facebook.fb303.FacebookService.Client implements Iface {
+    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
       public Factory() {}
-      public Client getClient(TProtocol prot) {
+      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
         return new Client(prot);
       }
-      public Client getClient(TProtocol iprot, TProtocol oprot) {
+      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
         return new Client(iprot, oprot);
       }
     }
 
-    public Client(TProtocol prot)
+    public Client(org.apache.thrift.protocol.TProtocol prot)
     {
-      this(prot, prot);
+      super(prot, prot);
     }
 
-    public Client(TProtocol iprot, TProtocol oprot)
-    {
+    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
       super(iprot, oprot);
     }
 
-    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException
+    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
     {
       send_create_database(database);
       recv_create_database();
     }
 
-    public void send_create_database(Database database) throws TException
+    public void send_create_database(Database database) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("create_database", TMessageType.CALL, ++seqid_));
       create_database_args args = new create_database_args();
       args.setDatabase(database);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("create_database", args);
     }
 
-    public void recv_create_database() throws AlreadyExistsException, InvalidObjectException, MetaException, TException
+    public void recv_create_database() throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_database failed: out of sequence response");
-      }
       create_database_result result = new create_database_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "create_database");
       if (result.o1 != null) {
         throw result.o1;
       }
@@ -350,36 +330,23 @@ public class ThriftHiveMetastore {
       return;
     }
 
-    public Database get_database(String name) throws NoSuchObjectException, MetaException, TException
+    public Database get_database(String name) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
     {
       send_get_database(name);
       return recv_get_database();
     }
 
-    public void send_get_database(String name) throws TException
+    public void send_get_database(String name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_database", TMessageType.CALL, ++seqid_));
       get_database_args args = new get_database_args();
       args.setName(name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_database", args);
     }
 
-    public Database recv_get_database() throws NoSuchObjectException, MetaException, TException
+    public Database recv_get_database() throws NoSuchObjectException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_database failed: out of sequence response");
-      }
       get_database_result result = new get_database_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_database");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -389,41 +356,28 @@ public class ThriftHiveMetastore {
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
     }
 
-    public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, TException
+    public void drop_database(String name, boolean deleteData, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
     {
       send_drop_database(name, deleteData, cascade);
       recv_drop_database();
     }
 
-    public void send_drop_database(String name, boolean deleteData, boolean cascade) throws TException
+    public void send_drop_database(String name, boolean deleteData, boolean cascade) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("drop_database", TMessageType.CALL, ++seqid_));
       drop_database_args args = new drop_database_args();
       args.setName(name);
       args.setDeleteData(deleteData);
       args.setCascade(cascade);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("drop_database", args);
     }
 
-    public void recv_drop_database() throws NoSuchObjectException, InvalidOperationException, MetaException, TException
+    public void recv_drop_database() throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_database failed: out of sequence response");
-      }
       drop_database_result result = new drop_database_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "drop_database");
       if (result.o1 != null) {
         throw result.o1;
       }
@@ -436,114 +390,75 @@ public class ThriftHiveMetastore {
       return;
     }
 
-    public List<String> get_databases(String pattern) throws MetaException, TException
+    public List<String> get_databases(String pattern) throws MetaException, org.apache.thrift.TException
     {
       send_get_databases(pattern);
       return recv_get_databases();
     }
 
-    public void send_get_databases(String pattern) throws TException
+    public void send_get_databases(String pattern) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_databases", TMessageType.CALL, ++seqid_));
       get_databases_args args = new get_databases_args();
       args.setPattern(pattern);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_databases", args);
     }
 
-    public List<String> recv_get_databases() throws MetaException, TException
+    public List<String> recv_get_databases() throws MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_databases failed: out of sequence response");
-      }
       get_databases_result result = new get_databases_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_databases");
       if (result.isSetSuccess()) {
         return result.success;
       }
       if (result.o1 != null) {
         throw result.o1;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
     }
 
-    public List<String> get_all_databases() throws MetaException, TException
+    public List<String> get_all_databases() throws MetaException, org.apache.thrift.TException
     {
       send_get_all_databases();
       return recv_get_all_databases();
     }
 
-    public void send_get_all_databases() throws TException
+    public void send_get_all_databases() throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_all_databases", TMessageType.CALL, ++seqid_));
       get_all_databases_args args = new get_all_databases_args();
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_all_databases", args);
     }
 
-    public List<String> recv_get_all_databases() throws MetaException, TException
+    public List<String> recv_get_all_databases() throws MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_all_databases failed: out of sequence response");
-      }
       get_all_databases_result result = new get_all_databases_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_all_databases");
       if (result.isSetSuccess()) {
         return result.success;
       }
       if (result.o1 != null) {
         throw result.o1;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
     }
 
-    public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, TException
+    public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
       send_alter_database(dbname, db);
       recv_alter_database();
     }
 
-    public void send_alter_database(String dbname, Database db) throws TException
+    public void send_alter_database(String dbname, Database db) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("alter_database", TMessageType.CALL, ++seqid_));
       alter_database_args args = new alter_database_args();
       args.setDbname(dbname);
       args.setDb(db);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("alter_database", args);
     }
 
-    public void recv_alter_database() throws MetaException, NoSuchObjectException, TException
+    public void recv_alter_database() throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_database failed: out of sequence response");
-      }
       alter_database_result result = new alter_database_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "alter_database");
       if (result.o1 != null) {
         throw result.o1;
       }
@@ -553,36 +468,23 @@ public class ThriftHiveMetastore {
       return;
     }
 
-    public Type get_type(String name) throws MetaException, NoSuchObjectException, TException
+    public Type get_type(String name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
       send_get_type(name);
       return recv_get_type();
     }
 
-    public void send_get_type(String name) throws TException
+    public void send_get_type(String name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_type", TMessageType.CALL, ++seqid_));
       get_type_args args = new get_type_args();
       args.setName(name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_type", args);
     }
 
-    public Type recv_get_type() throws MetaException, NoSuchObjectException, TException
+    public Type recv_get_type() throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_type failed: out of sequence response");
-      }
       get_type_result result = new get_type_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_type");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -592,39 +494,26 @@ public class ThriftHiveMetastore {
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_type failed: unknown result");
     }
 
-    public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException
+    public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
     {
       send_create_type(type);
       return recv_create_type();
     }
 
-    public void send_create_type(Type type) throws TException
+    public void send_create_type(Type type) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("create_type", TMessageType.CALL, ++seqid_));
       create_type_args args = new create_type_args();
       args.setType(type);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("create_type", args);
     }
 
-    public boolean recv_create_type() throws AlreadyExistsException, InvalidObjectException, MetaException, TException
+    public boolean recv_create_type() throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_type failed: out of sequence response");
-      }
       create_type_result result = new create_type_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "create_type");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -637,39 +526,26 @@ public class ThriftHiveMetastore {
       if (result.o3 != null) {
         throw result.o3;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
     }
 
-    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException
+    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
       send_drop_type(type);
       return recv_drop_type();
     }
 
-    public void send_drop_type(String type) throws TException
+    public void send_drop_type(String type) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("drop_type", TMessageType.CALL, ++seqid_));
       drop_type_args args = new drop_type_args();
       args.setType(type);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("drop_type", args);
     }
 
-    public boolean recv_drop_type() throws MetaException, NoSuchObjectException, TException
+    public boolean recv_drop_type() throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_type failed: out of sequence response");
-      }
       drop_type_result result = new drop_type_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "drop_type");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -679,79 +555,53 @@ public class ThriftHiveMetastore {
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_type failed: unknown result");
     }
 
-    public Map<String,Type> get_type_all(String name) throws MetaException, TException
+    public Map<String,Type> get_type_all(String name) throws MetaException, org.apache.thrift.TException
     {
       send_get_type_all(name);
       return recv_get_type_all();
     }
 
-    public void send_get_type_all(String name) throws TException
+    public void send_get_type_all(String name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_type_all", TMessageType.CALL, ++seqid_));
       get_type_all_args args = new get_type_all_args();
       args.setName(name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_type_all", args);
     }
 
-    public Map<String,Type> recv_get_type_all() throws MetaException, TException
+    public Map<String,Type> recv_get_type_all() throws MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_type_all failed: out of sequence response");
-      }
       get_type_all_result result = new get_type_all_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_type_all");
       if (result.isSetSuccess()) {
         return result.success;
       }
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result");
     }
 
-    public List<FieldSchema> get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException
+    public List<FieldSchema> get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException
     {
       send_get_fields(db_name, table_name);
       return recv_get_fields();
     }
 
-    public void send_get_fields(String db_name, String table_name) throws TException
+    public void send_get_fields(String db_name, String table_name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_fields", TMessageType.CALL, ++seqid_));
       get_fields_args args = new get_fields_args();
       args.setDb_name(db_name);
       args.setTable_name(table_name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_fields", args);
     }
 
-    public List<FieldSchema> recv_get_fields() throws MetaException, UnknownTableException, UnknownDBException, TException
+    public List<FieldSchema> recv_get_fields() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_fields failed: out of sequence response");
-      }
       get_fields_result result = new get_fields_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_fields");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -764,40 +614,27 @@ public class ThriftHiveMetastore {
       if (result.o3 != null) {
         throw result.o3;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_fields failed: unknown result");
     }
 
-    public List<FieldSchema> get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException
+    public List<FieldSchema> get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException
     {
       send_get_schema(db_name, table_name);
       return recv_get_schema();
     }
 
-    public void send_get_schema(String db_name, String table_name) throws TException
+    public void send_get_schema(String db_name, String table_name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_schema", TMessageType.CALL, ++seqid_));
       get_schema_args args = new get_schema_args();
       args.setDb_name(db_name);
       args.setTable_name(table_name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_schema", args);
     }
 
-    public List<FieldSchema> recv_get_schema() throws MetaException, UnknownTableException, UnknownDBException, TException
+    public List<FieldSchema> recv_get_schema() throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_schema failed: out of sequence response");
-      }
       get_schema_result result = new get_schema_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_schema");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -810,39 +647,26 @@ public class ThriftHiveMetastore {
       if (result.o3 != null) {
         throw result.o3;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_schema failed: unknown result");
     }
 
-    public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException
+    public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
       send_create_table(tbl);
       recv_create_table();
     }
 
-    public void send_create_table(Table tbl) throws TException
+    public void send_create_table(Table tbl) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("create_table", TMessageType.CALL, ++seqid_));
       create_table_args args = new create_table_args();
       args.setTbl(tbl);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("create_table", args);
     }
 
-    public void recv_create_table() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException
+    public void recv_create_table() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_table failed: out of sequence response");
-      }
       create_table_result result = new create_table_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "create_table");
       if (result.o1 != null) {
         throw result.o1;
       }
@@ -858,38 +682,25 @@ public class ThriftHiveMetastore {
       return;
     }
 
-    public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException
+    public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
     {
       send_drop_table(dbname, name, deleteData);
       recv_drop_table();
     }
 
-    public void send_drop_table(String dbname, String name, boolean deleteData) throws TException
+    public void send_drop_table(String dbname, String name, boolean deleteData) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("drop_table", TMessageType.CALL, ++seqid_));
       drop_table_args args = new drop_table_args();
       args.setDbname(dbname);
       args.setName(name);
       args.setDeleteData(deleteData);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("drop_table", args);
     }
 
-    public void recv_drop_table() throws NoSuchObjectException, MetaException, TException
+    public void recv_drop_table() throws NoSuchObjectException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_table failed: out of sequence response");
-      }
       drop_table_result result = new drop_table_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "drop_table");
       if (result.o1 != null) {
         throw result.o1;
       }
@@ -899,116 +710,77 @@ public class ThriftHiveMetastore {
       return;
     }
 
-    public List<String> get_tables(String db_name, String pattern) throws MetaException, TException
+    public List<String> get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException
     {
       send_get_tables(db_name, pattern);
       return recv_get_tables();
     }
 
-    public void send_get_tables(String db_name, String pattern) throws TException
+    public void send_get_tables(String db_name, String pattern) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_tables", TMessageType.CALL, ++seqid_));
       get_tables_args args = new get_tables_args();
       args.setDb_name(db_name);
       args.setPattern(pattern);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_tables", args);
     }
 
-    public List<String> recv_get_tables() throws MetaException, TException
+    public List<String> recv_get_tables() throws MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_tables failed: out of sequence response");
-      }
       get_tables_result result = new get_tables_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_tables");
       if (result.isSetSuccess()) {
         return result.success;
       }
       if (result.o1 != null) {
         throw result.o1;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
     }
 
-    public List<String> get_all_tables(String db_name) throws MetaException, TException
+    public List<String> get_all_tables(String db_name) throws MetaException, org.apache.thrift.TException
     {
       send_get_all_tables(db_name);
       return recv_get_all_tables();
     }
 
-    public void send_get_all_tables(String db_name) throws TException
+    public void send_get_all_tables(String db_name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_all_tables", TMessageType.CALL, ++seqid_));
       get_all_tables_args args = new get_all_tables_args();
       args.setDb_name(db_name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_all_tables", args);
     }
 
-    public List<String> recv_get_all_tables() throws MetaException, TException
+    public List<String> recv_get_all_tables() throws MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_all_tables failed: out of sequence response");
-      }
       get_all_tables_result result = new get_all_tables_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_all_tables");
       if (result.isSetSuccess()) {
         return result.success;
       }
       if (result.o1 != null) {
         throw result.o1;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
     }
 
-    public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException
+    public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
       send_get_table(dbname, tbl_name);
       return recv_get_table();
     }
 
-    public void send_get_table(String dbname, String tbl_name) throws TException
+    public void send_get_table(String dbname, String tbl_name) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_table", TMessageType.CALL, ++seqid_));
       get_table_args args = new get_table_args();
       args.setDbname(dbname);
       args.setTbl_name(tbl_name);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_table", args);
     }
 
-    public Table recv_get_table() throws MetaException, NoSuchObjectException, TException
+    public Table recv_get_table() throws MetaException, NoSuchObjectException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table failed: out of sequence response");
-      }
       get_table_result result = new get_table_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_table");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -1018,40 +790,27 @@ public class ThriftHiveMetastore {
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table failed: unknown result");
     }
 
-    public List<Table> get_table_objects_by_name(String dbname, List<String> tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, TException
+    public List<Table> get_table_objects_by_name(String dbname, List<String> tbl_names) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException
     {
       send_get_table_objects_by_name(dbname, tbl_names);
       return recv_get_table_objects_by_name();
     }
 
-    public void send_get_table_objects_by_name(String dbname, List<String> tbl_names) throws TException
+    public void send_get_table_objects_by_name(String dbname, List<String> tbl_names) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_table_objects_by_name", TMessageType.CALL, ++seqid_));
       get_table_objects_by_name_args args = new get_table_objects_by_name_args();
       args.setDbname(dbname);
       args.setTbl_names(tbl_names);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_table_objects_by_name", args);
     }
 
-    public List<Table> recv_get_table_objects_by_name() throws MetaException, InvalidOperationException, UnknownDBException, TException
+    public List<Table> recv_get_table_objects_by_name() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table_objects_by_name failed: out of sequence response");
-      }
       get_table_objects_by_name_result result = new get_table_objects_by_name_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_table_objects_by_name");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -1064,41 +823,28 @@ public class ThriftHiveMetastore {
       if (result.o3 != null) {
         throw result.o3;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result");
     }
 
-    public List<String> get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, TException
+    public List<String> get_table_names_by_filter(String dbname, String filter, short max_tables) throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException
     {
       send_get_table_names_by_filter(dbname, filter, max_tables);
       return recv_get_table_names_by_filter();
     }
 
-    public void send_get_table_names_by_filter(String dbname, String filter, short max_tables) throws TException
+    public void send_get_table_names_by_filter(String dbname, String filter, short max_tables) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("get_table_names_by_filter", TMessageType.CALL, ++seqid_));
       get_table_names_by_filter_args args = new get_table_names_by_filter_args();
       args.setDbname(dbname);
       args.setFilter(filter);
       args.setMax_tables(max_tables);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("get_table_names_by_filter", args);
     }
 
-    public List<String> recv_get_table_names_by_filter() throws MetaException, InvalidOperationException, UnknownDBException, TException
+    public List<String> recv_get_table_names_by_filter() throws MetaException, InvalidOperationException, UnknownDBException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table_names_by_filter failed: out of sequence response");
-      }
       get_table_names_by_filter_result result = new get_table_names_by_filter_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "get_table_names_by_filter");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -1111,41 +857,28 @@ public class ThriftHiveMetastore {
       if (result.o3 != null) {
         throw result.o3;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result");
     }
 
-    public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException
+    public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, org.apache.thrift.TException
     {
       send_alter_table(dbname, tbl_name, new_tbl);
       recv_alter_table();
     }
 
-    public void send_alter_table(String dbname, String tbl_name, Table new_tbl) throws TException
+    public void send_alter_table(String dbname, String tbl_name, Table new_tbl) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("alter_table", TMessageType.CALL, ++seqid_));
       alter_table_args args = new alter_table_args();
       args.setDbname(dbname);
       args.setTbl_name(tbl_name);
       args.setNew_tbl(new_tbl);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("alter_table", args);
     }
 
-    public void recv_alter_table() throws InvalidOperationException, MetaException, TException
+    public void recv_alter_table() throws InvalidOperationException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_table failed: out of sequence response");
-      }
       alter_table_result result = new alter_table_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "alter_table");
       if (result.o1 != null) {
         throw result.o1;
       }
@@ -1155,36 +888,23 @@ public class ThriftHiveMetastore {
       return;
     }
 
-    public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException
+    public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
     {
       send_add_partition(new_part);
       return recv_add_partition();
     }
 
-    public void send_add_partition(Partition new_part) throws TException
+    public void send_add_partition(Partition new_part) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("add_partition", TMessageType.CALL, ++seqid_));
       add_partition_args args = new add_partition_args();
       args.setNew_part(new_part);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("add_partition", args);
     }
 
-    public Partition recv_add_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, TException
+    public Partition recv_add_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {
-        TApplicationException x = TApplicationException.read(iprot_);
-        iprot_.readMessageEnd();
-        throw x;
-      }
-      if (msg.seqid != seqid_) {
-        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "add_partition failed: out of sequence response");
-      }
       add_partition_result result = new add_partition_result();
-      result.read(iprot_);
-      iprot_.readMessageEnd();
+      receiveBase(result, "add_partition");
       if (result.isSetSuccess()) {
         return result.success;
       }
@@ -1197,39 +917,26 @@ public class ThriftHiveMetastore {
       if (result.o3 != null) {
         throw result.o3;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result");
+      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "add_partition failed: unknown result");
     }
 
-    public int add_partitions(List<Partition> new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, TException
+    public int add_partitions(List<Partition> new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
     {
       send_add_partitions(new_parts);
       return recv_add_partitions();
     }
 
-    public void send_add_partitions(List<Partition> new_parts) throws TException
+    public void send_add_partitions(List<Partition> new_parts) throws org.apache.thrift.TException
     {
-      oprot_.writeMessageBegin(new TMessage("add_partitions", TMessageType.CALL, ++seqid_));
       add_partitions_args args = new add_partitions_args();
       args.setNew_parts(new_parts);
-      args.write(oprot_);
-      oprot_.writeMessageEnd();
-      oprot_.getTransport().flush();
+      sendBase("add_partitions", args);
     }
 
-    public int recv_add_partitions() throws InvalidObjectException, AlreadyExistsException, MetaException, TException
+    public int recv_add_partitions() throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException
     {
-      TMessage msg = iprot_.readMessageBegin();
-      if (msg.type == TMessageType.EXCEPTION) {

[... 32797 lines stripped ...]


Mime
View raw message