public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(0 => array('var' => 'success', 'type' => TType::STRUCT, 'class' => 'metastore_Partition'), 1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_MetaException'), 2 => array('var' => 'o2', 'type' => TType::STRUCT, 'class' => 'metastore_NoSuchObjectException')); } if (is_array($vals)) { if (isset($vals['success'])) { $this->success = $vals['success']; } if (isset($vals['o1'])) { $this->o1 = $vals['o1']; } if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } } }
protected function process_get_partition($seqid, $input, $output) { $args = new metastore_ThriftHiveMetastore_get_partition_args(); $args->read($input); $input->readMessageEnd(); $result = new metastore_ThriftHiveMetastore_get_partition_result(); try { $result->success = $this->handler_->get_partition($args->db_name, $args->tbl_name, $args->part_vals); } catch (metastore_MetaException $o1) { $result->o1 = $o1; } $output->writeMessageBegin('get_partition', TMessageType::REPLY, $seqid); $result->write($output); $output->getTransport()->flush(); }