public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'indexName', 'type' => TType::STRING), 2 => array('var' => 'indexType', 'type' => TType::I32), 3 => array('var' => 'tableName', 'type' => TType::STRING), 4 => array('var' => 'dbName', 'type' => TType::STRING), 5 => array('var' => 'colNames', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 6 => array('var' => 'partName', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['indexName'])) {
             $this->indexName = $vals['indexName'];
         }
         if (isset($vals['indexType'])) {
             $this->indexType = $vals['indexType'];
         }
         if (isset($vals['tableName'])) {
             $this->tableName = $vals['tableName'];
         }
         if (isset($vals['dbName'])) {
             $this->dbName = $vals['dbName'];
         }
         if (isset($vals['colNames'])) {
             $this->colNames = $vals['colNames'];
         }
         if (isset($vals['partName'])) {
             $this->partName = $vals['partName'];
         }
     }
 }
예제 #2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'indexName', 'type' => TType::STRING), 2 => array('var' => 'indexHandlerClass', 'type' => TType::STRING), 3 => array('var' => 'dbName', 'type' => TType::STRING), 4 => array('var' => 'origTableName', 'type' => TType::STRING), 5 => array('var' => 'createTime', 'type' => TType::I32), 6 => array('var' => 'lastAccessTime', 'type' => TType::I32), 7 => array('var' => 'indexTableName', 'type' => TType::STRING), 8 => array('var' => 'sd', 'type' => TType::STRUCT, 'class' => 'metastore_StorageDescriptor'), 9 => array('var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING)), 10 => array('var' => 'deferredRebuild', 'type' => TType::BOOL));
     }
     if (is_array($vals)) {
         if (isset($vals['indexName'])) {
             $this->indexName = $vals['indexName'];
         }
         if (isset($vals['indexHandlerClass'])) {
             $this->indexHandlerClass = $vals['indexHandlerClass'];
         }
         if (isset($vals['dbName'])) {
             $this->dbName = $vals['dbName'];
         }
         if (isset($vals['origTableName'])) {
             $this->origTableName = $vals['origTableName'];
         }
         if (isset($vals['createTime'])) {
             $this->createTime = $vals['createTime'];
         }
         if (isset($vals['lastAccessTime'])) {
             $this->lastAccessTime = $vals['lastAccessTime'];
         }
         if (isset($vals['indexTableName'])) {
             $this->indexTableName = $vals['indexTableName'];
         }
         if (isset($vals['sd'])) {
             $this->sd = $vals['sd'];
         }
         if (isset($vals['parameters'])) {
             $this->parameters = $vals['parameters'];
         }
         if (isset($vals['deferredRebuild'])) {
             $this->deferredRebuild = $vals['deferredRebuild'];
         }
     }
 }