hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1558928 [5/8] - in /hive/trunk: metastore/if/ metastore/src/gen/thrift/gen-cpp/ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen/thrift/gen-php/metastore/ metastore/src/gen/thrift/gen-py/hive_me...
Date Thu, 16 Jan 2014 22:01:54 GMT
Modified: hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php?rev=1558928&r1=1558927&r2=1558928&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php Thu Jan 16 22:01:53 2014
@@ -43,6 +43,7 @@ interface ThriftHiveMetastoreIf extends 
   public function add_partition_with_environment_context(\metastore\Partition $new_part, \metastore\EnvironmentContext $environment_context);
   public function add_partitions($new_parts);
   public function append_partition($db_name, $tbl_name, $part_vals);
+  public function add_partitions_req(\metastore\AddPartitionsRequest $request);
   public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context);
   public function append_partition_by_name($db_name, $tbl_name, $part_name);
   public function append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, \metastore\EnvironmentContext $environment_context);
@@ -1671,6 +1672,66 @@ class ThriftHiveMetastoreClient extends 
     throw new \Exception("append_partition failed: unknown result");
   }
 
+  public function add_partitions_req(\metastore\AddPartitionsRequest $request)
+  {
+    $this->send_add_partitions_req($request);
+    return $this->recv_add_partitions_req();
+  }
+
+  public function send_add_partitions_req(\metastore\AddPartitionsRequest $request)
+  {
+    $args = new \metastore\ThriftHiveMetastore_add_partitions_req_args();
+    $args->request = $request;
+    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'add_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('add_partitions_req', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_add_partitions_req()
+  {
+    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_req_result', $this->input_->isStrictRead());
+    else
+    {
+      $rseqid = 0;
+      $fname = null;
+      $mtype = 0;
+
+      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+      if ($mtype == TMessageType::EXCEPTION) {
+        $x = new TApplicationException();
+        $x->read($this->input_);
+        $this->input_->readMessageEnd();
+        throw $x;
+      }
+      $result = new \metastore\ThriftHiveMetastore_add_partitions_req_result();
+      $result->read($this->input_);
+      $this->input_->readMessageEnd();
+    }
+    if ($result->success !== null) {
+      return $result->success;
+    }
+    if ($result->o1 !== null) {
+      throw $result->o1;
+    }
+    if ($result->o2 !== null) {
+      throw $result->o2;
+    }
+    if ($result->o3 !== null) {
+      throw $result->o3;
+    }
+    throw new \Exception("add_partitions_req failed: unknown result");
+  }
+
   public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context)
   {
     $this->send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, $environment_context);
@@ -5722,14 +5783,14 @@ class ThriftHiveMetastore_get_databases_
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size235 = 0;
-            $_etype238 = 0;
-            $xfer += $input->readListBegin($_etype238, $_size235);
-            for ($_i239 = 0; $_i239 < $_size235; ++$_i239)
+            $_size249 = 0;
+            $_etype252 = 0;
+            $xfer += $input->readListBegin($_etype252, $_size249);
+            for ($_i253 = 0; $_i253 < $_size249; ++$_i253)
             {
-              $elem240 = null;
-              $xfer += $input->readString($elem240);
-              $this->success []= $elem240;
+              $elem254 = null;
+              $xfer += $input->readString($elem254);
+              $this->success []= $elem254;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -5765,9 +5826,9 @@ class ThriftHiveMetastore_get_databases_
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter241)
+          foreach ($this->success as $iter255)
           {
-            $xfer += $output->writeString($iter241);
+            $xfer += $output->writeString($iter255);
           }
         }
         $output->writeListEnd();
@@ -5892,14 +5953,14 @@ class ThriftHiveMetastore_get_all_databa
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size242 = 0;
-            $_etype245 = 0;
-            $xfer += $input->readListBegin($_etype245, $_size242);
-            for ($_i246 = 0; $_i246 < $_size242; ++$_i246)
+            $_size256 = 0;
+            $_etype259 = 0;
+            $xfer += $input->readListBegin($_etype259, $_size256);
+            for ($_i260 = 0; $_i260 < $_size256; ++$_i260)
             {
-              $elem247 = null;
-              $xfer += $input->readString($elem247);
-              $this->success []= $elem247;
+              $elem261 = null;
+              $xfer += $input->readString($elem261);
+              $this->success []= $elem261;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -5935,9 +5996,9 @@ class ThriftHiveMetastore_get_all_databa
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter248)
+          foreach ($this->success as $iter262)
           {
-            $xfer += $output->writeString($iter248);
+            $xfer += $output->writeString($iter262);
           }
         }
         $output->writeListEnd();
@@ -6878,18 +6939,18 @@ class ThriftHiveMetastore_get_type_all_r
         case 0:
           if ($ftype == TType::MAP) {
             $this->success = array();
-            $_size249 = 0;
-            $_ktype250 = 0;
-            $_vtype251 = 0;
-            $xfer += $input->readMapBegin($_ktype250, $_vtype251, $_size249);
-            for ($_i253 = 0; $_i253 < $_size249; ++$_i253)
+            $_size263 = 0;
+            $_ktype264 = 0;
+            $_vtype265 = 0;
+            $xfer += $input->readMapBegin($_ktype264, $_vtype265, $_size263);
+            for ($_i267 = 0; $_i267 < $_size263; ++$_i267)
             {
-              $key254 = '';
-              $val255 = new \metastore\Type();
-              $xfer += $input->readString($key254);
-              $val255 = new \metastore\Type();
-              $xfer += $val255->read($input);
-              $this->success[$key254] = $val255;
+              $key268 = '';
+              $val269 = new \metastore\Type();
+              $xfer += $input->readString($key268);
+              $val269 = new \metastore\Type();
+              $xfer += $val269->read($input);
+              $this->success[$key268] = $val269;
             }
             $xfer += $input->readMapEnd();
           } else {
@@ -6925,10 +6986,10 @@ class ThriftHiveMetastore_get_type_all_r
       {
         $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $kiter256 => $viter257)
+          foreach ($this->success as $kiter270 => $viter271)
           {
-            $xfer += $output->writeString($kiter256);
-            $xfer += $viter257->write($output);
+            $xfer += $output->writeString($kiter270);
+            $xfer += $viter271->write($output);
           }
         }
         $output->writeMapEnd();
@@ -7114,15 +7175,15 @@ class ThriftHiveMetastore_get_fields_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size258 = 0;
-            $_etype261 = 0;
-            $xfer += $input->readListBegin($_etype261, $_size258);
-            for ($_i262 = 0; $_i262 < $_size258; ++$_i262)
+            $_size272 = 0;
+            $_etype275 = 0;
+            $xfer += $input->readListBegin($_etype275, $_size272);
+            for ($_i276 = 0; $_i276 < $_size272; ++$_i276)
             {
-              $elem263 = null;
-              $elem263 = new \metastore\FieldSchema();
-              $xfer += $elem263->read($input);
-              $this->success []= $elem263;
+              $elem277 = null;
+              $elem277 = new \metastore\FieldSchema();
+              $xfer += $elem277->read($input);
+              $this->success []= $elem277;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -7174,9 +7235,9 @@ class ThriftHiveMetastore_get_fields_res
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter264)
+          foreach ($this->success as $iter278)
           {
-            $xfer += $iter264->write($output);
+            $xfer += $iter278->write($output);
           }
         }
         $output->writeListEnd();
@@ -7372,15 +7433,15 @@ class ThriftHiveMetastore_get_schema_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size265 = 0;
-            $_etype268 = 0;
-            $xfer += $input->readListBegin($_etype268, $_size265);
-            for ($_i269 = 0; $_i269 < $_size265; ++$_i269)
+            $_size279 = 0;
+            $_etype282 = 0;
+            $xfer += $input->readListBegin($_etype282, $_size279);
+            for ($_i283 = 0; $_i283 < $_size279; ++$_i283)
             {
-              $elem270 = null;
-              $elem270 = new \metastore\FieldSchema();
-              $xfer += $elem270->read($input);
-              $this->success []= $elem270;
+              $elem284 = null;
+              $elem284 = new \metastore\FieldSchema();
+              $xfer += $elem284->read($input);
+              $this->success []= $elem284;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -7432,9 +7493,9 @@ class ThriftHiveMetastore_get_schema_res
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter271)
+          foreach ($this->success as $iter285)
           {
-            $xfer += $iter271->write($output);
+            $xfer += $iter285->write($output);
           }
         }
         $output->writeListEnd();
@@ -8511,14 +8572,14 @@ class ThriftHiveMetastore_get_tables_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size272 = 0;
-            $_etype275 = 0;
-            $xfer += $input->readListBegin($_etype275, $_size272);
-            for ($_i276 = 0; $_i276 < $_size272; ++$_i276)
+            $_size286 = 0;
+            $_etype289 = 0;
+            $xfer += $input->readListBegin($_etype289, $_size286);
+            for ($_i290 = 0; $_i290 < $_size286; ++$_i290)
             {
-              $elem277 = null;
-              $xfer += $input->readString($elem277);
-              $this->success []= $elem277;
+              $elem291 = null;
+              $xfer += $input->readString($elem291);
+              $this->success []= $elem291;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -8554,9 +8615,9 @@ class ThriftHiveMetastore_get_tables_res
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter278)
+          foreach ($this->success as $iter292)
           {
-            $xfer += $output->writeString($iter278);
+            $xfer += $output->writeString($iter292);
           }
         }
         $output->writeListEnd();
@@ -8703,14 +8764,14 @@ class ThriftHiveMetastore_get_all_tables
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size279 = 0;
-            $_etype282 = 0;
-            $xfer += $input->readListBegin($_etype282, $_size279);
-            for ($_i283 = 0; $_i283 < $_size279; ++$_i283)
+            $_size293 = 0;
+            $_etype296 = 0;
+            $xfer += $input->readListBegin($_etype296, $_size293);
+            for ($_i297 = 0; $_i297 < $_size293; ++$_i297)
             {
-              $elem284 = null;
-              $xfer += $input->readString($elem284);
-              $this->success []= $elem284;
+              $elem298 = null;
+              $xfer += $input->readString($elem298);
+              $this->success []= $elem298;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -8746,9 +8807,9 @@ class ThriftHiveMetastore_get_all_tables
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter285)
+          foreach ($this->success as $iter299)
           {
-            $xfer += $output->writeString($iter285);
+            $xfer += $output->writeString($iter299);
           }
         }
         $output->writeListEnd();
@@ -9042,14 +9103,14 @@ class ThriftHiveMetastore_get_table_obje
         case 2:
           if ($ftype == TType::LST) {
             $this->tbl_names = array();
-            $_size286 = 0;
-            $_etype289 = 0;
-            $xfer += $input->readListBegin($_etype289, $_size286);
-            for ($_i290 = 0; $_i290 < $_size286; ++$_i290)
+            $_size300 = 0;
+            $_etype303 = 0;
+            $xfer += $input->readListBegin($_etype303, $_size300);
+            for ($_i304 = 0; $_i304 < $_size300; ++$_i304)
             {
-              $elem291 = null;
-              $xfer += $input->readString($elem291);
-              $this->tbl_names []= $elem291;
+              $elem305 = null;
+              $xfer += $input->readString($elem305);
+              $this->tbl_names []= $elem305;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -9082,9 +9143,9 @@ class ThriftHiveMetastore_get_table_obje
       {
         $output->writeListBegin(TType::STRING, count($this->tbl_names));
         {
-          foreach ($this->tbl_names as $iter292)
+          foreach ($this->tbl_names as $iter306)
           {
-            $xfer += $output->writeString($iter292);
+            $xfer += $output->writeString($iter306);
           }
         }
         $output->writeListEnd();
@@ -9173,15 +9234,15 @@ class ThriftHiveMetastore_get_table_obje
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size293 = 0;
-            $_etype296 = 0;
-            $xfer += $input->readListBegin($_etype296, $_size293);
-            for ($_i297 = 0; $_i297 < $_size293; ++$_i297)
+            $_size307 = 0;
+            $_etype310 = 0;
+            $xfer += $input->readListBegin($_etype310, $_size307);
+            for ($_i311 = 0; $_i311 < $_size307; ++$_i311)
             {
-              $elem298 = null;
-              $elem298 = new \metastore\Table();
-              $xfer += $elem298->read($input);
-              $this->success []= $elem298;
+              $elem312 = null;
+              $elem312 = new \metastore\Table();
+              $xfer += $elem312->read($input);
+              $this->success []= $elem312;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -9233,9 +9294,9 @@ class ThriftHiveMetastore_get_table_obje
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter299)
+          foreach ($this->success as $iter313)
           {
-            $xfer += $iter299->write($output);
+            $xfer += $iter313->write($output);
           }
         }
         $output->writeListEnd();
@@ -9450,14 +9511,14 @@ class ThriftHiveMetastore_get_table_name
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size300 = 0;
-            $_etype303 = 0;
-            $xfer += $input->readListBegin($_etype303, $_size300);
-            for ($_i304 = 0; $_i304 < $_size300; ++$_i304)
+            $_size314 = 0;
+            $_etype317 = 0;
+            $xfer += $input->readListBegin($_etype317, $_size314);
+            for ($_i318 = 0; $_i318 < $_size314; ++$_i318)
             {
-              $elem305 = null;
-              $xfer += $input->readString($elem305);
-              $this->success []= $elem305;
+              $elem319 = null;
+              $xfer += $input->readString($elem319);
+              $this->success []= $elem319;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -9509,9 +9570,9 @@ class ThriftHiveMetastore_get_table_name
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter306)
+          foreach ($this->success as $iter320)
           {
-            $xfer += $output->writeString($iter306);
+            $xfer += $output->writeString($iter320);
           }
         }
         $output->writeListEnd();
@@ -10504,15 +10565,15 @@ class ThriftHiveMetastore_add_partitions
         case 1:
           if ($ftype == TType::LST) {
             $this->new_parts = array();
-            $_size307 = 0;
-            $_etype310 = 0;
-            $xfer += $input->readListBegin($_etype310, $_size307);
-            for ($_i311 = 0; $_i311 < $_size307; ++$_i311)
+            $_size321 = 0;
+            $_etype324 = 0;
+            $xfer += $input->readListBegin($_etype324, $_size321);
+            for ($_i325 = 0; $_i325 < $_size321; ++$_i325)
             {
-              $elem312 = null;
-              $elem312 = new \metastore\Partition();
-              $xfer += $elem312->read($input);
-              $this->new_parts []= $elem312;
+              $elem326 = null;
+              $elem326 = new \metastore\Partition();
+              $xfer += $elem326->read($input);
+              $this->new_parts []= $elem326;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -10540,9 +10601,9 @@ class ThriftHiveMetastore_add_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->new_parts));
         {
-          foreach ($this->new_parts as $iter313)
+          foreach ($this->new_parts as $iter327)
           {
-            $xfer += $iter313->write($output);
+            $xfer += $iter327->write($output);
           }
         }
         $output->writeListEnd();
@@ -10771,14 +10832,14 @@ class ThriftHiveMetastore_append_partiti
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size314 = 0;
-            $_etype317 = 0;
-            $xfer += $input->readListBegin($_etype317, $_size314);
-            for ($_i318 = 0; $_i318 < $_size314; ++$_i318)
+            $_size328 = 0;
+            $_etype331 = 0;
+            $xfer += $input->readListBegin($_etype331, $_size328);
+            for ($_i332 = 0; $_i332 < $_size328; ++$_i332)
             {
-              $elem319 = null;
-              $xfer += $input->readString($elem319);
-              $this->part_vals []= $elem319;
+              $elem333 = null;
+              $xfer += $input->readString($elem333);
+              $this->part_vals []= $elem333;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -10816,9 +10877,9 @@ class ThriftHiveMetastore_append_partiti
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter320)
+          foreach ($this->part_vals as $iter334)
           {
-            $xfer += $output->writeString($iter320);
+            $xfer += $output->writeString($iter334);
           }
         }
         $output->writeListEnd();
@@ -10975,6 +11036,226 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
+class ThriftHiveMetastore_add_partitions_req_args {
+  static $_TSPEC;
+
+  public $request = null;
+
+  public function __construct($vals=null) {
+    if (!isset(self::$_TSPEC)) {
+      self::$_TSPEC = array(
+        1 => array(
+          'var' => 'request',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\AddPartitionsRequest',
+          ),
+        );
+    }
+    if (is_array($vals)) {
+      if (isset($vals['request'])) {
+        $this->request = $vals['request'];
+      }
+    }
+  }
+
+  public function getName() {
+    return 'ThriftHiveMetastore_add_partitions_req_args';
+  }
+
+  public function read($input)
+  {
+    $xfer = 0;
+    $fname = null;
+    $ftype = 0;
+    $fid = 0;
+    $xfer += $input->readStructBegin($fname);
+    while (true)
+    {
+      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+      if ($ftype == TType::STOP) {
+        break;
+      }
+      switch ($fid)
+      {
+        case 1:
+          if ($ftype == TType::STRUCT) {
+            $this->request = new \metastore\AddPartitionsRequest();
+            $xfer += $this->request->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        default:
+          $xfer += $input->skip($ftype);
+          break;
+      }
+      $xfer += $input->readFieldEnd();
+    }
+    $xfer += $input->readStructEnd();
+    return $xfer;
+  }
+
+  public function write($output) {
+    $xfer = 0;
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_req_args');
+    if ($this->request !== null) {
+      if (!is_object($this->request)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1);
+      $xfer += $this->request->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
+    $xfer += $output->writeFieldStop();
+    $xfer += $output->writeStructEnd();
+    return $xfer;
+  }
+
+}
+
+class ThriftHiveMetastore_add_partitions_req_result {
+  static $_TSPEC;
+
+  public $success = null;
+  public $o1 = null;
+  public $o2 = null;
+  public $o3 = null;
+
+  public function __construct($vals=null) {
+    if (!isset(self::$_TSPEC)) {
+      self::$_TSPEC = array(
+        0 => array(
+          'var' => 'success',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\AddPartitionsResult',
+          ),
+        1 => array(
+          'var' => 'o1',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\InvalidObjectException',
+          ),
+        2 => array(
+          'var' => 'o2',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\AlreadyExistsException',
+          ),
+        3 => array(
+          'var' => 'o3',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\MetaException',
+          ),
+        );
+    }
+    if (is_array($vals)) {
+      if (isset($vals['success'])) {
+        $this->success = $vals['success'];
+      }
+      if (isset($vals['o1'])) {
+        $this->o1 = $vals['o1'];
+      }
+      if (isset($vals['o2'])) {
+        $this->o2 = $vals['o2'];
+      }
+      if (isset($vals['o3'])) {
+        $this->o3 = $vals['o3'];
+      }
+    }
+  }
+
+  public function getName() {
+    return 'ThriftHiveMetastore_add_partitions_req_result';
+  }
+
+  public function read($input)
+  {
+    $xfer = 0;
+    $fname = null;
+    $ftype = 0;
+    $fid = 0;
+    $xfer += $input->readStructBegin($fname);
+    while (true)
+    {
+      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+      if ($ftype == TType::STOP) {
+        break;
+      }
+      switch ($fid)
+      {
+        case 0:
+          if ($ftype == TType::STRUCT) {
+            $this->success = new \metastore\AddPartitionsResult();
+            $xfer += $this->success->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 1:
+          if ($ftype == TType::STRUCT) {
+            $this->o1 = new \metastore\InvalidObjectException();
+            $xfer += $this->o1->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 2:
+          if ($ftype == TType::STRUCT) {
+            $this->o2 = new \metastore\AlreadyExistsException();
+            $xfer += $this->o2->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 3:
+          if ($ftype == TType::STRUCT) {
+            $this->o3 = new \metastore\MetaException();
+            $xfer += $this->o3->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        default:
+          $xfer += $input->skip($ftype);
+          break;
+      }
+      $xfer += $input->readFieldEnd();
+    }
+    $xfer += $input->readStructEnd();
+    return $xfer;
+  }
+
+  public function write($output) {
+    $xfer = 0;
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_req_result');
+    if ($this->success !== null) {
+      if (!is_object($this->success)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+      $xfer += $this->success->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->o1 !== null) {
+      $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+      $xfer += $this->o1->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->o2 !== null) {
+      $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
+      $xfer += $this->o2->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->o3 !== null) {
+      $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
+      $xfer += $this->o3->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
+    $xfer += $output->writeFieldStop();
+    $xfer += $output->writeStructEnd();
+    return $xfer;
+  }
+
+}
+
 class ThriftHiveMetastore_append_partition_with_environment_context_args {
   static $_TSPEC;
 
@@ -11061,14 +11342,14 @@ class ThriftHiveMetastore_append_partiti
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size321 = 0;
-            $_etype324 = 0;
-            $xfer += $input->readListBegin($_etype324, $_size321);
-            for ($_i325 = 0; $_i325 < $_size321; ++$_i325)
+            $_size335 = 0;
+            $_etype338 = 0;
+            $xfer += $input->readListBegin($_etype338, $_size335);
+            for ($_i339 = 0; $_i339 < $_size335; ++$_i339)
             {
-              $elem326 = null;
-              $xfer += $input->readString($elem326);
-              $this->part_vals []= $elem326;
+              $elem340 = null;
+              $xfer += $input->readString($elem340);
+              $this->part_vals []= $elem340;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -11114,9 +11395,9 @@ class ThriftHiveMetastore_append_partiti
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter327)
+          foreach ($this->part_vals as $iter341)
           {
-            $xfer += $output->writeString($iter327);
+            $xfer += $output->writeString($iter341);
           }
         }
         $output->writeListEnd();
@@ -11901,14 +12182,14 @@ class ThriftHiveMetastore_drop_partition
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size328 = 0;
-            $_etype331 = 0;
-            $xfer += $input->readListBegin($_etype331, $_size328);
-            for ($_i332 = 0; $_i332 < $_size328; ++$_i332)
+            $_size342 = 0;
+            $_etype345 = 0;
+            $xfer += $input->readListBegin($_etype345, $_size342);
+            for ($_i346 = 0; $_i346 < $_size342; ++$_i346)
             {
-              $elem333 = null;
-              $xfer += $input->readString($elem333);
-              $this->part_vals []= $elem333;
+              $elem347 = null;
+              $xfer += $input->readString($elem347);
+              $this->part_vals []= $elem347;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -11953,9 +12234,9 @@ class ThriftHiveMetastore_drop_partition
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter334)
+          foreach ($this->part_vals as $iter348)
           {
-            $xfer += $output->writeString($iter334);
+            $xfer += $output->writeString($iter348);
           }
         }
         $output->writeListEnd();
@@ -12184,14 +12465,14 @@ class ThriftHiveMetastore_drop_partition
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size335 = 0;
-            $_etype338 = 0;
-            $xfer += $input->readListBegin($_etype338, $_size335);
-            for ($_i339 = 0; $_i339 < $_size335; ++$_i339)
+            $_size349 = 0;
+            $_etype352 = 0;
+            $xfer += $input->readListBegin($_etype352, $_size349);
+            for ($_i353 = 0; $_i353 < $_size349; ++$_i353)
             {
-              $elem340 = null;
-              $xfer += $input->readString($elem340);
-              $this->part_vals []= $elem340;
+              $elem354 = null;
+              $xfer += $input->readString($elem354);
+              $this->part_vals []= $elem354;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -12244,9 +12525,9 @@ class ThriftHiveMetastore_drop_partition
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter341)
+          foreach ($this->part_vals as $iter355)
           {
-            $xfer += $output->writeString($iter341);
+            $xfer += $output->writeString($iter355);
           }
         }
         $output->writeListEnd();
@@ -12987,14 +13268,14 @@ class ThriftHiveMetastore_get_partition_
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size342 = 0;
-            $_etype345 = 0;
-            $xfer += $input->readListBegin($_etype345, $_size342);
-            for ($_i346 = 0; $_i346 < $_size342; ++$_i346)
+            $_size356 = 0;
+            $_etype359 = 0;
+            $xfer += $input->readListBegin($_etype359, $_size356);
+            for ($_i360 = 0; $_i360 < $_size356; ++$_i360)
             {
-              $elem347 = null;
-              $xfer += $input->readString($elem347);
-              $this->part_vals []= $elem347;
+              $elem361 = null;
+              $xfer += $input->readString($elem361);
+              $this->part_vals []= $elem361;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -13032,9 +13313,9 @@ class ThriftHiveMetastore_get_partition_
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter348)
+          foreach ($this->part_vals as $iter362)
           {
-            $xfer += $output->writeString($iter348);
+            $xfer += $output->writeString($iter362);
           }
         }
         $output->writeListEnd();
@@ -13252,17 +13533,17 @@ class ThriftHiveMetastore_exchange_parti
         case 1:
           if ($ftype == TType::MAP) {
             $this->partitionSpecs = array();
-            $_size349 = 0;
-            $_ktype350 = 0;
-            $_vtype351 = 0;
-            $xfer += $input->readMapBegin($_ktype350, $_vtype351, $_size349);
-            for ($_i353 = 0; $_i353 < $_size349; ++$_i353)
+            $_size363 = 0;
+            $_ktype364 = 0;
+            $_vtype365 = 0;
+            $xfer += $input->readMapBegin($_ktype364, $_vtype365, $_size363);
+            for ($_i367 = 0; $_i367 < $_size363; ++$_i367)
             {
-              $key354 = '';
-              $val355 = '';
-              $xfer += $input->readString($key354);
-              $xfer += $input->readString($val355);
-              $this->partitionSpecs[$key354] = $val355;
+              $key368 = '';
+              $val369 = '';
+              $xfer += $input->readString($key368);
+              $xfer += $input->readString($val369);
+              $this->partitionSpecs[$key368] = $val369;
             }
             $xfer += $input->readMapEnd();
           } else {
@@ -13318,10 +13599,10 @@ class ThriftHiveMetastore_exchange_parti
       {
         $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs));
         {
-          foreach ($this->partitionSpecs as $kiter356 => $viter357)
+          foreach ($this->partitionSpecs as $kiter370 => $viter371)
           {
-            $xfer += $output->writeString($kiter356);
-            $xfer += $output->writeString($viter357);
+            $xfer += $output->writeString($kiter370);
+            $xfer += $output->writeString($viter371);
           }
         }
         $output->writeMapEnd();
@@ -13617,14 +13898,14 @@ class ThriftHiveMetastore_get_partition_
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size358 = 0;
-            $_etype361 = 0;
-            $xfer += $input->readListBegin($_etype361, $_size358);
-            for ($_i362 = 0; $_i362 < $_size358; ++$_i362)
+            $_size372 = 0;
+            $_etype375 = 0;
+            $xfer += $input->readListBegin($_etype375, $_size372);
+            for ($_i376 = 0; $_i376 < $_size372; ++$_i376)
             {
-              $elem363 = null;
-              $xfer += $input->readString($elem363);
-              $this->part_vals []= $elem363;
+              $elem377 = null;
+              $xfer += $input->readString($elem377);
+              $this->part_vals []= $elem377;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -13641,14 +13922,14 @@ class ThriftHiveMetastore_get_partition_
         case 5:
           if ($ftype == TType::LST) {
             $this->group_names = array();
-            $_size364 = 0;
-            $_etype367 = 0;
-            $xfer += $input->readListBegin($_etype367, $_size364);
-            for ($_i368 = 0; $_i368 < $_size364; ++$_i368)
+            $_size378 = 0;
+            $_etype381 = 0;
+            $xfer += $input->readListBegin($_etype381, $_size378);
+            for ($_i382 = 0; $_i382 < $_size378; ++$_i382)
             {
-              $elem369 = null;
-              $xfer += $input->readString($elem369);
-              $this->group_names []= $elem369;
+              $elem383 = null;
+              $xfer += $input->readString($elem383);
+              $this->group_names []= $elem383;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -13686,9 +13967,9 @@ class ThriftHiveMetastore_get_partition_
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter370)
+          foreach ($this->part_vals as $iter384)
           {
-            $xfer += $output->writeString($iter370);
+            $xfer += $output->writeString($iter384);
           }
         }
         $output->writeListEnd();
@@ -13708,9 +13989,9 @@ class ThriftHiveMetastore_get_partition_
       {
         $output->writeListBegin(TType::STRING, count($this->group_names));
         {
-          foreach ($this->group_names as $iter371)
+          foreach ($this->group_names as $iter385)
           {
-            $xfer += $output->writeString($iter371);
+            $xfer += $output->writeString($iter385);
           }
         }
         $output->writeListEnd();
@@ -14256,15 +14537,15 @@ class ThriftHiveMetastore_get_partitions
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size372 = 0;
-            $_etype375 = 0;
-            $xfer += $input->readListBegin($_etype375, $_size372);
-            for ($_i376 = 0; $_i376 < $_size372; ++$_i376)
+            $_size386 = 0;
+            $_etype389 = 0;
+            $xfer += $input->readListBegin($_etype389, $_size386);
+            for ($_i390 = 0; $_i390 < $_size386; ++$_i390)
             {
-              $elem377 = null;
-              $elem377 = new \metastore\Partition();
-              $xfer += $elem377->read($input);
-              $this->success []= $elem377;
+              $elem391 = null;
+              $elem391 = new \metastore\Partition();
+              $xfer += $elem391->read($input);
+              $this->success []= $elem391;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -14308,9 +14589,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter378)
+          foreach ($this->success as $iter392)
           {
-            $xfer += $iter378->write($output);
+            $xfer += $iter392->write($output);
           }
         }
         $output->writeListEnd();
@@ -14441,14 +14722,14 @@ class ThriftHiveMetastore_get_partitions
         case 5:
           if ($ftype == TType::LST) {
             $this->group_names = array();
-            $_size379 = 0;
-            $_etype382 = 0;
-            $xfer += $input->readListBegin($_etype382, $_size379);
-            for ($_i383 = 0; $_i383 < $_size379; ++$_i383)
+            $_size393 = 0;
+            $_etype396 = 0;
+            $xfer += $input->readListBegin($_etype396, $_size393);
+            for ($_i397 = 0; $_i397 < $_size393; ++$_i397)
             {
-              $elem384 = null;
-              $xfer += $input->readString($elem384);
-              $this->group_names []= $elem384;
+              $elem398 = null;
+              $xfer += $input->readString($elem398);
+              $this->group_names []= $elem398;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -14496,9 +14777,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRING, count($this->group_names));
         {
-          foreach ($this->group_names as $iter385)
+          foreach ($this->group_names as $iter399)
           {
-            $xfer += $output->writeString($iter385);
+            $xfer += $output->writeString($iter399);
           }
         }
         $output->writeListEnd();
@@ -14578,15 +14859,15 @@ class ThriftHiveMetastore_get_partitions
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size386 = 0;
-            $_etype389 = 0;
-            $xfer += $input->readListBegin($_etype389, $_size386);
-            for ($_i390 = 0; $_i390 < $_size386; ++$_i390)
-            {
-              $elem391 = null;
-              $elem391 = new \metastore\Partition();
-              $xfer += $elem391->read($input);
-              $this->success []= $elem391;
+            $_size400 = 0;
+            $_etype403 = 0;
+            $xfer += $input->readListBegin($_etype403, $_size400);
+            for ($_i404 = 0; $_i404 < $_size400; ++$_i404)
+            {
+              $elem405 = null;
+              $elem405 = new \metastore\Partition();
+              $xfer += $elem405->read($input);
+              $this->success []= $elem405;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -14630,9 +14911,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter392)
+          foreach ($this->success as $iter406)
           {
-            $xfer += $iter392->write($output);
+            $xfer += $iter406->write($output);
           }
         }
         $output->writeListEnd();
@@ -14824,14 +15105,14 @@ class ThriftHiveMetastore_get_partition_
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size393 = 0;
-            $_etype396 = 0;
-            $xfer += $input->readListBegin($_etype396, $_size393);
-            for ($_i397 = 0; $_i397 < $_size393; ++$_i397)
+            $_size407 = 0;
+            $_etype410 = 0;
+            $xfer += $input->readListBegin($_etype410, $_size407);
+            for ($_i411 = 0; $_i411 < $_size407; ++$_i411)
             {
-              $elem398 = null;
-              $xfer += $input->readString($elem398);
-              $this->success []= $elem398;
+              $elem412 = null;
+              $xfer += $input->readString($elem412);
+              $this->success []= $elem412;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -14867,9 +15148,9 @@ class ThriftHiveMetastore_get_partition_
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter399)
+          foreach ($this->success as $iter413)
           {
-            $xfer += $output->writeString($iter399);
+            $xfer += $output->writeString($iter413);
           }
         }
         $output->writeListEnd();
@@ -14973,14 +15254,14 @@ class ThriftHiveMetastore_get_partitions
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size400 = 0;
-            $_etype403 = 0;
-            $xfer += $input->readListBegin($_etype403, $_size400);
-            for ($_i404 = 0; $_i404 < $_size400; ++$_i404)
+            $_size414 = 0;
+            $_etype417 = 0;
+            $xfer += $input->readListBegin($_etype417, $_size414);
+            for ($_i418 = 0; $_i418 < $_size414; ++$_i418)
             {
-              $elem405 = null;
-              $xfer += $input->readString($elem405);
-              $this->part_vals []= $elem405;
+              $elem419 = null;
+              $xfer += $input->readString($elem419);
+              $this->part_vals []= $elem419;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15025,9 +15306,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter406)
+          foreach ($this->part_vals as $iter420)
           {
-            $xfer += $output->writeString($iter406);
+            $xfer += $output->writeString($iter420);
           }
         }
         $output->writeListEnd();
@@ -15112,15 +15393,15 @@ class ThriftHiveMetastore_get_partitions
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size407 = 0;
-            $_etype410 = 0;
-            $xfer += $input->readListBegin($_etype410, $_size407);
-            for ($_i411 = 0; $_i411 < $_size407; ++$_i411)
+            $_size421 = 0;
+            $_etype424 = 0;
+            $xfer += $input->readListBegin($_etype424, $_size421);
+            for ($_i425 = 0; $_i425 < $_size421; ++$_i425)
             {
-              $elem412 = null;
-              $elem412 = new \metastore\Partition();
-              $xfer += $elem412->read($input);
-              $this->success []= $elem412;
+              $elem426 = null;
+              $elem426 = new \metastore\Partition();
+              $xfer += $elem426->read($input);
+              $this->success []= $elem426;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15164,9 +15445,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter413)
+          foreach ($this->success as $iter427)
           {
-            $xfer += $iter413->write($output);
+            $xfer += $iter427->write($output);
           }
         }
         $output->writeListEnd();
@@ -15295,14 +15576,14 @@ class ThriftHiveMetastore_get_partitions
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size414 = 0;
-            $_etype417 = 0;
-            $xfer += $input->readListBegin($_etype417, $_size414);
-            for ($_i418 = 0; $_i418 < $_size414; ++$_i418)
+            $_size428 = 0;
+            $_etype431 = 0;
+            $xfer += $input->readListBegin($_etype431, $_size428);
+            for ($_i432 = 0; $_i432 < $_size428; ++$_i432)
             {
-              $elem419 = null;
-              $xfer += $input->readString($elem419);
-              $this->part_vals []= $elem419;
+              $elem433 = null;
+              $xfer += $input->readString($elem433);
+              $this->part_vals []= $elem433;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15326,14 +15607,14 @@ class ThriftHiveMetastore_get_partitions
         case 6:
           if ($ftype == TType::LST) {
             $this->group_names = array();
-            $_size420 = 0;
-            $_etype423 = 0;
-            $xfer += $input->readListBegin($_etype423, $_size420);
-            for ($_i424 = 0; $_i424 < $_size420; ++$_i424)
+            $_size434 = 0;
+            $_etype437 = 0;
+            $xfer += $input->readListBegin($_etype437, $_size434);
+            for ($_i438 = 0; $_i438 < $_size434; ++$_i438)
             {
-              $elem425 = null;
-              $xfer += $input->readString($elem425);
-              $this->group_names []= $elem425;
+              $elem439 = null;
+              $xfer += $input->readString($elem439);
+              $this->group_names []= $elem439;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15371,9 +15652,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter426)
+          foreach ($this->part_vals as $iter440)
           {
-            $xfer += $output->writeString($iter426);
+            $xfer += $output->writeString($iter440);
           }
         }
         $output->writeListEnd();
@@ -15398,9 +15679,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRING, count($this->group_names));
         {
-          foreach ($this->group_names as $iter427)
+          foreach ($this->group_names as $iter441)
           {
-            $xfer += $output->writeString($iter427);
+            $xfer += $output->writeString($iter441);
           }
         }
         $output->writeListEnd();
@@ -15480,15 +15761,15 @@ class ThriftHiveMetastore_get_partitions
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size428 = 0;
-            $_etype431 = 0;
-            $xfer += $input->readListBegin($_etype431, $_size428);
-            for ($_i432 = 0; $_i432 < $_size428; ++$_i432)
+            $_size442 = 0;
+            $_etype445 = 0;
+            $xfer += $input->readListBegin($_etype445, $_size442);
+            for ($_i446 = 0; $_i446 < $_size442; ++$_i446)
             {
-              $elem433 = null;
-              $elem433 = new \metastore\Partition();
-              $xfer += $elem433->read($input);
-              $this->success []= $elem433;
+              $elem447 = null;
+              $elem447 = new \metastore\Partition();
+              $xfer += $elem447->read($input);
+              $this->success []= $elem447;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15532,9 +15813,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter434)
+          foreach ($this->success as $iter448)
           {
-            $xfer += $iter434->write($output);
+            $xfer += $iter448->write($output);
           }
         }
         $output->writeListEnd();
@@ -15643,14 +15924,14 @@ class ThriftHiveMetastore_get_partition_
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size435 = 0;
-            $_etype438 = 0;
-            $xfer += $input->readListBegin($_etype438, $_size435);
-            for ($_i439 = 0; $_i439 < $_size435; ++$_i439)
+            $_size449 = 0;
+            $_etype452 = 0;
+            $xfer += $input->readListBegin($_etype452, $_size449);
+            for ($_i453 = 0; $_i453 < $_size449; ++$_i453)
             {
-              $elem440 = null;
-              $xfer += $input->readString($elem440);
-              $this->part_vals []= $elem440;
+              $elem454 = null;
+              $xfer += $input->readString($elem454);
+              $this->part_vals []= $elem454;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15695,9 +15976,9 @@ class ThriftHiveMetastore_get_partition_
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter441)
+          foreach ($this->part_vals as $iter455)
           {
-            $xfer += $output->writeString($iter441);
+            $xfer += $output->writeString($iter455);
           }
         }
         $output->writeListEnd();
@@ -15781,14 +16062,14 @@ class ThriftHiveMetastore_get_partition_
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size442 = 0;
-            $_etype445 = 0;
-            $xfer += $input->readListBegin($_etype445, $_size442);
-            for ($_i446 = 0; $_i446 < $_size442; ++$_i446)
+            $_size456 = 0;
+            $_etype459 = 0;
+            $xfer += $input->readListBegin($_etype459, $_size456);
+            for ($_i460 = 0; $_i460 < $_size456; ++$_i460)
             {
-              $elem447 = null;
-              $xfer += $input->readString($elem447);
-              $this->success []= $elem447;
+              $elem461 = null;
+              $xfer += $input->readString($elem461);
+              $this->success []= $elem461;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -15832,9 +16113,9 @@ class ThriftHiveMetastore_get_partition_
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter448)
+          foreach ($this->success as $iter462)
           {
-            $xfer += $output->writeString($iter448);
+            $xfer += $output->writeString($iter462);
           }
         }
         $output->writeListEnd();
@@ -16056,15 +16337,15 @@ class ThriftHiveMetastore_get_partitions
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size449 = 0;
-            $_etype452 = 0;
-            $xfer += $input->readListBegin($_etype452, $_size449);
-            for ($_i453 = 0; $_i453 < $_size449; ++$_i453)
+            $_size463 = 0;
+            $_etype466 = 0;
+            $xfer += $input->readListBegin($_etype466, $_size463);
+            for ($_i467 = 0; $_i467 < $_size463; ++$_i467)
             {
-              $elem454 = null;
-              $elem454 = new \metastore\Partition();
-              $xfer += $elem454->read($input);
-              $this->success []= $elem454;
+              $elem468 = null;
+              $elem468 = new \metastore\Partition();
+              $xfer += $elem468->read($input);
+              $this->success []= $elem468;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -16108,9 +16389,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter455)
+          foreach ($this->success as $iter469)
           {
-            $xfer += $iter455->write($output);
+            $xfer += $iter469->write($output);
           }
         }
         $output->writeListEnd();
@@ -16409,14 +16690,14 @@ class ThriftHiveMetastore_get_partitions
         case 3:
           if ($ftype == TType::LST) {
             $this->names = array();
-            $_size456 = 0;
-            $_etype459 = 0;
-            $xfer += $input->readListBegin($_etype459, $_size456);
-            for ($_i460 = 0; $_i460 < $_size456; ++$_i460)
+            $_size470 = 0;
+            $_etype473 = 0;
+            $xfer += $input->readListBegin($_etype473, $_size470);
+            for ($_i474 = 0; $_i474 < $_size470; ++$_i474)
             {
-              $elem461 = null;
-              $xfer += $input->readString($elem461);
-              $this->names []= $elem461;
+              $elem475 = null;
+              $xfer += $input->readString($elem475);
+              $this->names []= $elem475;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -16454,9 +16735,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRING, count($this->names));
         {
-          foreach ($this->names as $iter462)
+          foreach ($this->names as $iter476)
           {
-            $xfer += $output->writeString($iter462);
+            $xfer += $output->writeString($iter476);
           }
         }
         $output->writeListEnd();
@@ -16536,15 +16817,15 @@ class ThriftHiveMetastore_get_partitions
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size463 = 0;
-            $_etype466 = 0;
-            $xfer += $input->readListBegin($_etype466, $_size463);
-            for ($_i467 = 0; $_i467 < $_size463; ++$_i467)
+            $_size477 = 0;
+            $_etype480 = 0;
+            $xfer += $input->readListBegin($_etype480, $_size477);
+            for ($_i481 = 0; $_i481 < $_size477; ++$_i481)
             {
-              $elem468 = null;
-              $elem468 = new \metastore\Partition();
-              $xfer += $elem468->read($input);
-              $this->success []= $elem468;
+              $elem482 = null;
+              $elem482 = new \metastore\Partition();
+              $xfer += $elem482->read($input);
+              $this->success []= $elem482;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -16588,9 +16869,9 @@ class ThriftHiveMetastore_get_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter469)
+          foreach ($this->success as $iter483)
           {
-            $xfer += $iter469->write($output);
+            $xfer += $iter483->write($output);
           }
         }
         $output->writeListEnd();
@@ -16905,15 +17186,15 @@ class ThriftHiveMetastore_alter_partitio
         case 3:
           if ($ftype == TType::LST) {
             $this->new_parts = array();
-            $_size470 = 0;
-            $_etype473 = 0;
-            $xfer += $input->readListBegin($_etype473, $_size470);
-            for ($_i474 = 0; $_i474 < $_size470; ++$_i474)
+            $_size484 = 0;
+            $_etype487 = 0;
+            $xfer += $input->readListBegin($_etype487, $_size484);
+            for ($_i488 = 0; $_i488 < $_size484; ++$_i488)
             {
-              $elem475 = null;
-              $elem475 = new \metastore\Partition();
-              $xfer += $elem475->read($input);
-              $this->new_parts []= $elem475;
+              $elem489 = null;
+              $elem489 = new \metastore\Partition();
+              $xfer += $elem489->read($input);
+              $this->new_parts []= $elem489;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -16951,9 +17232,9 @@ class ThriftHiveMetastore_alter_partitio
       {
         $output->writeListBegin(TType::STRUCT, count($this->new_parts));
         {
-          foreach ($this->new_parts as $iter476)
+          foreach ($this->new_parts as $iter490)
           {
-            $xfer += $iter476->write($output);
+            $xfer += $iter490->write($output);
           }
         }
         $output->writeListEnd();
@@ -17387,14 +17668,14 @@ class ThriftHiveMetastore_rename_partiti
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size477 = 0;
-            $_etype480 = 0;
-            $xfer += $input->readListBegin($_etype480, $_size477);
-            for ($_i481 = 0; $_i481 < $_size477; ++$_i481)
+            $_size491 = 0;
+            $_etype494 = 0;
+            $xfer += $input->readListBegin($_etype494, $_size491);
+            for ($_i495 = 0; $_i495 < $_size491; ++$_i495)
             {
-              $elem482 = null;
-              $xfer += $input->readString($elem482);
-              $this->part_vals []= $elem482;
+              $elem496 = null;
+              $xfer += $input->readString($elem496);
+              $this->part_vals []= $elem496;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -17440,9 +17721,9 @@ class ThriftHiveMetastore_rename_partiti
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter483)
+          foreach ($this->part_vals as $iter497)
           {
-            $xfer += $output->writeString($iter483);
+            $xfer += $output->writeString($iter497);
           }
         }
         $output->writeListEnd();
@@ -17615,14 +17896,14 @@ class ThriftHiveMetastore_partition_name
         case 1:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size484 = 0;
-            $_etype487 = 0;
-            $xfer += $input->readListBegin($_etype487, $_size484);
-            for ($_i488 = 0; $_i488 < $_size484; ++$_i488)
+            $_size498 = 0;
+            $_etype501 = 0;
+            $xfer += $input->readListBegin($_etype501, $_size498);
+            for ($_i502 = 0; $_i502 < $_size498; ++$_i502)
             {
-              $elem489 = null;
-              $xfer += $input->readString($elem489);
-              $this->part_vals []= $elem489;
+              $elem503 = null;
+              $xfer += $input->readString($elem503);
+              $this->part_vals []= $elem503;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -17657,9 +17938,9 @@ class ThriftHiveMetastore_partition_name
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter490)
+          foreach ($this->part_vals as $iter504)
           {
-            $xfer += $output->writeString($iter490);
+            $xfer += $output->writeString($iter504);
           }
         }
         $output->writeListEnd();
@@ -18086,14 +18367,14 @@ class ThriftHiveMetastore_partition_name
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size491 = 0;
-            $_etype494 = 0;
-            $xfer += $input->readListBegin($_etype494, $_size491);
-            for ($_i495 = 0; $_i495 < $_size491; ++$_i495)
+            $_size505 = 0;
+            $_etype508 = 0;
+            $xfer += $input->readListBegin($_etype508, $_size505);
+            for ($_i509 = 0; $_i509 < $_size505; ++$_i509)
             {
-              $elem496 = null;
-              $xfer += $input->readString($elem496);
-              $this->success []= $elem496;
+              $elem510 = null;
+              $xfer += $input->readString($elem510);
+              $this->success []= $elem510;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -18129,9 +18410,9 @@ class ThriftHiveMetastore_partition_name
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter497)
+          foreach ($this->success as $iter511)
           {
-            $xfer += $output->writeString($iter497);
+            $xfer += $output->writeString($iter511);
           }
         }
         $output->writeListEnd();
@@ -18282,17 +18563,17 @@ class ThriftHiveMetastore_partition_name
         case 0:
           if ($ftype == TType::MAP) {
             $this->success = array();
-            $_size498 = 0;
-            $_ktype499 = 0;
-            $_vtype500 = 0;
-            $xfer += $input->readMapBegin($_ktype499, $_vtype500, $_size498);
-            for ($_i502 = 0; $_i502 < $_size498; ++$_i502)
+            $_size512 = 0;
+            $_ktype513 = 0;
+            $_vtype514 = 0;
+            $xfer += $input->readMapBegin($_ktype513, $_vtype514, $_size512);
+            for ($_i516 = 0; $_i516 < $_size512; ++$_i516)
             {
-              $key503 = '';
-              $val504 = '';
-              $xfer += $input->readString($key503);
-              $xfer += $input->readString($val504);
-              $this->success[$key503] = $val504;
+              $key517 = '';
+              $val518 = '';
+              $xfer += $input->readString($key517);
+              $xfer += $input->readString($val518);
+              $this->success[$key517] = $val518;
             }
             $xfer += $input->readMapEnd();
           } else {
@@ -18328,10 +18609,10 @@ class ThriftHiveMetastore_partition_name
       {
         $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
         {
-          foreach ($this->success as $kiter505 => $viter506)
+          foreach ($this->success as $kiter519 => $viter520)
           {
-            $xfer += $output->writeString($kiter505);
-            $xfer += $output->writeString($viter506);
+            $xfer += $output->writeString($kiter519);
+            $xfer += $output->writeString($viter520);
           }
         }
         $output->writeMapEnd();
@@ -18439,17 +18720,17 @@ class ThriftHiveMetastore_markPartitionF
         case 3:
           if ($ftype == TType::MAP) {
             $this->part_vals = array();
-            $_size507 = 0;
-            $_ktype508 = 0;
-            $_vtype509 = 0;
-            $xfer += $input->readMapBegin($_ktype508, $_vtype509, $_size507);
-            for ($_i511 = 0; $_i511 < $_size507; ++$_i511)
+            $_size521 = 0;
+            $_ktype522 = 0;
+            $_vtype523 = 0;
+            $xfer += $input->readMapBegin($_ktype522, $_vtype523, $_size521);
+            for ($_i525 = 0; $_i525 < $_size521; ++$_i525)
             {
-              $key512 = '';
-              $val513 = '';
-              $xfer += $input->readString($key512);
-              $xfer += $input->readString($val513);
-              $this->part_vals[$key512] = $val513;
+              $key526 = '';
+              $val527 = '';
+              $xfer += $input->readString($key526);
+              $xfer += $input->readString($val527);
+              $this->part_vals[$key526] = $val527;
             }
             $xfer += $input->readMapEnd();
           } else {
@@ -18494,10 +18775,10 @@ class ThriftHiveMetastore_markPartitionF
       {
         $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $kiter514 => $viter515)
+          foreach ($this->part_vals as $kiter528 => $viter529)
           {
-            $xfer += $output->writeString($kiter514);
-            $xfer += $output->writeString($viter515);
+            $xfer += $output->writeString($kiter528);
+            $xfer += $output->writeString($viter529);
           }
         }
         $output->writeMapEnd();
@@ -18789,17 +19070,17 @@ class ThriftHiveMetastore_isPartitionMar
         case 3:
           if ($ftype == TType::MAP) {
             $this->part_vals = array();
-            $_size516 = 0;
-            $_ktype517 = 0;
-            $_vtype518 = 0;
-            $xfer += $input->readMapBegin($_ktype517, $_vtype518, $_size516);
-            for ($_i520 = 0; $_i520 < $_size516; ++$_i520)
+            $_size530 = 0;
+            $_ktype531 = 0;
+            $_vtype532 = 0;
+            $xfer += $input->readMapBegin($_ktype531, $_vtype532, $_size530);
+            for ($_i534 = 0; $_i534 < $_size530; ++$_i534)
             {
-              $key521 = '';
-              $val522 = '';
-              $xfer += $input->readString($key521);
-              $xfer += $input->readString($val522);
-              $this->part_vals[$key521] = $val522;
+              $key535 = '';
+              $val536 = '';
+              $xfer += $input->readString($key535);
+              $xfer += $input->readString($val536);
+              $this->part_vals[$key535] = $val536;
             }
             $xfer += $input->readMapEnd();
           } else {
@@ -18844,10 +19125,10 @@ class ThriftHiveMetastore_isPartitionMar
       {
         $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $kiter523 => $viter524)
+          foreach ($this->part_vals as $kiter537 => $viter538)
           {
-            $xfer += $output->writeString($kiter523);
-            $xfer += $output->writeString($viter524);
+            $xfer += $output->writeString($kiter537);
+            $xfer += $output->writeString($viter538);
           }
         }
         $output->writeMapEnd();
@@ -20207,15 +20488,15 @@ class ThriftHiveMetastore_get_indexes_re
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size525 = 0;
-            $_etype528 = 0;
-            $xfer += $input->readListBegin($_etype528, $_size525);
-            for ($_i529 = 0; $_i529 < $_size525; ++$_i529)
+            $_size539 = 0;
+            $_etype542 = 0;
+            $xfer += $input->readListBegin($_etype542, $_size539);
+            for ($_i543 = 0; $_i543 < $_size539; ++$_i543)
             {
-              $elem530 = null;
-              $elem530 = new \metastore\Index();
-              $xfer += $elem530->read($input);
-              $this->success []= $elem530;
+              $elem544 = null;
+              $elem544 = new \metastore\Index();
+              $xfer += $elem544->read($input);
+              $this->success []= $elem544;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -20259,9 +20540,9 @@ class ThriftHiveMetastore_get_indexes_re
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter531)
+          foreach ($this->success as $iter545)
           {
-            $xfer += $iter531->write($output);
+            $xfer += $iter545->write($output);
           }
         }
         $output->writeListEnd();
@@ -20453,14 +20734,14 @@ class ThriftHiveMetastore_get_index_name
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size532 = 0;
-            $_etype535 = 0;
-            $xfer += $input->readListBegin($_etype535, $_size532);
-            for ($_i536 = 0; $_i536 < $_size532; ++$_i536)
+            $_size546 = 0;
+            $_etype549 = 0;
+            $xfer += $input->readListBegin($_etype549, $_size546);
+            for ($_i550 = 0; $_i550 < $_size546; ++$_i550)
             {
-              $elem537 = null;
-              $xfer += $input->readString($elem537);
-              $this->success []= $elem537;
+              $elem551 = null;
+              $xfer += $input->readString($elem551);
+              $this->success []= $elem551;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -20496,9 +20777,9 @@ class ThriftHiveMetastore_get_index_name
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter538)
+          foreach ($this->success as $iter552)
           {
-            $xfer += $output->writeString($iter538);
+            $xfer += $output->writeString($iter552);
           }
         }
         $output->writeListEnd();
@@ -22572,14 +22853,14 @@ class ThriftHiveMetastore_get_role_names
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size539 = 0;
-            $_etype542 = 0;
-            $xfer += $input->readListBegin($_etype542, $_size539);
-            for ($_i543 = 0; $_i543 < $_size539; ++$_i543)
+            $_size553 = 0;
+            $_etype556 = 0;
+            $xfer += $input->readListBegin($_etype556, $_size553);
+            for ($_i557 = 0; $_i557 < $_size553; ++$_i557)
             {
-              $elem544 = null;
-              $xfer += $input->readString($elem544);
-              $this->success []= $elem544;
+              $elem558 = null;
+              $xfer += $input->readString($elem558);
+              $this->success []= $elem558;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -22615,9 +22896,9 @@ class ThriftHiveMetastore_get_role_names
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter545)
+          foreach ($this->success as $iter559)
           {
-            $xfer += $output->writeString($iter545);
+            $xfer += $output->writeString($iter559);
           }
         }
         $output->writeListEnd();
@@ -23257,15 +23538,15 @@ class ThriftHiveMetastore_list_roles_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size546 = 0;
-            $_etype549 = 0;
-            $xfer += $input->readListBegin($_etype549, $_size546);
-            for ($_i550 = 0; $_i550 < $_size546; ++$_i550)
+            $_size560 = 0;
+            $_etype563 = 0;
+            $xfer += $input->readListBegin($_etype563, $_size560);
+            for ($_i564 = 0; $_i564 < $_size560; ++$_i564)
             {
-              $elem551 = null;
-              $elem551 = new \metastore\Role();
-              $xfer += $elem551->read($input);
-              $this->success []= $elem551;
+              $elem565 = null;
+              $elem565 = new \metastore\Role();
+              $xfer += $elem565->read($input);
+              $this->success []= $elem565;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -23301,9 +23582,9 @@ class ThriftHiveMetastore_list_roles_res
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter552)
+          foreach ($this->success as $iter566)
           {
-            $xfer += $iter552->write($output);
+            $xfer += $iter566->write($output);
           }
         }
         $output->writeListEnd();
@@ -23401,14 +23682,14 @@ class ThriftHiveMetastore_get_privilege_
         case 3:
           if ($ftype == TType::LST) {
             $this->group_names = array();
-            $_size553 = 0;
-            $_etype556 = 0;
-            $xfer += $input->readListBegin($_etype556, $_size553);
-            for ($_i557 = 0; $_i557 < $_size553; ++$_i557)
+            $_size567 = 0;
+            $_etype570 = 0;
+            $xfer += $input->readListBegin($_etype570, $_size567);
+            for ($_i571 = 0; $_i571 < $_size567; ++$_i571)
             {
-              $elem558 = null;
-              $xfer += $input->readString($elem558);
-              $this->group_names []= $elem558;
+              $elem572 = null;
+              $xfer += $input->readString($elem572);
+              $this->group_names []= $elem572;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -23449,9 +23730,9 @@ class ThriftHiveMetastore_get_privilege_
       {
         $output->writeListBegin(TType::STRING, count($this->group_names));
         {
-          foreach ($this->group_names as $iter559)
+          foreach ($this->group_names as $iter573)
           {
-            $xfer += $output->writeString($iter559);
+            $xfer += $output->writeString($iter573);
           }
         }
         $output->writeListEnd();
@@ -23738,15 +24019,15 @@ class ThriftHiveMetastore_list_privilege
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size560 = 0;
-            $_etype563 = 0;
-            $xfer += $input->readListBegin($_etype563, $_size560);
-            for ($_i564 = 0; $_i564 < $_size560; ++$_i564)
+            $_size574 = 0;
+            $_etype577 = 0;
+            $xfer += $input->readListBegin($_etype577, $_size574);
+            for ($_i578 = 0; $_i578 < $_size574; ++$_i578)
             {
-              $elem565 = null;
-              $elem565 = new \metastore\HiveObjectPrivilege();
-              $xfer += $elem565->read($input);
-              $this->success []= $elem565;
+              $elem579 = null;
+              $elem579 = new \metastore\HiveObjectPrivilege();
+              $xfer += $elem579->read($input);
+              $this->success []= $elem579;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -23782,9 +24063,9 @@ class ThriftHiveMetastore_list_privilege
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter566)
+          foreach ($this->success as $iter580)
           {
-            $xfer += $iter566->write($output);
+            $xfer += $iter580->write($output);
           }
         }
         $output->writeListEnd();
@@ -24207,14 +24488,14 @@ class ThriftHiveMetastore_set_ugi_args {
         case 2:
           if ($ftype == TType::LST) {
             $this->group_names = array();
-            $_size567 = 0;
-            $_etype570 = 0;
-            $xfer += $input->readListBegin($_etype570, $_size567);
-            for ($_i571 = 0; $_i571 < $_size567; ++$_i571)
+            $_size581 = 0;
+            $_etype584 = 0;
+            $xfer += $input->readListBegin($_etype584, $_size581);
+            for ($_i585 = 0; $_i585 < $_size581; ++$_i585)
             {
-              $elem572 = null;
-              $xfer += $input->readString($elem572);
-              $this->group_names []= $elem572;
+              $elem586 = null;
+              $xfer += $input->readString($elem586);
+              $this->group_names []= $elem586;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -24247,9 +24528,9 @@ class ThriftHiveMetastore_set_ugi_args {
       {
         $output->writeListBegin(TType::STRING, count($this->group_names));
         {
-          foreach ($this->group_names as $iter573)
+          foreach ($this->group_names as $iter587)
           {
-            $xfer += $output->writeString($iter573);
+            $xfer += $output->writeString($iter587);
           }
         }
         $output->writeListEnd();
@@ -24319,14 +24600,14 @@ class ThriftHiveMetastore_set_ugi_result
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size574 = 0;
-            $_etype577 = 0;
-            $xfer += $input->readListBegin($_etype577, $_size574);
-            for ($_i578 = 0; $_i578 < $_size574; ++$_i578)
+            $_size588 = 0;
+            $_etype591 = 0;
+            $xfer += $input->readListBegin($_etype591, $_size588);
+            for ($_i592 = 0; $_i592 < $_size588; ++$_i592)
             {
-              $elem579 = null;
-              $xfer += $input->readString($elem579);
-              $this->success []= $elem579;
+              $elem593 = null;
+              $xfer += $input->readString($elem593);
+              $this->success []= $elem593;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -24362,9 +24643,9 @@ class ThriftHiveMetastore_set_ugi_result
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter580)
+          foreach ($this->success as $iter594)
           {
-            $xfer += $output->writeString($iter580);
+            $xfer += $output->writeString($iter594);
           }
         }
         $output->writeListEnd();

Modified: hive/trunk/metastore/src/gen/thrift/gen-php/metastore/Types.php
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/metastore/Types.php?rev=1558928&r1=1558927&r2=1558928&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-php/metastore/Types.php (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-php/metastore/Types.php Thu Jan 16 22:01:53 2014
@@ -5165,6 +5165,286 @@ class PartitionsByExprRequest {
 
 }
 
+class AddPartitionsResult {
+  static $_TSPEC;
+
+  public $partitions = null;
+
+  public function __construct($vals=null) {
+    if (!isset(self::$_TSPEC)) {
+      self::$_TSPEC = array(
+        1 => array(
+          'var' => 'partitions',
+          'type' => TType::LST,
+          'etype' => TType::STRUCT,
+          'elem' => array(
+            'type' => TType::STRUCT,
+            'class' => '\metastore\Partition',
+            ),
+          ),
+        );
+    }
+    if (is_array($vals)) {
+      if (isset($vals['partitions'])) {
+        $this->partitions = $vals['partitions'];
+      }
+    }
+  }
+
+  public function getName() {
+    return 'AddPartitionsResult';
+  }
+
+  public function read($input)
+  {
+    $xfer = 0;
+    $fname = null;
+    $ftype = 0;
+    $fid = 0;
+    $xfer += $input->readStructBegin($fname);
+    while (true)
+    {
+      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+      if ($ftype == TType::STOP) {
+        break;
+      }
+      switch ($fid)
+      {
+        case 1:
+          if ($ftype == TType::LST) {
+            $this->partitions = array();
+            $_size235 = 0;
+            $_etype238 = 0;
+            $xfer += $input->readListBegin($_etype238, $_size235);
+            for ($_i239 = 0; $_i239 < $_size235; ++$_i239)
+            {
+              $elem240 = null;
+              $elem240 = new \metastore\Partition();
+              $xfer += $elem240->read($input);
+              $this->partitions []= $elem240;
+            }
+            $xfer += $input->readListEnd();
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        default:
+          $xfer += $input->skip($ftype);
+          break;
+      }
+      $xfer += $input->readFieldEnd();
+    }
+    $xfer += $input->readStructEnd();
+    return $xfer;
+  }
+
+  public function write($output) {
+    $xfer = 0;
+    $xfer += $output->writeStructBegin('AddPartitionsResult');
+    if ($this->partitions !== null) {
+      if (!is_array($this->partitions)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('partitions', TType::LST, 1);
+      {
+        $output->writeListBegin(TType::STRUCT, count($this->partitions));
+        {
+          foreach ($this->partitions as $iter241)
+          {
+            $xfer += $iter241->write($output);
+          }
+        }
+        $output->writeListEnd();
+      }
+      $xfer += $output->writeFieldEnd();
+    }
+    $xfer += $output->writeFieldStop();
+    $xfer += $output->writeStructEnd();
+    return $xfer;
+  }
+
+}
+
+class AddPartitionsRequest {
+  static $_TSPEC;
+
+  public $dbName = null;
+  public $tblName = null;
+  public $parts = null;
+  public $ifNotExists = null;
+  public $needResult = true;
+
+  public function __construct($vals=null) {
+    if (!isset(self::$_TSPEC)) {
+      self::$_TSPEC = array(
+        1 => array(
+          'var' => 'dbName',
+          'type' => TType::STRING,
+          ),
+        2 => array(
+          'var' => 'tblName',
+          'type' => TType::STRING,
+          ),
+        3 => array(
+          'var' => 'parts',
+          'type' => TType::LST,
+          'etype' => TType::STRUCT,
+          'elem' => array(
+            'type' => TType::STRUCT,
+            'class' => '\metastore\Partition',
+            ),
+          ),
+        4 => array(
+          'var' => 'ifNotExists',
+          'type' => TType::BOOL,
+          ),
+        5 => array(
+          'var' => 'needResult',
+          'type' => TType::BOOL,
+          ),
+        );
+    }
+    if (is_array($vals)) {
+      if (isset($vals['dbName'])) {
+        $this->dbName = $vals['dbName'];
+      }
+      if (isset($vals['tblName'])) {
+        $this->tblName = $vals['tblName'];
+      }
+      if (isset($vals['parts'])) {
+        $this->parts = $vals['parts'];
+      }
+      if (isset($vals['ifNotExists'])) {
+        $this->ifNotExists = $vals['ifNotExists'];
+      }
+      if (isset($vals['needResult'])) {
+        $this->needResult = $vals['needResult'];
+      }
+    }
+  }
+
+  public function getName() {
+    return 'AddPartitionsRequest';
+  }
+
+  public function read($input)
+  {
+    $xfer = 0;
+    $fname = null;
+    $ftype = 0;
+    $fid = 0;
+    $xfer += $input->readStructBegin($fname);
+    while (true)
+    {
+      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+      if ($ftype == TType::STOP) {
+        break;
+      }
+      switch ($fid)
+      {
+        case 1:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->dbName);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 2:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->tblName);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 3:
+          if ($ftype == TType::LST) {
+            $this->parts = array();
+            $_size242 = 0;
+            $_etype245 = 0;
+            $xfer += $input->readListBegin($_etype245, $_size242);
+            for ($_i246 = 0; $_i246 < $_size242; ++$_i246)
+            {
+              $elem247 = null;
+              $elem247 = new \metastore\Partition();
+              $xfer += $elem247->read($input);
+              $this->parts []= $elem247;
+            }
+            $xfer += $input->readListEnd();
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 4:
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->ifNotExists);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 5:
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->needResult);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        default:
+          $xfer += $input->skip($ftype);
+          break;
+      }
+      $xfer += $input->readFieldEnd();
+    }
+    $xfer += $input->readStructEnd();
+    return $xfer;
+  }
+
+  public function write($output) {
+    $xfer = 0;
+    $xfer += $output->writeStructBegin('AddPartitionsRequest');
+    if ($this->dbName !== null) {
+      $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1);
+      $xfer += $output->writeString($this->dbName);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->tblName !== null) {
+      $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2);
+      $xfer += $output->writeString($this->tblName);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->parts !== null) {
+      if (!is_array($this->parts)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('parts', TType::LST, 3);
+      {
+        $output->writeListBegin(TType::STRUCT, count($this->parts));
+        {
+          foreach ($this->parts as $iter248)
+          {
+            $xfer += $iter248->write($output);
+          }
+        }
+        $output->writeListEnd();
+      }
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->ifNotExists !== null) {
+      $xfer += $output->writeFieldBegin('ifNotExists', TType::BOOL, 4);
+      $xfer += $output->writeBool($this->ifNotExists);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->needResult !== null) {
+      $xfer += $output->writeFieldBegin('needResult', TType::BOOL, 5);
+      $xfer += $output->writeBool($this->needResult);
+      $xfer += $output->writeFieldEnd();
+    }
+    $xfer += $output->writeFieldStop();
+    $xfer += $output->writeStructEnd();
+    return $xfer;
+  }
+
+}
+
 class MetaException extends TException {
   static $_TSPEC;
 

Modified: hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote?rev=1558928&r1=1558927&r2=1558928&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote Thu Jan 16 22:01:53 2014
@@ -50,6 +50,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == 
   print '  Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)'
   print '  i32 add_partitions( new_parts)'
   print '  Partition append_partition(string db_name, string tbl_name,  part_vals)'
+  print '  AddPartitionsResult add_partitions_req(AddPartitionsRequest request)'
   print '  Partition append_partition_with_environment_context(string db_name, string tbl_name,  part_vals, EnvironmentContext environment_context)'
   print '  Partition append_partition_by_name(string db_name, string tbl_name, string part_name)'
   print '  Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)'
@@ -319,6 +320,12 @@ elif cmd == 'append_partition':
     sys.exit(1)
   pp.pprint(client.append_partition(args[0],args[1],eval(args[2]),))
 
+elif cmd == 'add_partitions_req':
+  if len(args) != 1:
+    print 'add_partitions_req requires 1 args'
+    sys.exit(1)
+  pp.pprint(client.add_partitions_req(eval(args[0]),))
+
 elif cmd == 'append_partition_with_environment_context':
   if len(args) != 4:
     print 'append_partition_with_environment_context requires 4 args'



Mime
View raw message