Exemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'row', 'type' => TType::STRING), 2 => array('var' => 'columns', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\TColumn')), 3 => array('var' => 'timestamp', 'type' => TType::I64), 4 => array('var' => 'deleteType', 'type' => TType::I32), 5 => array('var' => 'writeToWal', 'type' => TType::BOOL), 6 => array('var' => 'attributes', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING)), 7 => array('var' => 'durability', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['row'])) {
             $this->row = $vals['row'];
         }
         if (isset($vals['columns'])) {
             $this->columns = $vals['columns'];
         }
         if (isset($vals['timestamp'])) {
             $this->timestamp = $vals['timestamp'];
         }
         if (isset($vals['deleteType'])) {
             $this->deleteType = $vals['deleteType'];
         }
         if (isset($vals['writeToWal'])) {
             $this->writeToWal = $vals['writeToWal'];
         }
         if (isset($vals['attributes'])) {
             $this->attributes = $vals['attributes'];
         }
         if (isset($vals['durability'])) {
             $this->durability = $vals['durability'];
         }
     }
 }