From commits-return-31972-archive-asf-public=cust-asf.ponee.io@hive.apache.org Wed Mar 7 09:19:24 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 42EA71807B5 for ; Wed, 7 Mar 2018 09:19:22 +0100 (CET) Received: (qmail 28563 invoked by uid 500); 7 Mar 2018 08:19:20 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 27272 invoked by uid 99); 7 Mar 2018 08:19:19 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2018 08:19:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DB2F2E9457; Wed, 7 Mar 2018 08:19:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kgyrtkirk@apache.org To: commits@hive.apache.org Date: Wed, 07 Mar 2018 08:19:29 -0000 Message-Id: <678d5047f7e549f6a858ab1e324533b1@git.apache.org> In-Reply-To: <77851e4ef83c4dd8bf7c0d27b2ad4645@git.apache.org> References: <77851e4ef83c4dd8bf7c0d27b2ad4645@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [12/22] hive git commit: HIVE-18715: Remove index support from metastore (Zoltan Haindrich reviewed by Ashutosh Chauhan) http://git-wip-us.apache.org/repos/asf/hive/blob/7c22d74c/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php ---------------------------------------------------------------------- diff --git a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 57b6bfa..02242a7 100644 --- a/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/standalone-metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -753,60 +753,6 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function isPartitionMarkedForEvent($db_name, $tbl_name, array $part_vals, $eventType); /** - * @param \metastore\Index $new_index - * @param \metastore\Table $index_table - * @return \metastore\Index - * @throws \metastore\InvalidObjectException - * @throws \metastore\AlreadyExistsException - * @throws \metastore\MetaException - */ - public function add_index(\metastore\Index $new_index, \metastore\Table $index_table); - /** - * @param string $dbname - * @param string $base_tbl_name - * @param string $idx_name - * @param \metastore\Index $new_idx - * @throws \metastore\InvalidOperationException - * @throws \metastore\MetaException - */ - public function alter_index($dbname, $base_tbl_name, $idx_name, \metastore\Index $new_idx); - /** - * @param string $db_name - * @param string $tbl_name - * @param string $index_name - * @param bool $deleteData - * @return bool - * @throws \metastore\NoSuchObjectException - * @throws \metastore\MetaException - */ - public function drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData); - /** - * @param string $db_name - * @param string $tbl_name - * @param string $index_name - * @return \metastore\Index - * @throws \metastore\MetaException - * @throws \metastore\NoSuchObjectException - */ - public function get_index_by_name($db_name, $tbl_name, $index_name); - /** - * @param string $db_name - * @param string $tbl_name - * @param int $max_indexes - * @return \metastore\Index[] - * @throws \metastore\NoSuchObjectException - * @throws \metastore\MetaException - */ - public function get_indexes($db_name, $tbl_name, $max_indexes); - /** - * @param string $db_name - * @param string $tbl_name - * @param int $max_indexes - * @return string[] - * @throws \metastore\MetaException - */ - public function get_index_names($db_name, $tbl_name, $max_indexes); - /** * @param \metastore\PrimaryKeysRequest $request * @return \metastore\PrimaryKeysResponse * @throws \metastore\MetaException @@ -6463,358 +6409,6 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("isPartitionMarkedForEvent failed: unknown result"); } - public function add_index(\metastore\Index $new_index, \metastore\Table $index_table) - { - $this->send_add_index($new_index, $index_table); - return $this->recv_add_index(); - } - - public function send_add_index(\metastore\Index $new_index, \metastore\Table $index_table) - { - $args = new \metastore\ThriftHiveMetastore_add_index_args(); - $args->new_index = $new_index; - $args->index_table = $index_table; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'add_index', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('add_index', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_add_index() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_index_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_index_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_index failed: unknown result"); - } - - public function alter_index($dbname, $base_tbl_name, $idx_name, \metastore\Index $new_idx) - { - $this->send_alter_index($dbname, $base_tbl_name, $idx_name, $new_idx); - $this->recv_alter_index(); - } - - public function send_alter_index($dbname, $base_tbl_name, $idx_name, \metastore\Index $new_idx) - { - $args = new \metastore\ThriftHiveMetastore_alter_index_args(); - $args->dbname = $dbname; - $args->base_tbl_name = $base_tbl_name; - $args->idx_name = $idx_name; - $args->new_idx = $new_idx; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'alter_index', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('alter_index', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_alter_index() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_index_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_alter_index_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->o1 !== null) { - throw $result->o1; - } - if ($result->o2 !== null) { - throw $result->o2; - } - return; - } - - public function drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData) - { - $this->send_drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData); - return $this->recv_drop_index_by_name(); - } - - public function send_drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData) - { - $args = new \metastore\ThriftHiveMetastore_drop_index_by_name_args(); - $args->db_name = $db_name; - $args->tbl_name = $tbl_name; - $args->index_name = $index_name; - $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'drop_index_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('drop_index_by_name', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_drop_index_by_name() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_index_by_name_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_drop_index_by_name_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; - } - throw new \Exception("drop_index_by_name failed: unknown result"); - } - - public function get_index_by_name($db_name, $tbl_name, $index_name) - { - $this->send_get_index_by_name($db_name, $tbl_name, $index_name); - return $this->recv_get_index_by_name(); - } - - public function send_get_index_by_name($db_name, $tbl_name, $index_name) - { - $args = new \metastore\ThriftHiveMetastore_get_index_by_name_args(); - $args->db_name = $db_name; - $args->tbl_name = $tbl_name; - $args->index_name = $index_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'get_index_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('get_index_by_name', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_get_index_by_name() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_index_by_name_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_get_index_by_name_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; - } - throw new \Exception("get_index_by_name failed: unknown result"); - } - - public function get_indexes($db_name, $tbl_name, $max_indexes) - { - $this->send_get_indexes($db_name, $tbl_name, $max_indexes); - return $this->recv_get_indexes(); - } - - public function send_get_indexes($db_name, $tbl_name, $max_indexes) - { - $args = new \metastore\ThriftHiveMetastore_get_indexes_args(); - $args->db_name = $db_name; - $args->tbl_name = $tbl_name; - $args->max_indexes = $max_indexes; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'get_indexes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('get_indexes', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_get_indexes() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_indexes_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_get_indexes_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; - } - throw new \Exception("get_indexes failed: unknown result"); - } - - public function get_index_names($db_name, $tbl_name, $max_indexes) - { - $this->send_get_index_names($db_name, $tbl_name, $max_indexes); - return $this->recv_get_index_names(); - } - - public function send_get_index_names($db_name, $tbl_name, $max_indexes) - { - $args = new \metastore\ThriftHiveMetastore_get_index_names_args(); - $args->db_name = $db_name; - $args->tbl_name = $tbl_name; - $args->max_indexes = $max_indexes; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'get_index_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('get_index_names', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_get_index_names() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_index_names_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_get_index_names_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - if ($result->o2 !== null) { - throw $result->o2; - } - throw new \Exception("get_index_names failed: unknown result"); - } - public function get_primary_keys(\metastore\PrimaryKeysRequest $request) { $this->send_get_primary_keys($request); @@ -13190,14 +12784,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size773 = 0; - $_etype776 = 0; - $xfer += $input->readListBegin($_etype776, $_size773); - for ($_i777 = 0; $_i777 < $_size773; ++$_i777) + $_size764 = 0; + $_etype767 = 0; + $xfer += $input->readListBegin($_etype767, $_size764); + for ($_i768 = 0; $_i768 < $_size764; ++$_i768) { - $elem778 = null; - $xfer += $input->readString($elem778); - $this->success []= $elem778; + $elem769 = null; + $xfer += $input->readString($elem769); + $this->success []= $elem769; } $xfer += $input->readListEnd(); } else { @@ -13233,9 +12827,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter779) + foreach ($this->success as $iter770) { - $xfer += $output->writeString($iter779); + $xfer += $output->writeString($iter770); } } $output->writeListEnd(); @@ -13366,14 +12960,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size780 = 0; - $_etype783 = 0; - $xfer += $input->readListBegin($_etype783, $_size780); - for ($_i784 = 0; $_i784 < $_size780; ++$_i784) + $_size771 = 0; + $_etype774 = 0; + $xfer += $input->readListBegin($_etype774, $_size771); + for ($_i775 = 0; $_i775 < $_size771; ++$_i775) { - $elem785 = null; - $xfer += $input->readString($elem785); - $this->success []= $elem785; + $elem776 = null; + $xfer += $input->readString($elem776); + $this->success []= $elem776; } $xfer += $input->readListEnd(); } else { @@ -13409,9 +13003,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter786) + foreach ($this->success as $iter777) { - $xfer += $output->writeString($iter786); + $xfer += $output->writeString($iter777); } } $output->writeListEnd(); @@ -14412,18 +14006,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size787 = 0; - $_ktype788 = 0; - $_vtype789 = 0; - $xfer += $input->readMapBegin($_ktype788, $_vtype789, $_size787); - for ($_i791 = 0; $_i791 < $_size787; ++$_i791) + $_size778 = 0; + $_ktype779 = 0; + $_vtype780 = 0; + $xfer += $input->readMapBegin($_ktype779, $_vtype780, $_size778); + for ($_i782 = 0; $_i782 < $_size778; ++$_i782) { - $key792 = ''; - $val793 = new \metastore\Type(); - $xfer += $input->readString($key792); - $val793 = new \metastore\Type(); - $xfer += $val793->read($input); - $this->success[$key792] = $val793; + $key783 = ''; + $val784 = new \metastore\Type(); + $xfer += $input->readString($key783); + $val784 = new \metastore\Type(); + $xfer += $val784->read($input); + $this->success[$key783] = $val784; } $xfer += $input->readMapEnd(); } else { @@ -14459,10 +14053,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter794 => $viter795) + foreach ($this->success as $kiter785 => $viter786) { - $xfer += $output->writeString($kiter794); - $xfer += $viter795->write($output); + $xfer += $output->writeString($kiter785); + $xfer += $viter786->write($output); } } $output->writeMapEnd(); @@ -14666,15 +14260,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size796 = 0; - $_etype799 = 0; - $xfer += $input->readListBegin($_etype799, $_size796); - for ($_i800 = 0; $_i800 < $_size796; ++$_i800) + $_size787 = 0; + $_etype790 = 0; + $xfer += $input->readListBegin($_etype790, $_size787); + for ($_i791 = 0; $_i791 < $_size787; ++$_i791) { - $elem801 = null; - $elem801 = new \metastore\FieldSchema(); - $xfer += $elem801->read($input); - $this->success []= $elem801; + $elem792 = null; + $elem792 = new \metastore\FieldSchema(); + $xfer += $elem792->read($input); + $this->success []= $elem792; } $xfer += $input->readListEnd(); } else { @@ -14726,9 +14320,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter802) + foreach ($this->success as $iter793) { - $xfer += $iter802->write($output); + $xfer += $iter793->write($output); } } $output->writeListEnd(); @@ -14970,15 +14564,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size803 = 0; - $_etype806 = 0; - $xfer += $input->readListBegin($_etype806, $_size803); - for ($_i807 = 0; $_i807 < $_size803; ++$_i807) + $_size794 = 0; + $_etype797 = 0; + $xfer += $input->readListBegin($_etype797, $_size794); + for ($_i798 = 0; $_i798 < $_size794; ++$_i798) { - $elem808 = null; - $elem808 = new \metastore\FieldSchema(); - $xfer += $elem808->read($input); - $this->success []= $elem808; + $elem799 = null; + $elem799 = new \metastore\FieldSchema(); + $xfer += $elem799->read($input); + $this->success []= $elem799; } $xfer += $input->readListEnd(); } else { @@ -15030,9 +14624,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter809) + foreach ($this->success as $iter800) { - $xfer += $iter809->write($output); + $xfer += $iter800->write($output); } } $output->writeListEnd(); @@ -15246,15 +14840,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size810 = 0; - $_etype813 = 0; - $xfer += $input->readListBegin($_etype813, $_size810); - for ($_i814 = 0; $_i814 < $_size810; ++$_i814) + $_size801 = 0; + $_etype804 = 0; + $xfer += $input->readListBegin($_etype804, $_size801); + for ($_i805 = 0; $_i805 < $_size801; ++$_i805) { - $elem815 = null; - $elem815 = new \metastore\FieldSchema(); - $xfer += $elem815->read($input); - $this->success []= $elem815; + $elem806 = null; + $elem806 = new \metastore\FieldSchema(); + $xfer += $elem806->read($input); + $this->success []= $elem806; } $xfer += $input->readListEnd(); } else { @@ -15306,9 +14900,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter816) + foreach ($this->success as $iter807) { - $xfer += $iter816->write($output); + $xfer += $iter807->write($output); } } $output->writeListEnd(); @@ -15550,15 +15144,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size817 = 0; - $_etype820 = 0; - $xfer += $input->readListBegin($_etype820, $_size817); - for ($_i821 = 0; $_i821 < $_size817; ++$_i821) + $_size808 = 0; + $_etype811 = 0; + $xfer += $input->readListBegin($_etype811, $_size808); + for ($_i812 = 0; $_i812 < $_size808; ++$_i812) { - $elem822 = null; - $elem822 = new \metastore\FieldSchema(); - $xfer += $elem822->read($input); - $this->success []= $elem822; + $elem813 = null; + $elem813 = new \metastore\FieldSchema(); + $xfer += $elem813->read($input); + $this->success []= $elem813; } $xfer += $input->readListEnd(); } else { @@ -15610,9 +15204,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter823) + foreach ($this->success as $iter814) { - $xfer += $iter823->write($output); + $xfer += $iter814->write($output); } } $output->writeListEnd(); @@ -16268,15 +15862,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size824 = 0; - $_etype827 = 0; - $xfer += $input->readListBegin($_etype827, $_size824); - for ($_i828 = 0; $_i828 < $_size824; ++$_i828) + $_size815 = 0; + $_etype818 = 0; + $xfer += $input->readListBegin($_etype818, $_size815); + for ($_i819 = 0; $_i819 < $_size815; ++$_i819) { - $elem829 = null; - $elem829 = new \metastore\SQLPrimaryKey(); - $xfer += $elem829->read($input); - $this->primaryKeys []= $elem829; + $elem820 = null; + $elem820 = new \metastore\SQLPrimaryKey(); + $xfer += $elem820->read($input); + $this->primaryKeys []= $elem820; } $xfer += $input->readListEnd(); } else { @@ -16286,15 +15880,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size830 = 0; - $_etype833 = 0; - $xfer += $input->readListBegin($_etype833, $_size830); - for ($_i834 = 0; $_i834 < $_size830; ++$_i834) + $_size821 = 0; + $_etype824 = 0; + $xfer += $input->readListBegin($_etype824, $_size821); + for ($_i825 = 0; $_i825 < $_size821; ++$_i825) { - $elem835 = null; - $elem835 = new \metastore\SQLForeignKey(); - $xfer += $elem835->read($input); - $this->foreignKeys []= $elem835; + $elem826 = null; + $elem826 = new \metastore\SQLForeignKey(); + $xfer += $elem826->read($input); + $this->foreignKeys []= $elem826; } $xfer += $input->readListEnd(); } else { @@ -16304,15 +15898,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size836 = 0; - $_etype839 = 0; - $xfer += $input->readListBegin($_etype839, $_size836); - for ($_i840 = 0; $_i840 < $_size836; ++$_i840) + $_size827 = 0; + $_etype830 = 0; + $xfer += $input->readListBegin($_etype830, $_size827); + for ($_i831 = 0; $_i831 < $_size827; ++$_i831) { - $elem841 = null; - $elem841 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem841->read($input); - $this->uniqueConstraints []= $elem841; + $elem832 = null; + $elem832 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem832->read($input); + $this->uniqueConstraints []= $elem832; } $xfer += $input->readListEnd(); } else { @@ -16322,15 +15916,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size842 = 0; - $_etype845 = 0; - $xfer += $input->readListBegin($_etype845, $_size842); - for ($_i846 = 0; $_i846 < $_size842; ++$_i846) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem847 = null; - $elem847 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem847->read($input); - $this->notNullConstraints []= $elem847; + $elem838 = null; + $elem838 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem838->read($input); + $this->notNullConstraints []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -16340,15 +15934,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size848 = 0; - $_etype851 = 0; - $xfer += $input->readListBegin($_etype851, $_size848); - for ($_i852 = 0; $_i852 < $_size848; ++$_i852) + $_size839 = 0; + $_etype842 = 0; + $xfer += $input->readListBegin($_etype842, $_size839); + for ($_i843 = 0; $_i843 < $_size839; ++$_i843) { - $elem853 = null; - $elem853 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem853->read($input); - $this->defaultConstraints []= $elem853; + $elem844 = null; + $elem844 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem844->read($input); + $this->defaultConstraints []= $elem844; } $xfer += $input->readListEnd(); } else { @@ -16384,9 +15978,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter854) + foreach ($this->primaryKeys as $iter845) { - $xfer += $iter854->write($output); + $xfer += $iter845->write($output); } } $output->writeListEnd(); @@ -16401,9 +15995,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter855) + foreach ($this->foreignKeys as $iter846) { - $xfer += $iter855->write($output); + $xfer += $iter846->write($output); } } $output->writeListEnd(); @@ -16418,9 +16012,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter856) + foreach ($this->uniqueConstraints as $iter847) { - $xfer += $iter856->write($output); + $xfer += $iter847->write($output); } } $output->writeListEnd(); @@ -16435,9 +16029,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter857) + foreach ($this->notNullConstraints as $iter848) { - $xfer += $iter857->write($output); + $xfer += $iter848->write($output); } } $output->writeListEnd(); @@ -16452,9 +16046,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter858) + foreach ($this->defaultConstraints as $iter849) { - $xfer += $iter858->write($output); + $xfer += $iter849->write($output); } } $output->writeListEnd(); @@ -18272,14 +17866,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size859 = 0; - $_etype862 = 0; - $xfer += $input->readListBegin($_etype862, $_size859); - for ($_i863 = 0; $_i863 < $_size859; ++$_i863) + $_size850 = 0; + $_etype853 = 0; + $xfer += $input->readListBegin($_etype853, $_size850); + for ($_i854 = 0; $_i854 < $_size850; ++$_i854) { - $elem864 = null; - $xfer += $input->readString($elem864); - $this->partNames []= $elem864; + $elem855 = null; + $xfer += $input->readString($elem855); + $this->partNames []= $elem855; } $xfer += $input->readListEnd(); } else { @@ -18317,9 +17911,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter865) + foreach ($this->partNames as $iter856) { - $xfer += $output->writeString($iter865); + $xfer += $output->writeString($iter856); } } $output->writeListEnd(); @@ -18570,14 +18164,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size866 = 0; - $_etype869 = 0; - $xfer += $input->readListBegin($_etype869, $_size866); - for ($_i870 = 0; $_i870 < $_size866; ++$_i870) + $_size857 = 0; + $_etype860 = 0; + $xfer += $input->readListBegin($_etype860, $_size857); + for ($_i861 = 0; $_i861 < $_size857; ++$_i861) { - $elem871 = null; - $xfer += $input->readString($elem871); - $this->success []= $elem871; + $elem862 = null; + $xfer += $input->readString($elem862); + $this->success []= $elem862; } $xfer += $input->readListEnd(); } else { @@ -18613,9 +18207,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter872) + foreach ($this->success as $iter863) { - $xfer += $output->writeString($iter872); + $xfer += $output->writeString($iter863); } } $output->writeListEnd(); @@ -18817,14 +18411,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size873 = 0; - $_etype876 = 0; - $xfer += $input->readListBegin($_etype876, $_size873); - for ($_i877 = 0; $_i877 < $_size873; ++$_i877) + $_size864 = 0; + $_etype867 = 0; + $xfer += $input->readListBegin($_etype867, $_size864); + for ($_i868 = 0; $_i868 < $_size864; ++$_i868) { - $elem878 = null; - $xfer += $input->readString($elem878); - $this->success []= $elem878; + $elem869 = null; + $xfer += $input->readString($elem869); + $this->success []= $elem869; } $xfer += $input->readListEnd(); } else { @@ -18860,9 +18454,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter879) + foreach ($this->success as $iter870) { - $xfer += $output->writeString($iter879); + $xfer += $output->writeString($iter870); } } $output->writeListEnd(); @@ -19018,14 +18612,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size880 = 0; - $_etype883 = 0; - $xfer += $input->readListBegin($_etype883, $_size880); - for ($_i884 = 0; $_i884 < $_size880; ++$_i884) + $_size871 = 0; + $_etype874 = 0; + $xfer += $input->readListBegin($_etype874, $_size871); + for ($_i875 = 0; $_i875 < $_size871; ++$_i875) { - $elem885 = null; - $xfer += $input->readString($elem885); - $this->success []= $elem885; + $elem876 = null; + $xfer += $input->readString($elem876); + $this->success []= $elem876; } $xfer += $input->readListEnd(); } else { @@ -19061,9 +18655,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter886) + foreach ($this->success as $iter877) { - $xfer += $output->writeString($iter886); + $xfer += $output->writeString($iter877); } } $output->writeListEnd(); @@ -19168,14 +18762,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size887 = 0; - $_etype890 = 0; - $xfer += $input->readListBegin($_etype890, $_size887); - for ($_i891 = 0; $_i891 < $_size887; ++$_i891) + $_size878 = 0; + $_etype881 = 0; + $xfer += $input->readListBegin($_etype881, $_size878); + for ($_i882 = 0; $_i882 < $_size878; ++$_i882) { - $elem892 = null; - $xfer += $input->readString($elem892); - $this->tbl_types []= $elem892; + $elem883 = null; + $xfer += $input->readString($elem883); + $this->tbl_types []= $elem883; } $xfer += $input->readListEnd(); } else { @@ -19213,9 +18807,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter893) + foreach ($this->tbl_types as $iter884) { - $xfer += $output->writeString($iter893); + $xfer += $output->writeString($iter884); } } $output->writeListEnd(); @@ -19292,15 +18886,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size894 = 0; - $_etype897 = 0; - $xfer += $input->readListBegin($_etype897, $_size894); - for ($_i898 = 0; $_i898 < $_size894; ++$_i898) + $_size885 = 0; + $_etype888 = 0; + $xfer += $input->readListBegin($_etype888, $_size885); + for ($_i889 = 0; $_i889 < $_size885; ++$_i889) { - $elem899 = null; - $elem899 = new \metastore\TableMeta(); - $xfer += $elem899->read($input); - $this->success []= $elem899; + $elem890 = null; + $elem890 = new \metastore\TableMeta(); + $xfer += $elem890->read($input); + $this->success []= $elem890; } $xfer += $input->readListEnd(); } else { @@ -19336,9 +18930,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter900) + foreach ($this->success as $iter891) { - $xfer += $iter900->write($output); + $xfer += $iter891->write($output); } } $output->writeListEnd(); @@ -19494,14 +19088,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size901 = 0; - $_etype904 = 0; - $xfer += $input->readListBegin($_etype904, $_size901); - for ($_i905 = 0; $_i905 < $_size901; ++$_i905) + $_size892 = 0; + $_etype895 = 0; + $xfer += $input->readListBegin($_etype895, $_size892); + for ($_i896 = 0; $_i896 < $_size892; ++$_i896) { - $elem906 = null; - $xfer += $input->readString($elem906); - $this->success []= $elem906; + $elem897 = null; + $xfer += $input->readString($elem897); + $this->success []= $elem897; } $xfer += $input->readListEnd(); } else { @@ -19537,9 +19131,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter907) + foreach ($this->success as $iter898) { - $xfer += $output->writeString($iter907); + $xfer += $output->writeString($iter898); } } $output->writeListEnd(); @@ -19854,14 +19448,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size908 = 0; - $_etype911 = 0; - $xfer += $input->readListBegin($_etype911, $_size908); - for ($_i912 = 0; $_i912 < $_size908; ++$_i912) + $_size899 = 0; + $_etype902 = 0; + $xfer += $input->readListBegin($_etype902, $_size899); + for ($_i903 = 0; $_i903 < $_size899; ++$_i903) { - $elem913 = null; - $xfer += $input->readString($elem913); - $this->tbl_names []= $elem913; + $elem904 = null; + $xfer += $input->readString($elem904); + $this->tbl_names []= $elem904; } $xfer += $input->readListEnd(); } else { @@ -19894,9 +19488,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter914) + foreach ($this->tbl_names as $iter905) { - $xfer += $output->writeString($iter914); + $xfer += $output->writeString($iter905); } } $output->writeListEnd(); @@ -19961,15 +19555,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size915 = 0; - $_etype918 = 0; - $xfer += $input->readListBegin($_etype918, $_size915); - for ($_i919 = 0; $_i919 < $_size915; ++$_i919) + $_size906 = 0; + $_etype909 = 0; + $xfer += $input->readListBegin($_etype909, $_size906); + for ($_i910 = 0; $_i910 < $_size906; ++$_i910) { - $elem920 = null; - $elem920 = new \metastore\Table(); - $xfer += $elem920->read($input); - $this->success []= $elem920; + $elem911 = null; + $elem911 = new \metastore\Table(); + $xfer += $elem911->read($input); + $this->success []= $elem911; } $xfer += $input->readListEnd(); } else { @@ -19997,9 +19591,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter921) + foreach ($this->success as $iter912) { - $xfer += $iter921->write($output); + $xfer += $iter912->write($output); } } $output->writeListEnd(); @@ -20526,14 +20120,14 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size922 = 0; - $_etype925 = 0; - $xfer += $input->readListBegin($_etype925, $_size922); - for ($_i926 = 0; $_i926 < $_size922; ++$_i926) + $_size913 = 0; + $_etype916 = 0; + $xfer += $input->readListBegin($_etype916, $_size913); + for ($_i917 = 0; $_i917 < $_size913; ++$_i917) { - $elem927 = null; - $xfer += $input->readString($elem927); - $this->tbl_names []= $elem927; + $elem918 = null; + $xfer += $input->readString($elem918); + $this->tbl_names []= $elem918; } $xfer += $input->readListEnd(); } else { @@ -20566,9 +20160,9 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter928) + foreach ($this->tbl_names as $iter919) { - $xfer += $output->writeString($iter928); + $xfer += $output->writeString($iter919); } } $output->writeListEnd(); @@ -20673,18 +20267,18 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size929 = 0; - $_ktype930 = 0; - $_vtype931 = 0; - $xfer += $input->readMapBegin($_ktype930, $_vtype931, $_size929); - for ($_i933 = 0; $_i933 < $_size929; ++$_i933) + $_size920 = 0; + $_ktype921 = 0; + $_vtype922 = 0; + $xfer += $input->readMapBegin($_ktype921, $_vtype922, $_size920); + for ($_i924 = 0; $_i924 < $_size920; ++$_i924) { - $key934 = ''; - $val935 = new \metastore\Materialization(); - $xfer += $input->readString($key934); - $val935 = new \metastore\Materialization(); - $xfer += $val935->read($input); - $this->success[$key934] = $val935; + $key925 = ''; + $val926 = new \metastore\Materialization(); + $xfer += $input->readString($key925); + $val926 = new \metastore\Materialization(); + $xfer += $val926->read($input); + $this->success[$key925] = $val926; } $xfer += $input->readMapEnd(); } else { @@ -20736,10 +20330,10 @@ class ThriftHiveMetastore_get_materialization_invalidation_info_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter936 => $viter937) + foreach ($this->success as $kiter927 => $viter928) { - $xfer += $output->writeString($kiter936); - $xfer += $viter937->write($output); + $xfer += $output->writeString($kiter927); + $xfer += $viter928->write($output); } } $output->writeMapEnd(); @@ -21228,14 +20822,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size938 = 0; - $_etype941 = 0; - $xfer += $input->readListBegin($_etype941, $_size938); - for ($_i942 = 0; $_i942 < $_size938; ++$_i942) + $_size929 = 0; + $_etype932 = 0; + $xfer += $input->readListBegin($_etype932, $_size929); + for ($_i933 = 0; $_i933 < $_size929; ++$_i933) { - $elem943 = null; - $xfer += $input->readString($elem943); - $this->success []= $elem943; + $elem934 = null; + $xfer += $input->readString($elem934); + $this->success []= $elem934; } $xfer += $input->readListEnd(); } else { @@ -21287,9 +20881,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter944) + foreach ($this->success as $iter935) { - $xfer += $output->writeString($iter944); + $xfer += $output->writeString($iter935); } } $output->writeListEnd(); @@ -22602,15 +22196,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size945 = 0; - $_etype948 = 0; - $xfer += $input->readListBegin($_etype948, $_size945); - for ($_i949 = 0; $_i949 < $_size945; ++$_i949) + $_size936 = 0; + $_etype939 = 0; + $xfer += $input->readListBegin($_etype939, $_size936); + for ($_i940 = 0; $_i940 < $_size936; ++$_i940) { - $elem950 = null; - $elem950 = new \metastore\Partition(); - $xfer += $elem950->read($input); - $this->new_parts []= $elem950; + $elem941 = null; + $elem941 = new \metastore\Partition(); + $xfer += $elem941->read($input); + $this->new_parts []= $elem941; } $xfer += $input->readListEnd(); } else { @@ -22638,9 +22232,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter951) + foreach ($this->new_parts as $iter942) { - $xfer += $iter951->write($output); + $xfer += $iter942->write($output); } } $output->writeListEnd(); @@ -22855,15 +22449,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size952 = 0; - $_etype955 = 0; - $xfer += $input->readListBegin($_etype955, $_size952); - for ($_i956 = 0; $_i956 < $_size952; ++$_i956) + $_size943 = 0; + $_etype946 = 0; + $xfer += $input->readListBegin($_etype946, $_size943); + for ($_i947 = 0; $_i947 < $_size943; ++$_i947) { - $elem957 = null; - $elem957 = new \metastore\PartitionSpec(); - $xfer += $elem957->read($input); - $this->new_parts []= $elem957; + $elem948 = null; + $elem948 = new \metastore\PartitionSpec(); + $xfer += $elem948->read($input); + $this->new_parts []= $elem948; } $xfer += $input->readListEnd(); } else { @@ -22891,9 +22485,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter958) + foreach ($this->new_parts as $iter949) { - $xfer += $iter958->write($output); + $xfer += $iter949->write($output); } } $output->writeListEnd(); @@ -23143,14 +22737,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size959 = 0; - $_etype962 = 0; - $xfer += $input->readListBegin($_etype962, $_size959); - for ($_i963 = 0; $_i963 < $_size959; ++$_i963) + $_size950 = 0; + $_etype953 = 0; + $xfer += $input->readListBegin($_etype953, $_size950); + for ($_i954 = 0; $_i954 < $_size950; ++$_i954) { - $elem964 = null; - $xfer += $input->readString($elem964); - $this->part_vals []= $elem964; + $elem955 = null; + $xfer += $input->readString($elem955); + $this->part_vals []= $elem955; } $xfer += $input->readListEnd(); } else { @@ -23188,9 +22782,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter965) + foreach ($this->part_vals as $iter956) { - $xfer += $output->writeString($iter965); + $xfer += $output->writeString($iter956); } } $output->writeListEnd(); @@ -23692,14 +23286,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size966 = 0; - $_etype969 = 0; - $xfer += $input->readListBegin($_etype969, $_size966); - for ($_i970 = 0; $_i970 < $_size966; ++$_i970) + $_size957 = 0; + $_etype960 = 0; + $xfer += $input->readListBegin($_etype960, $_size957); + for ($_i961 = 0; $_i961 < $_size957; ++$_i961) { - $elem971 = null; - $xfer += $input->readString($elem971); - $this->part_vals []= $elem971; + $elem962 = null; + $xfer += $input->readString($elem962); + $this->part_vals []= $elem962; } $xfer += $input->readListEnd(); } else { @@ -23745,9 +23339,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter972) + foreach ($this->part_vals as $iter963) { - $xfer += $output->writeString($iter972); + $xfer += $output->writeString($iter963); } } $output->writeListEnd(); @@ -24601,14 +24195,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size973 = 0; - $_etype976 = 0; - $xfer += $input->readListBegin($_etype976, $_size973); - for ($_i977 = 0; $_i977 < $_size973; ++$_i977) + $_size964 = 0; + $_etype967 = 0; + $xfer += $input->readListBegin($_etype967, $_size964); + for ($_i968 = 0; $_i968 < $_size964; ++$_i968) { - $elem978 = null; - $xfer += $input->readString($elem978); - $this->part_vals []= $elem978; + $elem969 = null; + $xfer += $input->readString($elem969); + $this->part_vals []= $elem969; } $xfer += $input->readListEnd(); } else { @@ -24653,9 +24247,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter979) + foreach ($this->part_vals as $iter970) { - $xfer += $output->writeString($iter979); + $xfer += $output->writeString($iter970); } } $output->writeListEnd(); @@ -24908,14 +24502,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size980 = 0; - $_etype983 = 0; - $xfer += $input->readListBegin($_etype983, $_size980); - for ($_i984 = 0; $_i984 < $_size980; ++$_i984) + $_size971 = 0; + $_etype974 = 0; + $xfer += $input->readListBegin($_etype974, $_size971); + for ($_i975 = 0; $_i975 < $_size971; ++$_i975) { - $elem985 = null; - $xfer += $input->readString($elem985); - $this->part_vals []= $elem985; + $elem976 = null; + $xfer += $input->readString($elem976); + $this->part_vals []= $elem976; } $xfer += $input->readListEnd(); } else { @@ -24968,9 +24562,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter986) + foreach ($this->part_vals as $iter977) { - $xfer += $output->writeString($iter986); + $xfer += $output->writeString($iter977); } } $output->writeListEnd(); @@ -25984,14 +25578,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size987 = 0; - $_etype990 = 0; - $xfer += $input->readListBegin($_etype990, $_size987); - for ($_i991 = 0; $_i991 < $_size987; ++$_i991) + $_size978 = 0; + $_etype981 = 0; + $xfer += $input->readListBegin($_etype981, $_size978); + for ($_i982 = 0; $_i982 < $_size978; ++$_i982) { - $elem992 = null; - $xfer += $input->readString($elem992); - $this->part_vals []= $elem992; + $elem983 = null; + $xfer += $input->readString($elem983); + $this->part_vals []= $elem983; } $xfer += $input->readListEnd(); } else { @@ -26029,9 +25623,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter993) + foreach ($this->part_vals as $iter984) { - $xfer += $output->writeString($iter993); + $xfer += $output->writeString($iter984); } } $output->writeListEnd(); @@ -26273,6 +25867,387 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); + $_size985 = 0; + $_ktype986 = 0; + $_vtype987 = 0; + $xfer += $input->readMapBegin($_ktype986, $_vtype987, $_size985); + for ($_i989 = 0; $_i989 < $_size985; ++$_i989) + { + $key990 = ''; + $val991 = ''; + $xfer += $input->readString($key990); + $xfer += $input->readString($val991); + $this->partitionSpecs[$key990] = $val991; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->source_db); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->source_table_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dest_db); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dest_table_name); + } 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_exchange_partition_args'); + if ($this->partitionSpecs !== null) { + if (!is_array($this->partitionSpecs)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); + { + foreach ($this->partitionSpecs as $kiter992 => $viter993) + { + $xfer += $output->writeString($kiter992); + $xfer += $output->writeString($viter993); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->source_db !== null) { + $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); + $xfer += $output->writeString($this->source_db); + $xfer += $output->writeFieldEnd(); + } + if ($this->source_table_name !== null) { + $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); + $xfer += $output->writeString($this->source_table_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_db !== null) { + $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); + $xfer += $output->writeString($this->dest_db); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_table_name !== null) { + $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); + $xfer += $output->writeString($this->dest_table_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_exchange_partition_result { + static $_TSPEC; + + /** + * @var \metastore\Partition + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + /** + * @var \metastore\InvalidObjectException + */ + public $o3 = null; + /** + * @var \metastore\InvalidInputException + */ + public $o4 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidObjectException', + ), + 4 => array( + 'var' => 'o4', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidInputException', + ), + ); + } + 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']; + } + if (isset($vals['o4'])) { + $this->o4 = $vals['o4']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_exchange_partition_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\Partition(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\InvalidObjectException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->o4 = new \metastore\InvalidInputException(); + $xfer += $this->o4->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_exchange_partition_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(); + } + if ($this->o4 !== null) { + $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); + $xfer += $this->o4->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_exchange_partitions_args { + static $_TSPEC; + + /** + * @var array + */ + public $partitionSpecs = null; + /** + * @var string + */ + public $source_db = null; + /** + * @var string + */ + public $source_table_name = null; + /** + * @var string + */ + public $dest_db = null; + /** + * @var string + */ + public $dest_table_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'partitionSpecs', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 2 => array( + 'var' => 'source_db', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'source_table_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'dest_db', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'dest_table_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['partitionSpecs'])) { + $this->partitionSpecs = $vals['partitionSpecs']; + } + if (isset($vals['source_db'])) { + $this->source_db = $vals['source_db']; + } + if (isset($vals['source_table_name'])) { + $this->source_table_name = $vals['source_table_name']; + } + if (isset($vals['dest_db'])) { + $this->dest_db = $vals['dest_db']; + } + if (isset($vals['dest_table_name'])) { + $this->dest_table_name = $vals['dest_table_name']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_exchange_partitions_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::MAP) { + $this->partitionSpecs = array(); $_size994 = 0; $_ktype995 = 0; $_vtype996 = 0; @@ -26330,7 +26305,7 @@ class ThriftHiveMetastore_exchange_partition_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_args'); if ($this->partitionSpecs !== null) { if (!is_array($this->partitionSpecs)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -26376,11 +26351,11 @@ class ThriftHiveMetastore_exchange_partition_args { } -class ThriftHiveMetastore_exchange_partition_result { +class ThriftHiveMetastore_exchange_partitions_result { static $_TSPEC; /** - * @var \metastore\Partition + * @var \metastore\Partition[] */ public $success = null; /** @@ -26405,8 +26380,12 @@ class ThriftHiveMetastore_exchange_partition_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), ), 1 => array( 'var' => 'o1', @@ -26450,7 +26429,7 @@ class ThriftHiveMetastore_exchange_partition_result { } public function getName() { - return 'ThriftHiveMetastore_exchange_partition_result'; + return 'ThriftHiveMetastore_exchange_partitions_result'; } public function read($input) @@ -26469,9 +26448,19 @@ class ThriftHiveMetastore_exchange_partition_result { switch ($fid) { case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \metastore\Partition(); - $xfer += $this->success->read($input); + if ($ftype == TType::LST) { + $this->success = array(); + $_size1003 = 0; + $_etype1006 = 0; + $xfer += $input->readListBegin($_etype1006, $_size1003); + for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) + { + $elem1008 = null; + $elem1008 = new \metastore\Partition(); + $xfer += $elem1008->read($input); + $this->success []= $elem1008; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -26520,13 +26509,22 @@ class ThriftHiveMetastore_exchange_partition_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partition_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_result'); if ($this->success !== null) { - if (!is_object($this->success)) { + if (!is_array($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->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter1009) + { + $xfer += $iter1009->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -26556,84 +26554,84 @@ class ThriftHiveMetastore_exchange_partition_result { } -class ThriftHiveMetastore_exchange_partitions_args { +class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; /** - * @var array + * @var string */ - public $partitionSpecs = null; + public $db_name = null; /** * @var string */ - public $source_db = null; + public $tbl_name = null; /** - * @var string + * @var string[] */ - public $source_table_name = null; + public $part_vals = null; /** * @var string */ - public $dest_db = null; + public $user_name = null; /** - * @var string + * @var string[] */ - public $dest_table_name = null; + public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'partitionSpecs', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), + 'var' => 'db_name', + 'type' => TType::STRING, ), 2 => array( - 'var' => 'source_db', + 'var' => 'tbl_name', 'type' => TType::STRING, ), 3 => array( - 'var' => 'source_table_name', - 'type' => TType::STRING, + 'var' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), 4 => array( - 'var' => 'dest_db', + 'var' => 'user_name', 'type' => TType::STRING, ), 5 => array( - 'var' => 'dest_table_name', - 'type' => TType::STRING, + 'var' => 'group_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), ), ); } if (is_array($vals)) { - if (isset($vals['partitionSpecs'])) { - $this->partitionSpecs = $vals['partitionSpecs']; + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; } - if (isset($vals['source_db'])) { - $this->source_db = $vals['source_db']; + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; } - if (isset($vals['source_table_name'])) { - $this->source_table_name = $vals['source_table_name']; + if (isset($vals['part_vals'])) { + $this->part_vals = $vals['part_vals']; } - if (isset($vals['dest_db'])) { - $this->dest_db = $vals['dest_db']; + if (isset($vals['user_name'])) { + $this->user_name = $vals['user_name']; } - if (isset($vals['dest_table_name'])) { - $this->dest_table_name = $vals['dest_table_name']; + if (isset($vals['group_names'])) { + $this->group_names = $vals['group_names']; } } } public function getName() { - return 'ThriftHiveMetastore_exchange_partitions_args'; + return 'ThriftHiveMetastore_get_partition_with_auth_args'; } public function read($input) @@ -26652,49 +26650,56 @@ class ThriftHiveMetastore_exchange_partitions_args { switch ($fid) { case 1: - if ($ftype == TType::MAP) { - $this->partitionSpecs = array(); - $_size1003 = 0; - $_ktype1004 = 0; - $_vtype1005 = 0; - $xfer += $input->readMapBegin($_ktype1004, $_vtype1005, $_size1003); - for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) - { - $key1008 = ''; - $val1009 = ''; - $xfer += $input->readString($key1008); - $xfer += $input->readString($val1009); - $this->partitionSpecs[$key1008] = $val1009; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->db_name); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->source_db); + $xfer += $input->readString($this->tbl_name); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->source_table_name); + if ($ftype == TType::LST) { + $this->part_vals = array(); + $_size1010 = 0; + $_etype1013 = 0; + $xfer += $input->readListBegin($_etype1013, $_size1010); + for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) + { + $elem1015 = null; + $xfer += $input->readString($elem1015); + $this->part_vals []= $elem1015; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dest_db); + $xfer += $input->readString($this->user_name); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dest_table_name); + if ($ftype == TType::LST) { + $this->group_names = array(); + $_size1016 = 0; + $_etype1019 = 0; + $xfer += $input->readListBegin($_etype1019, $_size1016); + for ($_i1020 = 0; $_i1020 < $_size1016; ++$_i1020) + { + $elem1021 = null; + $xfer += $input->readString($elem1021); + $this->group_names []= $elem1021; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -26711,43 +26716,54 @@ class ThriftHiveMetastore_exchange_partitions_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_args'); - if ($this->partitionSpecs !== null) { - if (!is_array($this->partitionSpecs)) { + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->part_vals !== null) { + if (!is_array($this->part_vals)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); + $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); + $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->partitionSpecs as $kiter1010 => $viter1011) + foreach ($this->part_vals as $iter1022) { - $xfer += $output->writeString($kiter1010); - $xfer += $output->writeString($viter1011); + $xfer += $output->writeString($iter1022); } } - $output->writeMapEnd(); + $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->source_db !== null) { - $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); - $xfer += $output->writeString($this->source_db); - $xfer += $output->writeFieldEnd(); - } - if ($this->source_table_name !== null) { - $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); - $xfer += $output->writeString($this->source_table_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->dest_db !== null) { - $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); - $xfer += $output->writeString($this->dest_db); + if ($this->user_name !== null) { + $xfer += $output->writeFieldBegin('user_name', TType::STRING, 4); + $xfer += $output->writeString($this->user_name); $xfer += $output->writeFieldEnd(); } - if ($this->dest_table_name !== null) { - $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); - $xfer += $output->writeString($this->dest_table_name); + if ($this->group_names !== null) { + if (!is_array($this->group_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('group_names', TType::LST, 5); + { + $output->writeListBegin(TType::STRING, count($this->group_names)); + { + foreach ($this->group_names as $iter1023) + { + $xfer += $output->writeString($iter1023); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -26757,11 +26773,11 @@ class ThriftHiveMetastore_exchange_partitions_args { } -class ThriftHiveMetastore_exchange_partitions_result { +class ThriftHiveMetastore_get_partition_with_auth_result { static $_TSPEC; /** - * @var \metastore\Partition[] + * @var \metastore\Partition */ public $success = null; /** @@ -26772,26 +26788,14 @@ class ThriftHiveMetastore_exchange_partitions_result { * @var \metastore\NoSuchObjectException */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ - public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ - public $o4 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', - ), + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', ), 1 => array( 'var' => 'o1', @@ -26803,16 +26807,6 @@ class ThriftHiveMetastore_exchange_partitions_result { 'type' => TType::STRUCT, 'class' => '\metastore\NoSuchObjectException', ), - 3 => array( - 'var' => 'o3', - 'type' => TType::STRUCT, - 'class' => '\metastore\InvalidObjectException', - ), - 4 => array( - 'var' => 'o4', - 'type' => TType::STRUCT, - 'class' => '\metastore\InvalidInputException', - ), ); } if (is_array($vals)) { @@ -26825,17 +26819,11 @@ class ThriftHiveMetastore_exchange_partitions_result { if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } - if (isset($vals['o3'])) { - $this->o3 = $vals['o3']; - } - if (isset($vals['o4'])) { - $this->o4 = $vals['o4']; - } } } public function getName() { - return 'ThriftHiveMetastore_exchange_partitions_result'; + return 'ThriftHiveMetastore_get_partition_with_auth_result'; } public function read($input) @@ -26854,19 +26842,9 @@ class ThriftHiveMetastore_exchange_partitions_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size1012 = 0; - $_etype1015 = 0; - $xfer += $input->readListBegin($_etype1015, $_size1012); - for ($_i1016 = 0; $_i1016 < $_size1012; ++$_i1016) - { - $elem1017 = null; - $elem1017 = new \metastore\Partition(); - $xfer += $elem1017->read($input); - $this->success []= $elem1017; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\Partition(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -26887,22 +26865,6 @@ class ThriftHiveMetastore_exchange_partitions_result { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::STRUCT) { - $this->o3 = new \metastore\InvalidObjectException(); - $xfer += $this->o3->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->o4 = new \metastore\InvalidInputException(); - $xfer += $this->o4->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -26915,22 +26877,13 @@ class ThriftHiveMetastore_exchange_partitions_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_with_auth_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { -