Example #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'query', 'type' => TType::STRING), 3 => array('var' => 'configuration', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 4 => array('var' => 'hadoop_user', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['query'])) {
             $this->query = $vals['query'];
         }
         if (isset($vals['configuration'])) {
             $this->configuration = $vals['configuration'];
         }
         if (isset($vals['hadoop_user'])) {
             $this->hadoop_user = $vals['hadoop_user'];
         }
     }
 }
Example #2
0
File: Types.php Project: Leolh/hive
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'queryId', 'type' => TType::STRING), 2 => array('var' => 'queryType', 'type' => TType::STRING), 3 => array('var' => 'queryAttributes', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING)), 4 => array('var' => 'queryCounters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::I64, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::I64)), 5 => array('var' => 'stageGraph', 'type' => TType::STRUCT, 'class' => '\\Graph'), 6 => array('var' => 'stageList', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\Stage')), 7 => array('var' => 'done', 'type' => TType::BOOL), 8 => array('var' => 'started', 'type' => TType::BOOL));
     }
     if (is_array($vals)) {
         if (isset($vals['queryId'])) {
             $this->queryId = $vals['queryId'];
         }
         if (isset($vals['queryType'])) {
             $this->queryType = $vals['queryType'];
         }
         if (isset($vals['queryAttributes'])) {
             $this->queryAttributes = $vals['queryAttributes'];
         }
         if (isset($vals['queryCounters'])) {
             $this->queryCounters = $vals['queryCounters'];
         }
         if (isset($vals['stageGraph'])) {
             $this->stageGraph = $vals['stageGraph'];
         }
         if (isset($vals['stageList'])) {
             $this->stageList = $vals['stageList'];
         }
         if (isset($vals['done'])) {
             $this->done = $vals['done'];
         }
         if (isset($vals['started'])) {
             $this->started = $vals['started'];
         }
     }
 }