public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_InvalidOperationException'), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_MetaException')); } if (is_array($vals)) { if (isset($vals['o1'])) { $this->o1 = $vals['o1']; } if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } } }
protected function process_alter_table($seqid, $input, $output) { $args = new metastore_ThriftHiveMetastore_alter_table_args(); $args->read($input); $input->readMessageEnd(); $result = new metastore_ThriftHiveMetastore_alter_table_result(); try { $this->handler_->alter_table($args->dbname, $args->tbl_name, $args->new_tbl); } catch (metastore_InvalidOperationException $o1) { $result->o1 = $o1; } catch (metastore_MetaException $o2) { $result->o2 = $o2; } $output->writeMessageBegin('alter_table', TMessageType::REPLY, $seqid); $result->write($output); $output->getTransport()->flush(); }