1: <?php
2: 3: 4:
5: namespace cassandra;
6: class Deletion extends \TBase {
7: static $_TSPEC;
8:
9: public $timestamp = null;
10: public $super_column = null;
11: public $predicate = null;
12:
13: public function __construct($vals=null) {
14: if (!isset(self::$_TSPEC)) {
15: self::$_TSPEC = array(
16: 1 => array(
17: 'var' => 'timestamp',
18: 'type' => \TType::I64,
19: ),
20: 2 => array(
21: 'var' => 'super_column',
22: 'type' => \TType::STRING,
23: ),
24: 3 => array(
25: 'var' => 'predicate',
26: 'type' => \TType::STRUCT,
27: 'class' => '\cassandra\SlicePredicate',
28: ),
29: );
30: }
31: if (is_array($vals)) {
32: parent::__construct(self::$_TSPEC, $vals);
33: }
34: }
35:
36: public function getName() {
37: return 'Deletion';
38: }
39:
40: public function read($input)
41: {
42: return $this->_read('Deletion', self::$_TSPEC, $input);
43: }
44: public function write($output) {
45: return $this->_write('Deletion', self::$_TSPEC, $output);
46: }
47: }
48:
49:
50: ?>
51: