Example #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' => 'value', 'type' => TType::STRING), 5 => array('var' => 'timestamp', 'type' => TType::I64), 6 => 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['value'])) {
             $this->value = $vals['value'];
         }
         if (isset($vals['timestamp'])) {
             $this->timestamp = $vals['timestamp'];
         }
         if (isset($vals['consistency_level'])) {
             $this->consistency_level = $vals['consistency_level'];
         }
     }
 }
Example #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_parent', 'type' => TType::STRUCT, 'class' => 'cassandra_ColumnParent'), 3 => array('var' => 'column', 'type' => TType::STRUCT, 'class' => 'cassandra_Column'), 4 => array('var' => 'consistency_level', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }