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'];
         }
     }
 }
 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'];
         }
     }
 }