You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by na...@apache.org on 2010/09/16 19:09:43 UTC
svn commit: r997851 [5/12] - in /hadoop/hive/branches/branch-0.6: ./
eclipse-templates/ metastore/if/ metastore/src/gen-cpp/
metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/
metastore/src/gen-php/ metastore/src/gen-php/hive_metastore/ m...
Modified: hadoop/hive/branches/branch-0.6/metastore/src/gen-php/ThriftHiveMetastore.php
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/metastore/src/gen-php/ThriftHiveMetastore.php?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/metastore/src/gen-php/ThriftHiveMetastore.php (original)
+++ hadoop/hive/branches/branch-0.6/metastore/src/gen-php/ThriftHiveMetastore.php Thu Sep 16 17:09:41 2010
@@ -10,10 +10,11 @@ include_once $GLOBALS['THRIFT_ROOT'].'/p
include_once $GLOBALS['THRIFT_ROOT'].'/packages/fb303/FacebookService.php';
interface ThriftHiveMetastoreIf extends FacebookServiceIf {
- public function create_database($name, $description);
+ public function create_database($database);
public function get_database($name);
- public function drop_database($name);
- public function get_databases();
+ public function drop_database($name, $deleteData);
+ public function get_databases($pattern);
+ public function get_all_databases();
public function get_type($name);
public function create_type($type);
public function drop_type($type);
@@ -23,6 +24,7 @@ interface ThriftHiveMetastoreIf extends
public function create_table($tbl);
public function drop_table($dbname, $name, $deleteData);
public function get_tables($db_name, $pattern);
+ public function get_all_tables($db_name);
public function get_table($dbname, $tbl_name);
public function alter_table($dbname, $tbl_name, $new_tbl);
public function add_partition($new_part);
@@ -47,17 +49,16 @@ class ThriftHiveMetastoreClient extends
parent::__construct($input, $output);
}
- public function create_database($name, $description)
+ public function create_database($database)
{
- $this->send_create_database($name, $description);
- return $this->recv_create_database();
+ $this->send_create_database($database);
+ $this->recv_create_database();
}
- public function send_create_database($name, $description)
+ public function send_create_database($database)
{
$args = new metastore_ThriftHiveMetastore_create_database_args();
- $args->name = $name;
- $args->description = $description;
+ $args->database = $database;
$bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -93,16 +94,16 @@ class ThriftHiveMetastoreClient extends
$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("create_database failed: unknown result");
+ if ($result->o3 !== null) {
+ throw $result->o3;
+ }
+ return;
}
public function get_database($name)
@@ -162,16 +163,17 @@ class ThriftHiveMetastoreClient extends
throw new Exception("get_database failed: unknown result");
}
- public function drop_database($name)
+ public function drop_database($name, $deleteData)
{
- $this->send_drop_database($name);
- return $this->recv_drop_database();
+ $this->send_drop_database($name, $deleteData);
+ $this->recv_drop_database();
}
- public function send_drop_database($name)
+ public function send_drop_database($name, $deleteData)
{
$args = new metastore_ThriftHiveMetastore_drop_database_args();
$args->name = $name;
+ $args->deleteData = $deleteData;
$bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -207,24 +209,28 @@ class ThriftHiveMetastoreClient extends
$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_database failed: unknown result");
+ if ($result->o3 !== null) {
+ throw $result->o3;
+ }
+ return;
}
- public function get_databases()
+ public function get_databases($pattern)
{
- $this->send_get_databases();
+ $this->send_get_databases($pattern);
return $this->recv_get_databases();
}
- public function send_get_databases()
+ public function send_get_databases($pattern)
{
$args = new metastore_ThriftHiveMetastore_get_databases_args();
+ $args->pattern = $pattern;
$bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -269,6 +275,59 @@ class ThriftHiveMetastoreClient extends
throw new Exception("get_databases failed: unknown result");
}
+ public function get_all_databases()
+ {
+ $this->send_get_all_databases();
+ return $this->recv_get_all_databases();
+ }
+
+ public function send_get_all_databases()
+ {
+ $args = new metastore_ThriftHiveMetastore_get_all_databases_args();
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'get_all_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('get_all_databases', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_get_all_databases()
+ {
+ $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_get_all_databases_result', $this->input_->isStrictRead());
+ else
+ {
+ $rseqid = 0;
+ $fname = null;
+ $mtype = 0;
+
+ $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+ if ($mtype == TMessageType::EXCEPTION) {
+ $x = new TApplicationException();
+ $x->read($this->input_);
+ $this->input_->readMessageEnd();
+ throw $x;
+ }
+ $result = new metastore_ThriftHiveMetastore_get_all_databases_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
+ throw new Exception("get_all_databases failed: unknown result");
+ }
+
public function get_type($name)
{
$this->send_get_type($name);
@@ -317,6 +376,9 @@ class ThriftHiveMetastoreClient extends
if ($result->success !== null) {
return $result->success;
}
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
if ($result->o2 !== null) {
throw $result->o2;
}
@@ -431,6 +493,9 @@ class ThriftHiveMetastoreClient extends
if ($result->success !== null) {
return $result->success;
}
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
if ($result->o2 !== null) {
throw $result->o2;
}
@@ -784,6 +849,60 @@ class ThriftHiveMetastoreClient extends
throw new Exception("get_tables failed: unknown result");
}
+ public function get_all_tables($db_name)
+ {
+ $this->send_get_all_tables($db_name);
+ return $this->recv_get_all_tables();
+ }
+
+ public function send_get_all_tables($db_name)
+ {
+ $args = new metastore_ThriftHiveMetastore_get_all_tables_args();
+ $args->db_name = $db_name;
+ $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'get_all_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('get_all_tables', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_get_all_tables()
+ {
+ $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_get_all_tables_result', $this->input_->isStrictRead());
+ else
+ {
+ $rseqid = 0;
+ $fname = null;
+ $mtype = 0;
+
+ $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+ if ($mtype == TMessageType::EXCEPTION) {
+ $x = new TApplicationException();
+ $x->read($this->input_);
+ $this->input_->readMessageEnd();
+ throw $x;
+ }
+ $result = new metastore_ThriftHiveMetastore_get_all_tables_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->o1 !== null) {
+ throw $result->o1;
+ }
+ throw new Exception("get_all_tables failed: unknown result");
+ }
+
public function get_table($dbname, $tbl_name)
{
$this->send_get_table($dbname, $tbl_name);
@@ -1775,28 +1894,21 @@ class ThriftHiveMetastoreClient extends
class metastore_ThriftHiveMetastore_create_database_args {
static $_TSPEC;
- public $name = null;
- public $description = null;
+ public $database = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
1 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'description',
- 'type' => TType::STRING,
+ 'var' => 'database',
+ 'type' => TType::STRUCT,
+ 'class' => 'metastore_Database',
),
);
}
if (is_array($vals)) {
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['description'])) {
- $this->description = $vals['description'];
+ if (isset($vals['database'])) {
+ $this->database = $vals['database'];
}
}
}
@@ -1821,15 +1933,9 @@ class metastore_ThriftHiveMetastore_crea
switch ($fid)
{
case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->description);
+ if ($ftype == TType::STRUCT) {
+ $this->database = new metastore_Database();
+ $xfer += $this->database->read($input);
} else {
$xfer += $input->skip($ftype);
}
@@ -1847,14 +1953,12 @@ class metastore_ThriftHiveMetastore_crea
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('ThriftHiveMetastore_create_database_args');
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->description !== null) {
- $xfer += $output->writeFieldBegin('description', TType::STRING, 2);
- $xfer += $output->writeString($this->description);
+ if ($this->database !== null) {
+ if (!is_object($this->database)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('database', TType::STRUCT, 1);
+ $xfer += $this->database->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -1867,17 +1971,13 @@ class metastore_ThriftHiveMetastore_crea
class metastore_ThriftHiveMetastore_create_database_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::BOOL,
- ),
1 => array(
'var' => 'o1',
'type' => TType::STRUCT,
@@ -1886,20 +1986,25 @@ class metastore_ThriftHiveMetastore_crea
2 => array(
'var' => 'o2',
'type' => TType::STRUCT,
+ 'class' => 'metastore_InvalidObjectException',
+ ),
+ 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'];
+ }
}
}
@@ -1922,13 +2027,6 @@ class metastore_ThriftHiveMetastore_crea
}
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_AlreadyExistsException();
@@ -1939,12 +2037,20 @@ class metastore_ThriftHiveMetastore_crea
break;
case 2:
if ($ftype == TType::STRUCT) {
- $this->o2 = new metastore_MetaException();
+ $this->o2 = new metastore_InvalidObjectException();
$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;
@@ -1958,11 +2064,6 @@ class metastore_ThriftHiveMetastore_crea
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('ThriftHiveMetastore_create_database_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);
@@ -1973,6 +2074,11 @@ class metastore_ThriftHiveMetastore_crea
$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;
@@ -2177,6 +2283,7 @@ class metastore_ThriftHiveMetastore_drop
static $_TSPEC;
public $name = null;
+ public $deleteData = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -2185,12 +2292,19 @@ class metastore_ThriftHiveMetastore_drop
'var' => 'name',
'type' => TType::STRING,
),
+ 2 => array(
+ 'var' => 'deleteData',
+ 'type' => TType::BOOL,
+ ),
);
}
if (is_array($vals)) {
if (isset($vals['name'])) {
$this->name = $vals['name'];
}
+ if (isset($vals['deleteData'])) {
+ $this->deleteData = $vals['deleteData'];
+ }
}
}
@@ -2220,6 +2334,13 @@ class metastore_ThriftHiveMetastore_drop
$xfer += $input->skip($ftype);
}
break;
+ case 2:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->deleteData);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -2238,6 +2359,11 @@ class metastore_ThriftHiveMetastore_drop
$xfer += $output->writeString($this->name);
$xfer += $output->writeFieldEnd();
}
+ if ($this->deleteData !== null) {
+ $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 2);
+ $xfer += $output->writeBool($this->deleteData);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -2248,30 +2374,40 @@ class metastore_ThriftHiveMetastore_drop
class metastore_ThriftHiveMetastore_drop_database_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::BOOL,
+ 1 => array(
+ 'var' => 'o1',
+ 'type' => TType::STRUCT,
+ 'class' => 'metastore_NoSuchObjectException',
),
2 => array(
'var' => 'o2',
'type' => TType::STRUCT,
+ 'class' => 'metastore_InvalidOperationException',
+ ),
+ 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'];
+ }
}
}
@@ -2294,21 +2430,30 @@ class metastore_ThriftHiveMetastore_drop
}
switch ($fid)
{
- case 0:
- if ($ftype == TType::BOOL) {
- $xfer += $input->readBool($this->success);
+ 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();
+ $this->o2 = new metastore_InvalidOperationException();
$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;
@@ -2322,9 +2467,9 @@ class metastore_ThriftHiveMetastore_drop
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_database_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
- $xfer += $output->writeBool($this->success);
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->o2 !== null) {
@@ -2332,6 +2477,11 @@ class metastore_ThriftHiveMetastore_drop
$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;
@@ -2342,13 +2492,23 @@ class metastore_ThriftHiveMetastore_drop
class metastore_ThriftHiveMetastore_get_databases_args {
static $_TSPEC;
+ public $pattern = null;
- public function __construct() {
+ public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'pattern',
+ 'type' => TType::STRING,
+ ),
);
}
- }
+ if (is_array($vals)) {
+ if (isset($vals['pattern'])) {
+ $this->pattern = $vals['pattern'];
+ }
+ }
+ }
public function getName() {
return 'ThriftHiveMetastore_get_databases_args';
@@ -2369,6 +2529,13 @@ class metastore_ThriftHiveMetastore_get_
}
switch ($fid)
{
+ case 1:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->pattern);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -2382,6 +2549,11 @@ class metastore_ThriftHiveMetastore_get_
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('ThriftHiveMetastore_get_databases_args');
+ if ($this->pattern !== null) {
+ $xfer += $output->writeFieldBegin('pattern', TType::STRING, 1);
+ $xfer += $output->writeString($this->pattern);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -2509,6 +2681,176 @@ class metastore_ThriftHiveMetastore_get_
}
+class metastore_ThriftHiveMetastore_get_all_databases_args {
+ static $_TSPEC;
+
+
+ public function __construct() {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ );
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_get_all_databases_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)
+ {
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_all_databases_args');
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class metastore_ThriftHiveMetastore_get_all_databases_result {
+ static $_TSPEC;
+
+ public $success = null;
+ public $o1 = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 1 => array(
+ 'var' => 'o1',
+ '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'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_get_all_databases_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();
+ $_size108 = 0;
+ $_etype111 = 0;
+ $xfer += $input->readListBegin($_etype111, $_size108);
+ for ($_i112 = 0; $_i112 < $_size108; ++$_i112)
+ {
+ $elem113 = null;
+ $xfer += $input->readString($elem113);
+ $this->success []= $elem113;
+ }
+ $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;
+ default:
+ $xfer += $input->skip($ftype);
+ break;
+ }
+ $xfer += $input->readFieldEnd();
+ }
+ $xfer += $input->readStructEnd();
+ return $xfer;
+ }
+
+ public function write($output) {
+ $xfer = 0;
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_all_databases_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::STRING, count($this->success));
+ {
+ foreach ($this->success as $iter114)
+ {
+ $xfer += $output->writeString($iter114);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->o1 !== null) {
+ $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
+ $xfer += $this->o1->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
class metastore_ThriftHiveMetastore_get_type_args {
static $_TSPEC;
@@ -2585,6 +2927,7 @@ class metastore_ThriftHiveMetastore_get_
static $_TSPEC;
public $success = null;
+ public $o1 = null;
public $o2 = null;
public function __construct($vals=null) {
@@ -2596,16 +2939,24 @@ class metastore_ThriftHiveMetastore_get_
'class' => 'metastore_Type',
),
1 => array(
- 'var' => 'o2',
+ 'var' => 'o1',
'type' => TType::STRUCT,
'class' => 'metastore_MetaException',
),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => 'metastore_NoSuchObjectException',
+ ),
);
}
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'];
}
@@ -2641,7 +2992,15 @@ class metastore_ThriftHiveMetastore_get_
break;
case 1:
if ($ftype == TType::STRUCT) {
- $this->o2 = new metastore_MetaException();
+ $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);
@@ -2668,8 +3027,13 @@ class metastore_ThriftHiveMetastore_get_
$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, 1);
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
$xfer += $this->o2->write($output);
$xfer += $output->writeFieldEnd();
}
@@ -2971,6 +3335,7 @@ class metastore_ThriftHiveMetastore_drop
static $_TSPEC;
public $success = null;
+ public $o1 = null;
public $o2 = null;
public function __construct($vals=null) {
@@ -2981,16 +3346,24 @@ class metastore_ThriftHiveMetastore_drop
'type' => TType::BOOL,
),
1 => array(
- 'var' => 'o2',
+ 'var' => 'o1',
'type' => TType::STRUCT,
'class' => 'metastore_MetaException',
),
+ 2 => array(
+ 'var' => 'o2',
+ 'type' => TType::STRUCT,
+ 'class' => 'metastore_NoSuchObjectException',
+ ),
);
}
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'];
}
@@ -3025,7 +3398,15 @@ class metastore_ThriftHiveMetastore_drop
break;
case 1:
if ($ftype == TType::STRUCT) {
- $this->o2 = new metastore_MetaException();
+ $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);
@@ -3049,8 +3430,13 @@ class metastore_ThriftHiveMetastore_drop
$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, 1);
+ $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2);
$xfer += $this->o2->write($output);
$xfer += $output->writeFieldEnd();
}
@@ -3194,18 +3580,18 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size108 = 0;
- $_ktype109 = 0;
- $_vtype110 = 0;
- $xfer += $input->readMapBegin($_ktype109, $_vtype110, $_size108);
- for ($_i112 = 0; $_i112 < $_size108; ++$_i112)
+ $_size115 = 0;
+ $_ktype116 = 0;
+ $_vtype117 = 0;
+ $xfer += $input->readMapBegin($_ktype116, $_vtype117, $_size115);
+ for ($_i119 = 0; $_i119 < $_size115; ++$_i119)
{
- $key113 = '';
- $val114 = new metastore_Type();
- $xfer += $input->readString($key113);
- $val114 = new metastore_Type();
- $xfer += $val114->read($input);
- $this->success[$key113] = $val114;
+ $key120 = '';
+ $val121 = new metastore_Type();
+ $xfer += $input->readString($key120);
+ $val121 = new metastore_Type();
+ $xfer += $val121->read($input);
+ $this->success[$key120] = $val121;
}
$xfer += $input->readMapEnd();
} else {
@@ -3241,10 +3627,10 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success));
{
- foreach ($this->success as $kiter115 => $viter116)
+ foreach ($this->success as $kiter122 => $viter123)
{
- $xfer += $output->writeString($kiter115);
- $xfer += $viter116->write($output);
+ $xfer += $output->writeString($kiter122);
+ $xfer += $viter123->write($output);
}
}
$output->writeMapEnd();
@@ -3430,15 +3816,15 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size117 = 0;
- $_etype120 = 0;
- $xfer += $input->readListBegin($_etype120, $_size117);
- for ($_i121 = 0; $_i121 < $_size117; ++$_i121)
+ $_size124 = 0;
+ $_etype127 = 0;
+ $xfer += $input->readListBegin($_etype127, $_size124);
+ for ($_i128 = 0; $_i128 < $_size124; ++$_i128)
{
- $elem122 = null;
- $elem122 = new metastore_FieldSchema();
- $xfer += $elem122->read($input);
- $this->success []= $elem122;
+ $elem129 = null;
+ $elem129 = new metastore_FieldSchema();
+ $xfer += $elem129->read($input);
+ $this->success []= $elem129;
}
$xfer += $input->readListEnd();
} else {
@@ -3490,9 +3876,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter123)
+ foreach ($this->success as $iter130)
{
- $xfer += $iter123->write($output);
+ $xfer += $iter130->write($output);
}
}
$output->writeListEnd();
@@ -3688,15 +4074,15 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size124 = 0;
- $_etype127 = 0;
- $xfer += $input->readListBegin($_etype127, $_size124);
- for ($_i128 = 0; $_i128 < $_size124; ++$_i128)
+ $_size131 = 0;
+ $_etype134 = 0;
+ $xfer += $input->readListBegin($_etype134, $_size131);
+ for ($_i135 = 0; $_i135 < $_size131; ++$_i135)
{
- $elem129 = null;
- $elem129 = new metastore_FieldSchema();
- $xfer += $elem129->read($input);
- $this->success []= $elem129;
+ $elem136 = null;
+ $elem136 = new metastore_FieldSchema();
+ $xfer += $elem136->read($input);
+ $this->success []= $elem136;
}
$xfer += $input->readListEnd();
} else {
@@ -3748,9 +4134,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter130)
+ foreach ($this->success as $iter137)
{
- $xfer += $iter130->write($output);
+ $xfer += $iter137->write($output);
}
}
$output->writeListEnd();
@@ -4096,9 +4482,197 @@ class metastore_ThriftHiveMetastore_drop
$xfer += $output->writeString($this->name);
$xfer += $output->writeFieldEnd();
}
- if ($this->deleteData !== null) {
- $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 3);
- $xfer += $output->writeBool($this->deleteData);
+ if ($this->deleteData !== null) {
+ $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 3);
+ $xfer += $output->writeBool($this->deleteData);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class metastore_ThriftHiveMetastore_drop_table_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_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_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 metastore_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(
+ 'var' => 'db_name',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'pattern',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['db_name'])) {
+ $this->db_name = $vals['db_name'];
+ }
+ if (isset($vals['pattern'])) {
+ $this->pattern = $vals['pattern'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'ThriftHiveMetastore_get_tables_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->pattern);
+ } 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_get_tables_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->pattern !== null) {
+ $xfer += $output->writeFieldBegin('pattern', TType::STRING, 2);
+ $xfer += $output->writeString($this->pattern);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
@@ -4108,39 +4682,42 @@ class metastore_ThriftHiveMetastore_drop
}
-class metastore_ThriftHiveMetastore_drop_table_result {
+class metastore_ThriftHiveMetastore_get_tables_result {
static $_TSPEC;
+ public $success = null;
public $o1 = null;
- public $o3 = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
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['success'])) {
+ $this->success = $vals['success'];
+ }
if (isset($vals['o1'])) {
$this->o1 = $vals['o1'];
}
- if (isset($vals['o3'])) {
- $this->o3 = $vals['o3'];
- }
}
}
public function getName() {
- return 'ThriftHiveMetastore_drop_table_result';
+ return 'ThriftHiveMetastore_get_tables_result';
}
public function read($input)
@@ -4158,18 +4735,27 @@ class metastore_ThriftHiveMetastore_drop
}
switch ($fid)
{
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->o1 = new metastore_NoSuchObjectException();
- $xfer += $this->o1->read($input);
+ case 0:
+ if ($ftype == TType::LST) {
+ $this->success = array();
+ $_size138 = 0;
+ $_etype141 = 0;
+ $xfer += $input->readListBegin($_etype141, $_size138);
+ for ($_i142 = 0; $_i142 < $_size138; ++$_i142)
+ {
+ $elem143 = null;
+ $xfer += $input->readString($elem143);
+ $this->success []= $elem143;
+ }
+ $xfer += $input->readListEnd();
} else {
$xfer += $input->skip($ftype);
}
break;
- case 2:
+ case 1:
if ($ftype == TType::STRUCT) {
- $this->o3 = new metastore_MetaException();
- $xfer += $this->o3->read($input);
+ $this->o1 = new metastore_MetaException();
+ $xfer += $this->o1->read($input);
} else {
$xfer += $input->skip($ftype);
}
@@ -4186,17 +4772,29 @@ class metastore_ThriftHiveMetastore_drop
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_result');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_tables_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::STRING, count($this->success));
+ {
+ foreach ($this->success as $iter144)
+ {
+ $xfer += $output->writeString($iter144);
+ }
+ }
+ $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->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;
@@ -4204,11 +4802,10 @@ class metastore_ThriftHiveMetastore_drop
}
-class metastore_ThriftHiveMetastore_get_tables_args {
+class metastore_ThriftHiveMetastore_get_all_tables_args {
static $_TSPEC;
public $db_name = null;
- public $pattern = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -4217,24 +4814,17 @@ class metastore_ThriftHiveMetastore_get_
'var' => 'db_name',
'type' => TType::STRING,
),
- 2 => array(
- 'var' => 'pattern',
- 'type' => TType::STRING,
- ),
);
}
if (is_array($vals)) {
if (isset($vals['db_name'])) {
$this->db_name = $vals['db_name'];
}
- if (isset($vals['pattern'])) {
- $this->pattern = $vals['pattern'];
- }
}
}
public function getName() {
- return 'ThriftHiveMetastore_get_tables_args';
+ return 'ThriftHiveMetastore_get_all_tables_args';
}
public function read($input)
@@ -4259,13 +4849,6 @@ class metastore_ThriftHiveMetastore_get_
$xfer += $input->skip($ftype);
}
break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->pattern);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
default:
$xfer += $input->skip($ftype);
break;
@@ -4278,17 +4861,12 @@ class metastore_ThriftHiveMetastore_get_
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_tables_args');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_all_tables_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->pattern !== null) {
- $xfer += $output->writeFieldBegin('pattern', TType::STRING, 2);
- $xfer += $output->writeString($this->pattern);
- $xfer += $output->writeFieldEnd();
- }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -4296,7 +4874,7 @@ class metastore_ThriftHiveMetastore_get_
}
-class metastore_ThriftHiveMetastore_get_tables_result {
+class metastore_ThriftHiveMetastore_get_all_tables_result {
static $_TSPEC;
public $success = null;
@@ -4331,7 +4909,7 @@ class metastore_ThriftHiveMetastore_get_
}
public function getName() {
- return 'ThriftHiveMetastore_get_tables_result';
+ return 'ThriftHiveMetastore_get_all_tables_result';
}
public function read($input)
@@ -4352,14 +4930,14 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size131 = 0;
- $_etype134 = 0;
- $xfer += $input->readListBegin($_etype134, $_size131);
- for ($_i135 = 0; $_i135 < $_size131; ++$_i135)
+ $_size145 = 0;
+ $_etype148 = 0;
+ $xfer += $input->readListBegin($_etype148, $_size145);
+ for ($_i149 = 0; $_i149 < $_size145; ++$_i149)
{
- $elem136 = null;
- $xfer += $input->readString($elem136);
- $this->success []= $elem136;
+ $elem150 = null;
+ $xfer += $input->readString($elem150);
+ $this->success []= $elem150;
}
$xfer += $input->readListEnd();
} else {
@@ -4386,7 +4964,7 @@ class metastore_ThriftHiveMetastore_get_
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_tables_result');
+ $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_all_tables_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -4395,9 +4973,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter137)
+ foreach ($this->success as $iter151)
{
- $xfer += $output->writeString($iter137);
+ $xfer += $output->writeString($iter151);
}
}
$output->writeListEnd();
@@ -5139,14 +5717,14 @@ class metastore_ThriftHiveMetastore_appe
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size138 = 0;
- $_etype141 = 0;
- $xfer += $input->readListBegin($_etype141, $_size138);
- for ($_i142 = 0; $_i142 < $_size138; ++$_i142)
+ $_size152 = 0;
+ $_etype155 = 0;
+ $xfer += $input->readListBegin($_etype155, $_size152);
+ for ($_i156 = 0; $_i156 < $_size152; ++$_i156)
{
- $elem143 = null;
- $xfer += $input->readString($elem143);
- $this->part_vals []= $elem143;
+ $elem157 = null;
+ $xfer += $input->readString($elem157);
+ $this->part_vals []= $elem157;
}
$xfer += $input->readListEnd();
} else {
@@ -5184,9 +5762,9 @@ class metastore_ThriftHiveMetastore_appe
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter144)
+ foreach ($this->part_vals as $iter158)
{
- $xfer += $output->writeString($iter144);
+ $xfer += $output->writeString($iter158);
}
}
$output->writeListEnd();
@@ -5683,14 +6261,14 @@ class metastore_ThriftHiveMetastore_drop
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size145 = 0;
- $_etype148 = 0;
- $xfer += $input->readListBegin($_etype148, $_size145);
- for ($_i149 = 0; $_i149 < $_size145; ++$_i149)
+ $_size159 = 0;
+ $_etype162 = 0;
+ $xfer += $input->readListBegin($_etype162, $_size159);
+ for ($_i163 = 0; $_i163 < $_size159; ++$_i163)
{
- $elem150 = null;
- $xfer += $input->readString($elem150);
- $this->part_vals []= $elem150;
+ $elem164 = null;
+ $xfer += $input->readString($elem164);
+ $this->part_vals []= $elem164;
}
$xfer += $input->readListEnd();
} else {
@@ -5735,9 +6313,9 @@ class metastore_ThriftHiveMetastore_drop
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter151)
+ foreach ($this->part_vals as $iter165)
{
- $xfer += $output->writeString($iter151);
+ $xfer += $output->writeString($iter165);
}
}
$output->writeListEnd();
@@ -6197,14 +6775,14 @@ class metastore_ThriftHiveMetastore_get_
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size152 = 0;
- $_etype155 = 0;
- $xfer += $input->readListBegin($_etype155, $_size152);
- for ($_i156 = 0; $_i156 < $_size152; ++$_i156)
+ $_size166 = 0;
+ $_etype169 = 0;
+ $xfer += $input->readListBegin($_etype169, $_size166);
+ for ($_i170 = 0; $_i170 < $_size166; ++$_i170)
{
- $elem157 = null;
- $xfer += $input->readString($elem157);
- $this->part_vals []= $elem157;
+ $elem171 = null;
+ $xfer += $input->readString($elem171);
+ $this->part_vals []= $elem171;
}
$xfer += $input->readListEnd();
} else {
@@ -6242,9 +6820,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter158)
+ foreach ($this->part_vals as $iter172)
{
- $xfer += $output->writeString($iter158);
+ $xfer += $output->writeString($iter172);
}
}
$output->writeListEnd();
@@ -6790,15 +7368,15 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size159 = 0;
- $_etype162 = 0;
- $xfer += $input->readListBegin($_etype162, $_size159);
- for ($_i163 = 0; $_i163 < $_size159; ++$_i163)
+ $_size173 = 0;
+ $_etype176 = 0;
+ $xfer += $input->readListBegin($_etype176, $_size173);
+ for ($_i177 = 0; $_i177 < $_size173; ++$_i177)
{
- $elem164 = null;
- $elem164 = new metastore_Partition();
- $xfer += $elem164->read($input);
- $this->success []= $elem164;
+ $elem178 = null;
+ $elem178 = new metastore_Partition();
+ $xfer += $elem178->read($input);
+ $this->success []= $elem178;
}
$xfer += $input->readListEnd();
} else {
@@ -6842,9 +7420,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter165)
+ foreach ($this->success as $iter179)
{
- $xfer += $iter165->write($output);
+ $xfer += $iter179->write($output);
}
}
$output->writeListEnd();
@@ -7036,14 +7614,14 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size166 = 0;
- $_etype169 = 0;
- $xfer += $input->readListBegin($_etype169, $_size166);
- for ($_i170 = 0; $_i170 < $_size166; ++$_i170)
+ $_size180 = 0;
+ $_etype183 = 0;
+ $xfer += $input->readListBegin($_etype183, $_size180);
+ for ($_i184 = 0; $_i184 < $_size180; ++$_i184)
{
- $elem171 = null;
- $xfer += $input->readString($elem171);
- $this->success []= $elem171;
+ $elem185 = null;
+ $xfer += $input->readString($elem185);
+ $this->success []= $elem185;
}
$xfer += $input->readListEnd();
} else {
@@ -7079,9 +7657,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter172)
+ foreach ($this->success as $iter186)
{
- $xfer += $output->writeString($iter172);
+ $xfer += $output->writeString($iter186);
}
}
$output->writeListEnd();
@@ -7185,14 +7763,14 @@ class metastore_ThriftHiveMetastore_get_
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size173 = 0;
- $_etype176 = 0;
- $xfer += $input->readListBegin($_etype176, $_size173);
- for ($_i177 = 0; $_i177 < $_size173; ++$_i177)
+ $_size187 = 0;
+ $_etype190 = 0;
+ $xfer += $input->readListBegin($_etype190, $_size187);
+ for ($_i191 = 0; $_i191 < $_size187; ++$_i191)
{
- $elem178 = null;
- $xfer += $input->readString($elem178);
- $this->part_vals []= $elem178;
+ $elem192 = null;
+ $xfer += $input->readString($elem192);
+ $this->part_vals []= $elem192;
}
$xfer += $input->readListEnd();
} else {
@@ -7237,9 +7815,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter179)
+ foreach ($this->part_vals as $iter193)
{
- $xfer += $output->writeString($iter179);
+ $xfer += $output->writeString($iter193);
}
}
$output->writeListEnd();
@@ -7315,15 +7893,15 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size180 = 0;
- $_etype183 = 0;
- $xfer += $input->readListBegin($_etype183, $_size180);
- for ($_i184 = 0; $_i184 < $_size180; ++$_i184)
+ $_size194 = 0;
+ $_etype197 = 0;
+ $xfer += $input->readListBegin($_etype197, $_size194);
+ for ($_i198 = 0; $_i198 < $_size194; ++$_i198)
{
- $elem185 = null;
- $elem185 = new metastore_Partition();
- $xfer += $elem185->read($input);
- $this->success []= $elem185;
+ $elem199 = null;
+ $elem199 = new metastore_Partition();
+ $xfer += $elem199->read($input);
+ $this->success []= $elem199;
}
$xfer += $input->readListEnd();
} else {
@@ -7359,9 +7937,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRUCT, count($this->success));
{
- foreach ($this->success as $iter186)
+ foreach ($this->success as $iter200)
{
- $xfer += $iter186->write($output);
+ $xfer += $iter200->write($output);
}
}
$output->writeListEnd();
@@ -7465,14 +8043,14 @@ class metastore_ThriftHiveMetastore_get_
case 3:
if ($ftype == TType::LST) {
$this->part_vals = array();
- $_size187 = 0;
- $_etype190 = 0;
- $xfer += $input->readListBegin($_etype190, $_size187);
- for ($_i191 = 0; $_i191 < $_size187; ++$_i191)
+ $_size201 = 0;
+ $_etype204 = 0;
+ $xfer += $input->readListBegin($_etype204, $_size201);
+ for ($_i205 = 0; $_i205 < $_size201; ++$_i205)
{
- $elem192 = null;
- $xfer += $input->readString($elem192);
- $this->part_vals []= $elem192;
+ $elem206 = null;
+ $xfer += $input->readString($elem206);
+ $this->part_vals []= $elem206;
}
$xfer += $input->readListEnd();
} else {
@@ -7517,9 +8095,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRING, count($this->part_vals));
{
- foreach ($this->part_vals as $iter193)
+ foreach ($this->part_vals as $iter207)
{
- $xfer += $output->writeString($iter193);
+ $xfer += $output->writeString($iter207);
}
}
$output->writeListEnd();
@@ -7594,14 +8172,14 @@ class metastore_ThriftHiveMetastore_get_
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size194 = 0;
- $_etype197 = 0;
- $xfer += $input->readListBegin($_etype197, $_size194);
- for ($_i198 = 0; $_i198 < $_size194; ++$_i198)
+ $_size208 = 0;
+ $_etype211 = 0;
+ $xfer += $input->readListBegin($_etype211, $_size208);
+ for ($_i212 = 0; $_i212 < $_size208; ++$_i212)
{
- $elem199 = null;
- $xfer += $input->readString($elem199);
- $this->success []= $elem199;
+ $elem213 = null;
+ $xfer += $input->readString($elem213);
+ $this->success []= $elem213;
}
$xfer += $input->readListEnd();
} else {
@@ -7637,9 +8215,9 @@ class metastore_ThriftHiveMetastore_get_
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter200)
+ foreach ($this->success as $iter214)
{
- $xfer += $output->writeString($iter200);
+ $xfer += $output->writeString($iter214);
}
}
$output->writeListEnd();
@@ -8185,14 +8763,14 @@ class metastore_ThriftHiveMetastore_part
case 0:
if ($ftype == TType::LST) {
$this->success = array();
- $_size201 = 0;
- $_etype204 = 0;
- $xfer += $input->readListBegin($_etype204, $_size201);
- for ($_i205 = 0; $_i205 < $_size201; ++$_i205)
+ $_size215 = 0;
+ $_etype218 = 0;
+ $xfer += $input->readListBegin($_etype218, $_size215);
+ for ($_i219 = 0; $_i219 < $_size215; ++$_i219)
{
- $elem206 = null;
- $xfer += $input->readString($elem206);
- $this->success []= $elem206;
+ $elem220 = null;
+ $xfer += $input->readString($elem220);
+ $this->success []= $elem220;
}
$xfer += $input->readListEnd();
} else {
@@ -8228,9 +8806,9 @@ class metastore_ThriftHiveMetastore_part
{
$output->writeListBegin(TType::STRING, count($this->success));
{
- foreach ($this->success as $iter207)
+ foreach ($this->success as $iter221)
{
- $xfer += $output->writeString($iter207);
+ $xfer += $output->writeString($iter221);
}
}
$output->writeListEnd();
@@ -8381,17 +8959,17 @@ class metastore_ThriftHiveMetastore_part
case 0:
if ($ftype == TType::MAP) {
$this->success = array();
- $_size208 = 0;
- $_ktype209 = 0;
- $_vtype210 = 0;
- $xfer += $input->readMapBegin($_ktype209, $_vtype210, $_size208);
- for ($_i212 = 0; $_i212 < $_size208; ++$_i212)
+ $_size222 = 0;
+ $_ktype223 = 0;
+ $_vtype224 = 0;
+ $xfer += $input->readMapBegin($_ktype223, $_vtype224, $_size222);
+ for ($_i226 = 0; $_i226 < $_size222; ++$_i226)
{
- $key213 = '';
- $val214 = '';
- $xfer += $input->readString($key213);
- $xfer += $input->readString($val214);
- $this->success[$key213] = $val214;
+ $key227 = '';
+ $val228 = '';
+ $xfer += $input->readString($key227);
+ $xfer += $input->readString($val228);
+ $this->success[$key227] = $val228;
}
$xfer += $input->readMapEnd();
} else {
@@ -8427,10 +9005,10 @@ class metastore_ThriftHiveMetastore_part
{
$output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
{
- foreach ($this->success as $kiter215 => $viter216)
+ foreach ($this->success as $kiter229 => $viter230)
{
- $xfer += $output->writeString($kiter215);
- $xfer += $output->writeString($viter216);
+ $xfer += $output->writeString($kiter229);
+ $xfer += $output->writeString($viter230);
}
}
$output->writeMapEnd();