public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(0 => array('var' => 'success', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => 'metastore_Partition')), 1 => array('var' => 'o1', 'type' => TType::STRUCT, 'class' => 'metastore_NoSuchObjectException'), 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['o1'])) { $this->o1 = $vals['o1']; } if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } } }
protected function process_get_partitions($seqid, $input, $output) { $args = new metastore_ThriftHiveMetastore_get_partitions_args(); $args->read($input); $input->readMessageEnd(); $result = new metastore_ThriftHiveMetastore_get_partitions_result(); try { $result->success = $this->handler_->get_partitions($args->db_name, $args->tbl_name, $args->max_parts); } catch (metastore_NoSuchObjectException $o1) { $result->o1 = $o1; } catch (metastore_MetaException $o2) { $result->o2 = $o2; } $output->writeMessageBegin('get_partitions', TMessageType::REPLY, $seqid); $result->write($output); $output->getTransport()->flush(); }