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