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