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