示例#1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'keyspace', 'type' => TType::STRING), 2 => array('var' => 'key', 'type' => TType::STRING), 3 => array('var' => 'column_path', 'type' => TType::STRUCT, 'class' => 'cassandra_ColumnPath'), 4 => array('var' => 'timestamp', 'type' => TType::I64), 5 => array('var' => 'consistency_level', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['keyspace'])) {
             $this->keyspace = $vals['keyspace'];
         }
         if (isset($vals['key'])) {
             $this->key = $vals['key'];
         }
         if (isset($vals['column_path'])) {
             $this->column_path = $vals['column_path'];
         }
         if (isset($vals['timestamp'])) {
             $this->timestamp = $vals['timestamp'];
         }
         if (isset($vals['consistency_level'])) {
             $this->consistency_level = $vals['consistency_level'];
         }
     }
 }
示例#2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRING), 2 => array('var' => 'column_path', 'type' => TType::STRUCT, 'class' => 'cassandra_ColumnPath'), 3 => array('var' => 'timestamp', 'type' => TType::I64), 4 => array('var' => 'consistency_level', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }