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