http://git-wip-us.apache.org/repos/asf/hive/blob/55a24f0a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index e922d7d..a6862be 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -394,6 +394,19 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); /** + * @param array $partitionSpecs + * @param string $source_db + * @param string $source_table_name + * @param string $dest_db + * @param string $dest_table_name + * @return \metastore\Partition[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidObjectException + * @throws \metastore\InvalidInputException + */ + public function exchange_partitions(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); + /** * @param string $db_name * @param string $tbl_name * @param string[] $part_vals @@ -3622,6 +3635,73 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("exchange_partition failed: unknown result"); } + public function exchange_partitions(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + { + $this->send_exchange_partitions($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); + return $this->recv_exchange_partitions(); + } + + public function send_exchange_partitions(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + { + $args = new \metastore\ThriftHiveMetastore_exchange_partitions_args(); + $args->partitionSpecs = $partitionSpecs; + $args->source_db = $source_db; + $args->source_table_name = $source_table_name; + $args->dest_db = $dest_db; + $args->dest_table_name = $dest_table_name; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'exchange_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('exchange_partitions', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_exchange_partitions() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_exchange_partitions_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_exchange_partitions_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; + } + if ($result->o4 !== null) { + throw $result->o4; + } + throw new \Exception("exchange_partitions failed: unknown result"); + } + public function get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names) { $this->send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names); @@ -19473,6 +19553,410 @@ class ThriftHiveMetastore_exchange_partition_result { } +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(); + $_size669 = 0; + $_ktype670 = 0; + $_vtype671 = 0; + $xfer += $input->readMapBegin($_ktype670, $_vtype671, $_size669); + for ($_i673 = 0; $_i673 < $_size669; ++$_i673) + { + $key674 = ''; + $val675 = ''; + $xfer += $input->readString($key674); + $xfer += $input->readString($val675); + $this->partitionSpecs[$key674] = $val675; + } + $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_partitions_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 $kiter676 => $viter677) + { + $xfer += $output->writeString($kiter676); + $xfer += $output->writeString($viter677); + } + } + $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_partitions_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::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + '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_partitions_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::LST) { + $this->success = array(); + $_size678 = 0; + $_etype681 = 0; + $xfer += $input->readListBegin($_etype681, $_size678); + for ($_i682 = 0; $_i682 < $_size678; ++$_i682) + { + $elem683 = null; + $elem683 = new \metastore\Partition(); + $xfer += $elem683->read($input); + $this->success []= $elem683; + } + $xfer += $input->readListEnd(); + } 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_partitions_result'); + if ($this->success !== null) { + if (!is_array($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)); + { + foreach ($this->success as $iter684) + { + $xfer += $iter684->write($output); + } + } + $output->writeListEnd(); + } + $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_get_partition_with_auth_args { static $_TSPEC; @@ -19585,14 +20069,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size669 = 0; - $_etype672 = 0; - $xfer += $input->readListBegin($_etype672, $_size669); - for ($_i673 = 0; $_i673 < $_size669; ++$_i673) + $_size685 = 0; + $_etype688 = 0; + $xfer += $input->readListBegin($_etype688, $_size685); + for ($_i689 = 0; $_i689 < $_size685; ++$_i689) { - $elem674 = null; - $xfer += $input->readString($elem674); - $this->part_vals []= $elem674; + $elem690 = null; + $xfer += $input->readString($elem690); + $this->part_vals []= $elem690; } $xfer += $input->readListEnd(); } else { @@ -19609,14 +20093,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size691 = 0; + $_etype694 = 0; + $xfer += $input->readListBegin($_etype694, $_size691); + for ($_i695 = 0; $_i695 < $_size691; ++$_i695) { - $elem680 = null; - $xfer += $input->readString($elem680); - $this->group_names []= $elem680; + $elem696 = null; + $xfer += $input->readString($elem696); + $this->group_names []= $elem696; } $xfer += $input->readListEnd(); } else { @@ -19654,9 +20138,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter681) + foreach ($this->part_vals as $iter697) { - $xfer += $output->writeString($iter681); + $xfer += $output->writeString($iter697); } } $output->writeListEnd(); @@ -19676,9 +20160,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter682) + foreach ($this->group_names as $iter698) { - $xfer += $output->writeString($iter682); + $xfer += $output->writeString($iter698); } } $output->writeListEnd(); @@ -20269,15 +20753,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size683 = 0; - $_etype686 = 0; - $xfer += $input->readListBegin($_etype686, $_size683); - for ($_i687 = 0; $_i687 < $_size683; ++$_i687) + $_size699 = 0; + $_etype702 = 0; + $xfer += $input->readListBegin($_etype702, $_size699); + for ($_i703 = 0; $_i703 < $_size699; ++$_i703) { - $elem688 = null; - $elem688 = new \metastore\Partition(); - $xfer += $elem688->read($input); - $this->success []= $elem688; + $elem704 = null; + $elem704 = new \metastore\Partition(); + $xfer += $elem704->read($input); + $this->success []= $elem704; } $xfer += $input->readListEnd(); } else { @@ -20321,9 +20805,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter689) + foreach ($this->success as $iter705) { - $xfer += $iter689->write($output); + $xfer += $iter705->write($output); } } $output->writeListEnd(); @@ -20469,14 +20953,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size690 = 0; - $_etype693 = 0; - $xfer += $input->readListBegin($_etype693, $_size690); - for ($_i694 = 0; $_i694 < $_size690; ++$_i694) + $_size706 = 0; + $_etype709 = 0; + $xfer += $input->readListBegin($_etype709, $_size706); + for ($_i710 = 0; $_i710 < $_size706; ++$_i710) { - $elem695 = null; - $xfer += $input->readString($elem695); - $this->group_names []= $elem695; + $elem711 = null; + $xfer += $input->readString($elem711); + $this->group_names []= $elem711; } $xfer += $input->readListEnd(); } else { @@ -20524,9 +21008,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter696) + foreach ($this->group_names as $iter712) { - $xfer += $output->writeString($iter696); + $xfer += $output->writeString($iter712); } } $output->writeListEnd(); @@ -20615,15 +21099,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size697 = 0; - $_etype700 = 0; - $xfer += $input->readListBegin($_etype700, $_size697); - for ($_i701 = 0; $_i701 < $_size697; ++$_i701) + $_size713 = 0; + $_etype716 = 0; + $xfer += $input->readListBegin($_etype716, $_size713); + for ($_i717 = 0; $_i717 < $_size713; ++$_i717) { - $elem702 = null; - $elem702 = new \metastore\Partition(); - $xfer += $elem702->read($input); - $this->success []= $elem702; + $elem718 = null; + $elem718 = new \metastore\Partition(); + $xfer += $elem718->read($input); + $this->success []= $elem718; } $xfer += $input->readListEnd(); } else { @@ -20667,9 +21151,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter703) + foreach ($this->success as $iter719) { - $xfer += $iter703->write($output); + $xfer += $iter719->write($output); } } $output->writeListEnd(); @@ -20889,15 +21373,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size704 = 0; - $_etype707 = 0; - $xfer += $input->readListBegin($_etype707, $_size704); - for ($_i708 = 0; $_i708 < $_size704; ++$_i708) + $_size720 = 0; + $_etype723 = 0; + $xfer += $input->readListBegin($_etype723, $_size720); + for ($_i724 = 0; $_i724 < $_size720; ++$_i724) { - $elem709 = null; - $elem709 = new \metastore\PartitionSpec(); - $xfer += $elem709->read($input); - $this->success []= $elem709; + $elem725 = null; + $elem725 = new \metastore\PartitionSpec(); + $xfer += $elem725->read($input); + $this->success []= $elem725; } $xfer += $input->readListEnd(); } else { @@ -20941,9 +21425,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter710) + foreach ($this->success as $iter726) { - $xfer += $iter710->write($output); + $xfer += $iter726->write($output); } } $output->writeListEnd(); @@ -21150,14 +21634,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size711 = 0; - $_etype714 = 0; - $xfer += $input->readListBegin($_etype714, $_size711); - for ($_i715 = 0; $_i715 < $_size711; ++$_i715) + $_size727 = 0; + $_etype730 = 0; + $xfer += $input->readListBegin($_etype730, $_size727); + for ($_i731 = 0; $_i731 < $_size727; ++$_i731) { - $elem716 = null; - $xfer += $input->readString($elem716); - $this->success []= $elem716; + $elem732 = null; + $xfer += $input->readString($elem732); + $this->success []= $elem732; } $xfer += $input->readListEnd(); } else { @@ -21193,9 +21677,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter717) + foreach ($this->success as $iter733) { - $xfer += $output->writeString($iter717); + $xfer += $output->writeString($iter733); } } $output->writeListEnd(); @@ -21311,14 +21795,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size718 = 0; - $_etype721 = 0; - $xfer += $input->readListBegin($_etype721, $_size718); - for ($_i722 = 0; $_i722 < $_size718; ++$_i722) + $_size734 = 0; + $_etype737 = 0; + $xfer += $input->readListBegin($_etype737, $_size734); + for ($_i738 = 0; $_i738 < $_size734; ++$_i738) { - $elem723 = null; - $xfer += $input->readString($elem723); - $this->part_vals []= $elem723; + $elem739 = null; + $xfer += $input->readString($elem739); + $this->part_vals []= $elem739; } $xfer += $input->readListEnd(); } else { @@ -21363,9 +21847,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter724) + foreach ($this->part_vals as $iter740) { - $xfer += $output->writeString($iter724); + $xfer += $output->writeString($iter740); } } $output->writeListEnd(); @@ -21459,15 +21943,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size725 = 0; - $_etype728 = 0; - $xfer += $input->readListBegin($_etype728, $_size725); - for ($_i729 = 0; $_i729 < $_size725; ++$_i729) + $_size741 = 0; + $_etype744 = 0; + $xfer += $input->readListBegin($_etype744, $_size741); + for ($_i745 = 0; $_i745 < $_size741; ++$_i745) { - $elem730 = null; - $elem730 = new \metastore\Partition(); - $xfer += $elem730->read($input); - $this->success []= $elem730; + $elem746 = null; + $elem746 = new \metastore\Partition(); + $xfer += $elem746->read($input); + $this->success []= $elem746; } $xfer += $input->readListEnd(); } else { @@ -21511,9 +21995,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter731) + foreach ($this->success as $iter747) { - $xfer += $iter731->write($output); + $xfer += $iter747->write($output); } } $output->writeListEnd(); @@ -21660,14 +22144,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size732 = 0; - $_etype735 = 0; - $xfer += $input->readListBegin($_etype735, $_size732); - for ($_i736 = 0; $_i736 < $_size732; ++$_i736) + $_size748 = 0; + $_etype751 = 0; + $xfer += $input->readListBegin($_etype751, $_size748); + for ($_i752 = 0; $_i752 < $_size748; ++$_i752) { - $elem737 = null; - $xfer += $input->readString($elem737); - $this->part_vals []= $elem737; + $elem753 = null; + $xfer += $input->readString($elem753); + $this->part_vals []= $elem753; } $xfer += $input->readListEnd(); } else { @@ -21691,14 +22175,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size738 = 0; - $_etype741 = 0; - $xfer += $input->readListBegin($_etype741, $_size738); - for ($_i742 = 0; $_i742 < $_size738; ++$_i742) + $_size754 = 0; + $_etype757 = 0; + $xfer += $input->readListBegin($_etype757, $_size754); + for ($_i758 = 0; $_i758 < $_size754; ++$_i758) { - $elem743 = null; - $xfer += $input->readString($elem743); - $this->group_names []= $elem743; + $elem759 = null; + $xfer += $input->readString($elem759); + $this->group_names []= $elem759; } $xfer += $input->readListEnd(); } else { @@ -21736,9 +22220,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter744) + foreach ($this->part_vals as $iter760) { - $xfer += $output->writeString($iter744); + $xfer += $output->writeString($iter760); } } $output->writeListEnd(); @@ -21763,9 +22247,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter745) + foreach ($this->group_names as $iter761) { - $xfer += $output->writeString($iter745); + $xfer += $output->writeString($iter761); } } $output->writeListEnd(); @@ -21854,15 +22338,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size746 = 0; - $_etype749 = 0; - $xfer += $input->readListBegin($_etype749, $_size746); - for ($_i750 = 0; $_i750 < $_size746; ++$_i750) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem751 = null; - $elem751 = new \metastore\Partition(); - $xfer += $elem751->read($input); - $this->success []= $elem751; + $elem767 = null; + $elem767 = new \metastore\Partition(); + $xfer += $elem767->read($input); + $this->success []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -21906,9 +22390,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter752) + foreach ($this->success as $iter768) { - $xfer += $iter752->write($output); + $xfer += $iter768->write($output); } } $output->writeListEnd(); @@ -22029,14 +22513,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size753 = 0; - $_etype756 = 0; - $xfer += $input->readListBegin($_etype756, $_size753); - for ($_i757 = 0; $_i757 < $_size753; ++$_i757) + $_size769 = 0; + $_etype772 = 0; + $xfer += $input->readListBegin($_etype772, $_size769); + for ($_i773 = 0; $_i773 < $_size769; ++$_i773) { - $elem758 = null; - $xfer += $input->readString($elem758); - $this->part_vals []= $elem758; + $elem774 = null; + $xfer += $input->readString($elem774); + $this->part_vals []= $elem774; } $xfer += $input->readListEnd(); } else { @@ -22081,9 +22565,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter759) + foreach ($this->part_vals as $iter775) { - $xfer += $output->writeString($iter759); + $xfer += $output->writeString($iter775); } } $output->writeListEnd(); @@ -22176,14 +22660,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size760 = 0; - $_etype763 = 0; - $xfer += $input->readListBegin($_etype763, $_size760); - for ($_i764 = 0; $_i764 < $_size760; ++$_i764) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem765 = null; - $xfer += $input->readString($elem765); - $this->success []= $elem765; + $elem781 = null; + $xfer += $input->readString($elem781); + $this->success []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -22227,9 +22711,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter766) + foreach ($this->success as $iter782) { - $xfer += $output->writeString($iter766); + $xfer += $output->writeString($iter782); } } $output->writeListEnd(); @@ -22472,15 +22956,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size767 = 0; - $_etype770 = 0; - $xfer += $input->readListBegin($_etype770, $_size767); - for ($_i771 = 0; $_i771 < $_size767; ++$_i771) + $_size783 = 0; + $_etype786 = 0; + $xfer += $input->readListBegin($_etype786, $_size783); + for ($_i787 = 0; $_i787 < $_size783; ++$_i787) { - $elem772 = null; - $elem772 = new \metastore\Partition(); - $xfer += $elem772->read($input); - $this->success []= $elem772; + $elem788 = null; + $elem788 = new \metastore\Partition(); + $xfer += $elem788->read($input); + $this->success []= $elem788; } $xfer += $input->readListEnd(); } else { @@ -22524,9 +23008,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter773) + foreach ($this->success as $iter789) { - $xfer += $iter773->write($output); + $xfer += $iter789->write($output); } } $output->writeListEnd(); @@ -22769,15 +23253,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size774 = 0; - $_etype777 = 0; - $xfer += $input->readListBegin($_etype777, $_size774); - for ($_i778 = 0; $_i778 < $_size774; ++$_i778) + $_size790 = 0; + $_etype793 = 0; + $xfer += $input->readListBegin($_etype793, $_size790); + for ($_i794 = 0; $_i794 < $_size790; ++$_i794) { - $elem779 = null; - $elem779 = new \metastore\PartitionSpec(); - $xfer += $elem779->read($input); - $this->success []= $elem779; + $elem795 = null; + $elem795 = new \metastore\PartitionSpec(); + $xfer += $elem795->read($input); + $this->success []= $elem795; } $xfer += $input->readListEnd(); } else { @@ -22821,9 +23305,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter780) + foreach ($this->success as $iter796) { - $xfer += $iter780->write($output); + $xfer += $iter796->write($output); } } $output->writeListEnd(); @@ -23143,14 +23627,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size781 = 0; - $_etype784 = 0; - $xfer += $input->readListBegin($_etype784, $_size781); - for ($_i785 = 0; $_i785 < $_size781; ++$_i785) + $_size797 = 0; + $_etype800 = 0; + $xfer += $input->readListBegin($_etype800, $_size797); + for ($_i801 = 0; $_i801 < $_size797; ++$_i801) { - $elem786 = null; - $xfer += $input->readString($elem786); - $this->names []= $elem786; + $elem802 = null; + $xfer += $input->readString($elem802); + $this->names []= $elem802; } $xfer += $input->readListEnd(); } else { @@ -23188,9 +23672,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter787) + foreach ($this->names as $iter803) { - $xfer += $output->writeString($iter787); + $xfer += $output->writeString($iter803); } } $output->writeListEnd(); @@ -23279,15 +23763,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size788 = 0; - $_etype791 = 0; - $xfer += $input->readListBegin($_etype791, $_size788); - for ($_i792 = 0; $_i792 < $_size788; ++$_i792) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem793 = null; - $elem793 = new \metastore\Partition(); - $xfer += $elem793->read($input); - $this->success []= $elem793; + $elem809 = null; + $elem809 = new \metastore\Partition(); + $xfer += $elem809->read($input); + $this->success []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -23331,9 +23815,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter794) + foreach ($this->success as $iter810) { - $xfer += $iter794->write($output); + $xfer += $iter810->write($output); } } $output->writeListEnd(); @@ -23672,15 +24156,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size795 = 0; - $_etype798 = 0; - $xfer += $input->readListBegin($_etype798, $_size795); - for ($_i799 = 0; $_i799 < $_size795; ++$_i799) + $_size811 = 0; + $_etype814 = 0; + $xfer += $input->readListBegin($_etype814, $_size811); + for ($_i815 = 0; $_i815 < $_size811; ++$_i815) { - $elem800 = null; - $elem800 = new \metastore\Partition(); - $xfer += $elem800->read($input); - $this->new_parts []= $elem800; + $elem816 = null; + $elem816 = new \metastore\Partition(); + $xfer += $elem816->read($input); + $this->new_parts []= $elem816; } $xfer += $input->readListEnd(); } else { @@ -23718,9 +24202,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter801) + foreach ($this->new_parts as $iter817) { - $xfer += $iter801->write($output); + $xfer += $iter817->write($output); } } $output->writeListEnd(); @@ -24190,14 +24674,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size802 = 0; - $_etype805 = 0; - $xfer += $input->readListBegin($_etype805, $_size802); - for ($_i806 = 0; $_i806 < $_size802; ++$_i806) + $_size818 = 0; + $_etype821 = 0; + $xfer += $input->readListBegin($_etype821, $_size818); + for ($_i822 = 0; $_i822 < $_size818; ++$_i822) { - $elem807 = null; - $xfer += $input->readString($elem807); - $this->part_vals []= $elem807; + $elem823 = null; + $xfer += $input->readString($elem823); + $this->part_vals []= $elem823; } $xfer += $input->readListEnd(); } else { @@ -24243,9 +24727,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter808) + foreach ($this->part_vals as $iter824) { - $xfer += $output->writeString($iter808); + $xfer += $output->writeString($iter824); } } $output->writeListEnd(); @@ -24430,14 +24914,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size809 = 0; - $_etype812 = 0; - $xfer += $input->readListBegin($_etype812, $_size809); - for ($_i813 = 0; $_i813 < $_size809; ++$_i813) + $_size825 = 0; + $_etype828 = 0; + $xfer += $input->readListBegin($_etype828, $_size825); + for ($_i829 = 0; $_i829 < $_size825; ++$_i829) { - $elem814 = null; - $xfer += $input->readString($elem814); - $this->part_vals []= $elem814; + $elem830 = null; + $xfer += $input->readString($elem830); + $this->part_vals []= $elem830; } $xfer += $input->readListEnd(); } else { @@ -24472,9 +24956,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter815) + foreach ($this->part_vals as $iter831) { - $xfer += $output->writeString($iter815); + $xfer += $output->writeString($iter831); } } $output->writeListEnd(); @@ -24928,14 +25412,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size816 = 0; - $_etype819 = 0; - $xfer += $input->readListBegin($_etype819, $_size816); - for ($_i820 = 0; $_i820 < $_size816; ++$_i820) + $_size832 = 0; + $_etype835 = 0; + $xfer += $input->readListBegin($_etype835, $_size832); + for ($_i836 = 0; $_i836 < $_size832; ++$_i836) { - $elem821 = null; - $xfer += $input->readString($elem821); - $this->success []= $elem821; + $elem837 = null; + $xfer += $input->readString($elem837); + $this->success []= $elem837; } $xfer += $input->readListEnd(); } else { @@ -24971,9 +25455,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter822) + foreach ($this->success as $iter838) { - $xfer += $output->writeString($iter822); + $xfer += $output->writeString($iter838); } } $output->writeListEnd(); @@ -25133,17 +25617,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size823 = 0; - $_ktype824 = 0; - $_vtype825 = 0; - $xfer += $input->readMapBegin($_ktype824, $_vtype825, $_size823); - for ($_i827 = 0; $_i827 < $_size823; ++$_i827) + $_size839 = 0; + $_ktype840 = 0; + $_vtype841 = 0; + $xfer += $input->readMapBegin($_ktype840, $_vtype841, $_size839); + for ($_i843 = 0; $_i843 < $_size839; ++$_i843) { - $key828 = ''; - $val829 = ''; - $xfer += $input->readString($key828); - $xfer += $input->readString($val829); - $this->success[$key828] = $val829; + $key844 = ''; + $val845 = ''; + $xfer += $input->readString($key844); + $xfer += $input->readString($val845); + $this->success[$key844] = $val845; } $xfer += $input->readMapEnd(); } else { @@ -25179,10 +25663,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter830 => $viter831) + foreach ($this->success as $kiter846 => $viter847) { - $xfer += $output->writeString($kiter830); - $xfer += $output->writeString($viter831); + $xfer += $output->writeString($kiter846); + $xfer += $output->writeString($viter847); } } $output->writeMapEnd(); @@ -25302,17 +25786,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size832 = 0; - $_ktype833 = 0; - $_vtype834 = 0; - $xfer += $input->readMapBegin($_ktype833, $_vtype834, $_size832); - for ($_i836 = 0; $_i836 < $_size832; ++$_i836) + $_size848 = 0; + $_ktype849 = 0; + $_vtype850 = 0; + $xfer += $input->readMapBegin($_ktype849, $_vtype850, $_size848); + for ($_i852 = 0; $_i852 < $_size848; ++$_i852) { - $key837 = ''; - $val838 = ''; - $xfer += $input->readString($key837); - $xfer += $input->readString($val838); - $this->part_vals[$key837] = $val838; + $key853 = ''; + $val854 = ''; + $xfer += $input->readString($key853); + $xfer += $input->readString($val854); + $this->part_vals[$key853] = $val854; } $xfer += $input->readMapEnd(); } else { @@ -25357,10 +25841,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter839 => $viter840) + foreach ($this->part_vals as $kiter855 => $viter856) { - $xfer += $output->writeString($kiter839); - $xfer += $output->writeString($viter840); + $xfer += $output->writeString($kiter855); + $xfer += $output->writeString($viter856); } } $output->writeMapEnd(); @@ -25682,17 +26166,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size841 = 0; - $_ktype842 = 0; - $_vtype843 = 0; - $xfer += $input->readMapBegin($_ktype842, $_vtype843, $_size841); - for ($_i845 = 0; $_i845 < $_size841; ++$_i845) + $_size857 = 0; + $_ktype858 = 0; + $_vtype859 = 0; + $xfer += $input->readMapBegin($_ktype858, $_vtype859, $_size857); + for ($_i861 = 0; $_i861 < $_size857; ++$_i861) { - $key846 = ''; - $val847 = ''; - $xfer += $input->readString($key846); - $xfer += $input->readString($val847); - $this->part_vals[$key846] = $val847; + $key862 = ''; + $val863 = ''; + $xfer += $input->readString($key862); + $xfer += $input->readString($val863); + $this->part_vals[$key862] = $val863; } $xfer += $input->readMapEnd(); } else { @@ -25737,10 +26221,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter848 => $viter849) + foreach ($this->part_vals as $kiter864 => $viter865) { - $xfer += $output->writeString($kiter848); - $xfer += $output->writeString($viter849); + $xfer += $output->writeString($kiter864); + $xfer += $output->writeString($viter865); } } $output->writeMapEnd(); @@ -27214,15 +27698,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size850 = 0; - $_etype853 = 0; - $xfer += $input->readListBegin($_etype853, $_size850); - for ($_i854 = 0; $_i854 < $_size850; ++$_i854) + $_size866 = 0; + $_etype869 = 0; + $xfer += $input->readListBegin($_etype869, $_size866); + for ($_i870 = 0; $_i870 < $_size866; ++$_i870) { - $elem855 = null; - $elem855 = new \metastore\Index(); - $xfer += $elem855->read($input); - $this->success []= $elem855; + $elem871 = null; + $elem871 = new \metastore\Index(); + $xfer += $elem871->read($input); + $this->success []= $elem871; } $xfer += $input->readListEnd(); } else { @@ -27266,9 +27750,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter856) + foreach ($this->success as $iter872) { - $xfer += $iter856->write($output); + $xfer += $iter872->write($output); } } $output->writeListEnd(); @@ -27475,14 +27959,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size857 = 0; - $_etype860 = 0; - $xfer += $input->readListBegin($_etype860, $_size857); - for ($_i861 = 0; $_i861 < $_size857; ++$_i861) + $_size873 = 0; + $_etype876 = 0; + $xfer += $input->readListBegin($_etype876, $_size873); + for ($_i877 = 0; $_i877 < $_size873; ++$_i877) { - $elem862 = null; - $xfer += $input->readString($elem862); - $this->success []= $elem862; + $elem878 = null; + $xfer += $input->readString($elem878); + $this->success []= $elem878; } $xfer += $input->readListEnd(); } else { @@ -27518,9 +28002,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter863) + foreach ($this->success as $iter879) { - $xfer += $output->writeString($iter863); + $xfer += $output->writeString($iter879); } } $output->writeListEnd(); @@ -30994,14 +31478,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size864 = 0; - $_etype867 = 0; - $xfer += $input->readListBegin($_etype867, $_size864); - for ($_i868 = 0; $_i868 < $_size864; ++$_i868) + $_size880 = 0; + $_etype883 = 0; + $xfer += $input->readListBegin($_etype883, $_size880); + for ($_i884 = 0; $_i884 < $_size880; ++$_i884) { - $elem869 = null; - $xfer += $input->readString($elem869); - $this->success []= $elem869; + $elem885 = null; + $xfer += $input->readString($elem885); + $this->success []= $elem885; } $xfer += $input->readListEnd(); } else { @@ -31037,9 +31521,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter870) + foreach ($this->success as $iter886) { - $xfer += $output->writeString($iter870); + $xfer += $output->writeString($iter886); } } $output->writeListEnd(); @@ -31908,14 +32392,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size871 = 0; - $_etype874 = 0; - $xfer += $input->readListBegin($_etype874, $_size871); - for ($_i875 = 0; $_i875 < $_size871; ++$_i875) + $_size887 = 0; + $_etype890 = 0; + $xfer += $input->readListBegin($_etype890, $_size887); + for ($_i891 = 0; $_i891 < $_size887; ++$_i891) { - $elem876 = null; - $xfer += $input->readString($elem876); - $this->success []= $elem876; + $elem892 = null; + $xfer += $input->readString($elem892); + $this->success []= $elem892; } $xfer += $input->readListEnd(); } else { @@ -31951,9 +32435,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter877) + foreach ($this->success as $iter893) { - $xfer += $output->writeString($iter877); + $xfer += $output->writeString($iter893); } } $output->writeListEnd(); @@ -32644,15 +33128,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size878 = 0; - $_etype881 = 0; - $xfer += $input->readListBegin($_etype881, $_size878); - for ($_i882 = 0; $_i882 < $_size878; ++$_i882) + $_size894 = 0; + $_etype897 = 0; + $xfer += $input->readListBegin($_etype897, $_size894); + for ($_i898 = 0; $_i898 < $_size894; ++$_i898) { - $elem883 = null; - $elem883 = new \metastore\Role(); - $xfer += $elem883->read($input); - $this->success []= $elem883; + $elem899 = null; + $elem899 = new \metastore\Role(); + $xfer += $elem899->read($input); + $this->success []= $elem899; } $xfer += $input->readListEnd(); } else { @@ -32688,9 +33172,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter884) + foreach ($this->success as $iter900) { - $xfer += $iter884->write($output); + $xfer += $iter900->write($output); } } $output->writeListEnd(); @@ -33352,14 +33836,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size885 = 0; - $_etype888 = 0; - $xfer += $input->readListBegin($_etype888, $_size885); - for ($_i889 = 0; $_i889 < $_size885; ++$_i889) + $_size901 = 0; + $_etype904 = 0; + $xfer += $input->readListBegin($_etype904, $_size901); + for ($_i905 = 0; $_i905 < $_size901; ++$_i905) { - $elem890 = null; - $xfer += $input->readString($elem890); - $this->group_names []= $elem890; + $elem906 = null; + $xfer += $input->readString($elem906); + $this->group_names []= $elem906; } $xfer += $input->readListEnd(); } else { @@ -33400,9 +33884,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter891) + foreach ($this->group_names as $iter907) { - $xfer += $output->writeString($iter891); + $xfer += $output->writeString($iter907); } } $output->writeListEnd(); @@ -33710,15 +34194,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size892 = 0; - $_etype895 = 0; - $xfer += $input->readListBegin($_etype895, $_size892); - for ($_i896 = 0; $_i896 < $_size892; ++$_i896) + $_size908 = 0; + $_etype911 = 0; + $xfer += $input->readListBegin($_etype911, $_size908); + for ($_i912 = 0; $_i912 < $_size908; ++$_i912) { - $elem897 = null; - $elem897 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem897->read($input); - $this->success []= $elem897; + $elem913 = null; + $elem913 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem913->read($input); + $this->success []= $elem913; } $xfer += $input->readListEnd(); } else { @@ -33754,9 +34238,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter898) + foreach ($this->success as $iter914) { - $xfer += $iter898->write($output); + $xfer += $iter914->write($output); } } $output->writeListEnd(); @@ -34388,14 +34872,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size899 = 0; - $_etype902 = 0; - $xfer += $input->readListBegin($_etype902, $_size899); - for ($_i903 = 0; $_i903 < $_size899; ++$_i903) + $_size915 = 0; + $_etype918 = 0; + $xfer += $input->readListBegin($_etype918, $_size915); + for ($_i919 = 0; $_i919 < $_size915; ++$_i919) { - $elem904 = null; - $xfer += $input->readString($elem904); - $this->group_names []= $elem904; + $elem920 = null; + $xfer += $input->readString($elem920); + $this->group_names []= $elem920; } $xfer += $input->readListEnd(); } else { @@ -34428,9 +34912,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter905) + foreach ($this->group_names as $iter921) { - $xfer += $output->writeString($iter905); + $xfer += $output->writeString($iter921); } } $output->writeListEnd(); @@ -34506,14 +34990,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size906 = 0; - $_etype909 = 0; - $xfer += $input->readListBegin($_etype909, $_size906); - for ($_i910 = 0; $_i910 < $_size906; ++$_i910) + $_size922 = 0; + $_etype925 = 0; + $xfer += $input->readListBegin($_etype925, $_size922); + for ($_i926 = 0; $_i926 < $_size922; ++$_i926) { - $elem911 = null; - $xfer += $input->readString($elem911); - $this->success []= $elem911; + $elem927 = null; + $xfer += $input->readString($elem927); + $this->success []= $elem927; } $xfer += $input->readListEnd(); } else { @@ -34549,9 +35033,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter912) + foreach ($this->success as $iter928) { - $xfer += $output->writeString($iter912); + $xfer += $output->writeString($iter928); } } $output->writeListEnd();
http://git-wip-us.apache.org/repos/asf/hive/blob/55a24f0a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote ---------------------------------------------------------------------- diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 8dba17b..65ba10e 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -68,6 +68,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)') print(' Partition get_partition(string db_name, string tbl_name, part_vals)') print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') + print(' exchange_partitions( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') @@ -486,6 +487,12 @@ elif cmd == 'exchange_partition': sys.exit(1) pp.pprint(client.exchange_partition(eval(args[0]),args[1],args[2],args[3],args[4],)) +elif cmd == 'exchange_partitions': + if len(args) != 5: + print('exchange_partitions requires 5 args') + sys.exit(1) + pp.pprint(client.exchange_partitions(eval(args[0]),args[1],args[2],args[3],args[4],)) + elif cmd == 'get_partition_with_auth': if len(args) != 5: print('get_partition_with_auth requires 5 args')
