PageRenderTime 128ms CodeModel.GetById 13ms app.highlight 100ms RepoModel.GetById 1ms app.codeStats 2ms

/tags/release-0.1-rc2/hive/external/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py

#
Python | 7978 lines | 6267 code | 792 blank | 919 comment | 1546 complexity | 4f8890f7730bf0fcf880328481265676 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#
   6
   7from thrift.Thrift import *
   8import fb303.FacebookService
   9from ttypes import *
  10from thrift.Thrift import TProcessor
  11from thrift.transport import TTransport
  12from thrift.protocol import TBinaryProtocol, TProtocol
  13try:
  14  from thrift.protocol import fastbinary
  15except:
  16  fastbinary = None
  17
  18
  19class Iface(fb303.FacebookService.Iface):
  20  """
  21  This interface is live.
  22  """
  23  def create_database(self, database):
  24    """
  25    Parameters:
  26     - database
  27    """
  28    pass
  29
  30  def get_database(self, name):
  31    """
  32    Parameters:
  33     - name
  34    """
  35    pass
  36
  37  def drop_database(self, name, deleteData):
  38    """
  39    Parameters:
  40     - name
  41     - deleteData
  42    """
  43    pass
  44
  45  def get_databases(self, pattern):
  46    """
  47    Parameters:
  48     - pattern
  49    """
  50    pass
  51
  52  def get_all_databases(self, ):
  53    pass
  54
  55  def alter_database(self, dbname, db):
  56    """
  57    Parameters:
  58     - dbname
  59     - db
  60    """
  61    pass
  62
  63  def get_type(self, name):
  64    """
  65    Parameters:
  66     - name
  67    """
  68    pass
  69
  70  def create_type(self, type):
  71    """
  72    Parameters:
  73     - type
  74    """
  75    pass
  76
  77  def drop_type(self, type):
  78    """
  79    Parameters:
  80     - type
  81    """
  82    pass
  83
  84  def get_type_all(self, name):
  85    """
  86    Parameters:
  87     - name
  88    """
  89    pass
  90
  91  def get_fields(self, db_name, table_name):
  92    """
  93    Parameters:
  94     - db_name
  95     - table_name
  96    """
  97    pass
  98
  99  def get_schema(self, db_name, table_name):
 100    """
 101    Parameters:
 102     - db_name
 103     - table_name
 104    """
 105    pass
 106
 107  def create_table(self, tbl):
 108    """
 109    Parameters:
 110     - tbl
 111    """
 112    pass
 113
 114  def drop_table(self, dbname, name, deleteData):
 115    """
 116    Parameters:
 117     - dbname
 118     - name
 119     - deleteData
 120    """
 121    pass
 122
 123  def get_tables(self, db_name, pattern):
 124    """
 125    Parameters:
 126     - db_name
 127     - pattern
 128    """
 129    pass
 130
 131  def get_all_tables(self, db_name):
 132    """
 133    Parameters:
 134     - db_name
 135    """
 136    pass
 137
 138  def get_table(self, dbname, tbl_name):
 139    """
 140    Parameters:
 141     - dbname
 142     - tbl_name
 143    """
 144    pass
 145
 146  def alter_table(self, dbname, tbl_name, new_tbl):
 147    """
 148    Parameters:
 149     - dbname
 150     - tbl_name
 151     - new_tbl
 152    """
 153    pass
 154
 155  def add_partition(self, new_part):
 156    """
 157    Parameters:
 158     - new_part
 159    """
 160    pass
 161
 162  def append_partition(self, db_name, tbl_name, part_vals):
 163    """
 164    Parameters:
 165     - db_name
 166     - tbl_name
 167     - part_vals
 168    """
 169    pass
 170
 171  def append_partition_by_name(self, db_name, tbl_name, part_name):
 172    """
 173    Parameters:
 174     - db_name
 175     - tbl_name
 176     - part_name
 177    """
 178    pass
 179
 180  def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
 181    """
 182    Parameters:
 183     - db_name
 184     - tbl_name
 185     - part_vals
 186     - deleteData
 187    """
 188    pass
 189
 190  def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
 191    """
 192    Parameters:
 193     - db_name
 194     - tbl_name
 195     - part_name
 196     - deleteData
 197    """
 198    pass
 199
 200  def get_partition(self, db_name, tbl_name, part_vals):
 201    """
 202    Parameters:
 203     - db_name
 204     - tbl_name
 205     - part_vals
 206    """
 207    pass
 208
 209  def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
 210    """
 211    Parameters:
 212     - db_name
 213     - tbl_name
 214     - part_vals
 215     - user_name
 216     - group_names
 217    """
 218    pass
 219
 220  def get_partition_by_name(self, db_name, tbl_name, part_name):
 221    """
 222    Parameters:
 223     - db_name
 224     - tbl_name
 225     - part_name
 226    """
 227    pass
 228
 229  def get_partitions(self, db_name, tbl_name, max_parts):
 230    """
 231    Parameters:
 232     - db_name
 233     - tbl_name
 234     - max_parts
 235    """
 236    pass
 237
 238  def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
 239    """
 240    Parameters:
 241     - db_name
 242     - tbl_name
 243     - max_parts
 244     - user_name
 245     - group_names
 246    """
 247    pass
 248
 249  def get_partition_names(self, db_name, tbl_name, max_parts):
 250    """
 251    Parameters:
 252     - db_name
 253     - tbl_name
 254     - max_parts
 255    """
 256    pass
 257
 258  def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
 259    """
 260    Parameters:
 261     - db_name
 262     - tbl_name
 263     - part_vals
 264     - max_parts
 265    """
 266    pass
 267
 268  def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
 269    """
 270    Parameters:
 271     - db_name
 272     - tbl_name
 273     - part_vals
 274     - max_parts
 275     - user_name
 276     - group_names
 277    """
 278    pass
 279
 280  def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
 281    """
 282    Parameters:
 283     - db_name
 284     - tbl_name
 285     - part_vals
 286     - max_parts
 287    """
 288    pass
 289
 290  def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
 291    """
 292    Parameters:
 293     - db_name
 294     - tbl_name
 295     - filter
 296     - max_parts
 297    """
 298    pass
 299
 300  def alter_partition(self, db_name, tbl_name, new_part):
 301    """
 302    Parameters:
 303     - db_name
 304     - tbl_name
 305     - new_part
 306    """
 307    pass
 308
 309  def get_config_value(self, name, defaultValue):
 310    """
 311    Parameters:
 312     - name
 313     - defaultValue
 314    """
 315    pass
 316
 317  def partition_name_to_vals(self, part_name):
 318    """
 319    Parameters:
 320     - part_name
 321    """
 322    pass
 323
 324  def partition_name_to_spec(self, part_name):
 325    """
 326    Parameters:
 327     - part_name
 328    """
 329    pass
 330
 331  def add_index(self, new_index, index_table):
 332    """
 333    Parameters:
 334     - new_index
 335     - index_table
 336    """
 337    pass
 338
 339  def alter_index(self, dbname, base_tbl_name, idx_name, new_idx):
 340    """
 341    Parameters:
 342     - dbname
 343     - base_tbl_name
 344     - idx_name
 345     - new_idx
 346    """
 347    pass
 348
 349  def drop_index_by_name(self, db_name, tbl_name, index_name, deleteData):
 350    """
 351    Parameters:
 352     - db_name
 353     - tbl_name
 354     - index_name
 355     - deleteData
 356    """
 357    pass
 358
 359  def get_index_by_name(self, db_name, tbl_name, index_name):
 360    """
 361    Parameters:
 362     - db_name
 363     - tbl_name
 364     - index_name
 365    """
 366    pass
 367
 368  def get_indexes(self, db_name, tbl_name, max_indexes):
 369    """
 370    Parameters:
 371     - db_name
 372     - tbl_name
 373     - max_indexes
 374    """
 375    pass
 376
 377  def get_index_names(self, db_name, tbl_name, max_indexes):
 378    """
 379    Parameters:
 380     - db_name
 381     - tbl_name
 382     - max_indexes
 383    """
 384    pass
 385
 386  def create_role(self, role):
 387    """
 388    Parameters:
 389     - role
 390    """
 391    pass
 392
 393  def drop_role(self, role_name):
 394    """
 395    Parameters:
 396     - role_name
 397    """
 398    pass
 399
 400  def get_role_names(self, ):
 401    pass
 402
 403  def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option):
 404    """
 405    Parameters:
 406     - role_name
 407     - principal_name
 408     - principal_type
 409     - grantor
 410     - grantorType
 411     - grant_option
 412    """
 413    pass
 414
 415  def revoke_role(self, role_name, principal_name, principal_type):
 416    """
 417    Parameters:
 418     - role_name
 419     - principal_name
 420     - principal_type
 421    """
 422    pass
 423
 424  def list_roles(self, principal_name, principal_type):
 425    """
 426    Parameters:
 427     - principal_name
 428     - principal_type
 429    """
 430    pass
 431
 432  def get_privilege_set(self, hiveObject, user_name, group_names):
 433    """
 434    Parameters:
 435     - hiveObject
 436     - user_name
 437     - group_names
 438    """
 439    pass
 440
 441  def list_privileges(self, principal_name, principal_type, hiveObject):
 442    """
 443    Parameters:
 444     - principal_name
 445     - principal_type
 446     - hiveObject
 447    """
 448    pass
 449
 450  def grant_privileges(self, privileges):
 451    """
 452    Parameters:
 453     - privileges
 454    """
 455    pass
 456
 457  def revoke_privileges(self, privileges):
 458    """
 459    Parameters:
 460     - privileges
 461    """
 462    pass
 463
 464  def get_delegation_token(self, renewer_kerberos_principal_name):
 465    """
 466    Parameters:
 467     - renewer_kerberos_principal_name
 468    """
 469    pass
 470
 471  def get_delegation_token_with_signature(self, renewer_kerberos_principal_name, token_signature):
 472    """
 473    Parameters:
 474     - renewer_kerberos_principal_name
 475     - token_signature
 476    """
 477    pass
 478
 479  def renew_delegation_token(self, token_str_form):
 480    """
 481    Parameters:
 482     - token_str_form
 483    """
 484    pass
 485
 486  def cancel_delegation_token(self, token_str_form):
 487    """
 488    Parameters:
 489     - token_str_form
 490    """
 491    pass
 492
 493
 494class Client(fb303.FacebookService.Client, Iface):
 495  """
 496  This interface is live.
 497  """
 498  def __init__(self, iprot, oprot=None):
 499    fb303.FacebookService.Client.__init__(self, iprot, oprot)
 500
 501  def create_database(self, database):
 502    """
 503    Parameters:
 504     - database
 505    """
 506    self.send_create_database(database)
 507    self.recv_create_database()
 508
 509  def send_create_database(self, database):
 510    self._oprot.writeMessageBegin('create_database', TMessageType.CALL, self._seqid)
 511    args = create_database_args()
 512    args.database = database
 513    args.write(self._oprot)
 514    self._oprot.writeMessageEnd()
 515    self._oprot.trans.flush()
 516
 517  def recv_create_database(self, ):
 518    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 519    if mtype == TMessageType.EXCEPTION:
 520      x = TApplicationException()
 521      x.read(self._iprot)
 522      self._iprot.readMessageEnd()
 523      raise x
 524    result = create_database_result()
 525    result.read(self._iprot)
 526    self._iprot.readMessageEnd()
 527    if result.o1 != None:
 528      raise result.o1
 529    if result.o2 != None:
 530      raise result.o2
 531    if result.o3 != None:
 532      raise result.o3
 533    return
 534
 535  def get_database(self, name):
 536    """
 537    Parameters:
 538     - name
 539    """
 540    self.send_get_database(name)
 541    return self.recv_get_database()
 542
 543  def send_get_database(self, name):
 544    self._oprot.writeMessageBegin('get_database', TMessageType.CALL, self._seqid)
 545    args = get_database_args()
 546    args.name = name
 547    args.write(self._oprot)
 548    self._oprot.writeMessageEnd()
 549    self._oprot.trans.flush()
 550
 551  def recv_get_database(self, ):
 552    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 553    if mtype == TMessageType.EXCEPTION:
 554      x = TApplicationException()
 555      x.read(self._iprot)
 556      self._iprot.readMessageEnd()
 557      raise x
 558    result = get_database_result()
 559    result.read(self._iprot)
 560    self._iprot.readMessageEnd()
 561    if result.success != None:
 562      return result.success
 563    if result.o1 != None:
 564      raise result.o1
 565    if result.o2 != None:
 566      raise result.o2
 567    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
 568
 569  def drop_database(self, name, deleteData):
 570    """
 571    Parameters:
 572     - name
 573     - deleteData
 574    """
 575    self.send_drop_database(name, deleteData)
 576    self.recv_drop_database()
 577
 578  def send_drop_database(self, name, deleteData):
 579    self._oprot.writeMessageBegin('drop_database', TMessageType.CALL, self._seqid)
 580    args = drop_database_args()
 581    args.name = name
 582    args.deleteData = deleteData
 583    args.write(self._oprot)
 584    self._oprot.writeMessageEnd()
 585    self._oprot.trans.flush()
 586
 587  def recv_drop_database(self, ):
 588    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 589    if mtype == TMessageType.EXCEPTION:
 590      x = TApplicationException()
 591      x.read(self._iprot)
 592      self._iprot.readMessageEnd()
 593      raise x
 594    result = drop_database_result()
 595    result.read(self._iprot)
 596    self._iprot.readMessageEnd()
 597    if result.o1 != None:
 598      raise result.o1
 599    if result.o2 != None:
 600      raise result.o2
 601    if result.o3 != None:
 602      raise result.o3
 603    return
 604
 605  def get_databases(self, pattern):
 606    """
 607    Parameters:
 608     - pattern
 609    """
 610    self.send_get_databases(pattern)
 611    return self.recv_get_databases()
 612
 613  def send_get_databases(self, pattern):
 614    self._oprot.writeMessageBegin('get_databases', TMessageType.CALL, self._seqid)
 615    args = get_databases_args()
 616    args.pattern = pattern
 617    args.write(self._oprot)
 618    self._oprot.writeMessageEnd()
 619    self._oprot.trans.flush()
 620
 621  def recv_get_databases(self, ):
 622    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 623    if mtype == TMessageType.EXCEPTION:
 624      x = TApplicationException()
 625      x.read(self._iprot)
 626      self._iprot.readMessageEnd()
 627      raise x
 628    result = get_databases_result()
 629    result.read(self._iprot)
 630    self._iprot.readMessageEnd()
 631    if result.success != None:
 632      return result.success
 633    if result.o1 != None:
 634      raise result.o1
 635    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
 636
 637  def get_all_databases(self, ):
 638    self.send_get_all_databases()
 639    return self.recv_get_all_databases()
 640
 641  def send_get_all_databases(self, ):
 642    self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid)
 643    args = get_all_databases_args()
 644    args.write(self._oprot)
 645    self._oprot.writeMessageEnd()
 646    self._oprot.trans.flush()
 647
 648  def recv_get_all_databases(self, ):
 649    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 650    if mtype == TMessageType.EXCEPTION:
 651      x = TApplicationException()
 652      x.read(self._iprot)
 653      self._iprot.readMessageEnd()
 654      raise x
 655    result = get_all_databases_result()
 656    result.read(self._iprot)
 657    self._iprot.readMessageEnd()
 658    if result.success != None:
 659      return result.success
 660    if result.o1 != None:
 661      raise result.o1
 662    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
 663
 664  def alter_database(self, dbname, db):
 665    """
 666    Parameters:
 667     - dbname
 668     - db
 669    """
 670    self.send_alter_database(dbname, db)
 671    self.recv_alter_database()
 672
 673  def send_alter_database(self, dbname, db):
 674    self._oprot.writeMessageBegin('alter_database', TMessageType.CALL, self._seqid)
 675    args = alter_database_args()
 676    args.dbname = dbname
 677    args.db = db
 678    args.write(self._oprot)
 679    self._oprot.writeMessageEnd()
 680    self._oprot.trans.flush()
 681
 682  def recv_alter_database(self, ):
 683    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 684    if mtype == TMessageType.EXCEPTION:
 685      x = TApplicationException()
 686      x.read(self._iprot)
 687      self._iprot.readMessageEnd()
 688      raise x
 689    result = alter_database_result()
 690    result.read(self._iprot)
 691    self._iprot.readMessageEnd()
 692    if result.o1 != None:
 693      raise result.o1
 694    if result.o2 != None:
 695      raise result.o2
 696    return
 697
 698  def get_type(self, name):
 699    """
 700    Parameters:
 701     - name
 702    """
 703    self.send_get_type(name)
 704    return self.recv_get_type()
 705
 706  def send_get_type(self, name):
 707    self._oprot.writeMessageBegin('get_type', TMessageType.CALL, self._seqid)
 708    args = get_type_args()
 709    args.name = name
 710    args.write(self._oprot)
 711    self._oprot.writeMessageEnd()
 712    self._oprot.trans.flush()
 713
 714  def recv_get_type(self, ):
 715    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 716    if mtype == TMessageType.EXCEPTION:
 717      x = TApplicationException()
 718      x.read(self._iprot)
 719      self._iprot.readMessageEnd()
 720      raise x
 721    result = get_type_result()
 722    result.read(self._iprot)
 723    self._iprot.readMessageEnd()
 724    if result.success != None:
 725      return result.success
 726    if result.o1 != None:
 727      raise result.o1
 728    if result.o2 != None:
 729      raise result.o2
 730    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result");
 731
 732  def create_type(self, type):
 733    """
 734    Parameters:
 735     - type
 736    """
 737    self.send_create_type(type)
 738    return self.recv_create_type()
 739
 740  def send_create_type(self, type):
 741    self._oprot.writeMessageBegin('create_type', TMessageType.CALL, self._seqid)
 742    args = create_type_args()
 743    args.type = type
 744    args.write(self._oprot)
 745    self._oprot.writeMessageEnd()
 746    self._oprot.trans.flush()
 747
 748  def recv_create_type(self, ):
 749    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 750    if mtype == TMessageType.EXCEPTION:
 751      x = TApplicationException()
 752      x.read(self._iprot)
 753      self._iprot.readMessageEnd()
 754      raise x
 755    result = create_type_result()
 756    result.read(self._iprot)
 757    self._iprot.readMessageEnd()
 758    if result.success != None:
 759      return result.success
 760    if result.o1 != None:
 761      raise result.o1
 762    if result.o2 != None:
 763      raise result.o2
 764    if result.o3 != None:
 765      raise result.o3
 766    raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
 767
 768  def drop_type(self, type):
 769    """
 770    Parameters:
 771     - type
 772    """
 773    self.send_drop_type(type)
 774    return self.recv_drop_type()
 775
 776  def send_drop_type(self, type):
 777    self._oprot.writeMessageBegin('drop_type', TMessageType.CALL, self._seqid)
 778    args = drop_type_args()
 779    args.type = type
 780    args.write(self._oprot)
 781    self._oprot.writeMessageEnd()
 782    self._oprot.trans.flush()
 783
 784  def recv_drop_type(self, ):
 785    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 786    if mtype == TMessageType.EXCEPTION:
 787      x = TApplicationException()
 788      x.read(self._iprot)
 789      self._iprot.readMessageEnd()
 790      raise x
 791    result = drop_type_result()
 792    result.read(self._iprot)
 793    self._iprot.readMessageEnd()
 794    if result.success != None:
 795      return result.success
 796    if result.o1 != None:
 797      raise result.o1
 798    if result.o2 != None:
 799      raise result.o2
 800    raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result");
 801
 802  def get_type_all(self, name):
 803    """
 804    Parameters:
 805     - name
 806    """
 807    self.send_get_type_all(name)
 808    return self.recv_get_type_all()
 809
 810  def send_get_type_all(self, name):
 811    self._oprot.writeMessageBegin('get_type_all', TMessageType.CALL, self._seqid)
 812    args = get_type_all_args()
 813    args.name = name
 814    args.write(self._oprot)
 815    self._oprot.writeMessageEnd()
 816    self._oprot.trans.flush()
 817
 818  def recv_get_type_all(self, ):
 819    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 820    if mtype == TMessageType.EXCEPTION:
 821      x = TApplicationException()
 822      x.read(self._iprot)
 823      self._iprot.readMessageEnd()
 824      raise x
 825    result = get_type_all_result()
 826    result.read(self._iprot)
 827    self._iprot.readMessageEnd()
 828    if result.success != None:
 829      return result.success
 830    if result.o2 != None:
 831      raise result.o2
 832    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result");
 833
 834  def get_fields(self, db_name, table_name):
 835    """
 836    Parameters:
 837     - db_name
 838     - table_name
 839    """
 840    self.send_get_fields(db_name, table_name)
 841    return self.recv_get_fields()
 842
 843  def send_get_fields(self, db_name, table_name):
 844    self._oprot.writeMessageBegin('get_fields', TMessageType.CALL, self._seqid)
 845    args = get_fields_args()
 846    args.db_name = db_name
 847    args.table_name = table_name
 848    args.write(self._oprot)
 849    self._oprot.writeMessageEnd()
 850    self._oprot.trans.flush()
 851
 852  def recv_get_fields(self, ):
 853    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 854    if mtype == TMessageType.EXCEPTION:
 855      x = TApplicationException()
 856      x.read(self._iprot)
 857      self._iprot.readMessageEnd()
 858      raise x
 859    result = get_fields_result()
 860    result.read(self._iprot)
 861    self._iprot.readMessageEnd()
 862    if result.success != None:
 863      return result.success
 864    if result.o1 != None:
 865      raise result.o1
 866    if result.o2 != None:
 867      raise result.o2
 868    if result.o3 != None:
 869      raise result.o3
 870    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result");
 871
 872  def get_schema(self, db_name, table_name):
 873    """
 874    Parameters:
 875     - db_name
 876     - table_name
 877    """
 878    self.send_get_schema(db_name, table_name)
 879    return self.recv_get_schema()
 880
 881  def send_get_schema(self, db_name, table_name):
 882    self._oprot.writeMessageBegin('get_schema', TMessageType.CALL, self._seqid)
 883    args = get_schema_args()
 884    args.db_name = db_name
 885    args.table_name = table_name
 886    args.write(self._oprot)
 887    self._oprot.writeMessageEnd()
 888    self._oprot.trans.flush()
 889
 890  def recv_get_schema(self, ):
 891    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 892    if mtype == TMessageType.EXCEPTION:
 893      x = TApplicationException()
 894      x.read(self._iprot)
 895      self._iprot.readMessageEnd()
 896      raise x
 897    result = get_schema_result()
 898    result.read(self._iprot)
 899    self._iprot.readMessageEnd()
 900    if result.success != None:
 901      return result.success
 902    if result.o1 != None:
 903      raise result.o1
 904    if result.o2 != None:
 905      raise result.o2
 906    if result.o3 != None:
 907      raise result.o3
 908    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result");
 909
 910  def create_table(self, tbl):
 911    """
 912    Parameters:
 913     - tbl
 914    """
 915    self.send_create_table(tbl)
 916    self.recv_create_table()
 917
 918  def send_create_table(self, tbl):
 919    self._oprot.writeMessageBegin('create_table', TMessageType.CALL, self._seqid)
 920    args = create_table_args()
 921    args.tbl = tbl
 922    args.write(self._oprot)
 923    self._oprot.writeMessageEnd()
 924    self._oprot.trans.flush()
 925
 926  def recv_create_table(self, ):
 927    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 928    if mtype == TMessageType.EXCEPTION:
 929      x = TApplicationException()
 930      x.read(self._iprot)
 931      self._iprot.readMessageEnd()
 932      raise x
 933    result = create_table_result()
 934    result.read(self._iprot)
 935    self._iprot.readMessageEnd()
 936    if result.o1 != None:
 937      raise result.o1
 938    if result.o2 != None:
 939      raise result.o2
 940    if result.o3 != None:
 941      raise result.o3
 942    if result.o4 != None:
 943      raise result.o4
 944    return
 945
 946  def drop_table(self, dbname, name, deleteData):
 947    """
 948    Parameters:
 949     - dbname
 950     - name
 951     - deleteData
 952    """
 953    self.send_drop_table(dbname, name, deleteData)
 954    self.recv_drop_table()
 955
 956  def send_drop_table(self, dbname, name, deleteData):
 957    self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid)
 958    args = drop_table_args()
 959    args.dbname = dbname
 960    args.name = name
 961    args.deleteData = deleteData
 962    args.write(self._oprot)
 963    self._oprot.writeMessageEnd()
 964    self._oprot.trans.flush()
 965
 966  def recv_drop_table(self, ):
 967    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
 968    if mtype == TMessageType.EXCEPTION:
 969      x = TApplicationException()
 970      x.read(self._iprot)
 971      self._iprot.readMessageEnd()
 972      raise x
 973    result = drop_table_result()
 974    result.read(self._iprot)
 975    self._iprot.readMessageEnd()
 976    if result.o1 != None:
 977      raise result.o1
 978    if result.o3 != None:
 979      raise result.o3
 980    return
 981
 982  def get_tables(self, db_name, pattern):
 983    """
 984    Parameters:
 985     - db_name
 986     - pattern
 987    """
 988    self.send_get_tables(db_name, pattern)
 989    return self.recv_get_tables()
 990
 991  def send_get_tables(self, db_name, pattern):
 992    self._oprot.writeMessageBegin('get_tables', TMessageType.CALL, self._seqid)
 993    args = get_tables_args()
 994    args.db_name = db_name
 995    args.pattern = pattern
 996    args.write(self._oprot)
 997    self._oprot.writeMessageEnd()
 998    self._oprot.trans.flush()
 999
1000  def recv_get_tables(self, ):
1001    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1002    if mtype == TMessageType.EXCEPTION:
1003      x = TApplicationException()
1004      x.read(self._iprot)
1005      self._iprot.readMessageEnd()
1006      raise x
1007    result = get_tables_result()
1008    result.read(self._iprot)
1009    self._iprot.readMessageEnd()
1010    if result.success != None:
1011      return result.success
1012    if result.o1 != None:
1013      raise result.o1
1014    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
1015
1016  def get_all_tables(self, db_name):
1017    """
1018    Parameters:
1019     - db_name
1020    """
1021    self.send_get_all_tables(db_name)
1022    return self.recv_get_all_tables()
1023
1024  def send_get_all_tables(self, db_name):
1025    self._oprot.writeMessageBegin('get_all_tables', TMessageType.CALL, self._seqid)
1026    args = get_all_tables_args()
1027    args.db_name = db_name
1028    args.write(self._oprot)
1029    self._oprot.writeMessageEnd()
1030    self._oprot.trans.flush()
1031
1032  def recv_get_all_tables(self, ):
1033    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1034    if mtype == TMessageType.EXCEPTION:
1035      x = TApplicationException()
1036      x.read(self._iprot)
1037      self._iprot.readMessageEnd()
1038      raise x
1039    result = get_all_tables_result()
1040    result.read(self._iprot)
1041    self._iprot.readMessageEnd()
1042    if result.success != None:
1043      return result.success
1044    if result.o1 != None:
1045      raise result.o1
1046    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
1047
1048  def get_table(self, dbname, tbl_name):
1049    """
1050    Parameters:
1051     - dbname
1052     - tbl_name
1053    """
1054    self.send_get_table(dbname, tbl_name)
1055    return self.recv_get_table()
1056
1057  def send_get_table(self, dbname, tbl_name):
1058    self._oprot.writeMessageBegin('get_table', TMessageType.CALL, self._seqid)
1059    args = get_table_args()
1060    args.dbname = dbname
1061    args.tbl_name = tbl_name
1062    args.write(self._oprot)
1063    self._oprot.writeMessageEnd()
1064    self._oprot.trans.flush()
1065
1066  def recv_get_table(self, ):
1067    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1068    if mtype == TMessageType.EXCEPTION:
1069      x = TApplicationException()
1070      x.read(self._iprot)
1071      self._iprot.readMessageEnd()
1072      raise x
1073    result = get_table_result()
1074    result.read(self._iprot)
1075    self._iprot.readMessageEnd()
1076    if result.success != None:
1077      return result.success
1078    if result.o1 != None:
1079      raise result.o1
1080    if result.o2 != None:
1081      raise result.o2
1082    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result");
1083
1084  def alter_table(self, dbname, tbl_name, new_tbl):
1085    """
1086    Parameters:
1087     - dbname
1088     - tbl_name
1089     - new_tbl
1090    """
1091    self.send_alter_table(dbname, tbl_name, new_tbl)
1092    self.recv_alter_table()
1093
1094  def send_alter_table(self, dbname, tbl_name, new_tbl):
1095    self._oprot.writeMessageBegin('alter_table', TMessageType.CALL, self._seqid)
1096    args = alter_table_args()
1097    args.dbname = dbname
1098    args.tbl_name = tbl_name
1099    args.new_tbl = new_tbl
1100    args.write(self._oprot)
1101    self._oprot.writeMessageEnd()
1102    self._oprot.trans.flush()
1103
1104  def recv_alter_table(self, ):
1105    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1106    if mtype == TMessageType.EXCEPTION:
1107      x = TApplicationException()
1108      x.read(self._iprot)
1109      self._iprot.readMessageEnd()
1110      raise x
1111    result = alter_table_result()
1112    result.read(self._iprot)
1113    self._iprot.readMessageEnd()
1114    if result.o1 != None:
1115      raise result.o1
1116    if result.o2 != None:
1117      raise result.o2
1118    return
1119
1120  def add_partition(self, new_part):
1121    """
1122    Parameters:
1123     - new_part
1124    """
1125    self.send_add_partition(new_part)
1126    return self.recv_add_partition()
1127
1128  def send_add_partition(self, new_part):
1129    self._oprot.writeMessageBegin('add_partition', TMessageType.CALL, self._seqid)
1130    args = add_partition_args()
1131    args.new_part = new_part
1132    args.write(self._oprot)
1133    self._oprot.writeMessageEnd()
1134    self._oprot.trans.flush()
1135
1136  def recv_add_partition(self, ):
1137    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1138    if mtype == TMessageType.EXCEPTION:
1139      x = TApplicationException()
1140      x.read(self._iprot)
1141      self._iprot.readMessageEnd()
1142      raise x
1143    result = add_partition_result()
1144    result.read(self._iprot)
1145    self._iprot.readMessageEnd()
1146    if result.success != None:
1147      return result.success
1148    if result.o1 != None:
1149      raise result.o1
1150    if result.o2 != None:
1151      raise result.o2
1152    if result.o3 != None:
1153      raise result.o3
1154    raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result");
1155
1156  def append_partition(self, db_name, tbl_name, part_vals):
1157    """
1158    Parameters:
1159     - db_name
1160     - tbl_name
1161     - part_vals
1162    """
1163    self.send_append_partition(db_name, tbl_name, part_vals)
1164    return self.recv_append_partition()
1165
1166  def send_append_partition(self, db_name, tbl_name, part_vals):
1167    self._oprot.writeMessageBegin('append_partition', TMessageType.CALL, self._seqid)
1168    args = append_partition_args()
1169    args.db_name = db_name
1170    args.tbl_name = tbl_name
1171    args.part_vals = part_vals
1172    args.write(self._oprot)
1173    self._oprot.writeMessageEnd()
1174    self._oprot.trans.flush()
1175
1176  def recv_append_partition(self, ):
1177    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1178    if mtype == TMessageType.EXCEPTION:
1179      x = TApplicationException()
1180      x.read(self._iprot)
1181      self._iprot.readMessageEnd()
1182      raise x
1183    result = append_partition_result()
1184    result.read(self._iprot)
1185    self._iprot.readMessageEnd()
1186    if result.success != None:
1187      return result.success
1188    if result.o1 != None:
1189      raise result.o1
1190    if result.o2 != None:
1191      raise result.o2
1192    if result.o3 != None:
1193      raise result.o3
1194    raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result");
1195
1196  def append_partition_by_name(self, db_name, tbl_name, part_name):
1197    """
1198    Parameters:
1199     - db_name
1200     - tbl_name
1201     - part_name
1202    """
1203    self.send_append_partition_by_name(db_name, tbl_name, part_name)
1204    return self.recv_append_partition_by_name()
1205
1206  def send_append_partition_by_name(self, db_name, tbl_name, part_name):
1207    self._oprot.writeMessageBegin('append_partition_by_name', TMessageType.CALL, self._seqid)
1208    args = append_partition_by_name_args()
1209    args.db_name = db_name
1210    args.tbl_name = tbl_name
1211    args.part_name = part_name
1212    args.write(self._oprot)
1213    self._oprot.writeMessageEnd()
1214    self._oprot.trans.flush()
1215
1216  def recv_append_partition_by_name(self, ):
1217    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1218    if mtype == TMessageType.EXCEPTION:
1219      x = TApplicationException()
1220      x.read(self._iprot)
1221      self._iprot.readMessageEnd()
1222      raise x
1223    result = append_partition_by_name_result()
1224    result.read(self._iprot)
1225    self._iprot.readMessageEnd()
1226    if result.success != None:
1227      return result.success
1228    if result.o1 != None:
1229      raise result.o1
1230    if result.o2 != None:
1231      raise result.o2
1232    if result.o3 != None:
1233      raise result.o3
1234    raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result");
1235
1236  def drop_partition(self, db_name, tbl_name, part_vals, deleteData):
1237    """
1238    Parameters:
1239     - db_name
1240     - tbl_name
1241     - part_vals
1242     - deleteData
1243    """
1244    self.send_drop_partition(db_name, tbl_name, part_vals, deleteData)
1245    return self.recv_drop_partition()
1246
1247  def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData):
1248    self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid)
1249    args = drop_partition_args()
1250    args.db_name = db_name
1251    args.tbl_name = tbl_name
1252    args.part_vals = part_vals
1253    args.deleteData = deleteData
1254    args.write(self._oprot)
1255    self._oprot.writeMessageEnd()
1256    self._oprot.trans.flush()
1257
1258  def recv_drop_partition(self, ):
1259    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1260    if mtype == TMessageType.EXCEPTION:
1261      x = TApplicationException()
1262      x.read(self._iprot)
1263      self._iprot.readMessageEnd()
1264      raise x
1265    result = drop_partition_result()
1266    result.read(self._iprot)
1267    self._iprot.readMessageEnd()
1268    if result.success != None:
1269      return result.success
1270    if result.o1 != None:
1271      raise result.o1
1272    if result.o2 != None:
1273      raise result.o2
1274    raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result");
1275
1276  def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
1277    """
1278    Parameters:
1279     - db_name
1280     - tbl_name
1281     - part_name
1282     - deleteData
1283    """
1284    self.send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData)
1285    return self.recv_drop_partition_by_name()
1286
1287  def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData):
1288    self._oprot.writeMessageBegin('drop_partition_by_name', TMessageType.CALL, self._seqid)
1289    args = drop_partition_by_name_args()
1290    args.db_name = db_name
1291    args.tbl_name = tbl_name
1292    args.part_name = part_name
1293    args.deleteData = deleteData
1294    args.write(self._oprot)
1295    self._oprot.writeMessageEnd()
1296    self._oprot.trans.flush()
1297
1298  def recv_drop_partition_by_name(self, ):
1299    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1300    if mtype == TMessageType.EXCEPTION:
1301      x = TApplicationException()
1302      x.read(self._iprot)
1303      self._iprot.readMessageEnd()
1304      raise x
1305    result = drop_partition_by_name_result()
1306    result.read(self._iprot)
1307    self._iprot.readMessageEnd()
1308    if result.success != None:
1309      return result.success
1310    if result.o1 != None:
1311      raise result.o1
1312    if result.o2 != None:
1313      raise result.o2
1314    raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result");
1315
1316  def get_partition(self, db_name, tbl_name, part_vals):
1317    """
1318    Parameters:
1319     - db_name
1320     - tbl_name
1321     - part_vals
1322    """
1323    self.send_get_partition(db_name, tbl_name, part_vals)
1324    return self.recv_get_partition()
1325
1326  def send_get_partition(self, db_name, tbl_name, part_vals):
1327    self._oprot.writeMessageBegin('get_partition', TMessageType.CALL, self._seqid)
1328    args = get_partition_args()
1329    args.db_name = db_name
1330    args.tbl_name = tbl_name
1331    args.part_vals = part_vals
1332    args.write(self._oprot)
1333    self._oprot.writeMessageEnd()
1334    self._oprot.trans.flush()
1335
1336  def recv_get_partition(self, ):
1337    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1338    if mtype == TMessageType.EXCEPTION:
1339      x = TApplicationException()
1340      x.read(self._iprot)
1341      self._iprot.readMessageEnd()
1342      raise x
1343    result = get_partition_result()
1344    result.read(self._iprot)
1345    self._iprot.readMessageEnd()
1346    if result.success != None:
1347      return result.success
1348    if result.o1 != None:
1349      raise result.o1
1350    if result.o2 != None:
1351      raise result.o2
1352    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result");
1353
1354  def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
1355    """
1356    Parameters:
1357     - db_name
1358     - tbl_name
1359     - part_vals
1360     - user_name
1361     - group_names
1362    """
1363    self.send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
1364    return self.recv_get_partition_with_auth()
1365
1366  def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names):
1367    self._oprot.writeMessageBegin('get_partition_with_auth', TMessageType.CALL, self._seqid)
1368    args = get_partition_with_auth_args()
1369    args.db_name = db_name
1370    args.tbl_name = tbl_name
1371    args.part_vals = part_vals
1372    args.user_name = user_name
1373    args.group_names = group_names
1374    args.write(self._oprot)
1375    self._oprot.writeMessageEnd()
1376    self._oprot.trans.flush()
1377
1378  def recv_get_partition_with_auth(self, ):
1379    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1380    if mtype == TMessageType.EXCEPTION:
1381      x = TApplicationException()
1382      x.read(self._iprot)
1383      self._iprot.readMessageEnd()
1384      raise x
1385    result = get_partition_with_auth_result()
1386    result.read(self._iprot)
1387    self._iprot.readMessageEnd()
1388    if result.success != None:
1389      return result.success
1390    if result.o1 != None:
1391      raise result.o1
1392    if result.o2 != None:
1393      raise result.o2
1394    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result");
1395
1396  def get_partition_by_name(self, db_name, tbl_name, part_name):
1397    """
1398    Parameters:
1399     - db_name
1400     - tbl_name
1401     - part_name
1402    """
1403    self.send_get_partition_by_name(db_name, tbl_name, part_name)
1404    return self.recv_get_partition_by_name()
1405
1406  def send_get_partition_by_name(self, db_name, tbl_name, part_name):
1407    self._oprot.writeMessageBegin('get_partition_by_name', TMessageType.CALL, self._seqid)
1408    args = get_partition_by_name_args()
1409    args.db_name = db_name
1410    args.tbl_name = tbl_name
1411    args.part_name = part_name
1412    args.write(self._oprot)
1413    self._oprot.writeMessageEnd()
1414    self._oprot.trans.flush()
1415
1416  def recv_get_partition_by_name(self, ):
1417    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1418    if mtype == TMessageType.EXCEPTION:
1419      x = TApplicationException()
1420      x.read(self._iprot)
1421      self._iprot.readMessageEnd()
1422      raise x
1423    result = get_partition_by_name_result()
1424    result.read(self._iprot)
1425    self._iprot.readMessageEnd()
1426    if result.success != None:
1427      return result.success
1428    if result.o1 != None:
1429      raise result.o1
1430    if result.o2 != None:
1431      raise result.o2
1432    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result");
1433
1434  def get_partitions(self, db_name, tbl_name, max_parts):
1435    """
1436    Parameters:
1437     - db_name
1438     - tbl_name
1439     - max_parts
1440    """
1441    self.send_get_partitions(db_name, tbl_name, max_parts)
1442    return self.recv_get_partitions()
1443
1444  def send_get_partitions(self, db_name, tbl_name, max_parts):
1445    self._oprot.writeMessageBegin('get_partitions', TMessageType.CALL, self._seqid)
1446    args = get_partitions_args()
1447    args.db_name = db_name
1448    args.tbl_name = tbl_name
1449    args.max_parts = max_parts
1450    args.write(self._oprot)
1451    self._oprot.writeMessageEnd()
1452    self._oprot.trans.flush()
1453
1454  def recv_get_partitions(self, ):
1455    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1456    if mtype == TMessageType.EXCEPTION:
1457      x = TApplicationException()
1458      x.read(self._iprot)
1459      self._iprot.readMessageEnd()
1460      raise x
1461    result = get_partitions_result()
1462    result.read(self._iprot)
1463    self._iprot.readMessageEnd()
1464    if result.success != None:
1465      return result.success
1466    if result.o1 != None:
1467      raise result.o1
1468    if result.o2 != None:
1469      raise result.o2
1470    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result");
1471
1472  def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
1473    """
1474    Parameters:
1475     - db_name
1476     - tbl_name
1477     - max_parts
1478     - user_name
1479     - group_names
1480    """
1481    self.send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
1482    return self.recv_get_partitions_with_auth()
1483
1484  def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names):
1485    self._oprot.writeMessageBegin('get_partitions_with_auth', TMessageType.CALL, self._seqid)
1486    args = get_partitions_with_auth_args()
1487    args.db_name = db_name
1488    args.tbl_name = tbl_name
1489    args.max_parts = max_parts
1490    args.user_name = user_name
1491    args.group_names = group_names
1492    args.write(self._oprot)
1493    self._oprot.writeMessageEnd()
1494    self._oprot.trans.flush()
1495
1496  def recv_get_partitions_with_auth(self, ):
1497    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1498    if mtype == TMessageType.EXCEPTION:
1499      x = TApplicationException()
1500      x.read(self._iprot)
1501      self._iprot.readMessageEnd()
1502      raise x
1503    result = get_partitions_with_auth_result()
1504    result.read(self._iprot)
1505    self._iprot.readMessageEnd()
1506    if result.success != None:
1507      return result.success
1508    if result.o1 != None:
1509      raise result.o1
1510    if result.o2 != None:
1511      raise result.o2
1512    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result");
1513
1514  def get_partition_names(self, db_name, tbl_name, max_parts):
1515    """
1516    Parameters:
1517     - db_name
1518     - tbl_name
1519     - max_parts
1520    """
1521    self.send_get_partition_names(db_name, tbl_name, max_parts)
1522    return self.recv_get_partition_names()
1523
1524  def send_get_partition_names(self, db_name, tbl_name, max_parts):
1525    self._oprot.writeMessageBegin('get_partition_names', TMessageType.CALL, self._seqid)
1526    args = get_partition_names_args()
1527    args.db_name = db_name
1528    args.tbl_name = tbl_name
1529    args.max_parts = max_parts
1530    args.write(self._oprot)
1531    self._oprot.writeMessageEnd()
1532    self._oprot.trans.flush()
1533
1534  def recv_get_partition_names(self, ):
1535    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1536    if mtype == TMessageType.EXCEPTION:
1537      x = TApplicationException()
1538      x.read(self._iprot)
1539      self._iprot.readMessageEnd()
1540      raise x
1541    result = get_partition_names_result()
1542    result.read(self._iprot)
1543    self._iprot.readMessageEnd()
1544    if result.success != None:
1545      return result.success
1546    if result.o2 != None:
1547      raise result.o2
1548    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result");
1549
1550  def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
1551    """
1552    Parameters:
1553     - db_name
1554     - tbl_name
1555     - part_vals
1556     - max_parts
1557    """
1558    self.send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts)
1559    return self.recv_get_partitions_ps()
1560
1561  def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts):
1562    self._oprot.writeMessageBegin('get_partitions_ps', TMessageType.CALL, self._seqid)
1563    args = get_partitions_ps_args()
1564    args.db_name = db_name
1565    args.tbl_name = tbl_name
1566    args.part_vals = part_vals
1567    args.max_parts = max_parts
1568    args.write(self._oprot)
1569    self._oprot.writeMessageEnd()
1570    self._oprot.trans.flush()
1571
1572  def recv_get_partitions_ps(self, ):
1573    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1574    if mtype == TMessageType.EXCEPTION:
1575      x = TApplicationException()
1576      x.read(self._iprot)
1577      self._iprot.readMessageEnd()
1578      raise x
1579    result = get_partitions_ps_result()
1580    result.read(self._iprot)
1581    self._iprot.readMessageEnd()
1582    if result.success != None:
1583      return result.success
1584    if result.o1 != None:
1585      raise result.o1
1586    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result");
1587
1588  def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
1589    """
1590    Parameters:
1591     - db_name
1592     - tbl_name
1593     - part_vals
1594     - max_parts
1595     - user_name
1596     - group_names
1597    """
1598    self.send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
1599    return self.recv_get_partitions_ps_with_auth()
1600
1601  def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names):
1602    self._oprot.writeMessageBegin('get_partitions_ps_with_auth', TMessageType.CALL, self._seqid)
1603    args = get_partitions_ps_with_auth_args()
1604    args.db_name = db_name
1605    args.tbl_name = tbl_name
1606    args.part_vals = part_vals
1607    args.max_parts = max_parts
1608    args.user_name = user_name
1609    args.group_names = group_names
1610    args.write(self._oprot)
1611    self._oprot.writeMessageEnd()
1612    self._oprot.trans.flush()
1613
1614  def recv_get_partitions_ps_with_auth(self, ):
1615    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1616    if mtype == TMessageType.EXCEPTION:
1617      x = TApplicationException()
1618      x.read(self._iprot)
1619      self._iprot.readMessageEnd()
1620      raise x
1621    result = get_partitions_ps_with_auth_result()
1622    result.read(self._iprot)
1623    self._iprot.readMessageEnd()
1624    if result.success != None:
1625      return result.success
1626    if result.o1 != None:
1627      raise result.o1
1628    if result.o2 != None:
1629      raise result.o2
1630    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result");
1631
1632  def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
1633    """
1634    Parameters:
1635     - db_name
1636     - tbl_name
1637     - part_vals
1638     - max_parts
1639    """
1640    self.send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
1641    return self.recv_get_partition_names_ps()
1642
1643  def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts):
1644    self._oprot.writeMessageBegin('get_partition_names_ps', TMessageType.CALL, self._seqid)
1645    args = get_partition_names_ps_args()
1646    args.db_name = db_name
1647    args.tbl_name = tbl_name
1648    args.part_vals = part_vals
1649    args.max_parts = max_parts
1650    args.write(self._oprot)
1651    self._oprot.writeMessageEnd()
1652    self._oprot.trans.flush()
1653
1654  def recv_get_partition_names_ps(self, ):
1655    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1656    if mtype == TMessageType.EXCEPTION:
1657      x = TApplicationException()
1658      x.read(self._iprot)
1659      self._iprot.readMessageEnd()
1660      raise x
1661    result = get_partition_names_ps_result()
1662    result.read(self._iprot)
1663    self._iprot.readMessageEnd()
1664    if result.success != None:
1665      return result.success
1666    if result.o1 != None:
1667      raise result.o1
1668    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result");
1669
1670  def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
1671    """
1672    Parameters:
1673     - db_name
1674     - tbl_name
1675     - filter
1676     - max_parts
1677    """
1678    self.send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts)
1679    return self.recv_get_partitions_by_filter()
1680
1681  def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts):
1682    self._oprot.writeMessageBegin('get_partitions_by_filter', TMessageType.CALL, self._seqid)
1683    args = get_partitions_by_filter_args()
1684    args.db_name = db_name
1685    args.tbl_name = tbl_name
1686    args.filter = filter
1687    args.max_parts = max_parts
1688    args.write(self._oprot)
1689    self._oprot.writeMessageEnd()
1690    self._oprot.trans.flush()
1691
1692  def recv_get_partitions_by_filter(self, ):
1693    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1694    if mtype == TMessageType.EXCEPTION:
1695      x = TApplicationException()
1696      x.read(self._iprot)
1697      self._iprot.readMessageEnd()
1698      raise x
1699    result = get_partitions_by_filter_result()
1700    result.read(self._iprot)
1701    self._iprot.readMessageEnd()
1702    if result.success != None:
1703      return result.success
1704    if result.o1 != None:
1705      raise result.o1
1706    if result.o2 != None:
1707      raise result.o2
1708    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result");
1709
1710  def alter_partition(self, db_name, tbl_name, new_part):
1711    """
1712    Parameters:
1713     - db_name
1714     - tbl_name
1715     - new_part
1716    """
1717    self.send_alter_partition(db_name, tbl_name, new_part)
1718    self.recv_alter_partition()
1719
1720  def send_alter_partition(self, db_name, tbl_name, new_part):
1721    self._oprot.writeMessageBegin('alter_partition', TMessageType.CALL, self._seqid)
1722    args = alter_partition_args()
1723    args.db_name = db_name
1724    args.tbl_name = tbl_name
1725    args.new_part = new_part
1726    args.write(self._oprot)
1727    self._oprot.writeMessageEnd()
1728    self._oprot.trans.flush()
1729
1730  def recv_alter_partition(self, ):
1731    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1732    if mtype == TMessageType.EXCEPTION:
1733      x = TApplicationException()
1734      x.read(self._iprot)
1735      self._iprot.readMessageEnd()
1736      raise x
1737    result = alter_partition_result()
1738    result.read(self._iprot)
1739    self._iprot.readMessageEnd()
1740    if result.o1 != None:
1741      raise result.o1
1742    if result.o2 != None:
1743      raise result.o2
1744    return
1745
1746  def get_config_value(self, name, defaultValue):
1747    """
1748    Parameters:
1749     - name
1750     - defaultValue
1751    """
1752    self.send_get_config_value(name, defaultValue)
1753    return self.recv_get_config_value()
1754
1755  def send_get_config_value(self, name, defaultValue):
1756    self._oprot.writeMessageBegin('get_config_value', TMessageType.CALL, self._seqid)
1757    args = get_config_value_args()
1758    args.name = name
1759    args.defaultValue = defaultValue
1760    args.write(self._oprot)
1761    self._oprot.writeMessageEnd()
1762    self._oprot.trans.flush()
1763
1764  def recv_get_config_value(self, ):
1765    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1766    if mtype == TMessageType.EXCEPTION:
1767      x = TApplicationException()
1768      x.read(self._iprot)
1769      self._iprot.readMessageEnd()
1770      raise x
1771    result = get_config_value_result()
1772    result.read(self._iprot)
1773    self._iprot.readMessageEnd()
1774    if result.success != None:
1775      return result.success
1776    if result.o1 != None:
1777      raise result.o1
1778    raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result");
1779
1780  def partition_name_to_vals(self, part_name):
1781    """
1782    Parameters:
1783     - part_name
1784    """
1785    self.send_partition_name_to_vals(part_name)
1786    return self.recv_partition_name_to_vals()
1787
1788  def send_partition_name_to_vals(self, part_name):
1789    self._oprot.writeMessageBegin('partition_name_to_vals', TMessageType.CALL, self._seqid)
1790    args = partition_name_to_vals_args()
1791    args.part_name = part_name
1792    args.write(self._oprot)
1793    self._oprot.writeMessageEnd()
1794    self._oprot.trans.flush()
1795
1796  def recv_partition_name_to_vals(self, ):
1797    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1798    if mtype == TMessageType.EXCEPTION:
1799      x = TApplicationException()
1800      x.read(self._iprot)
1801      self._iprot.readMessageEnd()
1802      raise x
1803    result = partition_name_to_vals_result()
1804    result.read(self._iprot)
1805    self._iprot.readMessageEnd()
1806    if result.success != None:
1807      return result.success
1808    if result.o1 != None:
1809      raise result.o1
1810    raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result");
1811
1812  def partition_name_to_spec(self, part_name):
1813    """
1814    Parameters:
1815     - part_name
1816    """
1817    self.send_partition_name_to_spec(part_name)
1818    return self.recv_partition_name_to_spec()
1819
1820  def send_partition_name_to_spec(self, part_name):
1821    self._oprot.writeMessageBegin('partition_name_to_spec', TMessageType.CALL, self._seqid)
1822    args = partition_name_to_spec_args()
1823    args.part_name = part_name
1824    args.write(self._oprot)
1825    self._oprot.writeMessageEnd()
1826    self._oprot.trans.flush()
1827
1828  def recv_partition_name_to_spec(self, ):
1829 

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