PageRenderTime 130ms CodeModel.GetById 12ms app.highlight 98ms RepoModel.GetById 3ms app.codeStats 3ms

/tags/release-0.1-rc2/hive/external/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java

#
Java | 5611 lines | 5033 code | 570 blank | 8 comment | 590 complexity | a838fcc295967a4f20c2048b20aa54c3 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1/**
   2 * Autogenerated by Thrift
   3 *
   4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
   5 */
   6package org.apache.hadoop.hive.metastore.api;
   7
   8import java.util.List;
   9import java.util.ArrayList;
  10import java.util.Map;
  11import java.util.HashMap;
  12import java.util.EnumMap;
  13import java.util.Set;
  14import java.util.HashSet;
  15import java.util.EnumSet;
  16import java.util.Collections;
  17import java.util.BitSet;
  18import java.nio.ByteBuffer;
  19import java.util.Arrays;
  20import org.slf4j.Logger;
  21import org.slf4j.LoggerFactory;
  22
  23import org.apache.thrift.*;
  24import org.apache.thrift.async.*;
  25import org.apache.thrift.meta_data.*;
  26import org.apache.thrift.transport.*;
  27import org.apache.thrift.protocol.*;
  28
  29public class ThriftHiveMetastore {
  30
  31  /**
  32   * This interface is live.
  33   */
  34  public interface Iface extends com.facebook.fb303.FacebookService.Iface {
  35
  36    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
  37
  38    public Database get_database(String name) throws NoSuchObjectException, MetaException, TException;
  39
  40    public void drop_database(String name, boolean deleteData) throws NoSuchObjectException, InvalidOperationException, MetaException, TException;
  41
  42    public List<String> get_databases(String pattern) throws MetaException, TException;
  43
  44    public List<String> get_all_databases() throws MetaException, TException;
  45
  46    public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, TException;
  47
  48    public Type get_type(String name) throws MetaException, NoSuchObjectException, TException;
  49
  50    public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
  51
  52    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException;
  53
  54    public Map<String,Type> get_type_all(String name) throws MetaException, TException;
  55
  56    public List<FieldSchema> get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException;
  57
  58    public List<FieldSchema> get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException;
  59
  60    public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException;
  61
  62    public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
  63
  64    public List<String> get_tables(String db_name, String pattern) throws MetaException, TException;
  65
  66    public List<String> get_all_tables(String db_name) throws MetaException, TException;
  67
  68    public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException;
  69
  70    public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException;
  71
  72    public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
  73
  74    public Partition append_partition(String db_name, String tbl_name, List<String> part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
  75
  76    public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
  77
  78    public boolean drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
  79
  80    public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
  81
  82    public Partition get_partition(String db_name, String tbl_name, List<String> part_vals) throws MetaException, NoSuchObjectException, TException;
  83
  84    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;
  85
  86    public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, TException;
  87
  88    public List<Partition> get_partitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, TException;
  89
  90    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;
  91
  92    public List<String> get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, TException;
  93
  94    public List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, TException;
  95
  96    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;
  97
  98    public List<String> get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, TException;
  99
 100    public List<Partition> get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, TException;
 101
 102    public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, TException;
 103
 104    public String get_config_value(String name, String defaultValue) throws ConfigValSecurityException, TException;
 105
 106    public List<String> partition_name_to_vals(String part_name) throws MetaException, TException;
 107
 108    public Map<String,String> partition_name_to_spec(String part_name) throws MetaException, TException;
 109
 110    public Index add_index(Index new_index, Table index_table) throws InvalidObjectException, AlreadyExistsException, MetaException, TException;
 111
 112    public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, TException;
 113
 114    public boolean drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData) throws NoSuchObjectException, MetaException, TException;
 115
 116    public Index get_index_by_name(String db_name, String tbl_name, String index_name) throws MetaException, NoSuchObjectException, TException;
 117
 118    public List<Index> get_indexes(String db_name, String tbl_name, short max_indexes) throws NoSuchObjectException, MetaException, TException;
 119
 120    public List<String> get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, TException;
 121
 122    public boolean create_role(Role role) throws MetaException, TException;
 123
 124    public boolean drop_role(String role_name) throws MetaException, TException;
 125
 126    public List<String> get_role_names() throws MetaException, TException;
 127
 128    public boolean grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) throws MetaException, TException;
 129
 130    public boolean revoke_role(String role_name, String principal_name, PrincipalType principal_type) throws MetaException, TException;
 131
 132    public List<Role> list_roles(String principal_name, PrincipalType principal_type) throws MetaException, TException;
 133
 134    public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List<String> group_names) throws MetaException, TException;
 135
 136    public List<HiveObjectPrivilege> list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, TException;
 137
 138    public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, TException;
 139
 140    public boolean revoke_privileges(PrivilegeBag privileges) throws MetaException, TException;
 141
 142    public String get_delegation_token(String renewer_kerberos_principal_name) throws MetaException, TException;
 143
 144    public String get_delegation_token_with_signature(String renewer_kerberos_principal_name, String token_signature) throws MetaException, TException;
 145
 146    public long renew_delegation_token(String token_str_form) throws MetaException, TException;
 147
 148    public void cancel_delegation_token(String token_str_form) throws MetaException, TException;
 149
 150  }
 151
 152  public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface {
 153
 154    public void create_database(Database database, AsyncMethodCallback<AsyncClient.create_database_call> resultHandler) throws TException;
 155
 156    public void get_database(String name, AsyncMethodCallback<AsyncClient.get_database_call> resultHandler) throws TException;
 157
 158    public void drop_database(String name, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_database_call> resultHandler) throws TException;
 159
 160    public void get_databases(String pattern, AsyncMethodCallback<AsyncClient.get_databases_call> resultHandler) throws TException;
 161
 162    public void get_all_databases(AsyncMethodCallback<AsyncClient.get_all_databases_call> resultHandler) throws TException;
 163
 164    public void alter_database(String dbname, Database db, AsyncMethodCallback<AsyncClient.alter_database_call> resultHandler) throws TException;
 165
 166    public void get_type(String name, AsyncMethodCallback<AsyncClient.get_type_call> resultHandler) throws TException;
 167
 168    public void create_type(Type type, AsyncMethodCallback<AsyncClient.create_type_call> resultHandler) throws TException;
 169
 170    public void drop_type(String type, AsyncMethodCallback<AsyncClient.drop_type_call> resultHandler) throws TException;
 171
 172    public void get_type_all(String name, AsyncMethodCallback<AsyncClient.get_type_all_call> resultHandler) throws TException;
 173
 174    public void get_fields(String db_name, String table_name, AsyncMethodCallback<AsyncClient.get_fields_call> resultHandler) throws TException;
 175
 176    public void get_schema(String db_name, String table_name, AsyncMethodCallback<AsyncClient.get_schema_call> resultHandler) throws TException;
 177
 178    public void create_table(Table tbl, AsyncMethodCallback<AsyncClient.create_table_call> resultHandler) throws TException;
 179
 180    public void drop_table(String dbname, String name, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_table_call> resultHandler) throws TException;
 181
 182    public void get_tables(String db_name, String pattern, AsyncMethodCallback<AsyncClient.get_tables_call> resultHandler) throws TException;
 183
 184    public void get_all_tables(String db_name, AsyncMethodCallback<AsyncClient.get_all_tables_call> resultHandler) throws TException;
 185
 186    public void get_table(String dbname, String tbl_name, AsyncMethodCallback<AsyncClient.get_table_call> resultHandler) throws TException;
 187
 188    public void alter_table(String dbname, String tbl_name, Table new_tbl, AsyncMethodCallback<AsyncClient.alter_table_call> resultHandler) throws TException;
 189
 190    public void add_partition(Partition new_part, AsyncMethodCallback<AsyncClient.add_partition_call> resultHandler) throws TException;
 191
 192    public void append_partition(String db_name, String tbl_name, List<String> part_vals, AsyncMethodCallback<AsyncClient.append_partition_call> resultHandler) throws TException;
 193
 194    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;
 195
 196    public void drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData, AsyncMethodCallback<AsyncClient.drop_partition_call> resultHandler) throws TException;
 197
 198    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;
 199
 200    public void get_partition(String db_name, String tbl_name, List<String> part_vals, AsyncMethodCallback<AsyncClient.get_partition_call> resultHandler) throws TException;
 201
 202    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;
 203
 204    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;
 205
 206    public void get_partitions(String db_name, String tbl_name, short max_parts, AsyncMethodCallback<AsyncClient.get_partitions_call> resultHandler) throws TException;
 207
 208    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;
 209
 210    public void get_partition_names(String db_name, String tbl_name, short max_parts, AsyncMethodCallback<AsyncClient.get_partition_names_call> resultHandler) throws TException;
 211
 212    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;
 213
 214    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;
 215
 216    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;
 217
 218    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;
 219
 220    public void alter_partition(String db_name, String tbl_name, Partition new_part, AsyncMethodCallback<AsyncClient.alter_partition_call> resultHandler) throws TException;
 221
 222    public void get_config_value(String name, String defaultValue, AsyncMethodCallback<AsyncClient.get_config_value_call> resultHandler) throws TException;
 223
 224    public void partition_name_to_vals(String part_name, AsyncMethodCallback<AsyncClient.partition_name_to_vals_call> resultHandler) throws TException;
 225
 226    public void partition_name_to_spec(String part_name, AsyncMethodCallback<AsyncClient.partition_name_to_spec_call> resultHandler) throws TException;
 227
 228    public void add_index(Index new_index, Table index_table, AsyncMethodCallback<AsyncClient.add_index_call> resultHandler) throws TException;
 229
 230    public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, AsyncMethodCallback<AsyncClient.alter_index_call> resultHandler) throws TException;
 231
 232    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;
 233
 234    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;
 235
 236    public void get_indexes(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback<AsyncClient.get_indexes_call> resultHandler) throws TException;
 237
 238    public void get_index_names(String db_name, String tbl_name, short max_indexes, AsyncMethodCallback<AsyncClient.get_index_names_call> resultHandler) throws TException;
 239
 240    public void create_role(Role role, AsyncMethodCallback<AsyncClient.create_role_call> resultHandler) throws TException;
 241
 242    public void drop_role(String role_name, AsyncMethodCallback<AsyncClient.drop_role_call> resultHandler) throws TException;
 243
 244    public void get_role_names(AsyncMethodCallback<AsyncClient.get_role_names_call> resultHandler) throws TException;
 245
 246    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;
 247
 248    public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, AsyncMethodCallback<AsyncClient.revoke_role_call> resultHandler) throws TException;
 249
 250    public void list_roles(String principal_name, PrincipalType principal_type, AsyncMethodCallback<AsyncClient.list_roles_call> resultHandler) throws TException;
 251
 252    public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List<String> group_names, AsyncMethodCallback<AsyncClient.get_privilege_set_call> resultHandler) throws TException;
 253
 254    public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, AsyncMethodCallback<AsyncClient.list_privileges_call> resultHandler) throws TException;
 255
 256    public void grant_privileges(PrivilegeBag privileges, AsyncMethodCallback<AsyncClient.grant_privileges_call> resultHandler) throws TException;
 257
 258    public void revoke_privileges(PrivilegeBag privileges, AsyncMethodCallback<AsyncClient.revoke_privileges_call> resultHandler) throws TException;
 259
 260    public void get_delegation_token(String renewer_kerberos_principal_name, AsyncMethodCallback<AsyncClient.get_delegation_token_call> resultHandler) throws TException;
 261
 262    public void get_delegation_token_with_signature(String renewer_kerberos_principal_name, String token_signature, AsyncMethodCallback<AsyncClient.get_delegation_token_with_signature_call> resultHandler) throws TException;
 263
 264    public void renew_delegation_token(String token_str_form, AsyncMethodCallback<AsyncClient.renew_delegation_token_call> resultHandler) throws TException;
 265
 266    public void cancel_delegation_token(String token_str_form, AsyncMethodCallback<AsyncClient.cancel_delegation_token_call> resultHandler) throws TException;
 267
 268  }
 269
 270  public static class Client extends com.facebook.fb303.FacebookService.Client implements TServiceClient, Iface {
 271    public static class Factory implements TServiceClientFactory<Client> {
 272      public Factory() {}
 273      public Client getClient(TProtocol prot) {
 274        return new Client(prot);
 275      }
 276      public Client getClient(TProtocol iprot, TProtocol oprot) {
 277        return new Client(iprot, oprot);
 278      }
 279    }
 280
 281    public Client(TProtocol prot)
 282    {
 283      this(prot, prot);
 284    }
 285
 286    public Client(TProtocol iprot, TProtocol oprot)
 287    {
 288      super(iprot, oprot);
 289    }
 290
 291    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException
 292    {
 293      send_create_database(database);
 294      recv_create_database();
 295    }
 296
 297    public void send_create_database(Database database) throws TException
 298    {
 299      oprot_.writeMessageBegin(new TMessage("create_database", TMessageType.CALL, ++seqid_));
 300      create_database_args args = new create_database_args();
 301      args.setDatabase(database);
 302      args.write(oprot_);
 303      oprot_.writeMessageEnd();
 304      oprot_.getTransport().flush();
 305    }
 306
 307    public void recv_create_database() throws AlreadyExistsException, InvalidObjectException, MetaException, TException
 308    {
 309      TMessage msg = iprot_.readMessageBegin();
 310      if (msg.type == TMessageType.EXCEPTION) {
 311        TApplicationException x = TApplicationException.read(iprot_);
 312        iprot_.readMessageEnd();
 313        throw x;
 314      }
 315      if (msg.seqid != seqid_) {
 316        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_database failed: out of sequence response");
 317      }
 318      create_database_result result = new create_database_result();
 319      result.read(iprot_);
 320      iprot_.readMessageEnd();
 321      if (result.o1 != null) {
 322        throw result.o1;
 323      }
 324      if (result.o2 != null) {
 325        throw result.o2;
 326      }
 327      if (result.o3 != null) {
 328        throw result.o3;
 329      }
 330      return;
 331    }
 332
 333    public Database get_database(String name) throws NoSuchObjectException, MetaException, TException
 334    {
 335      send_get_database(name);
 336      return recv_get_database();
 337    }
 338
 339    public void send_get_database(String name) throws TException
 340    {
 341      oprot_.writeMessageBegin(new TMessage("get_database", TMessageType.CALL, ++seqid_));
 342      get_database_args args = new get_database_args();
 343      args.setName(name);
 344      args.write(oprot_);
 345      oprot_.writeMessageEnd();
 346      oprot_.getTransport().flush();
 347    }
 348
 349    public Database recv_get_database() throws NoSuchObjectException, MetaException, TException
 350    {
 351      TMessage msg = iprot_.readMessageBegin();
 352      if (msg.type == TMessageType.EXCEPTION) {
 353        TApplicationException x = TApplicationException.read(iprot_);
 354        iprot_.readMessageEnd();
 355        throw x;
 356      }
 357      if (msg.seqid != seqid_) {
 358        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_database failed: out of sequence response");
 359      }
 360      get_database_result result = new get_database_result();
 361      result.read(iprot_);
 362      iprot_.readMessageEnd();
 363      if (result.isSetSuccess()) {
 364        return result.success;
 365      }
 366      if (result.o1 != null) {
 367        throw result.o1;
 368      }
 369      if (result.o2 != null) {
 370        throw result.o2;
 371      }
 372      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
 373    }
 374
 375    public void drop_database(String name, boolean deleteData) throws NoSuchObjectException, InvalidOperationException, MetaException, TException
 376    {
 377      send_drop_database(name, deleteData);
 378      recv_drop_database();
 379    }
 380
 381    public void send_drop_database(String name, boolean deleteData) throws TException
 382    {
 383      oprot_.writeMessageBegin(new TMessage("drop_database", TMessageType.CALL, ++seqid_));
 384      drop_database_args args = new drop_database_args();
 385      args.setName(name);
 386      args.setDeleteData(deleteData);
 387      args.write(oprot_);
 388      oprot_.writeMessageEnd();
 389      oprot_.getTransport().flush();
 390    }
 391
 392    public void recv_drop_database() throws NoSuchObjectException, InvalidOperationException, MetaException, TException
 393    {
 394      TMessage msg = iprot_.readMessageBegin();
 395      if (msg.type == TMessageType.EXCEPTION) {
 396        TApplicationException x = TApplicationException.read(iprot_);
 397        iprot_.readMessageEnd();
 398        throw x;
 399      }
 400      if (msg.seqid != seqid_) {
 401        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_database failed: out of sequence response");
 402      }
 403      drop_database_result result = new drop_database_result();
 404      result.read(iprot_);
 405      iprot_.readMessageEnd();
 406      if (result.o1 != null) {
 407        throw result.o1;
 408      }
 409      if (result.o2 != null) {
 410        throw result.o2;
 411      }
 412      if (result.o3 != null) {
 413        throw result.o3;
 414      }
 415      return;
 416    }
 417
 418    public List<String> get_databases(String pattern) throws MetaException, TException
 419    {
 420      send_get_databases(pattern);
 421      return recv_get_databases();
 422    }
 423
 424    public void send_get_databases(String pattern) throws TException
 425    {
 426      oprot_.writeMessageBegin(new TMessage("get_databases", TMessageType.CALL, ++seqid_));
 427      get_databases_args args = new get_databases_args();
 428      args.setPattern(pattern);
 429      args.write(oprot_);
 430      oprot_.writeMessageEnd();
 431      oprot_.getTransport().flush();
 432    }
 433
 434    public List<String> recv_get_databases() throws MetaException, TException
 435    {
 436      TMessage msg = iprot_.readMessageBegin();
 437      if (msg.type == TMessageType.EXCEPTION) {
 438        TApplicationException x = TApplicationException.read(iprot_);
 439        iprot_.readMessageEnd();
 440        throw x;
 441      }
 442      if (msg.seqid != seqid_) {
 443        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_databases failed: out of sequence response");
 444      }
 445      get_databases_result result = new get_databases_result();
 446      result.read(iprot_);
 447      iprot_.readMessageEnd();
 448      if (result.isSetSuccess()) {
 449        return result.success;
 450      }
 451      if (result.o1 != null) {
 452        throw result.o1;
 453      }
 454      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
 455    }
 456
 457    public List<String> get_all_databases() throws MetaException, TException
 458    {
 459      send_get_all_databases();
 460      return recv_get_all_databases();
 461    }
 462
 463    public void send_get_all_databases() throws TException
 464    {
 465      oprot_.writeMessageBegin(new TMessage("get_all_databases", TMessageType.CALL, ++seqid_));
 466      get_all_databases_args args = new get_all_databases_args();
 467      args.write(oprot_);
 468      oprot_.writeMessageEnd();
 469      oprot_.getTransport().flush();
 470    }
 471
 472    public List<String> recv_get_all_databases() throws MetaException, TException
 473    {
 474      TMessage msg = iprot_.readMessageBegin();
 475      if (msg.type == TMessageType.EXCEPTION) {
 476        TApplicationException x = TApplicationException.read(iprot_);
 477        iprot_.readMessageEnd();
 478        throw x;
 479      }
 480      if (msg.seqid != seqid_) {
 481        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_all_databases failed: out of sequence response");
 482      }
 483      get_all_databases_result result = new get_all_databases_result();
 484      result.read(iprot_);
 485      iprot_.readMessageEnd();
 486      if (result.isSetSuccess()) {
 487        return result.success;
 488      }
 489      if (result.o1 != null) {
 490        throw result.o1;
 491      }
 492      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
 493    }
 494
 495    public void alter_database(String dbname, Database db) throws MetaException, NoSuchObjectException, TException
 496    {
 497      send_alter_database(dbname, db);
 498      recv_alter_database();
 499    }
 500
 501    public void send_alter_database(String dbname, Database db) throws TException
 502    {
 503      oprot_.writeMessageBegin(new TMessage("alter_database", TMessageType.CALL, ++seqid_));
 504      alter_database_args args = new alter_database_args();
 505      args.setDbname(dbname);
 506      args.setDb(db);
 507      args.write(oprot_);
 508      oprot_.writeMessageEnd();
 509      oprot_.getTransport().flush();
 510    }
 511
 512    public void recv_alter_database() throws MetaException, NoSuchObjectException, TException
 513    {
 514      TMessage msg = iprot_.readMessageBegin();
 515      if (msg.type == TMessageType.EXCEPTION) {
 516        TApplicationException x = TApplicationException.read(iprot_);
 517        iprot_.readMessageEnd();
 518        throw x;
 519      }
 520      if (msg.seqid != seqid_) {
 521        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_database failed: out of sequence response");
 522      }
 523      alter_database_result result = new alter_database_result();
 524      result.read(iprot_);
 525      iprot_.readMessageEnd();
 526      if (result.o1 != null) {
 527        throw result.o1;
 528      }
 529      if (result.o2 != null) {
 530        throw result.o2;
 531      }
 532      return;
 533    }
 534
 535    public Type get_type(String name) throws MetaException, NoSuchObjectException, TException
 536    {
 537      send_get_type(name);
 538      return recv_get_type();
 539    }
 540
 541    public void send_get_type(String name) throws TException
 542    {
 543      oprot_.writeMessageBegin(new TMessage("get_type", TMessageType.CALL, ++seqid_));
 544      get_type_args args = new get_type_args();
 545      args.setName(name);
 546      args.write(oprot_);
 547      oprot_.writeMessageEnd();
 548      oprot_.getTransport().flush();
 549    }
 550
 551    public Type recv_get_type() throws MetaException, NoSuchObjectException, TException
 552    {
 553      TMessage msg = iprot_.readMessageBegin();
 554      if (msg.type == TMessageType.EXCEPTION) {
 555        TApplicationException x = TApplicationException.read(iprot_);
 556        iprot_.readMessageEnd();
 557        throw x;
 558      }
 559      if (msg.seqid != seqid_) {
 560        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_type failed: out of sequence response");
 561      }
 562      get_type_result result = new get_type_result();
 563      result.read(iprot_);
 564      iprot_.readMessageEnd();
 565      if (result.isSetSuccess()) {
 566        return result.success;
 567      }
 568      if (result.o1 != null) {
 569        throw result.o1;
 570      }
 571      if (result.o2 != null) {
 572        throw result.o2;
 573      }
 574      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result");
 575    }
 576
 577    public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException
 578    {
 579      send_create_type(type);
 580      return recv_create_type();
 581    }
 582
 583    public void send_create_type(Type type) throws TException
 584    {
 585      oprot_.writeMessageBegin(new TMessage("create_type", TMessageType.CALL, ++seqid_));
 586      create_type_args args = new create_type_args();
 587      args.setType(type);
 588      args.write(oprot_);
 589      oprot_.writeMessageEnd();
 590      oprot_.getTransport().flush();
 591    }
 592
 593    public boolean recv_create_type() throws AlreadyExistsException, InvalidObjectException, MetaException, TException
 594    {
 595      TMessage msg = iprot_.readMessageBegin();
 596      if (msg.type == TMessageType.EXCEPTION) {
 597        TApplicationException x = TApplicationException.read(iprot_);
 598        iprot_.readMessageEnd();
 599        throw x;
 600      }
 601      if (msg.seqid != seqid_) {
 602        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_type failed: out of sequence response");
 603      }
 604      create_type_result result = new create_type_result();
 605      result.read(iprot_);
 606      iprot_.readMessageEnd();
 607      if (result.isSetSuccess()) {
 608        return result.success;
 609      }
 610      if (result.o1 != null) {
 611        throw result.o1;
 612      }
 613      if (result.o2 != null) {
 614        throw result.o2;
 615      }
 616      if (result.o3 != null) {
 617        throw result.o3;
 618      }
 619      throw new TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
 620    }
 621
 622    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException
 623    {
 624      send_drop_type(type);
 625      return recv_drop_type();
 626    }
 627
 628    public void send_drop_type(String type) throws TException
 629    {
 630      oprot_.writeMessageBegin(new TMessage("drop_type", TMessageType.CALL, ++seqid_));
 631      drop_type_args args = new drop_type_args();
 632      args.setType(type);
 633      args.write(oprot_);
 634      oprot_.writeMessageEnd();
 635      oprot_.getTransport().flush();
 636    }
 637
 638    public boolean recv_drop_type() throws MetaException, NoSuchObjectException, TException
 639    {
 640      TMessage msg = iprot_.readMessageBegin();
 641      if (msg.type == TMessageType.EXCEPTION) {
 642        TApplicationException x = TApplicationException.read(iprot_);
 643        iprot_.readMessageEnd();
 644        throw x;
 645      }
 646      if (msg.seqid != seqid_) {
 647        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_type failed: out of sequence response");
 648      }
 649      drop_type_result result = new drop_type_result();
 650      result.read(iprot_);
 651      iprot_.readMessageEnd();
 652      if (result.isSetSuccess()) {
 653        return result.success;
 654      }
 655      if (result.o1 != null) {
 656        throw result.o1;
 657      }
 658      if (result.o2 != null) {
 659        throw result.o2;
 660      }
 661      throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result");
 662    }
 663
 664    public Map<String,Type> get_type_all(String name) throws MetaException, TException
 665    {
 666      send_get_type_all(name);
 667      return recv_get_type_all();
 668    }
 669
 670    public void send_get_type_all(String name) throws TException
 671    {
 672      oprot_.writeMessageBegin(new TMessage("get_type_all", TMessageType.CALL, ++seqid_));
 673      get_type_all_args args = new get_type_all_args();
 674      args.setName(name);
 675      args.write(oprot_);
 676      oprot_.writeMessageEnd();
 677      oprot_.getTransport().flush();
 678    }
 679
 680    public Map<String,Type> recv_get_type_all() throws MetaException, TException
 681    {
 682      TMessage msg = iprot_.readMessageBegin();
 683      if (msg.type == TMessageType.EXCEPTION) {
 684        TApplicationException x = TApplicationException.read(iprot_);
 685        iprot_.readMessageEnd();
 686        throw x;
 687      }
 688      if (msg.seqid != seqid_) {
 689        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_type_all failed: out of sequence response");
 690      }
 691      get_type_all_result result = new get_type_all_result();
 692      result.read(iprot_);
 693      iprot_.readMessageEnd();
 694      if (result.isSetSuccess()) {
 695        return result.success;
 696      }
 697      if (result.o2 != null) {
 698        throw result.o2;
 699      }
 700      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result");
 701    }
 702
 703    public List<FieldSchema> get_fields(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException
 704    {
 705      send_get_fields(db_name, table_name);
 706      return recv_get_fields();
 707    }
 708
 709    public void send_get_fields(String db_name, String table_name) throws TException
 710    {
 711      oprot_.writeMessageBegin(new TMessage("get_fields", TMessageType.CALL, ++seqid_));
 712      get_fields_args args = new get_fields_args();
 713      args.setDb_name(db_name);
 714      args.setTable_name(table_name);
 715      args.write(oprot_);
 716      oprot_.writeMessageEnd();
 717      oprot_.getTransport().flush();
 718    }
 719
 720    public List<FieldSchema> recv_get_fields() throws MetaException, UnknownTableException, UnknownDBException, TException
 721    {
 722      TMessage msg = iprot_.readMessageBegin();
 723      if (msg.type == TMessageType.EXCEPTION) {
 724        TApplicationException x = TApplicationException.read(iprot_);
 725        iprot_.readMessageEnd();
 726        throw x;
 727      }
 728      if (msg.seqid != seqid_) {
 729        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_fields failed: out of sequence response");
 730      }
 731      get_fields_result result = new get_fields_result();
 732      result.read(iprot_);
 733      iprot_.readMessageEnd();
 734      if (result.isSetSuccess()) {
 735        return result.success;
 736      }
 737      if (result.o1 != null) {
 738        throw result.o1;
 739      }
 740      if (result.o2 != null) {
 741        throw result.o2;
 742      }
 743      if (result.o3 != null) {
 744        throw result.o3;
 745      }
 746      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result");
 747    }
 748
 749    public List<FieldSchema> get_schema(String db_name, String table_name) throws MetaException, UnknownTableException, UnknownDBException, TException
 750    {
 751      send_get_schema(db_name, table_name);
 752      return recv_get_schema();
 753    }
 754
 755    public void send_get_schema(String db_name, String table_name) throws TException
 756    {
 757      oprot_.writeMessageBegin(new TMessage("get_schema", TMessageType.CALL, ++seqid_));
 758      get_schema_args args = new get_schema_args();
 759      args.setDb_name(db_name);
 760      args.setTable_name(table_name);
 761      args.write(oprot_);
 762      oprot_.writeMessageEnd();
 763      oprot_.getTransport().flush();
 764    }
 765
 766    public List<FieldSchema> recv_get_schema() throws MetaException, UnknownTableException, UnknownDBException, TException
 767    {
 768      TMessage msg = iprot_.readMessageBegin();
 769      if (msg.type == TMessageType.EXCEPTION) {
 770        TApplicationException x = TApplicationException.read(iprot_);
 771        iprot_.readMessageEnd();
 772        throw x;
 773      }
 774      if (msg.seqid != seqid_) {
 775        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_schema failed: out of sequence response");
 776      }
 777      get_schema_result result = new get_schema_result();
 778      result.read(iprot_);
 779      iprot_.readMessageEnd();
 780      if (result.isSetSuccess()) {
 781        return result.success;
 782      }
 783      if (result.o1 != null) {
 784        throw result.o1;
 785      }
 786      if (result.o2 != null) {
 787        throw result.o2;
 788      }
 789      if (result.o3 != null) {
 790        throw result.o3;
 791      }
 792      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result");
 793    }
 794
 795    public void create_table(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException
 796    {
 797      send_create_table(tbl);
 798      recv_create_table();
 799    }
 800
 801    public void send_create_table(Table tbl) throws TException
 802    {
 803      oprot_.writeMessageBegin(new TMessage("create_table", TMessageType.CALL, ++seqid_));
 804      create_table_args args = new create_table_args();
 805      args.setTbl(tbl);
 806      args.write(oprot_);
 807      oprot_.writeMessageEnd();
 808      oprot_.getTransport().flush();
 809    }
 810
 811    public void recv_create_table() throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException
 812    {
 813      TMessage msg = iprot_.readMessageBegin();
 814      if (msg.type == TMessageType.EXCEPTION) {
 815        TApplicationException x = TApplicationException.read(iprot_);
 816        iprot_.readMessageEnd();
 817        throw x;
 818      }
 819      if (msg.seqid != seqid_) {
 820        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "create_table failed: out of sequence response");
 821      }
 822      create_table_result result = new create_table_result();
 823      result.read(iprot_);
 824      iprot_.readMessageEnd();
 825      if (result.o1 != null) {
 826        throw result.o1;
 827      }
 828      if (result.o2 != null) {
 829        throw result.o2;
 830      }
 831      if (result.o3 != null) {
 832        throw result.o3;
 833      }
 834      if (result.o4 != null) {
 835        throw result.o4;
 836      }
 837      return;
 838    }
 839
 840    public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException
 841    {
 842      send_drop_table(dbname, name, deleteData);
 843      recv_drop_table();
 844    }
 845
 846    public void send_drop_table(String dbname, String name, boolean deleteData) throws TException
 847    {
 848      oprot_.writeMessageBegin(new TMessage("drop_table", TMessageType.CALL, ++seqid_));
 849      drop_table_args args = new drop_table_args();
 850      args.setDbname(dbname);
 851      args.setName(name);
 852      args.setDeleteData(deleteData);
 853      args.write(oprot_);
 854      oprot_.writeMessageEnd();
 855      oprot_.getTransport().flush();
 856    }
 857
 858    public void recv_drop_table() throws NoSuchObjectException, MetaException, TException
 859    {
 860      TMessage msg = iprot_.readMessageBegin();
 861      if (msg.type == TMessageType.EXCEPTION) {
 862        TApplicationException x = TApplicationException.read(iprot_);
 863        iprot_.readMessageEnd();
 864        throw x;
 865      }
 866      if (msg.seqid != seqid_) {
 867        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "drop_table failed: out of sequence response");
 868      }
 869      drop_table_result result = new drop_table_result();
 870      result.read(iprot_);
 871      iprot_.readMessageEnd();
 872      if (result.o1 != null) {
 873        throw result.o1;
 874      }
 875      if (result.o3 != null) {
 876        throw result.o3;
 877      }
 878      return;
 879    }
 880
 881    public List<String> get_tables(String db_name, String pattern) throws MetaException, TException
 882    {
 883      send_get_tables(db_name, pattern);
 884      return recv_get_tables();
 885    }
 886
 887    public void send_get_tables(String db_name, String pattern) throws TException
 888    {
 889      oprot_.writeMessageBegin(new TMessage("get_tables", TMessageType.CALL, ++seqid_));
 890      get_tables_args args = new get_tables_args();
 891      args.setDb_name(db_name);
 892      args.setPattern(pattern);
 893      args.write(oprot_);
 894      oprot_.writeMessageEnd();
 895      oprot_.getTransport().flush();
 896    }
 897
 898    public List<String> recv_get_tables() throws MetaException, TException
 899    {
 900      TMessage msg = iprot_.readMessageBegin();
 901      if (msg.type == TMessageType.EXCEPTION) {
 902        TApplicationException x = TApplicationException.read(iprot_);
 903        iprot_.readMessageEnd();
 904        throw x;
 905      }
 906      if (msg.seqid != seqid_) {
 907        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_tables failed: out of sequence response");
 908      }
 909      get_tables_result result = new get_tables_result();
 910      result.read(iprot_);
 911      iprot_.readMessageEnd();
 912      if (result.isSetSuccess()) {
 913        return result.success;
 914      }
 915      if (result.o1 != null) {
 916        throw result.o1;
 917      }
 918      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
 919    }
 920
 921    public List<String> get_all_tables(String db_name) throws MetaException, TException
 922    {
 923      send_get_all_tables(db_name);
 924      return recv_get_all_tables();
 925    }
 926
 927    public void send_get_all_tables(String db_name) throws TException
 928    {
 929      oprot_.writeMessageBegin(new TMessage("get_all_tables", TMessageType.CALL, ++seqid_));
 930      get_all_tables_args args = new get_all_tables_args();
 931      args.setDb_name(db_name);
 932      args.write(oprot_);
 933      oprot_.writeMessageEnd();
 934      oprot_.getTransport().flush();
 935    }
 936
 937    public List<String> recv_get_all_tables() throws MetaException, TException
 938    {
 939      TMessage msg = iprot_.readMessageBegin();
 940      if (msg.type == TMessageType.EXCEPTION) {
 941        TApplicationException x = TApplicationException.read(iprot_);
 942        iprot_.readMessageEnd();
 943        throw x;
 944      }
 945      if (msg.seqid != seqid_) {
 946        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_all_tables failed: out of sequence response");
 947      }
 948      get_all_tables_result result = new get_all_tables_result();
 949      result.read(iprot_);
 950      iprot_.readMessageEnd();
 951      if (result.isSetSuccess()) {
 952        return result.success;
 953      }
 954      if (result.o1 != null) {
 955        throw result.o1;
 956      }
 957      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
 958    }
 959
 960    public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException
 961    {
 962      send_get_table(dbname, tbl_name);
 963      return recv_get_table();
 964    }
 965
 966    public void send_get_table(String dbname, String tbl_name) throws TException
 967    {
 968      oprot_.writeMessageBegin(new TMessage("get_table", TMessageType.CALL, ++seqid_));
 969      get_table_args args = new get_table_args();
 970      args.setDbname(dbname);
 971      args.setTbl_name(tbl_name);
 972      args.write(oprot_);
 973      oprot_.writeMessageEnd();
 974      oprot_.getTransport().flush();
 975    }
 976
 977    public Table recv_get_table() throws MetaException, NoSuchObjectException, TException
 978    {
 979      TMessage msg = iprot_.readMessageBegin();
 980      if (msg.type == TMessageType.EXCEPTION) {
 981        TApplicationException x = TApplicationException.read(iprot_);
 982        iprot_.readMessageEnd();
 983        throw x;
 984      }
 985      if (msg.seqid != seqid_) {
 986        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "get_table failed: out of sequence response");
 987      }
 988      get_table_result result = new get_table_result();
 989      result.read(iprot_);
 990      iprot_.readMessageEnd();
 991      if (result.isSetSuccess()) {
 992        return result.success;
 993      }
 994      if (result.o1 != null) {
 995        throw result.o1;
 996      }
 997      if (result.o2 != null) {
 998        throw result.o2;
 999      }
1000      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result");
1001    }
1002
1003    public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException
1004    {
1005      send_alter_table(dbname, tbl_name, new_tbl);
1006      recv_alter_table();
1007    }
1008
1009    public void send_alter_table(String dbname, String tbl_name, Table new_tbl) throws TException
1010    {
1011      oprot_.writeMessageBegin(new TMessage("alter_table", TMessageType.CALL, ++seqid_));
1012      alter_table_args args = new alter_table_args();
1013      args.setDbname(dbname);
1014      args.setTbl_name(tbl_name);
1015      args.setNew_tbl(new_tbl);
1016      args.write(oprot_);
1017      oprot_.writeMessageEnd();
1018      oprot_.getTransport().flush();
1019    }
1020
1021    public void recv_alter_table() throws InvalidOperationException, MetaException, TException
1022    {
1023      TMessage msg = iprot_.readMessageBegin();
1024      if (msg.type == TMessageType.EXCEPTION) {
1025        TApplicationException x = TApplicationException.read(iprot_);
1026        iprot_.readMessageEnd();
1027        throw x;
1028      }
1029      if (msg.seqid != seqid_) {
1030        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "alter_table failed: out of sequence response");
1031      }
1032      alter_table_result result = new alter_table_result();
1033      result.read(iprot_);
1034      iprot_.readMessageEnd();
1035      if (result.o1 != null) {
1036        throw result.o1;
1037      }
1038      if (result.o2 != null) {
1039        throw result.o2;
1040      }
1041      return;
1042    }
1043
1044    public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException
1045    {
1046      send_add_partition(new_part);
1047      return recv_add_partition();
1048    }
1049
1050    public void send_add_partition(Partition new_part) throws TException
1051    {
1052      oprot_.writeMessageBegin(new TMessage("add_partition", TMessageType.CALL, ++seqid_));
1053      add_partition_args args = new add_partition_args();
1054      args.setNew_part(new_part);
1055      args.write(oprot_);
1056      oprot_.writeMessageEnd();
1057      oprot_.getTransport().flush();
1058    }
1059
1060    public Partition recv_add_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, TException
1061    {
1062      TMessage msg = iprot_.readMessageBegin();
1063      if (msg.type == TMessageType.EXCEPTION) {
1064        TApplicationException x = TApplicationException.read(iprot_);
1065        iprot_.readMessageEnd();
1066        throw x;
1067      }
1068      if (msg.seqid != seqid_) {
1069        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "add_partition failed: out of sequence response");
1070      }
1071      add_partition_result result = new add_partition_result();
1072      result.read(iprot_);
1073      iprot_.readMessageEnd();
1074      if (result.isSetSuccess()) {
1075        return result.success;
1076      }
1077      if (result.o1 != null) {
1078        throw result.o1;
1079      }
1080      if (result.o2 != null) {
1081        throw result.o2;
1082      }
1083      if (result.o3 != null) {
1084        throw result.o3;
1085      }
1086      throw new TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result");
1087    }
1088
1089    public Partition append_partition(String db_name, String tbl_name, List<String> part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, TException
1090    {
1091      send_append_partition(db_name, tbl_name, part_vals);
1092      return recv_append_partition();
1093    }
1094
1095    public void send_append_partition(String db_name, String tbl_name, List<String> part_vals) throws TException
1096    {
1097      oprot_.writeMessageBegin(new TMessage("append_partition", TMessageType.CALL, ++seqid_));
1098      append_partition_args args = new append_partition_args();
1099      args.setDb_name(db_name);
1100      args.setTbl_name(tbl_name);
1101      args.setPart_vals(part_vals);
1102      args.write(oprot_);
1103      oprot_.writeMessageEnd();
1104      oprot_.getTransport().flush();
1105    }
1106
1107    public Partition recv_append_partition() throws InvalidObjectException, AlreadyExistsException, MetaException, TException
1108    {
1109      TMessage msg = iprot_.readMessageBegin();
1110      if (msg.type == TMessageType.EXCEPTION) {
1111        TApplicationException x = TApplicationException.read(iprot_);
1112        iprot_.readMessageEnd();
1113        throw x;
1114      }
1115      if (msg.seqid != seqid_) {
1116        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "append_partition failed: out of sequence response");
1117      }
1118      append_partition_result result = new append_partition_result();
1119      result.read(iprot_);
1120      iprot_.readMessageEnd();
1121      if (result.isSetSuccess()) {
1122        return result.success;
1123      }
1124      if (result.o1 != null) {
1125        throw result.o1;
1126      }
1127      if (result.o2 != null) {
1128        throw result.o2;
1129      }
1130      if (result.o3 != null) {
1131        throw result.o3;
1132      }
1133      throw new TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result");
1134    }
1135
1136    public Partition append_partition_by_name(String db_name, String tbl_name, String part_name) throws InvalidObjectException, AlreadyExistsException, MetaException, TException
1137    {
1138      send_append_partition_by_name(db_name, tbl_name, part_name);
1139      return recv_append_partition_by_name();
1140    }
1141
1142    public void send_append_partition_by_name(String db_name, String tbl_name, String part_name) throws TException
1143    {
1144      oprot_.writeMessageBegin(new TMessage("append_partition_by_name", TMessageType.CALL, ++seqid_));
1145      append_partition_by_name_args args = new append_partition_by_name_args();
1146      args.setDb_name(db_name);
1147      args.setTbl_name(tbl_name);
1148      args.setPart_name(part_name);
1149      args.write(oprot_);
1150      oprot_.writeMessageEnd();
1151      oprot_.getTransport().flush();
1152    }
1153
1154    public Partition recv_append_partition_by_name() throws InvalidObjectException, AlreadyExistsException, MetaException, TException
1155    {
1156      TMessage msg = iprot_.readMessageBegin();
1157      if (msg.type == TMessageType.EXCEPTION) {
1158        TApplicationException x = TApplicationException.read(iprot_);
1159        iprot_.readMessageEnd();
1160        throw x;
1161      }
1162      if (msg.seqid != seqid_) {
1163        throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID, "append_partition_by_name failed: out of sequence response");
1164      }
1165      append_partition_by_name_result result = new append_partition_by_name_result();
1166      result.read(iprot_);
1167      iprot_.readMessageEnd();
1168      if (result.isSetSuc

Large files files are truncated, but you can click here to view the full file