public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'dbName', 'type' => TType::STRING), 2 => array('var' => 'tableName', 'type' => TType::STRING), 3 => array('var' => 'level', 'type' => TType::I32), 4 => array('var' => 'parType', 'type' => TType::STRING), 5 => array('var' => 'parKey', 'type' => TType::STRUCT, 'class' => 'metastore_FieldSchema'), 6 => array('var' => 'parSpaces', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::LST, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING))));
     }
     if (is_array($vals)) {
         if (isset($vals['dbName'])) {
             $this->dbName = $vals['dbName'];
         }
         if (isset($vals['tableName'])) {
             $this->tableName = $vals['tableName'];
         }
         if (isset($vals['level'])) {
             $this->level = $vals['level'];
         }
         if (isset($vals['parType'])) {
             $this->parType = $vals['parType'];
         }
         if (isset($vals['parKey'])) {
             $this->parKey = $vals['parKey'];
         }
         if (isset($vals['parSpaces'])) {
             $this->parSpaces = $vals['parSpaces'];
         }
     }
 }
Esempio n. 2
0
 public function read($input)
 {
     $xfer = 0;
     $fname = null;
     $ftype = 0;
     $fid = 0;
     $xfer += $input->readStructBegin($fname);
     while (true) {
         $xfer += $input->readFieldBegin($fname, $ftype, $fid);
         if ($ftype == TType::STOP) {
             break;
         }
         switch ($fid) {
             case 0:
                 if ($ftype == TType::LST) {
                     $this->success = array();
                     $_size337 = 0;
                     $_etype340 = 0;
                     $xfer += $input->readListBegin($_etype340, $_size337);
                     for ($_i341 = 0; $_i341 < $_size337; ++$_i341) {
                         $elem342 = null;
                         $elem342 = new metastore_Partition();
                         $xfer += $elem342->read($input);
                         $this->success[] = $elem342;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 1:
                 if ($ftype == TType::STRUCT) {
                     $this->o1 = new metastore_MetaException();
                     $xfer += $this->o1->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 2:
                 if ($ftype == TType::STRUCT) {
                     $this->o2 = new metastore_NoSuchObjectException();
                     $xfer += $this->o2->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'values', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 2 => array('var' => 'dbName', 'type' => TType::STRING), 3 => array('var' => 'tableName', 'type' => TType::STRING), 4 => array('var' => 'createTime', 'type' => TType::I32), 5 => array('var' => 'lastAccessTime', 'type' => TType::I32), 6 => array('var' => 'sd', 'type' => TType::STRUCT, 'class' => 'metastore_StorageDescriptor'), 7 => array('var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING)));
     }
     if (is_array($vals)) {
         if (isset($vals['values'])) {
             $this->values = $vals['values'];
         }
         if (isset($vals['dbName'])) {
             $this->dbName = $vals['dbName'];
         }
         if (isset($vals['tableName'])) {
             $this->tableName = $vals['tableName'];
         }
         if (isset($vals['createTime'])) {
             $this->createTime = $vals['createTime'];
         }
         if (isset($vals['lastAccessTime'])) {
             $this->lastAccessTime = $vals['lastAccessTime'];
         }
         if (isset($vals['sd'])) {
             $this->sd = $vals['sd'];
         }
         if (isset($vals['parameters'])) {
             $this->parameters = $vals['parameters'];
         }
     }
 }
 public function read($input)
 {
     $xfer = 0;
     $fname = null;
     $ftype = 0;
     $fid = 0;
     $xfer += $input->readStructBegin($fname);
     while (true) {
         $xfer += $input->readFieldBegin($fname, $ftype, $fid);
         if ($ftype == TType::STOP) {
             break;
         }
         switch ($fid) {
             case 0:
                 if ($ftype == TType::LST) {
                     $this->success = array();
                     $_size180 = 0;
                     $_etype183 = 0;
                     $xfer += $input->readListBegin($_etype183, $_size180);
                     for ($_i184 = 0; $_i184 < $_size180; ++$_i184) {
                         $elem185 = null;
                         $elem185 = new metastore_Partition();
                         $xfer += $elem185->read($input);
                         $this->success[] = $elem185;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 1:
                 if ($ftype == TType::STRUCT) {
                     $this->o1 = new metastore_MetaException();
                     $xfer += $this->o1->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }