Exemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'tbl', 'type' => TType::STRUCT, 'class' => 'metastore_Table'));
     }
     if (is_array($vals)) {
         if (isset($vals['tbl'])) {
             $this->tbl = $vals['tbl'];
         }
     }
 }
 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();
 }