public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_AlreadyExistsException'), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_InvalidObjectException'), 3 => array('var' => 'o3', 'type' => TType::STRUCT, 'class' => 'metastore_MetaException'), 4 => array('var' => 'o4', 'type' => TType::STRUCT, 'class' => 'metastore_NoSuchObjectException')); } if (is_array($vals)) { if (isset($vals['o1'])) { $this->o1 = $vals['o1']; } if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } if (isset($vals['o3'])) { $this->o3 = $vals['o3']; } if (isset($vals['o4'])) { $this->o4 = $vals['o4']; } } }
protected function process_create_table($seqid, $input, $output) { $args = new metastore_ThriftHiveMetastore_create_table_args(); $args->read($input); $input->readMessageEnd(); $result = new metastore_ThriftHiveMetastore_create_table_result(); try { $this->handler_->create_table($args->tbl); } catch (metastore_AlreadyExistsException $ouch1) { $result->ouch1 = $ouch1; } catch (metastore_InvalidObjectException $ouch2) { $result->ouch2 = $ouch2; } catch (metastore_MetaException $ouch3) { $result->ouch3 = $ouch3; } catch (metastore_NoSuchObjectException $o4) { $result->o4 = $o4; } $output->writeMessageBegin('create_table', TMessageType::REPLY, $seqid); $result->write($output); $output->getTransport()->flush(); }