hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gunt...@apache.org
Subject svn commit: r1561947 [6/17] - in /hive/branches/tez: ./ ant/ ant/src/org/apache/hadoop/hive/ant/ beeline/ cli/ cli/src/java/org/apache/hadoop/hive/cli/ common/ common/src/ common/src/java/org/apache/hadoop/hive/common/type/ common/src/java/org/apache/h...
Date Tue, 28 Jan 2014 05:48:10 GMT
Modified: hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
URL: http://svn.apache.org/viewvc/hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php?rev=1561947&r1=1561946&r2=1561947&view=diff
==============================================================================
--- hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php (original)
+++ hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php Tue Jan 28 05:48:03 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)
+            $_size248 = 0;
+            $_etype251 = 0;
+            $xfer += $input->readListBegin($_etype251, $_size248);
+            for ($_i252 = 0; $_i252 < $_size248; ++$_i252)
             {
-              $elem240 = null;
-              $xfer += $input->readString($elem240);
-              $this->success []= $elem240;
+              $elem253 = null;
+              $xfer += $input->readString($elem253);
+              $this->success []= $elem253;
             }
             $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 $iter254)
           {
-            $xfer += $output->writeString($iter241);
+            $xfer += $output->writeString($iter254);
           }
         }
         $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)
+            $_size255 = 0;
+            $_etype258 = 0;
+            $xfer += $input->readListBegin($_etype258, $_size255);
+            for ($_i259 = 0; $_i259 < $_size255; ++$_i259)
             {
-              $elem247 = null;
-              $xfer += $input->readString($elem247);
-              $this->success []= $elem247;
+              $elem260 = null;
+              $xfer += $input->readString($elem260);
+              $this->success []= $elem260;
             }
             $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 $iter261)
           {
-            $xfer += $output->writeString($iter248);
+            $xfer += $output->writeString($iter261);
           }
         }
         $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)
+            $_size262 = 0;
+            $_ktype263 = 0;
+            $_vtype264 = 0;
+            $xfer += $input->readMapBegin($_ktype263, $_vtype264, $_size262);
+            for ($_i266 = 0; $_i266 < $_size262; ++$_i266)
             {
-              $key254 = '';
-              $val255 = new \metastore\Type();
-              $xfer += $input->readString($key254);
-              $val255 = new \metastore\Type();
-              $xfer += $val255->read($input);
-              $this->success[$key254] = $val255;
+              $key267 = '';
+              $val268 = new \metastore\Type();
+              $xfer += $input->readString($key267);
+              $val268 = new \metastore\Type();
+              $xfer += $val268->read($input);
+              $this->success[$key267] = $val268;
             }
             $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 $kiter269 => $viter270)
           {
-            $xfer += $output->writeString($kiter256);
-            $xfer += $viter257->write($output);
+            $xfer += $output->writeString($kiter269);
+            $xfer += $viter270->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)
+            $_size271 = 0;
+            $_etype274 = 0;
+            $xfer += $input->readListBegin($_etype274, $_size271);
+            for ($_i275 = 0; $_i275 < $_size271; ++$_i275)
             {
-              $elem263 = null;
-              $elem263 = new \metastore\FieldSchema();
-              $xfer += $elem263->read($input);
-              $this->success []= $elem263;
+              $elem276 = null;
+              $elem276 = new \metastore\FieldSchema();
+              $xfer += $elem276->read($input);
+              $this->success []= $elem276;
             }
             $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 $iter277)
           {
-            $xfer += $iter264->write($output);
+            $xfer += $iter277->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)
+            $_size278 = 0;
+            $_etype281 = 0;
+            $xfer += $input->readListBegin($_etype281, $_size278);
+            for ($_i282 = 0; $_i282 < $_size278; ++$_i282)
             {
-              $elem270 = null;
-              $elem270 = new \metastore\FieldSchema();
-              $xfer += $elem270->read($input);
-              $this->success []= $elem270;
+              $elem283 = null;
+              $elem283 = new \metastore\FieldSchema();
+              $xfer += $elem283->read($input);
+              $this->success []= $elem283;
             }
             $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 $iter284)
           {
-            $xfer += $iter271->write($output);
+            $xfer += $iter284->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)
+            $_size285 = 0;
+            $_etype288 = 0;
+            $xfer += $input->readListBegin($_etype288, $_size285);
+            for ($_i289 = 0; $_i289 < $_size285; ++$_i289)
             {
-              $elem277 = null;
-              $xfer += $input->readString($elem277);
-              $this->success []= $elem277;
+              $elem290 = null;
+              $xfer += $input->readString($elem290);
+              $this->success []= $elem290;
             }
             $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 $iter291)
           {
-            $xfer += $output->writeString($iter278);
+            $xfer += $output->writeString($iter291);
           }
         }
         $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)
+            $_size292 = 0;
+            $_etype295 = 0;
+            $xfer += $input->readListBegin($_etype295, $_size292);
+            for ($_i296 = 0; $_i296 < $_size292; ++$_i296)
             {
-              $elem284 = null;
-              $xfer += $input->readString($elem284);
-              $this->success []= $elem284;
+              $elem297 = null;
+              $xfer += $input->readString($elem297);
+              $this->success []= $elem297;
             }
             $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 $iter298)
           {
-            $xfer += $output->writeString($iter285);
+            $xfer += $output->writeString($iter298);
           }
         }
         $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)
+            $_size299 = 0;
+            $_etype302 = 0;
+            $xfer += $input->readListBegin($_etype302, $_size299);
+            for ($_i303 = 0; $_i303 < $_size299; ++$_i303)
             {
-              $elem291 = null;
-              $xfer += $input->readString($elem291);
-              $this->tbl_names []= $elem291;
+              $elem304 = null;
+              $xfer += $input->readString($elem304);
+              $this->tbl_names []= $elem304;
             }
             $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 $iter305)
           {
-            $xfer += $output->writeString($iter292);
+            $xfer += $output->writeString($iter305);
           }
         }
         $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)
+            $_size306 = 0;
+            $_etype309 = 0;
+            $xfer += $input->readListBegin($_etype309, $_size306);
+            for ($_i310 = 0; $_i310 < $_size306; ++$_i310)
             {
-              $elem298 = null;
-              $elem298 = new \metastore\Table();
-              $xfer += $elem298->read($input);
-              $this->success []= $elem298;
+              $elem311 = null;
+              $elem311 = new \metastore\Table();
+              $xfer += $elem311->read($input);
+              $this->success []= $elem311;
             }
             $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 $iter312)
           {
-            $xfer += $iter299->write($output);
+            $xfer += $iter312->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)
+            $_size313 = 0;
+            $_etype316 = 0;
+            $xfer += $input->readListBegin($_etype316, $_size313);
+            for ($_i317 = 0; $_i317 < $_size313; ++$_i317)
             {
-              $elem305 = null;
-              $xfer += $input->readString($elem305);
-              $this->success []= $elem305;
+              $elem318 = null;
+              $xfer += $input->readString($elem318);
+              $this->success []= $elem318;
             }
             $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 $iter319)
           {
-            $xfer += $output->writeString($iter306);
+            $xfer += $output->writeString($iter319);
           }
         }
         $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)
+            $_size320 = 0;
+            $_etype323 = 0;
+            $xfer += $input->readListBegin($_etype323, $_size320);
+            for ($_i324 = 0; $_i324 < $_size320; ++$_i324)
             {
-              $elem312 = null;
-              $elem312 = new \metastore\Partition();
-              $xfer += $elem312->read($input);
-              $this->new_parts []= $elem312;
+              $elem325 = null;
+              $elem325 = new \metastore\Partition();
+              $xfer += $elem325->read($input);
+              $this->new_parts []= $elem325;
             }
             $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 $iter326)
           {
-            $xfer += $iter313->write($output);
+            $xfer += $iter326->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)
+            $_size327 = 0;
+            $_etype330 = 0;
+            $xfer += $input->readListBegin($_etype330, $_size327);
+            for ($_i331 = 0; $_i331 < $_size327; ++$_i331)
             {
-              $elem319 = null;
-              $xfer += $input->readString($elem319);
-              $this->part_vals []= $elem319;
+              $elem332 = null;
+              $xfer += $input->readString($elem332);
+              $this->part_vals []= $elem332;
             }
             $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 $iter333)
           {
-            $xfer += $output->writeString($iter320);
+            $xfer += $output->writeString($iter333);
           }
         }
         $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)
+            $_size334 = 0;
+            $_etype337 = 0;
+            $xfer += $input->readListBegin($_etype337, $_size334);
+            for ($_i338 = 0; $_i338 < $_size334; ++$_i338)
             {
-              $elem326 = null;
-              $xfer += $input->readString($elem326);
-              $this->part_vals []= $elem326;
+              $elem339 = null;
+              $xfer += $input->readString($elem339);
+              $this->part_vals []= $elem339;
             }
             $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 $iter340)
           {
-            $xfer += $output->writeString($iter327);
+            $xfer += $output->writeString($iter340);
           }
         }
         $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)
+            $_size341 = 0;
+            $_etype344 = 0;
+            $xfer += $input->readListBegin($_etype344, $_size341);
+            for ($_i345 = 0; $_i345 < $_size341; ++$_i345)
             {
-              $elem333 = null;
-              $xfer += $input->readString($elem333);
-              $this->part_vals []= $elem333;
+              $elem346 = null;
+              $xfer += $input->readString($elem346);
+              $this->part_vals []= $elem346;
             }
             $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 $iter347)
           {
-            $xfer += $output->writeString($iter334);
+            $xfer += $output->writeString($iter347);
           }
         }
         $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)
+            $_size348 = 0;
+            $_etype351 = 0;
+            $xfer += $input->readListBegin($_etype351, $_size348);
+            for ($_i352 = 0; $_i352 < $_size348; ++$_i352)
             {
-              $elem340 = null;
-              $xfer += $input->readString($elem340);
-              $this->part_vals []= $elem340;
+              $elem353 = null;
+              $xfer += $input->readString($elem353);
+              $this->part_vals []= $elem353;
             }
             $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 $iter354)
           {
-            $xfer += $output->writeString($iter341);
+            $xfer += $output->writeString($iter354);
           }
         }
         $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)
+            $_size355 = 0;
+            $_etype358 = 0;
+            $xfer += $input->readListBegin($_etype358, $_size355);
+            for ($_i359 = 0; $_i359 < $_size355; ++$_i359)
             {
-              $elem347 = null;
-              $xfer += $input->readString($elem347);
-              $this->part_vals []= $elem347;
+              $elem360 = null;
+              $xfer += $input->readString($elem360);
+              $this->part_vals []= $elem360;
             }
             $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 $iter361)
           {
-            $xfer += $output->writeString($iter348);
+            $xfer += $output->writeString($iter361);
           }
         }
         $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)
+            $_size362 = 0;
+            $_ktype363 = 0;
+            $_vtype364 = 0;
+            $xfer += $input->readMapBegin($_ktype363, $_vtype364, $_size362);
+            for ($_i366 = 0; $_i366 < $_size362; ++$_i366)
             {
-              $key354 = '';
-              $val355 = '';
-              $xfer += $input->readString($key354);
-              $xfer += $input->readString($val355);
-              $this->partitionSpecs[$key354] = $val355;
+              $key367 = '';
+              $val368 = '';
+              $xfer += $input->readString($key367);
+              $xfer += $input->readString($val368);
+              $this->partitionSpecs[$key367] = $val368;
             }
             $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 $kiter369 => $viter370)
           {
-            $xfer += $output->writeString($kiter356);
-            $xfer += $output->writeString($viter357);
+            $xfer += $output->writeString($kiter369);
+            $xfer += $output->writeString($viter370);
           }
         }
         $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)
+            $_size371 = 0;
+            $_etype374 = 0;
+            $xfer += $input->readListBegin($_etype374, $_size371);
+            for ($_i375 = 0; $_i375 < $_size371; ++$_i375)
             {
-              $elem363 = null;
-              $xfer += $input->readString($elem363);
-              $this->part_vals []= $elem363;
+              $elem376 = null;
+              $xfer += $input->readString($elem376);
+              $this->part_vals []= $elem376;
             }
             $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)
+            $_size377 = 0;
+            $_etype380 = 0;
+            $xfer += $input->readListBegin($_etype380, $_size377);
+            for ($_i381 = 0; $_i381 < $_size377; ++$_i381)
             {
-              $elem369 = null;
-              $xfer += $input->readString($elem369);
-              $this->group_names []= $elem369;
+              $elem382 = null;
+              $xfer += $input->readString($elem382);
+              $this->group_names []= $elem382;
             }
             $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 $iter383)
           {
-            $xfer += $output->writeString($iter370);
+            $xfer += $output->writeString($iter383);
           }
         }
         $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 $iter384)
           {
-            $xfer += $output->writeString($iter371);
+            $xfer += $output->writeString($iter384);
           }
         }
         $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)
+            $_size385 = 0;
+            $_etype388 = 0;
+            $xfer += $input->readListBegin($_etype388, $_size385);
+            for ($_i389 = 0; $_i389 < $_size385; ++$_i389)
             {
-              $elem377 = null;
-              $elem377 = new \metastore\Partition();
-              $xfer += $elem377->read($input);
-              $this->success []= $elem377;
+              $elem390 = null;
+              $elem390 = new \metastore\Partition();
+              $xfer += $elem390->read($input);
+              $this->success []= $elem390;
             }
             $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 $iter391)
           {
-            $xfer += $iter378->write($output);
+            $xfer += $iter391->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)
+            $_size392 = 0;
+            $_etype395 = 0;
+            $xfer += $input->readListBegin($_etype395, $_size392);
+            for ($_i396 = 0; $_i396 < $_size392; ++$_i396)
             {
-              $elem384 = null;
-              $xfer += $input->readString($elem384);
-              $this->group_names []= $elem384;
+              $elem397 = null;
+              $xfer += $input->readString($elem397);
+              $this->group_names []= $elem397;
             }
             $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 $iter398)
           {
-            $xfer += $output->writeString($iter385);
+            $xfer += $output->writeString($iter398);
           }
         }
         $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)
+            $_size399 = 0;
+            $_etype402 = 0;
+            $xfer += $input->readListBegin($_etype402, $_size399);
+            for ($_i403 = 0; $_i403 < $_size399; ++$_i403)
             {
-              $elem391 = null;
-              $elem391 = new \metastore\Partition();
-              $xfer += $elem391->read($input);
-              $this->success []= $elem391;
+              $elem404 = null;
+              $elem404 = new \metastore\Partition();
+              $xfer += $elem404->read($input);
+              $this->success []= $elem404;
             }
             $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 $iter405)
           {
-            $xfer += $iter392->write($output);
+            $xfer += $iter405->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)
+            $_size406 = 0;
+            $_etype409 = 0;
+            $xfer += $input->readListBegin($_etype409, $_size406);
+            for ($_i410 = 0; $_i410 < $_size406; ++$_i410)
             {
-              $elem398 = null;
-              $xfer += $input->readString($elem398);
-              $this->success []= $elem398;
+              $elem411 = null;
+              $xfer += $input->readString($elem411);
+              $this->success []= $elem411;
             }
             $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 $iter412)
           {
-            $xfer += $output->writeString($iter399);
+            $xfer += $output->writeString($iter412);
           }
         }
         $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)
+            $_size413 = 0;
+            $_etype416 = 0;
+            $xfer += $input->readListBegin($_etype416, $_size413);
+            for ($_i417 = 0; $_i417 < $_size413; ++$_i417)
             {
-              $elem405 = null;
-              $xfer += $input->readString($elem405);
-              $this->part_vals []= $elem405;
+              $elem418 = null;
+              $xfer += $input->readString($elem418);
+              $this->part_vals []= $elem418;
             }
             $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 $iter419)
           {
-            $xfer += $output->writeString($iter406);
+            $xfer += $output->writeString($iter419);
           }
         }
         $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)
+            $_size420 = 0;
+            $_etype423 = 0;
+            $xfer += $input->readListBegin($_etype423, $_size420);
+            for ($_i424 = 0; $_i424 < $_size420; ++$_i424)
             {
-              $elem412 = null;
-              $elem412 = new \metastore\Partition();
-              $xfer += $elem412->read($input);
-              $this->success []= $elem412;
+              $elem425 = null;
+              $elem425 = new \metastore\Partition();
+              $xfer += $elem425->read($input);
+              $this->success []= $elem425;
             }
             $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 $iter426)
           {
-            $xfer += $iter413->write($output);
+            $xfer += $iter426->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)
+            $_size427 = 0;
+            $_etype430 = 0;
+            $xfer += $input->readListBegin($_etype430, $_size427);
+            for ($_i431 = 0; $_i431 < $_size427; ++$_i431)
             {
-              $elem419 = null;
-              $xfer += $input->readString($elem419);
-              $this->part_vals []= $elem419;
+              $elem432 = null;
+              $xfer += $input->readString($elem432);
+              $this->part_vals []= $elem432;
             }
             $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)
+            $_size433 = 0;
+            $_etype436 = 0;
+            $xfer += $input->readListBegin($_etype436, $_size433);
+            for ($_i437 = 0; $_i437 < $_size433; ++$_i437)
             {
-              $elem425 = null;
-              $xfer += $input->readString($elem425);
-              $this->group_names []= $elem425;
+              $elem438 = null;
+              $xfer += $input->readString($elem438);
+              $this->group_names []= $elem438;
             }
             $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 $iter439)
           {
-            $xfer += $output->writeString($iter426);
+            $xfer += $output->writeString($iter439);
           }
         }
         $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 $iter440)
           {
-            $xfer += $output->writeString($iter427);
+            $xfer += $output->writeString($iter440);
           }
         }
         $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)
+            $_size441 = 0;
+            $_etype444 = 0;
+            $xfer += $input->readListBegin($_etype444, $_size441);
+            for ($_i445 = 0; $_i445 < $_size441; ++$_i445)
             {
-              $elem433 = null;
-              $elem433 = new \metastore\Partition();
-              $xfer += $elem433->read($input);
-              $this->success []= $elem433;
+              $elem446 = null;
+              $elem446 = new \metastore\Partition();
+              $xfer += $elem446->read($input);
+              $this->success []= $elem446;
             }
             $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 $iter447)
           {
-            $xfer += $iter434->write($output);
+            $xfer += $iter447->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)
+            $_size448 = 0;
+            $_etype451 = 0;
+            $xfer += $input->readListBegin($_etype451, $_size448);
+            for ($_i452 = 0; $_i452 < $_size448; ++$_i452)
             {
-              $elem440 = null;
-              $xfer += $input->readString($elem440);
-              $this->part_vals []= $elem440;
+              $elem453 = null;
+              $xfer += $input->readString($elem453);
+              $this->part_vals []= $elem453;
             }
             $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 $iter454)
           {
-            $xfer += $output->writeString($iter441);
+            $xfer += $output->writeString($iter454);
           }
         }
         $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)
+            $_size455 = 0;
+            $_etype458 = 0;
+            $xfer += $input->readListBegin($_etype458, $_size455);
+            for ($_i459 = 0; $_i459 < $_size455; ++$_i459)
             {
-              $elem447 = null;
-              $xfer += $input->readString($elem447);
-              $this->success []= $elem447;
+              $elem460 = null;
+              $xfer += $input->readString($elem460);
+              $this->success []= $elem460;
             }
             $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 $iter461)
           {
-            $xfer += $output->writeString($iter448);
+            $xfer += $output->writeString($iter461);
           }
         }
         $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)
+            $_size462 = 0;
+            $_etype465 = 0;
+            $xfer += $input->readListBegin($_etype465, $_size462);
+            for ($_i466 = 0; $_i466 < $_size462; ++$_i466)
             {
-              $elem454 = null;
-              $elem454 = new \metastore\Partition();
-              $xfer += $elem454->read($input);
-              $this->success []= $elem454;
+              $elem467 = null;
+              $elem467 = new \metastore\Partition();
+              $xfer += $elem467->read($input);
+              $this->success []= $elem467;
             }
             $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 $iter468)
           {
-            $xfer += $iter455->write($output);
+            $xfer += $iter468->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)
+            $_size469 = 0;
+            $_etype472 = 0;
+            $xfer += $input->readListBegin($_etype472, $_size469);
+            for ($_i473 = 0; $_i473 < $_size469; ++$_i473)
             {
-              $elem461 = null;
-              $xfer += $input->readString($elem461);
-              $this->names []= $elem461;
+              $elem474 = null;
+              $xfer += $input->readString($elem474);
+              $this->names []= $elem474;
             }
             $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 $iter475)
           {
-            $xfer += $output->writeString($iter462);
+            $xfer += $output->writeString($iter475);
           }
         }
         $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)
+            $_size476 = 0;
+            $_etype479 = 0;
+            $xfer += $input->readListBegin($_etype479, $_size476);
+            for ($_i480 = 0; $_i480 < $_size476; ++$_i480)
             {
-              $elem468 = null;
-              $elem468 = new \metastore\Partition();
-              $xfer += $elem468->read($input);
-              $this->success []= $elem468;
+              $elem481 = null;
+              $elem481 = new \metastore\Partition();
+              $xfer += $elem481->read($input);
+              $this->success []= $elem481;
             }
             $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 $iter482)
           {
-            $xfer += $iter469->write($output);
+            $xfer += $iter482->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)
+            $_size483 = 0;
+            $_etype486 = 0;
+            $xfer += $input->readListBegin($_etype486, $_size483);
+            for ($_i487 = 0; $_i487 < $_size483; ++$_i487)
             {
-              $elem475 = null;
-              $elem475 = new \metastore\Partition();
-              $xfer += $elem475->read($input);
-              $this->new_parts []= $elem475;
+              $elem488 = null;
+              $elem488 = new \metastore\Partition();
+              $xfer += $elem488->read($input);
+              $this->new_parts []= $elem488;
             }
             $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 $iter489)
           {
-            $xfer += $iter476->write($output);
+            $xfer += $iter489->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)
+            $_size490 = 0;
+            $_etype493 = 0;
+            $xfer += $input->readListBegin($_etype493, $_size490);
+            for ($_i494 = 0; $_i494 < $_size490; ++$_i494)
             {
-              $elem482 = null;
-              $xfer += $input->readString($elem482);
-              $this->part_vals []= $elem482;
+              $elem495 = null;
+              $xfer += $input->readString($elem495);
+              $this->part_vals []= $elem495;
             }
             $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 $iter496)
           {
-            $xfer += $output->writeString($iter483);
+            $xfer += $output->writeString($iter496);
           }
         }
         $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)
+            $_size497 = 0;
+            $_etype500 = 0;
+            $xfer += $input->readListBegin($_etype500, $_size497);
+            for ($_i501 = 0; $_i501 < $_size497; ++$_i501)
             {
-              $elem489 = null;
-              $xfer += $input->readString($elem489);
-              $this->part_vals []= $elem489;
+              $elem502 = null;
+              $xfer += $input->readString($elem502);
+              $this->part_vals []= $elem502;
             }
             $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 $iter503)
           {
-            $xfer += $output->writeString($iter490);
+            $xfer += $output->writeString($iter503);
           }
         }
         $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)
+            $_size504 = 0;
+            $_etype507 = 0;
+            $xfer += $input->readListBegin($_etype507, $_size504);
+            for ($_i508 = 0; $_i508 < $_size504; ++$_i508)
             {
-              $elem496 = null;
-              $xfer += $input->readString($elem496);
-              $this->success []= $elem496;
+              $elem509 = null;
+              $xfer += $input->readString($elem509);
+              $this->success []= $elem509;
             }
             $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 $iter510)
           {
-            $xfer += $output->writeString($iter497);
+            $xfer += $output->writeString($iter510);
           }
         }
         $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)
+            $_size511 = 0;
+            $_ktype512 = 0;
+            $_vtype513 = 0;
+            $xfer += $input->readMapBegin($_ktype512, $_vtype513, $_size511);
+            for ($_i515 = 0; $_i515 < $_size511; ++$_i515)
             {
-              $key503 = '';
-              $val504 = '';
-              $xfer += $input->readString($key503);
-              $xfer += $input->readString($val504);
-              $this->success[$key503] = $val504;
+              $key516 = '';
+              $val517 = '';
+              $xfer += $input->readString($key516);
+              $xfer += $input->readString($val517);
+              $this->success[$key516] = $val517;
             }
             $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 $kiter518 => $viter519)
           {
-            $xfer += $output->writeString($kiter505);
-            $xfer += $output->writeString($viter506);
+            $xfer += $output->writeString($kiter518);
+            $xfer += $output->writeString($viter519);
           }
         }
         $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)
+            $_size520 = 0;
+            $_ktype521 = 0;
+            $_vtype522 = 0;
+            $xfer += $input->readMapBegin($_ktype521, $_vtype522, $_size520);
+            for ($_i524 = 0; $_i524 < $_size520; ++$_i524)
             {
-              $key512 = '';
-              $val513 = '';
-              $xfer += $input->readString($key512);
-              $xfer += $input->readString($val513);
-              $this->part_vals[$key512] = $val513;
+              $key525 = '';
+              $val526 = '';
+              $xfer += $input->readString($key525);
+              $xfer += $input->readString($val526);
+              $this->part_vals[$key525] = $val526;
             }
             $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 $kiter527 => $viter528)
           {
-            $xfer += $output->writeString($kiter514);
-            $xfer += $output->writeString($viter515);
+            $xfer += $output->writeString($kiter527);
+            $xfer += $output->writeString($viter528);
           }
         }
         $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)
+            $_size529 = 0;
+            $_ktype530 = 0;
+            $_vtype531 = 0;
+            $xfer += $input->readMapBegin($_ktype530, $_vtype531, $_size529);
+            for ($_i533 = 0; $_i533 < $_size529; ++$_i533)
             {
-              $key521 = '';
-              $val522 = '';
-              $xfer += $input->readString($key521);
-              $xfer += $input->readString($val522);
-              $this->part_vals[$key521] = $val522;
+              $key534 = '';
+              $val535 = '';
+              $xfer += $input->readString($key534);
+              $xfer += $input->readString($val535);
+              $this->part_vals[$key534] = $val535;
             }
             $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 $kiter536 => $viter537)
           {
-            $xfer += $output->writeString($kiter523);
-            $xfer += $output->writeString($viter524);
+            $xfer += $output->writeString($kiter536);
+            $xfer += $output->writeString($viter537);
           }
         }
         $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)
+            $_size538 = 0;
+            $_etype541 = 0;
+            $xfer += $input->readListBegin($_etype541, $_size538);
+            for ($_i542 = 0; $_i542 < $_size538; ++$_i542)
             {
-              $elem530 = null;
-              $elem530 = new \metastore\Index();
-              $xfer += $elem530->read($input);
-              $this->success []= $elem530;
+              $elem543 = null;
+              $elem543 = new \metastore\Index();
+              $xfer += $elem543->read($input);
+              $this->success []= $elem543;
             }
             $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 $iter544)
           {
-            $xfer += $iter531->write($output);
+            $xfer += $iter544->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)
+            $_size545 = 0;
+            $_etype548 = 0;
+            $xfer += $input->readListBegin($_etype548, $_size545);
+            for ($_i549 = 0; $_i549 < $_size545; ++$_i549)
             {
-              $elem537 = null;
-              $xfer += $input->readString($elem537);
-              $this->success []= $elem537;
+              $elem550 = null;
+              $xfer += $input->readString($elem550);
+              $this->success []= $elem550;
             }
             $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 $iter551)
           {
-            $xfer += $output->writeString($iter538);
+            $xfer += $output->writeString($iter551);
           }
         }
         $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)
+            $_size552 = 0;
+            $_etype555 = 0;
+            $xfer += $input->readListBegin($_etype555, $_size552);
+            for ($_i556 = 0; $_i556 < $_size552; ++$_i556)
             {
-              $elem544 = null;
-              $xfer += $input->readString($elem544);
-              $this->success []= $elem544;
+              $elem557 = null;
+              $xfer += $input->readString($elem557);
+              $this->success []= $elem557;
             }
             $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 $iter558)
           {
-            $xfer += $output->writeString($iter545);
+            $xfer += $output->writeString($iter558);
           }
         }
         $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)
+            $_size559 = 0;
+            $_etype562 = 0;
+            $xfer += $input->readListBegin($_etype562, $_size559);
+            for ($_i563 = 0; $_i563 < $_size559; ++$_i563)
             {
-              $elem551 = null;
-              $elem551 = new \metastore\Role();
-              $xfer += $elem551->read($input);
-              $this->success []= $elem551;
+              $elem564 = null;
+              $elem564 = new \metastore\Role();
+              $xfer += $elem564->read($input);
+              $this->success []= $elem564;
             }
             $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 $iter565)
           {
-            $xfer += $iter552->write($output);
+            $xfer += $iter565->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)
+            $_size566 = 0;
+            $_etype569 = 0;
+            $xfer += $input->readListBegin($_etype569, $_size566);
+            for ($_i570 = 0; $_i570 < $_size566; ++$_i570)
             {
-              $elem558 = null;
-              $xfer += $input->readString($elem558);
-              $this->group_names []= $elem558;
+              $elem571 = null;
+              $xfer += $input->readString($elem571);
+              $this->group_names []= $elem571;
             }
             $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 $iter572)
           {
-            $xfer += $output->writeString($iter559);
+            $xfer += $output->writeString($iter572);
           }
         }
         $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)
+            $_size573 = 0;
+            $_etype576 = 0;
+            $xfer += $input->readListBegin($_etype576, $_size573);
+            for ($_i577 = 0; $_i577 < $_size573; ++$_i577)
             {
-              $elem565 = null;
-              $elem565 = new \metastore\HiveObjectPrivilege();
-              $xfer += $elem565->read($input);
-              $this->success []= $elem565;
+              $elem578 = null;
+              $elem578 = new \metastore\HiveObjectPrivilege();
+              $xfer += $elem578->read($input);
+              $this->success []= $elem578;
             }
             $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 $iter579)
           {
-            $xfer += $iter566->write($output);
+            $xfer += $iter579->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)
+            $_size580 = 0;
+            $_etype583 = 0;
+            $xfer += $input->readListBegin($_etype583, $_size580);
+            for ($_i584 = 0; $_i584 < $_size580; ++$_i584)
             {
-              $elem572 = null;
-              $xfer += $input->readString($elem572);
-              $this->group_names []= $elem572;
+              $elem585 = null;
+              $xfer += $input->readString($elem585);
+              $this->group_names []= $elem585;
             }
             $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 $iter586)
           {
-            $xfer += $output->writeString($iter573);
+            $xfer += $output->writeString($iter586);
           }
         }
         $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)
+            $_size587 = 0;
+            $_etype590 = 0;
+            $xfer += $input->readListBegin($_etype590, $_size587);
+            for ($_i591 = 0; $_i591 < $_size587; ++$_i591)
             {
-              $elem579 = null;
-              $xfer += $input->readString($elem579);
-              $this->success []= $elem579;
+              $elem592 = null;
+              $xfer += $input->readString($elem592);
+              $this->success []= $elem592;
             }
             $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 $iter593)
           {
-            $xfer += $output->writeString($iter580);
+            $xfer += $output->writeString($iter593);
           }
         }
         $output->writeListEnd();

Modified: hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/Types.php
URL: http://svn.apache.org/viewvc/hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/Types.php?rev=1561947&r1=1561946&r2=1561947&view=diff
==============================================================================
--- hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/Types.php (original)
+++ hive/branches/tez/metastore/src/gen/thrift/gen-php/metastore/Types.php Tue Jan 28 05:48:03 2014
@@ -4896,7 +4896,7 @@ class PartitionsByExprResult {
       self::$_TSPEC = array(
         1 => array(
           'var' => 'partitions',
-          'type' => TType::SET,
+          'type' => TType::LST,
           'etype' => TType::STRUCT,
           'elem' => array(
             'type' => TType::STRUCT,
@@ -4939,23 +4939,19 @@ class PartitionsByExprResult {
       switch ($fid)
       {
         case 1:
-          if ($ftype == TType::SET) {
+          if ($ftype == TType::LST) {
             $this->partitions = array();
             $_size227 = 0;
             $_etype230 = 0;
-            $xfer += $input->readSetBegin($_etype230, $_size227);
+            $xfer += $input->readListBegin($_etype230, $_size227);
             for ($_i231 = 0; $_i231 < $_size227; ++$_i231)
             {
               $elem232 = null;
               $elem232 = new \metastore\Partition();
               $xfer += $elem232->read($input);
-              if (is_scalar($elem232)) {
-                $this->partitions[$elem232] = true;
-              } else {
-                $this->partitions []= $elem232;
-              }
+              $this->partitions []= $elem232;
             }
-            $xfer += $input->readSetEnd();
+            $xfer += $input->readListEnd();
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -4984,20 +4980,16 @@ class PartitionsByExprResult {
       if (!is_array($this->partitions)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
       }
-      $xfer += $output->writeFieldBegin('partitions', TType::SET, 1);
+      $xfer += $output->writeFieldBegin('partitions', TType::LST, 1);
       {
-        $output->writeSetBegin(TType::STRUCT, count($this->partitions));
+        $output->writeListBegin(TType::STRUCT, count($this->partitions));
         {
-          foreach ($this->partitions as $iter233 => $iter234)
+          foreach ($this->partitions as $iter233)
           {
-            if (is_scalar($iter234)) {
             $xfer += $iter233->write($output);
-            } else {
-            $xfer += $iter234->write($output);
-            }
           }
         }
-        $output->writeSetEnd();
+        $output->writeListEnd();
       }
       $xfer += $output->writeFieldEnd();
     }
@@ -5165,6 +5157,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();
+            $_size234 = 0;
+            $_etype237 = 0;
+            $xfer += $input->readListBegin($_etype237, $_size234);
+            for ($_i238 = 0; $_i238 < $_size234; ++$_i238)
+            {
+              $elem239 = null;
+              $elem239 = new \metastore\Partition();
+              $xfer += $elem239->read($input);
+              $this->partitions []= $elem239;
+            }
+            $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 $iter240)
+          {
+            $xfer += $iter240->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();
+            $_size241 = 0;
+            $_etype244 = 0;
+            $xfer += $input->readListBegin($_etype244, $_size241);
+            for ($_i245 = 0; $_i245 < $_size241; ++$_i245)
+            {
+              $elem246 = null;
+              $elem246 = new \metastore\Partition();
+              $xfer += $elem246->read($input);
+              $this->parts []= $elem246;
+            }
+            $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 $iter247)
+          {
+            $xfer += $iter247->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/branches/tez/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
URL: http://svn.apache.org/viewvc/hive/branches/tez/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote?rev=1561947&r1=1561946&r2=1561947&view=diff
==============================================================================
--- hive/branches/tez/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote (original)
+++ hive/branches/tez/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote Tue Jan 28 05:48:03 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