1: <?php
2: 3: 4:
5: namespace cassandra;
6: class ColumnDef extends \TBase {
7: static $_TSPEC;
8:
9: public $name = null;
10: public $validation_class = null;
11: public $index_type = null;
12: public $index_name = null;
13: public $index_options = null;
14:
15: public function __construct($vals=null) {
16: if (!isset(self::$_TSPEC)) {
17: self::$_TSPEC = array(
18: 1 => array(
19: 'var' => 'name',
20: 'type' => \TType::STRING,
21: ),
22: 2 => array(
23: 'var' => 'validation_class',
24: 'type' => \TType::STRING,
25: ),
26: 3 => array(
27: 'var' => 'index_type',
28: 'type' => \TType::I32,
29: ),
30: 4 => array(
31: 'var' => 'index_name',
32: 'type' => \TType::STRING,
33: ),
34: 5 => array(
35: 'var' => 'index_options',
36: 'type' => \TType::MAP,
37: 'ktype' => \TType::STRING,
38: 'vtype' => \TType::STRING,
39: 'key' => array(
40: 'type' => \TType::STRING,
41: ),
42: 'val' => array(
43: 'type' => \TType::STRING,
44: ),
45: ),
46: );
47: }
48: if (is_array($vals)) {
49: parent::__construct(self::$_TSPEC, $vals);
50: }
51: }
52:
53: public function getName() {
54: return 'ColumnDef';
55: }
56:
57: public function read($input)
58: {
59: return $this->_read('ColumnDef', self::$_TSPEC, $input);
60: }
61: public function write($output) {
62: return $this->_write('ColumnDef', self::$_TSPEC, $output);
63: }
64: }
65:
66:
67: ?>
68: