FAQ
Modified: hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php?rev=1445309&r1=1445308&r2=1445309&view=diff
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php (original)
+++ hive/trunk/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php Tue Feb 12 18:52:55 2013
@@ -31,6 +31,7 @@ interface ThriftHiveMetastoreIf extends
    public function create_table(\metastore\Table $tbl);
    public function create_table_with_environment_context(\metastore\Table $tbl, \metastore\EnvironmentContext $environment_context);
    public function drop_table($dbname, $name, $deleteData);
+ public function drop_table_with_environment_context($dbname, $name, $deleteData, \metastore\EnvironmentContext $environment_context);
    public function get_tables($db_name, $pattern);
    public function get_all_tables($db_name);
    public function get_table($dbname, $tbl_name);
@@ -42,9 +43,13 @@ interface ThriftHiveMetastoreIf extends
    public function add_partition_with_environment_context(\metastore\Partition $new_part, \metastore\EnvironmentContext $environment_context);
    public function add_partitions($new_parts);
    public function append_partition($db_name, $tbl_name, $part_vals);
+ public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context);
    public function append_partition_by_name($db_name, $tbl_name, $part_name);
+ public function append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, \metastore\EnvironmentContext $environment_context);
    public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData);
+ public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context);
    public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData);
+ public function drop_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $deleteData, \metastore\EnvironmentContext $environment_context);
    public function get_partition($db_name, $tbl_name, $part_vals);
    public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names);
    public function get_partition_by_name($db_name, $tbl_name, $part_name);
@@ -960,6 +965,63 @@ class ThriftHiveMetastoreClient extends
      return;
    }

+ public function drop_table_with_environment_context($dbname, $name, $deleteData, \metastore\EnvironmentContext $environment_context)
+ {
+ $this->send_drop_table_with_environment_context($dbname, $name, $deleteData, $environment_context);
+ $this->recv_drop_table_with_environment_context();
+ }
+
+ public function send_drop_table_with_environment_context($dbname, $name, $deleteData, \metastore\EnvironmentContext $environment_context)
+ {
+ $args = new \metastore\ThriftHiveMetastore_drop_table_with_environment_context_args();
+ $args->dbname = $dbname;
+ $args->name = $name;
+ $args->deleteData = $deleteData;
+ $args->environment_context = $environment_context;
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'drop_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('drop_table_with_environment_context', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_drop_table_with_environment_context()
+ {
+ $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_with_environment_context_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_table_with_environment_context_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
+ if ($result->o3 !== null) {
+ throw $result->o3;
+ }
+ return;
+ }
+
    public function get_tables($db_name, $pattern)
    {
      $this->send_get_tables($db_name, $pattern);
@@ -1606,6 +1668,69 @@ class ThriftHiveMetastoreClient extends
      throw new \Exception("append_partition failed: unknown result");
    }

+ public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context)
+ {
+ $this->send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, $environment_context);
+ return $this->recv_append_partition_with_environment_context();
+ }
+
+ public function send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context)
+ {
+ $args = new \metastore\ThriftHiveMetastore_append_partition_with_environment_context_args();
+ $args->db_name = $db_name;
+ $args->tbl_name = $tbl_name;
+ $args->part_vals = $part_vals;
+ $args->environment_context = $environment_context;
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'append_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('append_partition_with_environment_context', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_append_partition_with_environment_context()
+ {
+ $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_with_environment_context_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_append_partition_with_environment_context_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("append_partition_with_environment_context failed: unknown result");
+ }
+
    public function append_partition_by_name($db_name, $tbl_name, $part_name)
    {
      $this->send_append_partition_by_name($db_name, $tbl_name, $part_name);
@@ -1668,6 +1793,69 @@ class ThriftHiveMetastoreClient extends
      throw new \Exception("append_partition_by_name failed: unknown result");
    }

+ public function append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, \metastore\EnvironmentContext $environment_context)
+ {
+ $this->send_append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $environment_context);
+ return $this->recv_append_partition_by_name_with_environment_context();
+ }
+
+ public function send_append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, \metastore\EnvironmentContext $environment_context)
+ {
+ $args = new \metastore\ThriftHiveMetastore_append_partition_by_name_with_environment_context_args();
+ $args->db_name = $db_name;
+ $args->tbl_name = $tbl_name;
+ $args->part_name = $part_name;
+ $args->environment_context = $environment_context;
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'append_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('append_partition_by_name_with_environment_context', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_append_partition_by_name_with_environment_context()
+ {
+ $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_with_environment_context_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_append_partition_by_name_with_environment_context_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("append_partition_by_name_with_environment_context failed: unknown result");
+ }
+
    public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData)
    {
      $this->send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData);
@@ -1728,6 +1916,67 @@ class ThriftHiveMetastoreClient extends
      throw new \Exception("drop_partition failed: unknown result");
    }

+ public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context)
+ {
+ $this->send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, $environment_context);
+ return $this->recv_drop_partition_with_environment_context();
+ }
+
+ public function send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context)
+ {
+ $args = new \metastore\ThriftHiveMetastore_drop_partition_with_environment_context_args();
+ $args->db_name = $db_name;
+ $args->tbl_name = $tbl_name;
+ $args->part_vals = $part_vals;
+ $args->deleteData = $deleteData;
+ $args->environment_context = $environment_context;
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'drop_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('drop_partition_with_environment_context', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_drop_partition_with_environment_context()
+ {
+ $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_with_environment_context_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_partition_with_environment_context_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_partition_with_environment_context failed: unknown result");
+ }
+
    public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData)
    {
      $this->send_drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData);
@@ -1788,6 +2037,67 @@ class ThriftHiveMetastoreClient extends
      throw new \Exception("drop_partition_by_name failed: unknown result");
    }

+ public function drop_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $deleteData, \metastore\EnvironmentContext $environment_context)
+ {
+ $this->send_drop_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $deleteData, $environment_context);
+ return $this->recv_drop_partition_by_name_with_environment_context();
+ }
+
+ public function send_drop_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $deleteData, \metastore\EnvironmentContext $environment_context)
+ {
+ $args = new \metastore\ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args();
+ $args->db_name = $db_name;
+ $args->tbl_name = $tbl_name;
+ $args->part_name = $part_name;
+ $args->deleteData = $deleteData;
+ $args->environment_context = $environment_context;
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'drop_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('drop_partition_by_name_with_environment_context', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_drop_partition_by_name_with_environment_context()
+ {
+ $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_by_name_with_environment_context_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_partition_by_name_with_environment_context_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_partition_by_name_with_environment_context failed: unknown result");
+ }
+
    public function get_partition($db_name, $tbl_name, $part_vals)
    {
      $this->send_get_partition($db_name, $tbl_name, $part_vals);
@@ -7638,13 +7948,246 @@ class ThriftHiveMetastore_drop_table_res

  }

-class ThriftHiveMetastore_get_tables_args {
+class ThriftHiveMetastore_drop_table_with_environment_context_args {
    static $_TSPEC;

- public $db_name = null;
- public $pattern = null;
-
- public function __construct($vals=null) {
+ public $dbname = null;
+ public $name = null;
+ public $deleteData = null;
+ public $environment_context = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'dbname',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'deleteData',
+ 'type' => TType::BOOL,
+ ),
+ 4 => array(
+ 'var' => 'environment_context',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\EnvironmentContext',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['dbname'])) {
+ $this->dbname = $vals['dbname'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['deleteData'])) {
+ $this->deleteData = $vals['deleteData'];
+ }
+ if (isset($vals['environment_context'])) {
+ $this->environment_context = $vals['environment_context'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_drop_table_with_environment_context_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::STRING) {
+ $xfer += $input->readString($this->dbname);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->deleteData);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRUCT) {
+ $this->environment_context = new \metastore\EnvironmentContext();
+ $xfer += $this->environment_context->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_drop_table_with_environment_context_args');
+ if ($this->dbname !== null) {
+ $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1);
+ $xfer += $output->writeString($this->dbname);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->deleteData !== null) {
+ $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 3);
+ $xfer += $output->writeBool($this->deleteData);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->environment_context !== null) {
+ if (!is_object($this->environment_context)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
+ $xfer += $this->environment_context->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_drop_table_with_environment_context_result {
+ static $_TSPEC;
+
+ public $o1 = null;
+ public $o3 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\NoSuchObjectException',
+ ),
+ 2 => array(
+ 'var' => 'o3',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o3'])) {
+ $this->o3 = $vals['o3'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_drop_table_with_environment_context_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 1:
+ if ($ftype == TType::STRUCT) {
+ $this->o1 = new \metastore\NoSuchObjectException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o3 = new \metastore\MetaException();
+ $xfer += $this->o3->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_with_environment_context_result');
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o3 !== null) {
+ $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 2);
+ $xfer += $this->o3->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_get_tables_args {
+ static $_TSPEC;
+
+ public $db_name = null;
+ public $pattern = null;
+
+ public function __construct($vals=null) {
      if (!isset(self::$_TSPEC)) {
        self::$_TSPEC = array(
          1 => array(
@@ -10250,12 +10793,13 @@ class ThriftHiveMetastore_append_partiti

  }

-class ThriftHiveMetastore_append_partition_by_name_args {
+class ThriftHiveMetastore_append_partition_with_environment_context_args {
    static $_TSPEC;

    public $db_name = null;
    public $tbl_name = null;
- public $part_name = null;
+ public $part_vals = null;
+ public $environment_context = null;

    public function __construct($vals=null) {
      if (!isset(self::$_TSPEC)) {
@@ -10269,8 +10813,17 @@ class ThriftHiveMetastore_append_partiti
            'type' => TType::STRING,
            ),
          3 => array(
- 'var' => 'part_name',
- 'type' => TType::STRING,
+ 'var' => 'part_vals',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'environment_context',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\EnvironmentContext',
            ),
          );
      }
@@ -10281,8 +10834,304 @@ class ThriftHiveMetastore_append_partiti
        if (isset($vals['tbl_name'])) {
          $this->tbl_name = $vals['tbl_name'];
        }
- if (isset($vals['part_name'])) {
- $this->part_name = $vals['part_name'];
+ if (isset($vals['part_vals'])) {
+ $this->part_vals = $vals['part_vals'];
+ }
+ if (isset($vals['environment_context'])) {
+ $this->environment_context = $vals['environment_context'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_append_partition_with_environment_context_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::STRING) {
+ $xfer += $input->readString($this->db_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->tbl_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->part_vals = array();
+ $_size313 = 0;
+ $_etype316 = 0;
+ $xfer += $input->readListBegin($_etype316, $_size313);
+ for ($_i317 = 0; $_i317 < $_size313; ++$_i317)
+ {
+ $elem318 = null;
+ $xfer += $input->readString($elem318);
+ $this->part_vals []= $elem318;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRUCT) {
+ $this->environment_context = new \metastore\EnvironmentContext();
+ $xfer += $this->environment_context->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_append_partition_with_environment_context_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('part_vals', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->part_vals));
+ {
+ foreach ($this->part_vals as $iter319)
+ {
+ $xfer += $output->writeString($iter319);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->environment_context !== null) {
+ if (!is_object($this->environment_context)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
+ $xfer += $this->environment_context->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_append_partition_with_environment_context_result {
+ static $_TSPEC;
+
+ public $success = null;
+ public $o1 = null;
+ public $o2 = null;
+ public $o3 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\Partition',
+ ),
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\InvalidObjectException',
+ ),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\AlreadyExistsException',
+ ),
+ 3 => array(
+ 'var' => 'o3',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o2'])) {
+ $this->o2 = $vals['o2'];
+ }
+ if (isset($vals['o3'])) {
+ $this->o3 = $vals['o3'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_append_partition_with_environment_context_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\InvalidObjectException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o2 = new \metastore\AlreadyExistsException();
+ $xfer += $this->o2->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->o3 = new \metastore\MetaException();
+ $xfer += $this->o3->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_with_environment_context_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o2 !== null) {
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
+ $xfer += $this->o2->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o3 !== null) {
+ $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
+ $xfer += $this->o3->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_append_partition_by_name_args {
+ static $_TSPEC;
+
+ public $db_name = null;
+ public $tbl_name = null;
+ public $part_name = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'db_name',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'tbl_name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'part_name',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['db_name'])) {
+ $this->db_name = $vals['db_name'];
+ }
+ if (isset($vals['tbl_name'])) {
+ $this->tbl_name = $vals['tbl_name'];
+ }
+ if (isset($vals['part_name'])) {
+ $this->part_name = $vals['part_name'];
        }
      }
    }
@@ -10321,8 +11170,863 @@ class ThriftHiveMetastore_append_partiti
            }
            break;
          case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->part_name);
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->part_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_append_partition_by_name_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_name !== null) {
+ $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
+ $xfer += $output->writeString($this->part_name);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_append_partition_by_name_result {
+ static $_TSPEC;
+
+ public $success = null;
+ public $o1 = null;
+ public $o2 = null;
+ public $o3 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\Partition',
+ ),
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\InvalidObjectException',
+ ),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\AlreadyExistsException',
+ ),
+ 3 => array(
+ 'var' => 'o3',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o2'])) {
+ $this->o2 = $vals['o2'];
+ }
+ if (isset($vals['o3'])) {
+ $this->o3 = $vals['o3'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_append_partition_by_name_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\InvalidObjectException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o2 = new \metastore\AlreadyExistsException();
+ $xfer += $this->o2->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->o3 = new \metastore\MetaException();
+ $xfer += $this->o3->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o2 !== null) {
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
+ $xfer += $this->o2->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o3 !== null) {
+ $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
+ $xfer += $this->o3->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args {
+ static $_TSPEC;
+
+ public $db_name = null;
+ public $tbl_name = null;
+ public $part_name = null;
+ public $environment_context = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'db_name',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'tbl_name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'part_name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'environment_context',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\EnvironmentContext',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['db_name'])) {
+ $this->db_name = $vals['db_name'];
+ }
+ if (isset($vals['tbl_name'])) {
+ $this->tbl_name = $vals['tbl_name'];
+ }
+ if (isset($vals['part_name'])) {
+ $this->part_name = $vals['part_name'];
+ }
+ if (isset($vals['environment_context'])) {
+ $this->environment_context = $vals['environment_context'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_append_partition_by_name_with_environment_context_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::STRING) {
+ $xfer += $input->readString($this->db_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->tbl_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->part_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRUCT) {
+ $this->environment_context = new \metastore\EnvironmentContext();
+ $xfer += $this->environment_context->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_append_partition_by_name_with_environment_context_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_name !== null) {
+ $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
+ $xfer += $output->writeString($this->part_name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->environment_context !== null) {
+ if (!is_object($this->environment_context)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
+ $xfer += $this->environment_context->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result {
+ static $_TSPEC;
+
+ public $success = null;
+ public $o1 = null;
+ public $o2 = null;
+ public $o3 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\Partition',
+ ),
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\InvalidObjectException',
+ ),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\AlreadyExistsException',
+ ),
+ 3 => array(
+ 'var' => 'o3',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o2'])) {
+ $this->o2 = $vals['o2'];
+ }
+ if (isset($vals['o3'])) {
+ $this->o3 = $vals['o3'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_append_partition_by_name_with_environment_context_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\InvalidObjectException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o2 = new \metastore\AlreadyExistsException();
+ $xfer += $this->o2->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRUCT) {
+ $this->o3 = new \metastore\MetaException();
+ $xfer += $this->o3->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_with_environment_context_result');
+ if ($this->success !== null) {
+ if (!is_object($this->success)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+ $xfer += $this->success->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o2 !== null) {
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
+ $xfer += $this->o2->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o3 !== null) {
+ $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
+ $xfer += $this->o3->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_drop_partition_args {
+ static $_TSPEC;
+
+ public $db_name = null;
+ public $tbl_name = null;
+ public $part_vals = null;
+ public $deleteData = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'db_name',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'tbl_name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'part_vals',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'deleteData',
+ 'type' => TType::BOOL,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['db_name'])) {
+ $this->db_name = $vals['db_name'];
+ }
+ if (isset($vals['tbl_name'])) {
+ $this->tbl_name = $vals['tbl_name'];
+ }
+ if (isset($vals['part_vals'])) {
+ $this->part_vals = $vals['part_vals'];
+ }
+ if (isset($vals['deleteData'])) {
+ $this->deleteData = $vals['deleteData'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_drop_partition_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::STRING) {
+ $xfer += $input->readString($this->db_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->tbl_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->part_vals = array();
+ $_size320 = 0;
+ $_etype323 = 0;
+ $xfer += $input->readListBegin($_etype323, $_size320);
+ for ($_i324 = 0; $_i324 < $_size320; ++$_i324)
+ {
+ $elem325 = null;
+ $xfer += $input->readString($elem325);
+ $this->part_vals []= $elem325;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->deleteData);
+ } 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_drop_partition_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('part_vals', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->part_vals));
+ {
+ foreach ($this->part_vals as $iter326)
+ {
+ $xfer += $output->writeString($iter326);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->deleteData !== null) {
+ $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 4);
+ $xfer += $output->writeBool($this->deleteData);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_drop_partition_result {
+ static $_TSPEC;
+
+ public $success = null;
+ public $o1 = null;
+ public $o2 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\NoSuchObjectException',
+ ),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\MetaException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['o1'])) {
+ $this->o1 = $vals['o1'];
+ }
+ if (isset($vals['o2'])) {
+ $this->o2 = $vals['o2'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_drop_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::BOOL) {
+ $xfer += $input->readBool($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->o1 = new \metastore\NoSuchObjectException();
+ $xfer += $this->o1->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->o2 = new \metastore\MetaException();
+ $xfer += $this->o2->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_drop_partition_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $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();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class ThriftHiveMetastore_drop_partition_with_environment_context_args {
+ static $_TSPEC;
+
+ public $db_name = null;
+ public $tbl_name = null;
+ public $part_vals = null;
+ public $deleteData = null;
+ public $environment_context = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'db_name',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'tbl_name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'part_vals',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'deleteData',
+ 'type' => TType::BOOL,
+ ),
+ 5 => array(
+ 'var' => 'environment_context',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\EnvironmentContext',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['db_name'])) {
+ $this->db_name = $vals['db_name'];
+ }
+ if (isset($vals['tbl_name'])) {
+ $this->tbl_name = $vals['tbl_name'];
+ }
+ if (isset($vals['part_vals'])) {
+ $this->part_vals = $vals['part_vals'];
+ }
+ if (isset($vals['deleteData'])) {
+ $this->deleteData = $vals['deleteData'];
+ }
+ if (isset($vals['environment_context'])) {
+ $this->environment_context = $vals['environment_context'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_drop_partition_with_environment_context_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::STRING) {
+ $xfer += $input->readString($this->db_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->tbl_name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->part_vals = array();
+ $_size327 = 0;
+ $_etype330 = 0;
+ $xfer += $input->readListBegin($_etype330, $_size327);
+ for ($_i331 = 0; $_i331 < $_size327; ++$_i331)
+ {
+ $elem332 = null;
+ $xfer += $input->readString($elem332);
+ $this->part_vals []= $elem332;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->deleteData);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRUCT) {
+ $this->environment_context = new \metastore\EnvironmentContext();
+ $xfer += $this->environment_context->read($input);
            } else {
              $xfer += $input->skip($ftype);
            }
@@ -10339,7 +12043,7 @@ class ThriftHiveMetastore_append_partiti

    public function write($output) {
      $xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_args');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_args');
      if ($this->db_name !== null) {
        $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
        $xfer += $output->writeString($this->db_name);
@@ -10350,9 +12054,34 @@ class ThriftHiveMetastore_append_partiti
        $xfer += $output->writeString($this->tbl_name);
        $xfer += $output->writeFieldEnd();
      }
- if ($this->part_name !== null) {
- $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
- $xfer += $output->writeString($this->part_name);
+ if ($this->part_vals !== null) {
+ if (!is_array($this->part_vals)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->part_vals));
+ {
+ foreach ($this->part_vals as $iter333)
+ {
+ $xfer += $output->writeString($iter333);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->deleteData !== null) {
+ $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 4);
+ $xfer += $output->writeBool($this->deleteData);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->environment_context !== null) {
+ if (!is_object($this->environment_context)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 5);
+ $xfer += $this->environment_context->write($output);
        $xfer += $output->writeFieldEnd();
      }
      $xfer += $output->writeFieldStop();
@@ -10362,35 +12091,28 @@ class ThriftHiveMetastore_append_partiti

  }

-class ThriftHiveMetastore_append_partition_by_name_result {
+class ThriftHiveMetastore_drop_partition_with_environment_context_result {
    static $_TSPEC;

    public $success = null;
    public $o1 = null;
    public $o2 = null;
- public $o3 = null;

    public function __construct($vals=null) {
      if (!isset(self::$_TSPEC)) {
        self::$_TSPEC = array(
          0 => array(
            'var' => 'success',
- 'type' => TType::STRUCT,
- 'class' => '\metastore\Partition',
+ 'type' => TType::BOOL,
            ),
          1 => array(
            'var' => 'o1',
            'type' => TType::STRUCT,
- 'class' => '\metastore\InvalidObjectException',
+ 'class' => '\metastore\NoSuchObjectException',
            ),
          2 => array(
            'var' => 'o2',
            'type' => TType::STRUCT,
- 'class' => '\metastore\AlreadyExistsException',
- ),
- 3 => array(
- 'var' => 'o3',
- 'type' => TType::STRUCT,
            'class' => '\metastore\MetaException',
            ),
          );
@@ -10405,14 +12127,11 @@ class ThriftHiveMetastore_append_partiti
        if (isset($vals['o2'])) {
          $this->o2 = $vals['o2'];
        }
- if (isset($vals['o3'])) {
- $this->o3 = $vals['o3'];
- }
      }
    }

    public function getName() {
- return 'ThriftHiveMetastore_append_partition_by_name_result';
+ return 'ThriftHiveMetastore_drop_partition_with_environment_context_result';
    }

    public function read($input)
@@ -10431,16 +12150,15 @@ class ThriftHiveMetastore_append_partiti
        switch ($fid)
        {
          case 0:
- if ($ftype == TType::STRUCT) {
- $this->success = new \metastore\Partition();
- $xfer += $this->success->read($input);
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->success);
            } else {
              $xfer += $input->skip($ftype);
            }
            break;
          case 1:
            if ($ftype == TType::STRUCT) {
- $this->o1 = new \metastore\InvalidObjectException();
+ $this->o1 = new \metastore\NoSuchObjectException();
              $xfer += $this->o1->read($input);
            } else {
              $xfer += $input->skip($ftype);
@@ -10448,20 +12166,12 @@ class ThriftHiveMetastore_append_partiti
            break;
          case 2:
            if ($ftype == TType::STRUCT) {
- $this->o2 = new \metastore\AlreadyExistsException();
+ $this->o2 = new \metastore\MetaException();
              $xfer += $this->o2->read($input);
            } else {
              $xfer += $input->skip($ftype);
            }
            break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->o3 = new \metastore\MetaException();
- $xfer += $this->o3->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
          default:
            $xfer += $input->skip($ftype);
            break;
@@ -10474,13 +12184,10 @@ class ThriftHiveMetastore_append_partiti

    public function write($output) {
      $xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_result');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_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->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
        $xfer += $output->writeFieldEnd();
      }
      if ($this->o1 !== null) {
@@ -10493,11 +12200,6 @@ class ThriftHiveMetastore_append_partiti
        $xfer += $this->o2->write($output);
        $xfer += $output->writeFieldEnd();
      }
- if ($this->o3 !== null) {
- $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
- $xfer += $this->o3->write($output);
- $xfer += $output->writeFieldEnd();
- }
      $xfer += $output->writeFieldStop();
      $xfer += $output->writeStructEnd();
      return $xfer;
@@ -10505,12 +12207,12 @@ class ThriftHiveMetastore_append_partiti

  }

-class ThriftHiveMetastore_drop_partition_args {
+class ThriftHiveMetastore_drop_partition_by_name_args {
    static $_TSPEC;

    public $db_name = null;
    public $tbl_name = null;
- public $part_vals = null;
+ public $part_name = null;
    public $deleteData = null;

    public function __construct($vals=null) {
@@ -10525,12 +12227,8 @@ class ThriftHiveMetastore_drop_partition
            'type' => TType::STRING,
            ),
          3 => array(
- 'var' => 'part_vals',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
+ 'var' => 'part_name',
+ 'type' => TType::STRING,
            ),
          4 => array(
            'var' => 'deleteData',
@@ -10545,8 +12243,8 @@ class ThriftHiveMetastore_drop_partition
        if (isset($vals['tbl_name'])) {
          $this->tbl_name = $vals['tbl_name'];
        }
- if (isset($vals['part_vals'])) {
- $this->part_vals = $vals['part_vals'];
+ if (isset($vals['part_name'])) {
+ $this->part_name = $vals['part_name'];
        }
        if (isset($vals['deleteData'])) {
          $this->deleteData = $vals['deleteData'];
@@ -10555,7 +12253,7 @@ class ThriftHiveMetastore_drop_partition
    }

    public function getName() {
- return 'ThriftHiveMetastore_drop_partition_args';
+ return 'ThriftHiveMetastore_drop_partition_by_name_args';
    }

    public function read($input)
@@ -10588,18 +12286,8 @@ class ThriftHiveMetastore_drop_partition
            }
            break;
          case 3:
- if ($ftype == TType::LST) {
- $this->part_vals = array();
- $_size313 = 0;
- $_etype316 = 0;
- $xfer += $input->readListBegin($_etype316, $_size313);
- for ($_i317 = 0; $_i317 < $_size313; ++$_i317)
- {
- $elem318 = null;
- $xfer += $input->readString($elem318);
- $this->part_vals []= $elem318;
- }
- $xfer += $input->readListEnd();
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->part_name);
            } else {
              $xfer += $input->skip($ftype);
            }
@@ -10623,7 +12311,7 @@ class ThriftHiveMetastore_drop_partition

    public function write($output) {
      $xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_args');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_args');
      if ($this->db_name !== null) {
        $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
        $xfer += $output->writeString($this->db_name);
@@ -10634,21 +12322,9 @@ class ThriftHiveMetastore_drop_partition
        $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('part_vals', TType::LST, 3);
- {
- $output->writeListBegin(TType::STRING, count($this->part_vals));
- {
- foreach ($this->part_vals as $iter319)
- {
- $xfer += $output->writeString($iter319);
- }
- }
- $output->writeListEnd();
- }
+ if ($this->part_name !== null) {
+ $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
+ $xfer += $output->writeString($this->part_name);
        $xfer += $output->writeFieldEnd();
      }
      if ($this->deleteData !== null) {
@@ -10663,7 +12339,7 @@ class ThriftHiveMetastore_drop_partition

  }

-class ThriftHiveMetastore_drop_partition_result {
+class ThriftHiveMetastore_drop_partition_by_name_result {
    static $_TSPEC;

    public $success = null;
@@ -10703,7 +12379,7 @@ class ThriftHiveMetastore_drop_partition
    }

    public function getName() {
- return 'ThriftHiveMetastore_drop_partition_result';
+ return 'ThriftHiveMetastore_drop_partition_by_name_result';
    }

    public function read($input)
@@ -10756,7 +12432,7 @@ class ThriftHiveMetastore_drop_partition

    public function write($output) {
      $xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_result');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_result');
      if ($this->success !== null) {
        $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
        $xfer += $output->writeBool($this->success);
@@ -10779,13 +12455,14 @@ class ThriftHiveMetastore_drop_partition

  }

-class ThriftHiveMetastore_drop_partition_by_name_args {
+class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args {
    static $_TSPEC;

    public $db_name = null;
    public $tbl_name = null;
    public $part_name = null;
    public $deleteData = null;
+ public $environment_context = null;

    public function __construct($vals=null) {
      if (!isset(self::$_TSPEC)) {
@@ -10806,6 +12483,11 @@ class ThriftHiveMetastore_drop_partition
            'var' => 'deleteData',
            'type' => TType::BOOL,
            ),
+ 5 => array(
+ 'var' => 'environment_context',
+ 'type' => TType::STRUCT,
+ 'class' => '\metastore\EnvironmentContext',
+ ),
          );
      }
      if (is_array($vals)) {
@@ -10821,11 +12503,14 @@ class ThriftHiveMetastore_drop_partition
        if (isset($vals['deleteData'])) {
          $this->deleteData = $vals['deleteData'];
        }
+ if (isset($vals['environment_context'])) {
+ $this->environment_context = $vals['environment_context'];
+ }
      }
    }

    public function getName() {
- return 'ThriftHiveMetastore_drop_partition_by_name_args';
+ return 'ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args';
    }

    public function read($input)
@@ -10871,6 +12556,14 @@ class ThriftHiveMetastore_drop_partition
              $xfer += $input->skip($ftype);
            }
            break;
+ case 5:
+ if ($ftype == TType::STRUCT) {
+ $this->environment_context = new \metastore\EnvironmentContext();
+ $xfer += $this->environment_context->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
          default:
            $xfer += $input->skip($ftype);
            break;
@@ -10883,7 +12576,7 @@ class ThriftHiveMetastore_drop_partition

    public function write($output) {
      $xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_args');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args');
      if ($this->db_name !== null) {
        $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
        $xfer += $output->writeString($this->db_name);
@@ -10904,6 +12597,14 @@ class ThriftHiveMetastore_drop_partition
        $xfer += $output->writeBool($this->deleteData);
        $xfer += $output->writeFieldEnd();
      }
+ if ($this->environment_context !== null) {
+ if (!is_object($this->environment_context)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 5);
+ $xfer += $this->environment_context->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
      $xfer += $output->writeFieldStop();
      $xfer += $output->writeStructEnd();
      return $xfer;
@@ -10911,7 +12612,7 @@ class ThriftHiveMetastore_drop_partition

  }

-class ThriftHiveMetastore_drop_partition_by_name_result {
+class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result {
    static $_TSPEC;

    public $success = null;
@@ -10951,7 +12652,7 @@ class ThriftHiveMetastore_drop_partition
    }

    public function getName() {
- return 'ThriftHiveMetastore_drop_partition_by_name_result';
+ return 'ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result';
    }

    public function read($input)
@@ -11004,7 +12705,7 @@ class ThriftHiveMetastore_drop_partition

    public function write($output) {
      $xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_result');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result');
      if ($this->success !== null) {
        $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
        $xfer += $output->writeBool($this->success);
@@ -11104,14 +12805,14 @@ class ThriftHiveMetastore_get_partition_
          case 3:
            if ($ftype == TType::LST) {
              $this->part_vals = array();
- $_size320 = 0;
- $_etype323 = 0;
- $xfer += $input->readListBegin($_etype323, $_size320);
- for ($_i324 = 0; $_i324 < $_size320; ++$_i324)
+ $_size334 = 0;
+ $_etype337 = 0;
+ $xfer += $input->readListBegin($_etype337, $_size334);
+ for ($_i338 = 0; $_i338 < $_size334; ++$_i338)
              {
- $elem325 = null;
- $xfer += $input->readString($elem325);
- $this->part_vals []= $elem325;
+ $elem339 = null;
+ $xfer += $input->readString($elem339);
+ $this->part_vals []= $elem339;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -11149,9 +12850,9 @@ class ThriftHiveMetastore_get_partition_
        {
          $output->writeListBegin(TType::STRING, count($this->part_vals));
          {
- foreach ($this->part_vals as $iter326)
+ foreach ($this->part_vals as $iter340)
            {
- $xfer += $output->writeString($iter326);
+ $xfer += $output->writeString($iter340);
            }
          }
          $output->writeListEnd();
@@ -11383,14 +13084,14 @@ class ThriftHiveMetastore_get_partition_
          case 3:
            if ($ftype == TType::LST) {
              $this->part_vals = array();
- $_size327 = 0;
- $_etype330 = 0;
- $xfer += $input->readListBegin($_etype330, $_size327);
- for ($_i331 = 0; $_i331 < $_size327; ++$_i331)
+ $_size341 = 0;
+ $_etype344 = 0;
+ $xfer += $input->readListBegin($_etype344, $_size341);
+ for ($_i345 = 0; $_i345 < $_size341; ++$_i345)
              {
- $elem332 = null;
- $xfer += $input->readString($elem332);
- $this->part_vals []= $elem332;
+ $elem346 = null;
+ $xfer += $input->readString($elem346);
+ $this->part_vals []= $elem346;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -11407,14 +13108,14 @@ class ThriftHiveMetastore_get_partition_
          case 5:
            if ($ftype == TType::LST) {
              $this->group_names = array();
- $_size333 = 0;
- $_etype336 = 0;
- $xfer += $input->readListBegin($_etype336, $_size333);
- for ($_i337 = 0; $_i337 < $_size333; ++$_i337)
+ $_size347 = 0;
+ $_etype350 = 0;
+ $xfer += $input->readListBegin($_etype350, $_size347);
+ for ($_i351 = 0; $_i351 < $_size347; ++$_i351)
              {
- $elem338 = null;
- $xfer += $input->readString($elem338);
- $this->group_names []= $elem338;
+ $elem352 = null;
+ $xfer += $input->readString($elem352);
+ $this->group_names []= $elem352;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -11452,9 +13153,9 @@ class ThriftHiveMetastore_get_partition_
        {
          $output->writeListBegin(TType::STRING, count($this->part_vals));
          {
- foreach ($this->part_vals as $iter339)
+ foreach ($this->part_vals as $iter353)
            {
- $xfer += $output->writeString($iter339);
+ $xfer += $output->writeString($iter353);
            }
          }
          $output->writeListEnd();
@@ -11474,9 +13175,9 @@ class ThriftHiveMetastore_get_partition_
        {
          $output->writeListBegin(TType::STRING, count($this->group_names));
          {
- foreach ($this->group_names as $iter340)
+ foreach ($this->group_names as $iter354)
            {
- $xfer += $output->writeString($iter340);
+ $xfer += $output->writeString($iter354);
            }
          }
          $output->writeListEnd();
@@ -12022,15 +13723,15 @@ class ThriftHiveMetastore_get_partitions
          case 0:
            if ($ftype == TType::LST) {
              $this->success = array();
- $_size341 = 0;
- $_etype344 = 0;
- $xfer += $input->readListBegin($_etype344, $_size341);
- for ($_i345 = 0; $_i345 < $_size341; ++$_i345)
+ $_size355 = 0;
+ $_etype358 = 0;
+ $xfer += $input->readListBegin($_etype358, $_size355);
+ for ($_i359 = 0; $_i359 < $_size355; ++$_i359)
              {
- $elem346 = null;
- $elem346 = new \metastore\Partition();
- $xfer += $elem346->read($input);
- $this->success []= $elem346;
+ $elem360 = null;
+ $elem360 = new \metastore\Partition();
+ $xfer += $elem360->read($input);
+ $this->success []= $elem360;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -12074,9 +13775,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRUCT, count($this->success));
          {
- foreach ($this->success as $iter347)
+ foreach ($this->success as $iter361)
            {
- $xfer += $iter347->write($output);
+ $xfer += $iter361->write($output);
            }
          }
          $output->writeListEnd();
@@ -12207,14 +13908,14 @@ class ThriftHiveMetastore_get_partitions
          case 5:
            if ($ftype == TType::LST) {
              $this->group_names = array();
- $_size348 = 0;
- $_etype351 = 0;
- $xfer += $input->readListBegin($_etype351, $_size348);
- for ($_i352 = 0; $_i352 < $_size348; ++$_i352)
+ $_size362 = 0;
+ $_etype365 = 0;
+ $xfer += $input->readListBegin($_etype365, $_size362);
+ for ($_i366 = 0; $_i366 < $_size362; ++$_i366)
              {
- $elem353 = null;
- $xfer += $input->readString($elem353);
- $this->group_names []= $elem353;
+ $elem367 = null;
+ $xfer += $input->readString($elem367);
+ $this->group_names []= $elem367;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -12262,9 +13963,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRING, count($this->group_names));
          {
- foreach ($this->group_names as $iter354)
+ foreach ($this->group_names as $iter368)
            {
- $xfer += $output->writeString($iter354);
+ $xfer += $output->writeString($iter368);
            }
          }
          $output->writeListEnd();
@@ -12344,15 +14045,15 @@ class ThriftHiveMetastore_get_partitions
          case 0:
            if ($ftype == TType::LST) {
              $this->success = array();
- $_size355 = 0;
- $_etype358 = 0;
- $xfer += $input->readListBegin($_etype358, $_size355);
- for ($_i359 = 0; $_i359 < $_size355; ++$_i359)
+ $_size369 = 0;
+ $_etype372 = 0;
+ $xfer += $input->readListBegin($_etype372, $_size369);
+ for ($_i373 = 0; $_i373 < $_size369; ++$_i373)
              {
- $elem360 = null;
- $elem360 = new \metastore\Partition();
- $xfer += $elem360->read($input);
- $this->success []= $elem360;
+ $elem374 = null;
+ $elem374 = new \metastore\Partition();
+ $xfer += $elem374->read($input);
+ $this->success []= $elem374;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -12396,9 +14097,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRUCT, count($this->success));
          {
- foreach ($this->success as $iter361)
+ foreach ($this->success as $iter375)
            {
- $xfer += $iter361->write($output);
+ $xfer += $iter375->write($output);
            }
          }
          $output->writeListEnd();
@@ -12590,14 +14291,14 @@ class ThriftHiveMetastore_get_partition_
          case 0:
            if ($ftype == TType::LST) {
              $this->success = array();
- $_size362 = 0;
- $_etype365 = 0;
- $xfer += $input->readListBegin($_etype365, $_size362);
- for ($_i366 = 0; $_i366 < $_size362; ++$_i366)
+ $_size376 = 0;
+ $_etype379 = 0;
+ $xfer += $input->readListBegin($_etype379, $_size376);
+ for ($_i380 = 0; $_i380 < $_size376; ++$_i380)
              {
- $elem367 = null;
- $xfer += $input->readString($elem367);
- $this->success []= $elem367;
+ $elem381 = null;
+ $xfer += $input->readString($elem381);
+ $this->success []= $elem381;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -12633,9 +14334,9 @@ class ThriftHiveMetastore_get_partition_
        {
          $output->writeListBegin(TType::STRING, count($this->success));
          {
- foreach ($this->success as $iter368)
+ foreach ($this->success as $iter382)
            {
- $xfer += $output->writeString($iter368);
+ $xfer += $output->writeString($iter382);
            }
          }
          $output->writeListEnd();
@@ -12739,14 +14440,14 @@ class ThriftHiveMetastore_get_partitions
          case 3:
            if ($ftype == TType::LST) {
              $this->part_vals = array();
- $_size369 = 0;
- $_etype372 = 0;
- $xfer += $input->readListBegin($_etype372, $_size369);
- for ($_i373 = 0; $_i373 < $_size369; ++$_i373)
+ $_size383 = 0;
+ $_etype386 = 0;
+ $xfer += $input->readListBegin($_etype386, $_size383);
+ for ($_i387 = 0; $_i387 < $_size383; ++$_i387)
              {
- $elem374 = null;
- $xfer += $input->readString($elem374);
- $this->part_vals []= $elem374;
+ $elem388 = null;
+ $xfer += $input->readString($elem388);
+ $this->part_vals []= $elem388;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -12791,9 +14492,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRING, count($this->part_vals));
          {
- foreach ($this->part_vals as $iter375)
+ foreach ($this->part_vals as $iter389)
            {
- $xfer += $output->writeString($iter375);
+ $xfer += $output->writeString($iter389);
            }
          }
          $output->writeListEnd();
@@ -12878,15 +14579,15 @@ class ThriftHiveMetastore_get_partitions
          case 0:
            if ($ftype == TType::LST) {
              $this->success = array();
- $_size376 = 0;
- $_etype379 = 0;
- $xfer += $input->readListBegin($_etype379, $_size376);
- for ($_i380 = 0; $_i380 < $_size376; ++$_i380)
+ $_size390 = 0;
+ $_etype393 = 0;
+ $xfer += $input->readListBegin($_etype393, $_size390);
+ for ($_i394 = 0; $_i394 < $_size390; ++$_i394)
              {
- $elem381 = null;
- $elem381 = new \metastore\Partition();
- $xfer += $elem381->read($input);
- $this->success []= $elem381;
+ $elem395 = null;
+ $elem395 = new \metastore\Partition();
+ $xfer += $elem395->read($input);
+ $this->success []= $elem395;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -12930,9 +14631,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRUCT, count($this->success));
          {
- foreach ($this->success as $iter382)
+ foreach ($this->success as $iter396)
            {
- $xfer += $iter382->write($output);
+ $xfer += $iter396->write($output);
            }
          }
          $output->writeListEnd();
@@ -13061,14 +14762,14 @@ class ThriftHiveMetastore_get_partitions
          case 3:
            if ($ftype == TType::LST) {
              $this->part_vals = array();
- $_size383 = 0;
- $_etype386 = 0;
- $xfer += $input->readListBegin($_etype386, $_size383);
- for ($_i387 = 0; $_i387 < $_size383; ++$_i387)
+ $_size397 = 0;
+ $_etype400 = 0;
+ $xfer += $input->readListBegin($_etype400, $_size397);
+ for ($_i401 = 0; $_i401 < $_size397; ++$_i401)
              {
- $elem388 = null;
- $xfer += $input->readString($elem388);
- $this->part_vals []= $elem388;
+ $elem402 = null;
+ $xfer += $input->readString($elem402);
+ $this->part_vals []= $elem402;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -13092,14 +14793,14 @@ class ThriftHiveMetastore_get_partitions
          case 6:
            if ($ftype == TType::LST) {
              $this->group_names = array();
- $_size389 = 0;
- $_etype392 = 0;
- $xfer += $input->readListBegin($_etype392, $_size389);
- for ($_i393 = 0; $_i393 < $_size389; ++$_i393)
+ $_size403 = 0;
+ $_etype406 = 0;
+ $xfer += $input->readListBegin($_etype406, $_size403);
+ for ($_i407 = 0; $_i407 < $_size403; ++$_i407)
              {
- $elem394 = null;
- $xfer += $input->readString($elem394);
- $this->group_names []= $elem394;
+ $elem408 = null;
+ $xfer += $input->readString($elem408);
+ $this->group_names []= $elem408;
              }
              $xfer += $input->readListEnd();
            } else {
@@ -13137,9 +14838,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRING, count($this->part_vals));
          {
- foreach ($this->part_vals as $iter395)
+ foreach ($this->part_vals as $iter409)
            {
- $xfer += $output->writeString($iter395);
+ $xfer += $output->writeString($iter409);
            }
          }
          $output->writeListEnd();
@@ -13164,9 +14865,9 @@ class ThriftHiveMetastore_get_partitions
        {
          $output->writeListBegin(TType::STRING, count($this->group_names));
          {
- foreach ($this->group_names as $iter396)
+ foreach ($this->group_names as $iter410)
            {

[... 724 lines stripped ...]

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 8 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedFeb 12, '13 at 6:53p
activeFeb 12, '13 at 6:53p
posts8
users1
websitehive.apache.org

1 user in discussion

Kevinwilfong: 8 posts

People

Translate

site design / logo © 2021 Grokbase