public function __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(0 => array('var' => 'success', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 1 => array('var' => 'o1', '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']; } } }
protected function process_get_tables($seqid, $input, $output) { $args = new metastore_ThriftHiveMetastore_get_tables_args(); $args->read($input); $input->readMessageEnd(); $result = new metastore_ThriftHiveMetastore_get_tables_result(); try { $result->success = $this->handler_->get_tables($args->db_name, $args->pattern); } catch (metastore_MetaException $ouch1) { $result->ouch1 = $ouch1; } catch (metastore_UnknownTableException $ouch2) { $result->ouch2 = $ouch2; } catch (metastore_UnknownDBException $ouch3) { $result->ouch3 = $ouch3; } $output->writeMessageBegin('get_tables', TMessageType::REPLY, $seqid); $result->write($output); $output->getTransport()->flush(); }