public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(0 => array('var' => 'success', 'type' => TType::BOOL), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_MetaException'));
     }
     if (is_array($vals)) {
         if (isset($vals['success'])) {
             $this->success = $vals['success'];
         }
         if (isset($vals['o2'])) {
             $this->o2 = $vals['o2'];
         }
     }
 }
Ejemplo n.º 2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_NoSuchObjectException'), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_InvalidOperationException'), 3 => array('var' => 'o3', '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'];
         }
         if (isset($vals['o3'])) {
             $this->o3 = $vals['o3'];
         }
     }
 }
 protected function process_drop_database($seqid, $input, $output)
 {
     $args = new metastore_ThriftHiveMetastore_drop_database_args();
     $args->read($input);
     $input->readMessageEnd();
     $result = new metastore_ThriftHiveMetastore_drop_database_result();
     try {
         $result->success = $this->handler_->drop_database($args->name);
     } catch (metastore_MetaException $o2) {
         $result->o2 = $o2;
     }
     $output->writeMessageBegin('drop_database', TMessageType::REPLY, $seqid);
     $result->write($output);
     $output->getTransport()->flush();
 }