hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r697291 [5/31] - in /hadoop/core/trunk: ./ src/contrib/hive/cli/src/java/org/apache/hadoop/hive/cli/ src/contrib/hive/metastore/if/ src/contrib/hive/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ src/contrib/hive/metastore...
Date Fri, 19 Sep 2008 23:56:35 GMT
Modified: hadoop/core/trunk/src/contrib/hive/metastore/src/gen-php/ThriftHiveMetastore.php
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hive/metastore/src/gen-php/ThriftHiveMetastore.php?rev=697291&r1=697290&r2=697291&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hive/metastore/src/gen-php/ThriftHiveMetastore.php (original)
+++ hadoop/core/trunk/src/contrib/hive/metastore/src/gen-php/ThriftHiveMetastore.php Fri Sep 19 16:56:30 2008
@@ -10,7 +10,7 @@
 include_once $GLOBALS['THRIFT_ROOT'].'/packages/fb303/FacebookService.php';
 
 interface ThriftHiveMetastoreIf extends FacebookServiceIf {
-  public function create_database($name, $location_uri);
+  public function create_database($name, $description);
   public function get_database($name);
   public function drop_database($name);
   public function get_databases();
@@ -23,16 +23,13 @@
   public function drop_table($dbname, $name, $deleteData);
   public function get_tables($db_name, $pattern);
   public function get_table($dbname, $tbl_name);
-  public function set_table_parameters($dbname, $tbl_name, $params);
   public function alter_table($dbname, $tbl_name, $new_tbl);
-  public function truncate_table($db_name, $table_name, $partition);
-  public function cat($db_name, $table_name, $partition, $high);
   public function add_partition($new_part);
   public function append_partition($db_name, $tbl_name, $part_vals);
   public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData);
   public function get_partition($db_name, $tbl_name, $part_vals);
   public function get_partitions($db_name, $tbl_name, $max_parts);
-  public function set_partition_parameters($db_name, $tbl_name, $pname, $params);
+  public function get_partition_names($db_name, $tbl_name, $max_parts);
   public function alter_partitions($sd, $parts);
   public function create_index($index_def);
 }
@@ -42,17 +39,17 @@
     parent::__construct($input, $output);
   }
 
-  public function create_database($name, $location_uri)
+  public function create_database($name, $description)
   {
-    $this->send_create_database($name, $location_uri);
+    $this->send_create_database($name, $description);
     return $this->recv_create_database();
   }
 
-  public function send_create_database($name, $location_uri)
+  public function send_create_database($name, $description)
   {
-    $args = new ThriftHiveMetastore_create_database_args();
+    $args = new metastore_ThriftHiveMetastore_create_database_args();
     $args->name = $name;
-    $args->location_uri = $location_uri;
+    $args->description = $description;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
     {
@@ -70,7 +67,7 @@
   public function recv_create_database()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -84,7 +81,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_create_database_result();
+      $result = new metastore_ThriftHiveMetastore_create_database_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -108,7 +105,7 @@
 
   public function send_get_database($name)
   {
-    $args = new ThriftHiveMetastore_get_database_args();
+    $args = new metastore_ThriftHiveMetastore_get_database_args();
     $args->name = $name;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -127,7 +124,7 @@
   public function recv_get_database()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -141,7 +138,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_database_result();
+      $result = new metastore_ThriftHiveMetastore_get_database_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -165,7 +162,7 @@
 
   public function send_drop_database($name)
   {
-    $args = new ThriftHiveMetastore_drop_database_args();
+    $args = new metastore_ThriftHiveMetastore_drop_database_args();
     $args->name = $name;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -184,7 +181,7 @@
   public function recv_drop_database()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -198,7 +195,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_drop_database_result();
+      $result = new metastore_ThriftHiveMetastore_drop_database_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -219,7 +216,7 @@
 
   public function send_get_databases()
   {
-    $args = new ThriftHiveMetastore_get_databases_args();
+    $args = new metastore_ThriftHiveMetastore_get_databases_args();
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
     {
@@ -237,7 +234,7 @@
   public function recv_get_databases()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -251,7 +248,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_databases_result();
+      $result = new metastore_ThriftHiveMetastore_get_databases_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -272,7 +269,7 @@
 
   public function send_get_type($name)
   {
-    $args = new ThriftHiveMetastore_get_type_args();
+    $args = new metastore_ThriftHiveMetastore_get_type_args();
     $args->name = $name;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -291,7 +288,7 @@
   public function recv_get_type()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -305,7 +302,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_type_result();
+      $result = new metastore_ThriftHiveMetastore_get_type_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -326,7 +323,7 @@
 
   public function send_create_type($type)
   {
-    $args = new ThriftHiveMetastore_create_type_args();
+    $args = new metastore_ThriftHiveMetastore_create_type_args();
     $args->type = $type;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -345,7 +342,7 @@
   public function recv_create_type()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -359,7 +356,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_create_type_result();
+      $result = new metastore_ThriftHiveMetastore_create_type_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -386,7 +383,7 @@
 
   public function send_drop_type($type)
   {
-    $args = new ThriftHiveMetastore_drop_type_args();
+    $args = new metastore_ThriftHiveMetastore_drop_type_args();
     $args->type = $type;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -405,7 +402,7 @@
   public function recv_drop_type()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -419,7 +416,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_drop_type_result();
+      $result = new metastore_ThriftHiveMetastore_drop_type_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -440,7 +437,7 @@
 
   public function send_get_type_all($name)
   {
-    $args = new ThriftHiveMetastore_get_type_all_args();
+    $args = new metastore_ThriftHiveMetastore_get_type_all_args();
     $args->name = $name;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -459,7 +456,7 @@
   public function recv_get_type_all()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -473,7 +470,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_type_all_result();
+      $result = new metastore_ThriftHiveMetastore_get_type_all_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -494,7 +491,7 @@
 
   public function send_get_fields($db_name, $table_name)
   {
-    $args = new ThriftHiveMetastore_get_fields_args();
+    $args = new metastore_ThriftHiveMetastore_get_fields_args();
     $args->db_name = $db_name;
     $args->table_name = $table_name;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
@@ -514,7 +511,7 @@
   public function recv_get_fields()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -528,7 +525,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_fields_result();
+      $result = new metastore_ThriftHiveMetastore_get_fields_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -555,7 +552,7 @@
 
   public function send_create_table($tbl)
   {
-    $args = new ThriftHiveMetastore_create_table_args();
+    $args = new metastore_ThriftHiveMetastore_create_table_args();
     $args->tbl = $tbl;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -574,7 +571,7 @@
   public function recv_create_table()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -588,7 +585,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_create_table_result();
+      $result = new metastore_ThriftHiveMetastore_create_table_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -615,7 +612,7 @@
 
   public function send_drop_table($dbname, $name, $deleteData)
   {
-    $args = new ThriftHiveMetastore_drop_table_args();
+    $args = new metastore_ThriftHiveMetastore_drop_table_args();
     $args->dbname = $dbname;
     $args->name = $name;
     $args->deleteData = $deleteData;
@@ -636,7 +633,7 @@
   public function recv_drop_table()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -650,7 +647,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_drop_table_result();
+      $result = new metastore_ThriftHiveMetastore_drop_table_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -671,7 +668,7 @@
 
   public function send_get_tables($db_name, $pattern)
   {
-    $args = new ThriftHiveMetastore_get_tables_args();
+    $args = new metastore_ThriftHiveMetastore_get_tables_args();
     $args->db_name = $db_name;
     $args->pattern = $pattern;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
@@ -691,7 +688,7 @@
   public function recv_get_tables()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -705,7 +702,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_tables_result();
+      $result = new metastore_ThriftHiveMetastore_get_tables_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -732,7 +729,7 @@
 
   public function send_get_table($dbname, $tbl_name)
   {
-    $args = new ThriftHiveMetastore_get_table_args();
+    $args = new metastore_ThriftHiveMetastore_get_table_args();
     $args->dbname = $dbname;
     $args->tbl_name = $tbl_name;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
@@ -752,7 +749,7 @@
   public function recv_get_table()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -766,7 +763,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_table_result();
+      $result = new metastore_ThriftHiveMetastore_get_table_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -782,65 +779,6 @@
     throw new Exception("get_table failed: unknown result");
   }
 
-  public function set_table_parameters($dbname, $tbl_name, $params)
-  {
-    $this->send_set_table_parameters($dbname, $tbl_name, $params);
-    return $this->recv_set_table_parameters();
-  }
-
-  public function send_set_table_parameters($dbname, $tbl_name, $params)
-  {
-    $args = new ThriftHiveMetastore_set_table_parameters_args();
-    $args->dbname = $dbname;
-    $args->tbl_name = $tbl_name;
-    $args->params = $params;
-    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
-    if ($bin_accel)
-    {
-      thrift_protocol_write_binary($this->output_, 'set_table_parameters', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
-    }
-    else
-    {
-      $this->output_->writeMessageBegin('set_table_parameters', TMessageType::CALL, $this->seqid_);
-      $args->write($this->output_);
-      $this->output_->writeMessageEnd();
-      $this->output_->getTransport()->flush();
-    }
-  }
-
-  public function recv_set_table_parameters()
-  {
-    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_set_table_parameters_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 ThriftHiveMetastore_set_table_parameters_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("set_table_parameters failed: unknown result");
-  }
-
   public function alter_table($dbname, $tbl_name, $new_tbl)
   {
     $this->send_alter_table($dbname, $tbl_name, $new_tbl);
@@ -849,7 +787,7 @@
 
   public function send_alter_table($dbname, $tbl_name, $new_tbl)
   {
-    $args = new ThriftHiveMetastore_alter_table_args();
+    $args = new metastore_ThriftHiveMetastore_alter_table_args();
     $args->dbname = $dbname;
     $args->tbl_name = $tbl_name;
     $args->new_tbl = $new_tbl;
@@ -870,7 +808,7 @@
   public function recv_alter_table()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -884,7 +822,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_alter_table_result();
+      $result = new metastore_ThriftHiveMetastore_alter_table_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -897,128 +835,6 @@
     return;
   }
 
-  public function truncate_table($db_name, $table_name, $partition)
-  {
-    $this->send_truncate_table($db_name, $table_name, $partition);
-    $this->recv_truncate_table();
-  }
-
-  public function send_truncate_table($db_name, $table_name, $partition)
-  {
-    $args = new ThriftHiveMetastore_truncate_table_args();
-    $args->db_name = $db_name;
-    $args->table_name = $table_name;
-    $args->partition = $partition;
-    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
-    if ($bin_accel)
-    {
-      thrift_protocol_write_binary($this->output_, 'truncate_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
-    }
-    else
-    {
-      $this->output_->writeMessageBegin('truncate_table', TMessageType::CALL, $this->seqid_);
-      $args->write($this->output_);
-      $this->output_->writeMessageEnd();
-      $this->output_->getTransport()->flush();
-    }
-  }
-
-  public function recv_truncate_table()
-  {
-    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_truncate_table_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 ThriftHiveMetastore_truncate_table_result();
-      $result->read($this->input_);
-      $this->input_->readMessageEnd();
-    }
-    if ($result->ouch1 !== null) {
-      throw $result->ouch1;
-    }
-    if ($result->ouch2 !== null) {
-      throw $result->ouch2;
-    }
-    if ($result->ouch3 !== null) {
-      throw $result->ouch3;
-    }
-    return;
-  }
-
-  public function cat($db_name, $table_name, $partition, $high)
-  {
-    $this->send_cat($db_name, $table_name, $partition, $high);
-    return $this->recv_cat();
-  }
-
-  public function send_cat($db_name, $table_name, $partition, $high)
-  {
-    $args = new ThriftHiveMetastore_cat_args();
-    $args->db_name = $db_name;
-    $args->table_name = $table_name;
-    $args->partition = $partition;
-    $args->high = $high;
-    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
-    if ($bin_accel)
-    {
-      thrift_protocol_write_binary($this->output_, 'cat', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
-    }
-    else
-    {
-      $this->output_->writeMessageBegin('cat', TMessageType::CALL, $this->seqid_);
-      $args->write($this->output_);
-      $this->output_->writeMessageEnd();
-      $this->output_->getTransport()->flush();
-    }
-  }
-
-  public function recv_cat()
-  {
-    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_cat_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 ThriftHiveMetastore_cat_result();
-      $result->read($this->input_);
-      $this->input_->readMessageEnd();
-    }
-    if ($result->success !== null) {
-      return $result->success;
-    }
-    if ($result->ouch1 !== null) {
-      throw $result->ouch1;
-    }
-    if ($result->ouch2 !== null) {
-      throw $result->ouch2;
-    }
-    if ($result->ouch3 !== null) {
-      throw $result->ouch3;
-    }
-    throw new Exception("cat failed: unknown result");
-  }
-
   public function add_partition($new_part)
   {
     $this->send_add_partition($new_part);
@@ -1027,7 +843,7 @@
 
   public function send_add_partition($new_part)
   {
-    $args = new ThriftHiveMetastore_add_partition_args();
+    $args = new metastore_ThriftHiveMetastore_add_partition_args();
     $args->new_part = $new_part;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -1046,7 +862,7 @@
   public function recv_add_partition()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1060,7 +876,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_add_partition_result();
+      $result = new metastore_ThriftHiveMetastore_add_partition_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1087,7 +903,7 @@
 
   public function send_append_partition($db_name, $tbl_name, $part_vals)
   {
-    $args = new ThriftHiveMetastore_append_partition_args();
+    $args = new metastore_ThriftHiveMetastore_append_partition_args();
     $args->db_name = $db_name;
     $args->tbl_name = $tbl_name;
     $args->part_vals = $part_vals;
@@ -1108,7 +924,7 @@
   public function recv_append_partition()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1122,7 +938,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_append_partition_result();
+      $result = new metastore_ThriftHiveMetastore_append_partition_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1149,7 +965,7 @@
 
   public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData)
   {
-    $args = new ThriftHiveMetastore_drop_partition_args();
+    $args = new metastore_ThriftHiveMetastore_drop_partition_args();
     $args->db_name = $db_name;
     $args->tbl_name = $tbl_name;
     $args->part_vals = $part_vals;
@@ -1171,7 +987,7 @@
   public function recv_drop_partition()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1185,7 +1001,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_drop_partition_result();
+      $result = new metastore_ThriftHiveMetastore_drop_partition_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1209,7 +1025,7 @@
 
   public function send_get_partition($db_name, $tbl_name, $part_vals)
   {
-    $args = new ThriftHiveMetastore_get_partition_args();
+    $args = new metastore_ThriftHiveMetastore_get_partition_args();
     $args->db_name = $db_name;
     $args->tbl_name = $tbl_name;
     $args->part_vals = $part_vals;
@@ -1230,7 +1046,7 @@
   public function recv_get_partition()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1244,7 +1060,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_partition_result();
+      $result = new metastore_ThriftHiveMetastore_get_partition_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1265,7 +1081,7 @@
 
   public function send_get_partitions($db_name, $tbl_name, $max_parts)
   {
-    $args = new ThriftHiveMetastore_get_partitions_args();
+    $args = new metastore_ThriftHiveMetastore_get_partitions_args();
     $args->db_name = $db_name;
     $args->tbl_name = $tbl_name;
     $args->max_parts = $max_parts;
@@ -1286,7 +1102,7 @@
   public function recv_get_partitions()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1300,7 +1116,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_get_partitions_result();
+      $result = new metastore_ThriftHiveMetastore_get_partitions_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1316,37 +1132,36 @@
     throw new Exception("get_partitions failed: unknown result");
   }
 
-  public function set_partition_parameters($db_name, $tbl_name, $pname, $params)
+  public function get_partition_names($db_name, $tbl_name, $max_parts)
   {
-    $this->send_set_partition_parameters($db_name, $tbl_name, $pname, $params);
-    return $this->recv_set_partition_parameters();
+    $this->send_get_partition_names($db_name, $tbl_name, $max_parts);
+    return $this->recv_get_partition_names();
   }
 
-  public function send_set_partition_parameters($db_name, $tbl_name, $pname, $params)
+  public function send_get_partition_names($db_name, $tbl_name, $max_parts)
   {
-    $args = new ThriftHiveMetastore_set_partition_parameters_args();
+    $args = new metastore_ThriftHiveMetastore_get_partition_names_args();
     $args->db_name = $db_name;
     $args->tbl_name = $tbl_name;
-    $args->pname = $pname;
-    $args->params = $params;
+    $args->max_parts = $max_parts;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
     {
-      thrift_protocol_write_binary($this->output_, 'set_partition_parameters', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+      thrift_protocol_write_binary($this->output_, 'get_partition_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
     }
     else
     {
-      $this->output_->writeMessageBegin('set_partition_parameters', TMessageType::CALL, $this->seqid_);
+      $this->output_->writeMessageBegin('get_partition_names', TMessageType::CALL, $this->seqid_);
       $args->write($this->output_);
       $this->output_->writeMessageEnd();
       $this->output_->getTransport()->flush();
     }
   }
 
-  public function recv_set_partition_parameters()
+  public function recv_get_partition_names()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_set_partition_parameters_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_names_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1360,20 +1175,17 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_set_partition_parameters_result();
+      $result = new metastore_ThriftHiveMetastore_get_partition_names_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("set_partition_parameters failed: unknown result");
+    throw new Exception("get_partition_names failed: unknown result");
   }
 
   public function alter_partitions($sd, $parts)
@@ -1384,7 +1196,7 @@
 
   public function send_alter_partitions($sd, $parts)
   {
-    $args = new ThriftHiveMetastore_alter_partitions_args();
+    $args = new metastore_ThriftHiveMetastore_alter_partitions_args();
     $args->sd = $sd;
     $args->parts = $parts;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
@@ -1404,7 +1216,7 @@
   public function recv_alter_partitions()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_alter_partitions_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_partitions_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1418,7 +1230,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_alter_partitions_result();
+      $result = new metastore_ThriftHiveMetastore_alter_partitions_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1442,7 +1254,7 @@
 
   public function send_create_index($index_def)
   {
-    $args = new ThriftHiveMetastore_create_index_args();
+    $args = new metastore_ThriftHiveMetastore_create_index_args();
     $args->index_def = $index_def;
     $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
@@ -1461,7 +1273,7 @@
   public function recv_create_index()
   {
     $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
-    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_create_index_result', $this->input_->isStrictRead());
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_index_result', $this->input_->isStrictRead());
     else
     {
       $rseqid = 0;
@@ -1475,7 +1287,7 @@
         $this->input_->readMessageEnd();
         throw $x;
       }
-      $result = new ThriftHiveMetastore_create_index_result();
+      $result = new metastore_ThriftHiveMetastore_create_index_result();
       $result->read($this->input_);
       $this->input_->readMessageEnd();
     }
@@ -1495,11 +1307,11 @@
 
 // HELPER FUNCTIONS AND STRUCTURES
 
-class ThriftHiveMetastore_create_database_args {
+class metastore_ThriftHiveMetastore_create_database_args {
   static $_TSPEC;
 
   public $name = null;
-  public $location_uri = null;
+  public $description = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -1509,7 +1321,7 @@
           'type' => TType::STRING,
           ),
         2 => array(
-          'var' => 'location_uri',
+          'var' => 'description',
           'type' => TType::STRING,
           ),
         );
@@ -1518,8 +1330,8 @@
       if (isset($vals['name'])) {
         $this->name = $vals['name'];
       }
-      if (isset($vals['location_uri'])) {
-        $this->location_uri = $vals['location_uri'];
+      if (isset($vals['description'])) {
+        $this->description = $vals['description'];
       }
     }
   }
@@ -1552,7 +1364,7 @@
           break;
         case 2:
           if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->location_uri);
+            $xfer += $input->readString($this->description);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -1575,9 +1387,9 @@
       $xfer += $output->writeString($this->name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->location_uri !== null) {
-      $xfer += $output->writeFieldBegin('location_uri', TType::STRING, 2);
-      $xfer += $output->writeString($this->location_uri);
+    if ($this->description !== null) {
+      $xfer += $output->writeFieldBegin('description', TType::STRING, 2);
+      $xfer += $output->writeString($this->description);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -1587,7 +1399,7 @@
 
 }
 
-class ThriftHiveMetastore_create_database_result {
+class metastore_ThriftHiveMetastore_create_database_result {
   static $_TSPEC;
 
   public $success = null;
@@ -1604,12 +1416,12 @@
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => 'AlreadyExistsException',
+          'class' => 'metastore_AlreadyExistsException',
           ),
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -1654,7 +1466,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new AlreadyExistsException();
+            $this->o1 = new metastore_AlreadyExistsException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -1662,7 +1474,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -1703,7 +1515,7 @@
 
 }
 
-class ThriftHiveMetastore_get_database_args {
+class metastore_ThriftHiveMetastore_get_database_args {
   static $_TSPEC;
 
   public $name = null;
@@ -1775,7 +1587,7 @@
 
 }
 
-class ThriftHiveMetastore_get_database_result {
+class metastore_ThriftHiveMetastore_get_database_result {
   static $_TSPEC;
 
   public $success = null;
@@ -1788,17 +1600,17 @@
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => 'Database',
+          'class' => 'metastore_Database',
           ),
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => 'NoSuchObjectException',
+          'class' => 'metastore_NoSuchObjectException',
           ),
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -1836,7 +1648,7 @@
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new Database();
+            $this->success = new metastore_Database();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -1844,7 +1656,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new NoSuchObjectException();
+            $this->o1 = new metastore_NoSuchObjectException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -1852,7 +1664,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -1893,7 +1705,7 @@
 
 }
 
-class ThriftHiveMetastore_drop_database_args {
+class metastore_ThriftHiveMetastore_drop_database_args {
   static $_TSPEC;
 
   public $name = null;
@@ -1965,7 +1777,7 @@
 
 }
 
-class ThriftHiveMetastore_drop_database_result {
+class metastore_ThriftHiveMetastore_drop_database_result {
   static $_TSPEC;
 
   public $success = null;
@@ -1981,7 +1793,7 @@
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -2023,7 +1835,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2059,7 +1871,7 @@
 
 }
 
-class ThriftHiveMetastore_get_databases_args {
+class metastore_ThriftHiveMetastore_get_databases_args {
   static $_TSPEC;
 
 
@@ -2109,7 +1921,7 @@
 
 }
 
-class ThriftHiveMetastore_get_databases_result {
+class metastore_ThriftHiveMetastore_get_databases_result {
   static $_TSPEC;
 
   public $success = null;
@@ -2129,7 +1941,7 @@
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -2181,7 +1993,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new MetaException();
+            $this->o1 = new metastore_MetaException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2226,7 +2038,7 @@
 
 }
 
-class ThriftHiveMetastore_get_type_args {
+class metastore_ThriftHiveMetastore_get_type_args {
   static $_TSPEC;
 
   public $name = null;
@@ -2298,7 +2110,7 @@
 
 }
 
-class ThriftHiveMetastore_get_type_result {
+class metastore_ThriftHiveMetastore_get_type_result {
   static $_TSPEC;
 
   public $success = null;
@@ -2310,12 +2122,12 @@
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => 'Type',
+          'class' => 'metastore_Type',
           ),
         1 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -2350,7 +2162,7 @@
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new Type();
+            $this->success = new metastore_Type();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2358,7 +2170,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2394,7 +2206,7 @@
 
 }
 
-class ThriftHiveMetastore_create_type_args {
+class metastore_ThriftHiveMetastore_create_type_args {
   static $_TSPEC;
 
   public $type = null;
@@ -2405,7 +2217,7 @@
         1 => array(
           'var' => 'type',
           'type' => TType::STRUCT,
-          'class' => 'Type',
+          'class' => 'metastore_Type',
           ),
         );
     }
@@ -2437,7 +2249,7 @@
       {
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->type = new Type();
+            $this->type = new metastore_Type();
             $xfer += $this->type->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2468,7 +2280,7 @@
 
 }
 
-class ThriftHiveMetastore_create_type_result {
+class metastore_ThriftHiveMetastore_create_type_result {
   static $_TSPEC;
 
   public $success = null;
@@ -2486,17 +2298,17 @@
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => 'AlreadyExistsException',
+          'class' => 'metastore_AlreadyExistsException',
           ),
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'InvalidObjectException',
+          'class' => 'metastore_InvalidObjectException',
           ),
         3 => array(
           'var' => 'o3',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -2544,7 +2356,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new AlreadyExistsException();
+            $this->o1 = new metastore_AlreadyExistsException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2552,7 +2364,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new InvalidObjectException();
+            $this->o2 = new metastore_InvalidObjectException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2560,7 +2372,7 @@
           break;
         case 3:
           if ($ftype == TType::STRUCT) {
-            $this->o3 = new MetaException();
+            $this->o3 = new metastore_MetaException();
             $xfer += $this->o3->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2606,7 +2418,7 @@
 
 }
 
-class ThriftHiveMetastore_drop_type_args {
+class metastore_ThriftHiveMetastore_drop_type_args {
   static $_TSPEC;
 
   public $type = null;
@@ -2678,7 +2490,7 @@
 
 }
 
-class ThriftHiveMetastore_drop_type_result {
+class metastore_ThriftHiveMetastore_drop_type_result {
   static $_TSPEC;
 
   public $success = null;
@@ -2694,7 +2506,7 @@
         1 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -2736,7 +2548,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2772,7 +2584,7 @@
 
 }
 
-class ThriftHiveMetastore_get_type_all_args {
+class metastore_ThriftHiveMetastore_get_type_all_args {
   static $_TSPEC;
 
   public $name = null;
@@ -2844,7 +2656,7 @@
 
 }
 
-class ThriftHiveMetastore_get_type_all_result {
+class metastore_ThriftHiveMetastore_get_type_all_result {
   static $_TSPEC;
 
   public $success = null;
@@ -2863,13 +2675,13 @@
           ),
           'val' => array(
             'type' => TType::STRUCT,
-            'class' => 'Type',
+            'class' => 'metastore_Type',
             ),
           ),
         1 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -2912,9 +2724,9 @@
             for ($_i96 = 0; $_i96 < $_size92; ++$_i96)
             {
               $key97 = '';
-              $val98 = new Type();
+              $val98 = new metastore_Type();
               $xfer += $input->readString($key97);
-              $val98 = new Type();
+              $val98 = new metastore_Type();
               $xfer += $val98->read($input);
               $this->success[$key97] = $val98;
             }
@@ -2925,7 +2737,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -2971,7 +2783,7 @@
 
 }
 
-class ThriftHiveMetastore_get_fields_args {
+class metastore_ThriftHiveMetastore_get_fields_args {
   static $_TSPEC;
 
   public $db_name = null;
@@ -3063,7 +2875,7 @@
 
 }
 
-class ThriftHiveMetastore_get_fields_result {
+class metastore_ThriftHiveMetastore_get_fields_result {
   static $_TSPEC;
 
   public $success = null;
@@ -3080,23 +2892,23 @@
           'etype' => TType::STRUCT,
           'elem' => array(
             'type' => TType::STRUCT,
-            'class' => 'FieldSchema',
+            'class' => 'metastore_FieldSchema',
             ),
           ),
         -3 => array(
           'var' => 'ouch1',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         -4 => array(
           'var' => 'ouch2',
           'type' => TType::STRUCT,
-          'class' => 'UnknownTableException',
+          'class' => 'metastore_UnknownTableException',
           ),
         -5 => array(
           'var' => 'ouch3',
           'type' => TType::STRUCT,
-          'class' => 'UnknownDBException',
+          'class' => 'metastore_UnknownDBException',
           ),
         );
     }
@@ -3144,7 +2956,7 @@
             for ($_i105 = 0; $_i105 < $_size101; ++$_i105)
             {
               $elem106 = null;
-              $elem106 = new FieldSchema();
+              $elem106 = new metastore_FieldSchema();
               $xfer += $elem106->read($input);
               $this->success []= $elem106;
             }
@@ -3155,7 +2967,7 @@
           break;
         case -3:
           if ($ftype == TType::STRUCT) {
-            $this->ouch1 = new MetaException();
+            $this->ouch1 = new metastore_MetaException();
             $xfer += $this->ouch1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3163,7 +2975,7 @@
           break;
         case -4:
           if ($ftype == TType::STRUCT) {
-            $this->ouch2 = new UnknownTableException();
+            $this->ouch2 = new metastore_UnknownTableException();
             $xfer += $this->ouch2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3171,7 +2983,7 @@
           break;
         case -5:
           if ($ftype == TType::STRUCT) {
-            $this->ouch3 = new UnknownDBException();
+            $this->ouch3 = new metastore_UnknownDBException();
             $xfer += $this->ouch3->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3226,7 +3038,7 @@
 
 }
 
-class ThriftHiveMetastore_create_table_args {
+class metastore_ThriftHiveMetastore_create_table_args {
   static $_TSPEC;
 
   public $tbl = null;
@@ -3237,7 +3049,7 @@
         1 => array(
           'var' => 'tbl',
           'type' => TType::STRUCT,
-          'class' => 'Table',
+          'class' => 'metastore_Table',
           ),
         );
     }
@@ -3269,7 +3081,7 @@
       {
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->tbl = new Table();
+            $this->tbl = new metastore_Table();
             $xfer += $this->tbl->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3300,7 +3112,7 @@
 
 }
 
-class ThriftHiveMetastore_create_table_result {
+class metastore_ThriftHiveMetastore_create_table_result {
   static $_TSPEC;
 
   public $ouch1 = null;
@@ -3314,22 +3126,22 @@
         1 => array(
           'var' => 'ouch1',
           'type' => TType::STRUCT,
-          'class' => 'AlreadyExistsException',
+          'class' => 'metastore_AlreadyExistsException',
           ),
         2 => array(
           'var' => 'ouch2',
           'type' => TType::STRUCT,
-          'class' => 'InvalidObjectException',
+          'class' => 'metastore_InvalidObjectException',
           ),
         3 => array(
           'var' => 'ouch3',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         4 => array(
           'var' => 'o4',
           'type' => TType::STRUCT,
-          'class' => 'NoSuchObjectException',
+          'class' => 'metastore_NoSuchObjectException',
           ),
         );
     }
@@ -3370,7 +3182,7 @@
       {
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->ouch1 = new AlreadyExistsException();
+            $this->ouch1 = new metastore_AlreadyExistsException();
             $xfer += $this->ouch1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3378,7 +3190,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->ouch2 = new InvalidObjectException();
+            $this->ouch2 = new metastore_InvalidObjectException();
             $xfer += $this->ouch2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3386,7 +3198,7 @@
           break;
         case 3:
           if ($ftype == TType::STRUCT) {
-            $this->ouch3 = new MetaException();
+            $this->ouch3 = new metastore_MetaException();
             $xfer += $this->ouch3->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3394,7 +3206,7 @@
           break;
         case 4:
           if ($ftype == TType::STRUCT) {
-            $this->o4 = new NoSuchObjectException();
+            $this->o4 = new metastore_NoSuchObjectException();
             $xfer += $this->o4->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3440,7 +3252,7 @@
 
 }
 
-class ThriftHiveMetastore_drop_table_args {
+class metastore_ThriftHiveMetastore_drop_table_args {
   static $_TSPEC;
 
   public $dbname = null;
@@ -3552,7 +3364,7 @@
 
 }
 
-class ThriftHiveMetastore_drop_table_result {
+class metastore_ThriftHiveMetastore_drop_table_result {
   static $_TSPEC;
 
   public $o1 = null;
@@ -3564,12 +3376,12 @@
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => 'NoSuchObjectException',
+          'class' => 'metastore_NoSuchObjectException',
           ),
         2 => array(
           'var' => 'ouch3',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
@@ -3604,7 +3416,7 @@
       {
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new NoSuchObjectException();
+            $this->o1 = new metastore_NoSuchObjectException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3612,7 +3424,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->ouch3 = new MetaException();
+            $this->ouch3 = new metastore_MetaException();
             $xfer += $this->ouch3->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3648,7 +3460,7 @@
 
 }
 
-class ThriftHiveMetastore_get_tables_args {
+class metastore_ThriftHiveMetastore_get_tables_args {
   static $_TSPEC;
 
   public $db_name = null;
@@ -3740,7 +3552,7 @@
 
 }
 
-class ThriftHiveMetastore_get_tables_result {
+class metastore_ThriftHiveMetastore_get_tables_result {
   static $_TSPEC;
 
   public $success = null;
@@ -3762,17 +3574,17 @@
         -3 => array(
           'var' => 'ouch1',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         -4 => array(
           'var' => 'ouch2',
           'type' => TType::STRUCT,
-          'class' => 'UnknownTableException',
+          'class' => 'metastore_UnknownTableException',
           ),
         -5 => array(
           'var' => 'ouch3',
           'type' => TType::STRUCT,
-          'class' => 'UnknownDBException',
+          'class' => 'metastore_UnknownDBException',
           ),
         );
     }
@@ -3830,7 +3642,7 @@
           break;
         case -3:
           if ($ftype == TType::STRUCT) {
-            $this->ouch1 = new MetaException();
+            $this->ouch1 = new metastore_MetaException();
             $xfer += $this->ouch1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3838,7 +3650,7 @@
           break;
         case -4:
           if ($ftype == TType::STRUCT) {
-            $this->ouch2 = new UnknownTableException();
+            $this->ouch2 = new metastore_UnknownTableException();
             $xfer += $this->ouch2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3846,7 +3658,7 @@
           break;
         case -5:
           if ($ftype == TType::STRUCT) {
-            $this->ouch3 = new UnknownDBException();
+            $this->ouch3 = new metastore_UnknownDBException();
             $xfer += $this->ouch3->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -3901,7 +3713,7 @@
 
 }
 
-class ThriftHiveMetastore_get_table_args {
+class metastore_ThriftHiveMetastore_get_table_args {
   static $_TSPEC;
 
   public $dbname = null;
@@ -3993,7 +3805,7 @@
 
 }
 
-class ThriftHiveMetastore_get_table_result {
+class metastore_ThriftHiveMetastore_get_table_result {
   static $_TSPEC;
 
   public $success = null;
@@ -4006,17 +3818,17 @@
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => 'Table',
+          'class' => 'metastore_Table',
           ),
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'NoSuchObjectException',
+          'class' => 'metastore_NoSuchObjectException',
           ),
         );
     }
@@ -4054,7 +3866,7 @@
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new Table();
+            $this->success = new metastore_Table();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -4062,7 +3874,7 @@
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new MetaException();
+            $this->o1 = new metastore_MetaException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -4070,7 +3882,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new NoSuchObjectException();
+            $this->o2 = new metastore_NoSuchObjectException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -4111,12 +3923,12 @@
 
 }
 
-class ThriftHiveMetastore_set_table_parameters_args {
+class metastore_ThriftHiveMetastore_alter_table_args {
   static $_TSPEC;
 
   public $dbname = null;
   public $tbl_name = null;
-  public $params = null;
+  public $new_tbl = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -4130,16 +3942,9 @@
           'type' => TType::STRING,
           ),
         3 => array(
-          'var' => 'params',
-          'type' => TType::MAP,
-          'ktype' => TType::STRING,
-          'vtype' => TType::STRING,
-          'key' => array(
-            'type' => TType::STRING,
-          ),
-          'val' => array(
-            'type' => TType::STRING,
-            ),
+          'var' => 'new_tbl',
+          'type' => TType::STRUCT,
+          'class' => 'metastore_Table',
           ),
         );
     }
@@ -4150,14 +3955,14 @@
       if (isset($vals['tbl_name'])) {
         $this->tbl_name = $vals['tbl_name'];
       }
-      if (isset($vals['params'])) {
-        $this->params = $vals['params'];
+      if (isset($vals['new_tbl'])) {
+        $this->new_tbl = $vals['new_tbl'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_set_table_parameters_args';
+    return 'ThriftHiveMetastore_alter_table_args';
   }
 
   public function read($input)
@@ -4190,21 +3995,9 @@
           }
           break;
         case 3:
-          if ($ftype == TType::MAP) {
-            $this->params = array();
-            $_size115 = 0;
-            $_ktype116 = 0;
-            $_vtype117 = 0;
-            $xfer += $input->readMapBegin($_ktype116, $_vtype117, $_size115);
-            for ($_i119 = 0; $_i119 < $_size115; ++$_i119)
-            {
-              $key120 = '';
-              $val121 = '';
-              $xfer += $input->readString($key120);
-              $xfer += $input->readString($val121);
-              $this->params[$key120] = $val121;
-            }
-            $xfer += $input->readMapEnd();
+          if ($ftype == TType::STRUCT) {
+            $this->new_tbl = new metastore_Table();
+            $xfer += $this->new_tbl->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -4221,7 +4014,7 @@
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_set_table_parameters_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_alter_table_args');
     if ($this->dbname !== null) {
       $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1);
       $xfer += $output->writeString($this->dbname);
@@ -4232,19 +4025,9 @@
       $xfer += $output->writeString($this->tbl_name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->params !== null) {
-      $xfer += $output->writeFieldBegin('params', TType::MAP, 3);
-      {
-        $output->writeMapBegin(TType::STRING, TType::STRING, count($this->params));
-        {
-          foreach ($this->params as $kiter122 => $viter123)
-          {
-            $xfer += $output->writeString($kiter122);
-            $xfer += $output->writeString($viter123);
-          }
-        }
-        $output->writeMapEnd();
-      }
+    if ($this->new_tbl !== null) {
+      $xfer += $output->writeFieldBegin('new_tbl', TType::STRUCT, 3);
+      $xfer += $this->new_tbl->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -4254,36 +4037,28 @@
 
 }
 
-class ThriftHiveMetastore_set_table_parameters_result {
+class metastore_ThriftHiveMetastore_alter_table_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' => 'NoSuchObjectException',
+          'class' => 'metastore_InvalidOperationException',
           ),
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
-          'class' => 'MetaException',
+          'class' => 'metastore_MetaException',
           ),
         );
     }
     if (is_array($vals)) {
-      if (isset($vals['success'])) {
-        $this->success = $vals['success'];
-      }
       if (isset($vals['o1'])) {
         $this->o1 = $vals['o1'];
       }
@@ -4294,7 +4069,7 @@
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_set_table_parameters_result';
+    return 'ThriftHiveMetastore_alter_table_result';
   }
 
   public function read($input)
@@ -4312,16 +4087,9 @@
       }
       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 NoSuchObjectException();
+            $this->o1 = new metastore_InvalidOperationException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -4329,7 +4097,7 @@
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new MetaException();
+            $this->o2 = new metastore_MetaException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -4347,12 +4115,7 @@
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_set_table_parameters_result');
-    if ($this->success !== null) {
-      $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
-      $xfer += $output->writeBool($this->success);
-      $xfer += $output->writeFieldEnd();
-    }
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_alter_table_result');
     if ($this->o1 !== null) {
       $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1);
       $xfer += $this->o1->write($output);
@@ -4370,46 +4133,30 @@
 
 }
 
-class ThriftHiveMetastore_alter_table_args {
+class metastore_ThriftHiveMetastore_add_partition_args {
   static $_TSPEC;
 
-  public $dbname = null;
-  public $tbl_name = null;
-  public $new_tbl = null;
+  public $new_part = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         1 => array(
-          'var' => 'dbname',
-          'type' => TType::STRING,
-          ),
-        2 => array(
-          'var' => 'tbl_name',
-          'type' => TType::STRING,
-          ),
-        3 => array(
-          'var' => 'new_tbl',
+          'var' => 'new_part',
           'type' => TType::STRUCT,
-          'class' => 'Table',
+          'class' => 'metastore_Partition',
           ),
         );
     }
     if (is_array($vals)) {
-      if (isset($vals['dbname'])) {
-        $this->dbname = $vals['dbname'];
-      }
-      if (isset($vals['tbl_name'])) {
-        $this->tbl_name = $vals['tbl_name'];
-      }
-      if (isset($vals['new_tbl'])) {
-        $this->new_tbl = $vals['new_tbl'];
+      if (isset($vals['new_part'])) {
+        $this->new_part = $vals['new_part'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_alter_table_args';
+    return 'ThriftHiveMetastore_add_partition_args';
   }
 
   public function read($input)
@@ -4428,23 +4175,9 @@
       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->tbl_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
           if ($ftype == TType::STRUCT) {
-            $this->new_tbl = new Table();
-            $xfer += $this->new_tbl->read($input);
+            $this->new_part = new metastore_Partition();
+            $xfer += $this->new_part->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -4461,713 +4194,10 @@
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_alter_table_args');
-    if ($this->dbname !== null) {
-      $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1);
-      $xfer += $output->writeString($this->dbname);
-      $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->new_tbl !== null) {
-      $xfer += $output->writeFieldBegin('new_tbl', TType::STRUCT, 3);
-      $xfer += $this->new_tbl->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    $xfer += $output->writeFieldStop();
-    $xfer += $output->writeStructEnd();
-    return $xfer;
-  }
-
-}
-
-class ThriftHiveMetastore_alter_table_result {
-  static $_TSPEC;
-
-  public $o1 = null;
-  public $o2 = null;
-
-  public function __construct($vals=null) {
-    if (!isset(self::$_TSPEC)) {
-      self::$_TSPEC = array(
-        1 => array(
-          'var' => 'o1',
-          'type' => TType::STRUCT,
-          'class' => 'InvalidOperationException',
-          ),
-        2 => array(
-          'var' => 'o2',
-          'type' => TType::STRUCT,
-          'class' => 'MetaException',
-          ),
-        );
-    }
-    if (is_array($vals)) {
-      if (isset($vals['o1'])) {
-        $this->o1 = $vals['o1'];
-      }
-      if (isset($vals['o2'])) {
-        $this->o2 = $vals['o2'];
-      }
-    }
-  }
-
-  public function getName() {
-    return 'ThriftHiveMetastore_alter_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 InvalidOperationException();
-            $xfer += $this->o1->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 2:
-          if ($ftype == TType::STRUCT) {
-            $this->o2 = new 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_alter_table_result');
-    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_truncate_table_args {
-  static $_TSPEC;
-
-  public $db_name = null;
-  public $table_name = null;
-  public $partition = null;
-
-  public function __construct($vals=null) {
-    if (!isset(self::$_TSPEC)) {
-      self::$_TSPEC = array(
-        1 => array(
-          'var' => 'db_name',
-          'type' => TType::STRING,
-          ),
-        2 => array(
-          'var' => 'table_name',
-          'type' => TType::STRING,
-          ),
-        3 => array(
-          'var' => 'partition',
-          'type' => TType::STRING,
-          ),
-        );
-    }
-    if (is_array($vals)) {
-      if (isset($vals['db_name'])) {
-        $this->db_name = $vals['db_name'];
-      }
-      if (isset($vals['table_name'])) {
-        $this->table_name = $vals['table_name'];
-      }
-      if (isset($vals['partition'])) {
-        $this->partition = $vals['partition'];
-      }
-    }
-  }
-
-  public function getName() {
-    return 'ThriftHiveMetastore_truncate_table_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->table_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->partition);
-          } 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_truncate_table_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->table_name !== null) {
-      $xfer += $output->writeFieldBegin('table_name', TType::STRING, 2);
-      $xfer += $output->writeString($this->table_name);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->partition !== null) {
-      $xfer += $output->writeFieldBegin('partition', TType::STRING, 3);
-      $xfer += $output->writeString($this->partition);
-      $xfer += $output->writeFieldEnd();
-    }
-    $xfer += $output->writeFieldStop();
-    $xfer += $output->writeStructEnd();
-    return $xfer;
-  }
-
-}
-
-class ThriftHiveMetastore_truncate_table_result {
-  static $_TSPEC;
-
-  public $ouch1 = null;
-  public $ouch2 = null;
-  public $ouch3 = null;
-
-  public function __construct($vals=null) {
-    if (!isset(self::$_TSPEC)) {
-      self::$_TSPEC = array(
-        1 => array(
-          'var' => 'ouch1',
-          'type' => TType::STRUCT,
-          'class' => 'MetaException',
-          ),
-        2 => array(
-          'var' => 'ouch2',
-          'type' => TType::STRUCT,
-          'class' => 'UnknownTableException',
-          ),
-        3 => array(
-          'var' => 'ouch3',
-          'type' => TType::STRUCT,
-          'class' => 'UnknownDBException',
-          ),
-        );
-    }
-    if (is_array($vals)) {
-      if (isset($vals['ouch1'])) {
-        $this->ouch1 = $vals['ouch1'];
-      }
-      if (isset($vals['ouch2'])) {
-        $this->ouch2 = $vals['ouch2'];
-      }
-      if (isset($vals['ouch3'])) {
-        $this->ouch3 = $vals['ouch3'];
-      }
-    }
-  }
-
-  public function getName() {
-    return 'ThriftHiveMetastore_truncate_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->ouch1 = new MetaException();
-            $xfer += $this->ouch1->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 2:
-          if ($ftype == TType::STRUCT) {
-            $this->ouch2 = new UnknownTableException();
-            $xfer += $this->ouch2->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
-          if ($ftype == TType::STRUCT) {
-            $this->ouch3 = new UnknownDBException();
-            $xfer += $this->ouch3->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_truncate_table_result');
-    if ($this->ouch1 !== null) {
-      $xfer += $output->writeFieldBegin('ouch1', TType::STRUCT, 1);
-      $xfer += $this->ouch1->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->ouch2 !== null) {
-      $xfer += $output->writeFieldBegin('ouch2', TType::STRUCT, 2);
-      $xfer += $this->ouch2->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->ouch3 !== null) {
-      $xfer += $output->writeFieldBegin('ouch3', TType::STRUCT, 3);
-      $xfer += $this->ouch3->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    $xfer += $output->writeFieldStop();
-    $xfer += $output->writeStructEnd();
-    return $xfer;
-  }
-
-}
-
-class ThriftHiveMetastore_cat_args {
-  static $_TSPEC;
-
-  public $db_name = null;
-  public $table_name = null;
-  public $partition = null;
-  public $high = null;
-
-  public function __construct($vals=null) {
-    if (!isset(self::$_TSPEC)) {
-      self::$_TSPEC = array(
-        1 => array(
-          'var' => 'db_name',
-          'type' => TType::STRING,
-          ),
-        2 => array(
-          'var' => 'table_name',
-          'type' => TType::STRING,
-          ),
-        3 => array(
-          'var' => 'partition',
-          'type' => TType::STRING,
-          ),
-        -1 => array(
-          'var' => 'high',
-          'type' => TType::I32,
-          ),
-        );
-    }
-    if (is_array($vals)) {
-      if (isset($vals['db_name'])) {
-        $this->db_name = $vals['db_name'];
-      }
-      if (isset($vals['table_name'])) {
-        $this->table_name = $vals['table_name'];
-      }
-      if (isset($vals['partition'])) {
-        $this->partition = $vals['partition'];
-      }
-      if (isset($vals['high'])) {
-        $this->high = $vals['high'];
-      }
-    }
-  }
-
-  public function getName() {
-    return 'ThriftHiveMetastore_cat_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->table_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->partition);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case -1:
-          if ($ftype == TType::I32) {
-            $xfer += $input->readI32($this->high);
-          } 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_cat_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->table_name !== null) {
-      $xfer += $output->writeFieldBegin('table_name', TType::STRING, 2);
-      $xfer += $output->writeString($this->table_name);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->partition !== null) {
-      $xfer += $output->writeFieldBegin('partition', TType::STRING, 3);
-      $xfer += $output->writeString($this->partition);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->high !== null) {
-      $xfer += $output->writeFieldBegin('high', TType::I32, -1);
-      $xfer += $output->writeI32($this->high);
-      $xfer += $output->writeFieldEnd();
-    }
-    $xfer += $output->writeFieldStop();
-    $xfer += $output->writeStructEnd();
-    return $xfer;
-  }
-
-}
-
-class ThriftHiveMetastore_cat_result {
-  static $_TSPEC;
-
-  public $success = null;
-  public $ouch1 = null;
-  public $ouch2 = null;
-  public $ouch3 = 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,
-            ),
-          ),
-        -2 => array(
-          'var' => 'ouch1',
-          'type' => TType::STRUCT,
-          'class' => 'MetaException',
-          ),
-        -3 => array(
-          'var' => 'ouch2',
-          'type' => TType::STRUCT,
-          'class' => 'UnknownDBException',
-          ),
-        -4 => array(
-          'var' => 'ouch3',
-          'type' => TType::STRUCT,
-          'class' => 'UnknownTableException',
-          ),
-        );
-    }
-    if (is_array($vals)) {
-      if (isset($vals['success'])) {
-        $this->success = $vals['success'];
-      }
-      if (isset($vals['ouch1'])) {
-        $this->ouch1 = $vals['ouch1'];
-      }
-      if (isset($vals['ouch2'])) {
-        $this->ouch2 = $vals['ouch2'];
-      }
-      if (isset($vals['ouch3'])) {
-        $this->ouch3 = $vals['ouch3'];
-      }
-    }
-  }
-
-  public function getName() {
-    return 'ThriftHiveMetastore_cat_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();
-            $_size124 = 0;
-            $_etype127 = 0;
-            $xfer += $input->readListBegin($_etype127, $_size124);
-            for ($_i128 = 0; $_i128 < $_size124; ++$_i128)
-            {
-              $elem129 = null;
-              $xfer += $input->readString($elem129);
-              $this->success []= $elem129;
-            }
-            $xfer += $input->readListEnd();
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case -2:
-          if ($ftype == TType::STRUCT) {
-            $this->ouch1 = new MetaException();
-            $xfer += $this->ouch1->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case -3:
-          if ($ftype == TType::STRUCT) {
-            $this->ouch2 = new UnknownDBException();
-            $xfer += $this->ouch2->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case -4:
-          if ($ftype == TType::STRUCT) {
-            $this->ouch3 = new UnknownTableException();
-            $xfer += $this->ouch3->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_cat_result');
-    if ($this->success !== null) {
-      $xfer += $output->writeFieldBegin('success', TType::LST, 0);
-      {
-        $output->writeListBegin(TType::STRING, count($this->success));
-        {
-          foreach ($this->success as $iter130)
-          {
-            $xfer += $output->writeString($iter130);
-          }
-        }
-        $output->writeListEnd();
-      }
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->ouch1 !== null) {
-      $xfer += $output->writeFieldBegin('ouch1', TType::STRUCT, -2);
-      $xfer += $this->ouch1->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->ouch2 !== null) {
-      $xfer += $output->writeFieldBegin('ouch2', TType::STRUCT, -3);
-      $xfer += $this->ouch2->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->ouch3 !== null) {
-      $xfer += $output->writeFieldBegin('ouch3', TType::STRUCT, -4);
-      $xfer += $this->ouch3->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
-    $xfer += $output->writeFieldStop();
-    $xfer += $output->writeStructEnd();
-    return $xfer;
-  }
-
-}
-
-class ThriftHiveMetastore_add_partition_args {
-  static $_TSPEC;
-
-  public $new_part = null;
-
-  public function __construct($vals=null) {
-    if (!isset(self::$_TSPEC)) {
-      self::$_TSPEC = array(
-        1 => array(
-          'var' => 'new_part',
-          'type' => TType::STRUCT,
-          'class' => 'Partition',
-          ),
-        );
-    }
-    if (is_array($vals)) {
-      if (isset($vals['new_part'])) {
-        $this->new_part = $vals['new_part'];
-      }
-    }
-  }
-
-  public function getName() {
-    return 'ThriftHiveMetastore_add_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::STRUCT) {
-            $this->new_part = new Partition();
-            $xfer += $this->new_part->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        default:
-          $xfer += $input->skip($ftype);
-          break;
-      }
-      $xfer += $input->readFieldEnd();
-    }
-    $xfer += $input->readStructEnd();
-    return $xfer;
-  }
-
-  public function write($output) {
-    $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partition_args');
-    if ($this->new_part !== null) {
-      $xfer += $output->writeFieldBegin('new_part', TType::STRUCT, 1);
-      $xfer += $this->new_part->write($output);

[... 1383 lines stripped ...]


Mime
View raw message