/thrift/packages/cassandra/Cassandra.php
PHP | 8743 lines | 8170 code | 566 blank | 7 comment | 1436 complexity | b313a9d986306c769a8231721fdab03b MD5 | raw file
- <?php
- /**
- * Autogenerated by Thrift Compiler (0.8.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
- include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';
- include_once $GLOBALS['THRIFT_ROOT'].'/packages/cassandra/cassandra_types.php';
- interface cassandra_CassandraIf {
- public function login($auth_request);
- public function set_keyspace($keyspace);
- public function get($key, $column_path, $consistency_level);
- public function get_slice($key, $column_parent, $predicate, $consistency_level);
- public function get_count($key, $column_parent, $predicate, $consistency_level);
- public function multiget_slice($keys, $column_parent, $predicate, $consistency_level);
- public function multiget_count($keys, $column_parent, $predicate, $consistency_level);
- public function get_range_slices($column_parent, $predicate, $range, $consistency_level);
- public function get_indexed_slices($column_parent, $index_clause, $column_predicate, $consistency_level);
- public function insert($key, $column_parent, $column, $consistency_level);
- public function add($key, $column_parent, $column, $consistency_level);
- public function remove($key, $column_path, $timestamp, $consistency_level);
- public function remove_counter($key, $path, $consistency_level);
- public function batch_mutate($mutation_map, $consistency_level);
- public function truncate($cfname);
- public function describe_schema_versions();
- public function describe_keyspaces();
- public function describe_cluster_name();
- public function describe_version();
- public function describe_ring($keyspace);
- public function describe_partitioner();
- public function describe_snitch();
- public function describe_keyspace($keyspace);
- public function describe_splits($cfName, $start_token, $end_token, $keys_per_split);
- public function system_add_column_family($cf_def);
- public function system_drop_column_family($column_family);
- public function system_add_keyspace($ks_def);
- public function system_drop_keyspace($keyspace);
- public function system_update_keyspace($ks_def);
- public function system_update_column_family($cf_def);
- public function execute_cql_query($query, $compression);
- }
- class cassandra_CassandraClient implements cassandra_CassandraIf {
- protected $input_ = null;
- protected $output_ = null;
- protected $seqid_ = 0;
- public function __construct($input, $output=null) {
- $this->input_ = $input;
- $this->output_ = $output ? $output : $input;
- }
- public function login($auth_request)
- {
- $this->send_login($auth_request);
- $this->recv_login();
- }
- public function send_login($auth_request)
- {
- $args = new cassandra_Cassandra_login_args();
- $args->auth_request = $auth_request;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'login', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('login', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_login()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_login_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_login_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->authnx !== null) {
- throw $result->authnx;
- }
- if ($result->authzx !== null) {
- throw $result->authzx;
- }
- return;
- }
- public function set_keyspace($keyspace)
- {
- $this->send_set_keyspace($keyspace);
- $this->recv_set_keyspace();
- }
- public function send_set_keyspace($keyspace)
- {
- $args = new cassandra_Cassandra_set_keyspace_args();
- $args->keyspace = $keyspace;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'set_keyspace', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('set_keyspace', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_set_keyspace()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_set_keyspace_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_set_keyspace_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- return;
- }
- public function get($key, $column_path, $consistency_level)
- {
- $this->send_get($key, $column_path, $consistency_level);
- return $this->recv_get();
- }
- public function send_get($key, $column_path, $consistency_level)
- {
- $args = new cassandra_Cassandra_get_args();
- $args->key = $key;
- $args->column_path = $column_path;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'get', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('get', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_get()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_get_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_get_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->nfe !== null) {
- throw $result->nfe;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("get failed: unknown result");
- }
- public function get_slice($key, $column_parent, $predicate, $consistency_level)
- {
- $this->send_get_slice($key, $column_parent, $predicate, $consistency_level);
- return $this->recv_get_slice();
- }
- public function send_get_slice($key, $column_parent, $predicate, $consistency_level)
- {
- $args = new cassandra_Cassandra_get_slice_args();
- $args->key = $key;
- $args->column_parent = $column_parent;
- $args->predicate = $predicate;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'get_slice', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('get_slice', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_get_slice()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_get_slice_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_get_slice_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("get_slice failed: unknown result");
- }
- public function get_count($key, $column_parent, $predicate, $consistency_level)
- {
- $this->send_get_count($key, $column_parent, $predicate, $consistency_level);
- return $this->recv_get_count();
- }
- public function send_get_count($key, $column_parent, $predicate, $consistency_level)
- {
- $args = new cassandra_Cassandra_get_count_args();
- $args->key = $key;
- $args->column_parent = $column_parent;
- $args->predicate = $predicate;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'get_count', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('get_count', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_get_count()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_get_count_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_get_count_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("get_count failed: unknown result");
- }
- public function multiget_slice($keys, $column_parent, $predicate, $consistency_level)
- {
- $this->send_multiget_slice($keys, $column_parent, $predicate, $consistency_level);
- return $this->recv_multiget_slice();
- }
- public function send_multiget_slice($keys, $column_parent, $predicate, $consistency_level)
- {
- $args = new cassandra_Cassandra_multiget_slice_args();
- $args->keys = $keys;
- $args->column_parent = $column_parent;
- $args->predicate = $predicate;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'multiget_slice', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('multiget_slice', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_multiget_slice()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_multiget_slice_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_multiget_slice_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("multiget_slice failed: unknown result");
- }
- public function multiget_count($keys, $column_parent, $predicate, $consistency_level)
- {
- $this->send_multiget_count($keys, $column_parent, $predicate, $consistency_level);
- return $this->recv_multiget_count();
- }
- public function send_multiget_count($keys, $column_parent, $predicate, $consistency_level)
- {
- $args = new cassandra_Cassandra_multiget_count_args();
- $args->keys = $keys;
- $args->column_parent = $column_parent;
- $args->predicate = $predicate;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'multiget_count', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('multiget_count', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_multiget_count()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_multiget_count_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_multiget_count_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("multiget_count failed: unknown result");
- }
- public function get_range_slices($column_parent, $predicate, $range, $consistency_level)
- {
- $this->send_get_range_slices($column_parent, $predicate, $range, $consistency_level);
- return $this->recv_get_range_slices();
- }
- public function send_get_range_slices($column_parent, $predicate, $range, $consistency_level)
- {
- $args = new cassandra_Cassandra_get_range_slices_args();
- $args->column_parent = $column_parent;
- $args->predicate = $predicate;
- $args->range = $range;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'get_range_slices', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('get_range_slices', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_get_range_slices()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_get_range_slices_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_get_range_slices_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("get_range_slices failed: unknown result");
- }
- public function get_indexed_slices($column_parent, $index_clause, $column_predicate, $consistency_level)
- {
- $this->send_get_indexed_slices($column_parent, $index_clause, $column_predicate, $consistency_level);
- return $this->recv_get_indexed_slices();
- }
- public function send_get_indexed_slices($column_parent, $index_clause, $column_predicate, $consistency_level)
- {
- $args = new cassandra_Cassandra_get_indexed_slices_args();
- $args->column_parent = $column_parent;
- $args->index_clause = $index_clause;
- $args->column_predicate = $column_predicate;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'get_indexed_slices', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('get_indexed_slices', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_get_indexed_slices()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_get_indexed_slices_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_get_indexed_slices_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- throw new Exception("get_indexed_slices failed: unknown result");
- }
- public function insert($key, $column_parent, $column, $consistency_level)
- {
- $this->send_insert($key, $column_parent, $column, $consistency_level);
- $this->recv_insert();
- }
- public function send_insert($key, $column_parent, $column, $consistency_level)
- {
- $args = new cassandra_Cassandra_insert_args();
- $args->key = $key;
- $args->column_parent = $column_parent;
- $args->column = $column;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'insert', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('insert', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_insert()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_insert_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_insert_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- return;
- }
- public function add($key, $column_parent, $column, $consistency_level)
- {
- $this->send_add($key, $column_parent, $column, $consistency_level);
- $this->recv_add();
- }
- public function send_add($key, $column_parent, $column, $consistency_level)
- {
- $args = new cassandra_Cassandra_add_args();
- $args->key = $key;
- $args->column_parent = $column_parent;
- $args->column = $column;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'add', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('add', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_add()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_add_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_add_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- return;
- }
- public function remove($key, $column_path, $timestamp, $consistency_level)
- {
- $this->send_remove($key, $column_path, $timestamp, $consistency_level);
- $this->recv_remove();
- }
- public function send_remove($key, $column_path, $timestamp, $consistency_level)
- {
- $args = new cassandra_Cassandra_remove_args();
- $args->key = $key;
- $args->column_path = $column_path;
- $args->timestamp = $timestamp;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'remove', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('remove', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_remove()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_remove_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_remove_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- return;
- }
- public function remove_counter($key, $path, $consistency_level)
- {
- $this->send_remove_counter($key, $path, $consistency_level);
- $this->recv_remove_counter();
- }
- public function send_remove_counter($key, $path, $consistency_level)
- {
- $args = new cassandra_Cassandra_remove_counter_args();
- $args->key = $key;
- $args->path = $path;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'remove_counter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('remove_counter', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_remove_counter()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_remove_counter_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_remove_counter_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- return;
- }
- public function batch_mutate($mutation_map, $consistency_level)
- {
- $this->send_batch_mutate($mutation_map, $consistency_level);
- $this->recv_batch_mutate();
- }
- public function send_batch_mutate($mutation_map, $consistency_level)
- {
- $args = new cassandra_Cassandra_batch_mutate_args();
- $args->mutation_map = $mutation_map;
- $args->consistency_level = $consistency_level;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'batch_mutate', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('batch_mutate', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_batch_mutate()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_batch_mutate_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_batch_mutate_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- return;
- }
- public function truncate($cfname)
- {
- $this->send_truncate($cfname);
- $this->recv_truncate();
- }
- public function send_truncate($cfname)
- {
- $args = new cassandra_Cassandra_truncate_args();
- $args->cfname = $cfname;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'truncate', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('truncate', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_truncate()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_truncate_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_truncate_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- return;
- }
- public function describe_schema_versions()
- {
- $this->send_describe_schema_versions();
- return $this->recv_describe_schema_versions();
- }
- public function send_describe_schema_versions()
- {
- $args = new cassandra_Cassandra_describe_schema_versions_args();
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_schema_versions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_schema_versions', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_schema_versions()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_schema_versions_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_schema_versions_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- throw new Exception("describe_schema_versions failed: unknown result");
- }
- public function describe_keyspaces()
- {
- $this->send_describe_keyspaces();
- return $this->recv_describe_keyspaces();
- }
- public function send_describe_keyspaces()
- {
- $args = new cassandra_Cassandra_describe_keyspaces_args();
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_keyspaces', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_keyspaces', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_keyspaces()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_keyspaces_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_keyspaces_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- throw new Exception("describe_keyspaces failed: unknown result");
- }
- public function describe_cluster_name()
- {
- $this->send_describe_cluster_name();
- return $this->recv_describe_cluster_name();
- }
- public function send_describe_cluster_name()
- {
- $args = new cassandra_Cassandra_describe_cluster_name_args();
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_cluster_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_cluster_name', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_cluster_name()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_cluster_name_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_cluster_name_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- throw new Exception("describe_cluster_name failed: unknown result");
- }
- public function describe_version()
- {
- $this->send_describe_version();
- return $this->recv_describe_version();
- }
- public function send_describe_version()
- {
- $args = new cassandra_Cassandra_describe_version_args();
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_version', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_version', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_version()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_version_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_version_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- throw new Exception("describe_version failed: unknown result");
- }
- public function describe_ring($keyspace)
- {
- $this->send_describe_ring($keyspace);
- return $this->recv_describe_ring();
- }
- public function send_describe_ring($keyspace)
- {
- $args = new cassandra_Cassandra_describe_ring_args();
- $args->keyspace = $keyspace;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_ring', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_ring', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_ring()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_ring_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_ring_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- throw new Exception("describe_ring failed: unknown result");
- }
- public function describe_partitioner()
- {
- $this->send_describe_partitioner();
- return $this->recv_describe_partitioner();
- }
- public function send_describe_partitioner()
- {
- $args = new cassandra_Cassandra_describe_partitioner_args();
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_partitioner', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_partitioner', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_partitioner()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_partitioner_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_partitioner_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- throw new Exception("describe_partitioner failed: unknown result");
- }
- public function describe_snitch()
- {
- $this->send_describe_snitch();
- return $this->recv_describe_snitch();
- }
- public function send_describe_snitch()
- {
- $args = new cassandra_Cassandra_describe_snitch_args();
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_snitch', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_snitch', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_snitch()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_snitch_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_snitch_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- throw new Exception("describe_snitch failed: unknown result");
- }
- public function describe_keyspace($keyspace)
- {
- $this->send_describe_keyspace($keyspace);
- return $this->recv_describe_keyspace();
- }
- public function send_describe_keyspace($keyspace)
- {
- $args = new cassandra_Cassandra_describe_keyspace_args();
- $args->keyspace = $keyspace;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_keyspace', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_keyspace', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_keyspace()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_keyspace_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_keyspace_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->nfe !== null) {
- throw $result->nfe;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- throw new Exception("describe_keyspace failed: unknown result");
- }
- public function describe_splits($cfName, $start_token, $end_token, $keys_per_split)
- {
- $this->send_describe_splits($cfName, $start_token, $end_token, $keys_per_split);
- return $this->recv_describe_splits();
- }
- public function send_describe_splits($cfName, $start_token, $end_token, $keys_per_split)
- {
- $args = new cassandra_Cassandra_describe_splits_args();
- $args->cfName = $cfName;
- $args->start_token = $start_token;
- $args->end_token = $end_token;
- $args->keys_per_split = $keys_per_split;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'describe_splits', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('describe_splits', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_describe_splits()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_describe_splits_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_describe_splits_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- throw new Exception("describe_splits failed: unknown result");
- }
- public function system_add_column_family($cf_def)
- {
- $this->send_system_add_column_family($cf_def);
- return $this->recv_system_add_column_family();
- }
- public function send_system_add_column_family($cf_def)
- {
- $args = new cassandra_Cassandra_system_add_column_family_args();
- $args->cf_def = $cf_def;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'system_add_column_family', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('system_add_column_family', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_system_add_column_family()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_system_add_column_family_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_system_add_column_family_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("system_add_column_family failed: unknown result");
- }
- public function system_drop_column_family($column_family)
- {
- $this->send_system_drop_column_family($column_family);
- return $this->recv_system_drop_column_family();
- }
- public function send_system_drop_column_family($column_family)
- {
- $args = new cassandra_Cassandra_system_drop_column_family_args();
- $args->column_family = $column_family;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'system_drop_column_family', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('system_drop_column_family', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_system_drop_column_family()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_system_drop_column_family_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_system_drop_column_family_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("system_drop_column_family failed: unknown result");
- }
- public function system_add_keyspace($ks_def)
- {
- $this->send_system_add_keyspace($ks_def);
- return $this->recv_system_add_keyspace();
- }
- public function send_system_add_keyspace($ks_def)
- {
- $args = new cassandra_Cassandra_system_add_keyspace_args();
- $args->ks_def = $ks_def;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'system_add_keyspace', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('system_add_keyspace', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_system_add_keyspace()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_system_add_keyspace_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_system_add_keyspace_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("system_add_keyspace failed: unknown result");
- }
- public function system_drop_keyspace($keyspace)
- {
- $this->send_system_drop_keyspace($keyspace);
- return $this->recv_system_drop_keyspace();
- }
- public function send_system_drop_keyspace($keyspace)
- {
- $args = new cassandra_Cassandra_system_drop_keyspace_args();
- $args->keyspace = $keyspace;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'system_drop_keyspace', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('system_drop_keyspace', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_system_drop_keyspace()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_system_drop_keyspace_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_system_drop_keyspace_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("system_drop_keyspace failed: unknown result");
- }
- public function system_update_keyspace($ks_def)
- {
- $this->send_system_update_keyspace($ks_def);
- return $this->recv_system_update_keyspace();
- }
- public function send_system_update_keyspace($ks_def)
- {
- $args = new cassandra_Cassandra_system_update_keyspace_args();
- $args->ks_def = $ks_def;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'system_update_keyspace', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('system_update_keyspace', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_system_update_keyspace()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_system_update_keyspace_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_system_update_keyspace_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("system_update_keyspace failed: unknown result");
- }
- public function system_update_column_family($cf_def)
- {
- $this->send_system_update_column_family($cf_def);
- return $this->recv_system_update_column_family();
- }
- public function send_system_update_column_family($cf_def)
- {
- $args = new cassandra_Cassandra_system_update_column_family_args();
- $args->cf_def = $cf_def;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'system_update_column_family', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('system_update_column_family', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_system_update_column_family()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_system_update_column_family_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_system_update_column_family_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("system_update_column_family failed: unknown result");
- }
- public function execute_cql_query($query, $compression)
- {
- $this->send_execute_cql_query($query, $compression);
- return $this->recv_execute_cql_query();
- }
- public function send_execute_cql_query($query, $compression)
- {
- $args = new cassandra_Cassandra_execute_cql_query_args();
- $args->query = $query;
- $args->compression = $compression;
- $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'execute_cql_query', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('execute_cql_query', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
- public function recv_execute_cql_query()
- {
- $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
- if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'cassandra_Cassandra_execute_cql_query_result', $this->input_->isStrictRead());
- else
- {
- $rseqid = 0;
- $fname = null;
- $mtype = 0;
- $this->input_->readMessageBegin($fname, $mtype, $rseqid);
- if ($mtype == TMessageType::EXCEPTION) {
- $x = new TApplicationException();
- $x->read($this->input_);
- $this->input_->readMessageEnd();
- throw $x;
- }
- $result = new cassandra_Cassandra_execute_cql_query_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ue !== null) {
- throw $result->ue;
- }
- if ($result->te !== null) {
- throw $result->te;
- }
- if ($result->sde !== null) {
- throw $result->sde;
- }
- throw new Exception("execute_cql_query failed: unknown result");
- }
- }
- // HELPER FUNCTIONS AND STRUCTURES
- class cassandra_Cassandra_login_args {
- static $_TSPEC;
- public $auth_request = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'auth_request',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_AuthenticationRequest',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['auth_request'])) {
- $this->auth_request = $vals['auth_request'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_login_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->auth_request = new cassandra_AuthenticationRequest();
- $xfer += $this->auth_request->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_login_args');
- if ($this->auth_request !== null) {
- if (!is_object($this->auth_request)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('auth_request', TType::STRUCT, 1);
- $xfer += $this->auth_request->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_login_result {
- static $_TSPEC;
- public $authnx = null;
- public $authzx = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'authnx',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_AuthenticationException',
- ),
- 2 => array(
- 'var' => 'authzx',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_AuthorizationException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authnx'])) {
- $this->authnx = $vals['authnx'];
- }
- if (isset($vals['authzx'])) {
- $this->authzx = $vals['authzx'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_login_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->authnx = new cassandra_AuthenticationException();
- $xfer += $this->authnx->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->authzx = new cassandra_AuthorizationException();
- $xfer += $this->authzx->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_login_result');
- if ($this->authnx !== null) {
- $xfer += $output->writeFieldBegin('authnx', TType::STRUCT, 1);
- $xfer += $this->authnx->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->authzx !== null) {
- $xfer += $output->writeFieldBegin('authzx', TType::STRUCT, 2);
- $xfer += $this->authzx->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_set_keyspace_args {
- static $_TSPEC;
- public $keyspace = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'keyspace',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['keyspace'])) {
- $this->keyspace = $vals['keyspace'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_set_keyspace_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->keyspace);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_set_keyspace_args');
- if ($this->keyspace !== null) {
- $xfer += $output->writeFieldBegin('keyspace', TType::STRING, 1);
- $xfer += $output->writeString($this->keyspace);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_set_keyspace_result {
- static $_TSPEC;
- public $ire = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_set_keyspace_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_set_keyspace_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_args {
- static $_TSPEC;
- public $key = null;
- public $column_path = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'column_path',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnPath',
- ),
- 3 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['column_path'])) {
- $this->column_path = $vals['column_path'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_path = new cassandra_ColumnPath();
- $xfer += $this->column_path->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_path !== null) {
- if (!is_object($this->column_path)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_path', TType::STRUCT, 2);
- $xfer += $this->column_path->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 3);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $nfe = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnOrSuperColumn',
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'nfe',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_NotFoundException',
- ),
- 3 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 4 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['nfe'])) {
- $this->nfe = $vals['nfe'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRUCT) {
- $this->success = new cassandra_ColumnOrSuperColumn();
- $xfer += $this->success->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->nfe = new cassandra_NotFoundException();
- $xfer += $this->nfe->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_result');
- if ($this->success !== null) {
- if (!is_object($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
- $xfer += $this->success->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->nfe !== null) {
- $xfer += $output->writeFieldBegin('nfe', TType::STRUCT, 2);
- $xfer += $this->nfe->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 3);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 4);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_slice_args {
- static $_TSPEC;
- public $key = null;
- public $column_parent = null;
- public $predicate = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 3 => array(
- 'var' => 'predicate',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SlicePredicate',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['predicate'])) {
- $this->predicate = $vals['predicate'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_slice_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->predicate = new cassandra_SlicePredicate();
- $xfer += $this->predicate->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_slice_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 2);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->predicate !== null) {
- if (!is_object($this->predicate)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('predicate', TType::STRUCT, 3);
- $xfer += $this->predicate->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_slice_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnOrSuperColumn',
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_slice_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size147 = 0;
- $_etype150 = 0;
- $xfer += $input->readListBegin($_etype150, $_size147);
- for ($_i151 = 0; $_i151 < $_size147; ++$_i151)
- {
- $elem152 = null;
- $elem152 = new cassandra_ColumnOrSuperColumn();
- $xfer += $elem152->read($input);
- $this->success []= $elem152;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_slice_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::LST, 0);
- {
- $output->writeListBegin(TType::STRUCT, count($this->success));
- {
- foreach ($this->success as $iter153)
- {
- $xfer += $iter153->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_count_args {
- static $_TSPEC;
- public $key = null;
- public $column_parent = null;
- public $predicate = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 3 => array(
- 'var' => 'predicate',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SlicePredicate',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['predicate'])) {
- $this->predicate = $vals['predicate'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_count_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->predicate = new cassandra_SlicePredicate();
- $xfer += $this->predicate->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_count_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 2);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->predicate !== null) {
- if (!is_object($this->predicate)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('predicate', TType::STRUCT, 3);
- $xfer += $this->predicate->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_count_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::I32,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_count_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_count_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::I32, 0);
- $xfer += $output->writeI32($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_multiget_slice_args {
- static $_TSPEC;
- public $keys = null;
- public $column_parent = null;
- public $predicate = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'keys',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- 2 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 3 => array(
- 'var' => 'predicate',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SlicePredicate',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['keys'])) {
- $this->keys = $vals['keys'];
- }
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['predicate'])) {
- $this->predicate = $vals['predicate'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_multiget_slice_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::LST) {
- $this->keys = array();
- $_size154 = 0;
- $_etype157 = 0;
- $xfer += $input->readListBegin($_etype157, $_size154);
- for ($_i158 = 0; $_i158 < $_size154; ++$_i158)
- {
- $elem159 = null;
- $xfer += $input->readString($elem159);
- $this->keys []= $elem159;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->predicate = new cassandra_SlicePredicate();
- $xfer += $this->predicate->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_multiget_slice_args');
- if ($this->keys !== null) {
- if (!is_array($this->keys)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('keys', TType::LST, 1);
- {
- $output->writeListBegin(TType::STRING, count($this->keys));
- {
- foreach ($this->keys as $iter160)
- {
- $xfer += $output->writeString($iter160);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 2);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->predicate !== null) {
- if (!is_object($this->predicate)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('predicate', TType::STRUCT, 3);
- $xfer += $this->predicate->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_multiget_slice_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::LST,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnOrSuperColumn',
- ),
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_multiget_slice_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::MAP) {
- $this->success = array();
- $_size161 = 0;
- $_ktype162 = 0;
- $_vtype163 = 0;
- $xfer += $input->readMapBegin($_ktype162, $_vtype163, $_size161);
- for ($_i165 = 0; $_i165 < $_size161; ++$_i165)
- {
- $key166 = '';
- $val167 = array();
- $xfer += $input->readString($key166);
- $val167 = array();
- $_size168 = 0;
- $_etype171 = 0;
- $xfer += $input->readListBegin($_etype171, $_size168);
- for ($_i172 = 0; $_i172 < $_size168; ++$_i172)
- {
- $elem173 = null;
- $elem173 = new cassandra_ColumnOrSuperColumn();
- $xfer += $elem173->read($input);
- $val167 []= $elem173;
- }
- $xfer += $input->readListEnd();
- $this->success[$key166] = $val167;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_multiget_slice_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::MAP, 0);
- {
- $output->writeMapBegin(TType::STRING, TType::LST, count($this->success));
- {
- foreach ($this->success as $kiter174 => $viter175)
- {
- $xfer += $output->writeString($kiter174);
- {
- $output->writeListBegin(TType::STRUCT, count($viter175));
- {
- foreach ($viter175 as $iter176)
- {
- $xfer += $iter176->write($output);
- }
- }
- $output->writeListEnd();
- }
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_multiget_count_args {
- static $_TSPEC;
- public $keys = null;
- public $column_parent = null;
- public $predicate = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'keys',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- 2 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 3 => array(
- 'var' => 'predicate',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SlicePredicate',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['keys'])) {
- $this->keys = $vals['keys'];
- }
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['predicate'])) {
- $this->predicate = $vals['predicate'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_multiget_count_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::LST) {
- $this->keys = array();
- $_size177 = 0;
- $_etype180 = 0;
- $xfer += $input->readListBegin($_etype180, $_size177);
- for ($_i181 = 0; $_i181 < $_size177; ++$_i181)
- {
- $elem182 = null;
- $xfer += $input->readString($elem182);
- $this->keys []= $elem182;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->predicate = new cassandra_SlicePredicate();
- $xfer += $this->predicate->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_multiget_count_args');
- if ($this->keys !== null) {
- if (!is_array($this->keys)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('keys', TType::LST, 1);
- {
- $output->writeListBegin(TType::STRING, count($this->keys));
- {
- foreach ($this->keys as $iter183)
- {
- $xfer += $output->writeString($iter183);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 2);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->predicate !== null) {
- if (!is_object($this->predicate)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('predicate', TType::STRUCT, 3);
- $xfer += $this->predicate->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_multiget_count_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::I32,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::I32,
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_multiget_count_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::MAP) {
- $this->success = array();
- $_size184 = 0;
- $_ktype185 = 0;
- $_vtype186 = 0;
- $xfer += $input->readMapBegin($_ktype185, $_vtype186, $_size184);
- for ($_i188 = 0; $_i188 < $_size184; ++$_i188)
- {
- $key189 = '';
- $val190 = 0;
- $xfer += $input->readString($key189);
- $xfer += $input->readI32($val190);
- $this->success[$key189] = $val190;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_multiget_count_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::MAP, 0);
- {
- $output->writeMapBegin(TType::STRING, TType::I32, count($this->success));
- {
- foreach ($this->success as $kiter191 => $viter192)
- {
- $xfer += $output->writeString($kiter191);
- $xfer += $output->writeI32($viter192);
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_range_slices_args {
- static $_TSPEC;
- public $column_parent = null;
- public $predicate = null;
- public $range = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 2 => array(
- 'var' => 'predicate',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SlicePredicate',
- ),
- 3 => array(
- 'var' => 'range',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KeyRange',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['predicate'])) {
- $this->predicate = $vals['predicate'];
- }
- if (isset($vals['range'])) {
- $this->range = $vals['range'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_range_slices_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->predicate = new cassandra_SlicePredicate();
- $xfer += $this->predicate->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->range = new cassandra_KeyRange();
- $xfer += $this->range->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_range_slices_args');
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 1);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->predicate !== null) {
- if (!is_object($this->predicate)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('predicate', TType::STRUCT, 2);
- $xfer += $this->predicate->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->range !== null) {
- if (!is_object($this->range)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('range', TType::STRUCT, 3);
- $xfer += $this->range->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_range_slices_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KeySlice',
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_range_slices_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size193 = 0;
- $_etype196 = 0;
- $xfer += $input->readListBegin($_etype196, $_size193);
- for ($_i197 = 0; $_i197 < $_size193; ++$_i197)
- {
- $elem198 = null;
- $elem198 = new cassandra_KeySlice();
- $xfer += $elem198->read($input);
- $this->success []= $elem198;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_range_slices_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::LST, 0);
- {
- $output->writeListBegin(TType::STRUCT, count($this->success));
- {
- foreach ($this->success as $iter199)
- {
- $xfer += $iter199->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_indexed_slices_args {
- static $_TSPEC;
- public $column_parent = null;
- public $index_clause = null;
- public $column_predicate = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 2 => array(
- 'var' => 'index_clause',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_IndexClause',
- ),
- 3 => array(
- 'var' => 'column_predicate',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SlicePredicate',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['index_clause'])) {
- $this->index_clause = $vals['index_clause'];
- }
- if (isset($vals['column_predicate'])) {
- $this->column_predicate = $vals['column_predicate'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_indexed_slices_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->index_clause = new cassandra_IndexClause();
- $xfer += $this->index_clause->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->column_predicate = new cassandra_SlicePredicate();
- $xfer += $this->column_predicate->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_indexed_slices_args');
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 1);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->index_clause !== null) {
- if (!is_object($this->index_clause)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('index_clause', TType::STRUCT, 2);
- $xfer += $this->index_clause->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_predicate !== null) {
- if (!is_object($this->column_predicate)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_predicate', TType::STRUCT, 3);
- $xfer += $this->column_predicate->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_get_indexed_slices_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KeySlice',
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_get_indexed_slices_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size200 = 0;
- $_etype203 = 0;
- $xfer += $input->readListBegin($_etype203, $_size200);
- for ($_i204 = 0; $_i204 < $_size200; ++$_i204)
- {
- $elem205 = null;
- $elem205 = new cassandra_KeySlice();
- $xfer += $elem205->read($input);
- $this->success []= $elem205;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_get_indexed_slices_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::LST, 0);
- {
- $output->writeListBegin(TType::STRUCT, count($this->success));
- {
- foreach ($this->success as $iter206)
- {
- $xfer += $iter206->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_insert_args {
- static $_TSPEC;
- public $key = null;
- public $column_parent = null;
- public $column = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 3 => array(
- 'var' => 'column',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_Column',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['column'])) {
- $this->column = $vals['column'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_insert_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->column = new cassandra_Column();
- $xfer += $this->column->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_insert_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 2);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column !== null) {
- if (!is_object($this->column)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column', TType::STRUCT, 3);
- $xfer += $this->column->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_insert_result {
- static $_TSPEC;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_insert_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_insert_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_add_args {
- static $_TSPEC;
- public $key = null;
- public $column_parent = null;
- public $column = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'column_parent',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnParent',
- ),
- 3 => array(
- 'var' => 'column',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CounterColumn',
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['column_parent'])) {
- $this->column_parent = $vals['column_parent'];
- }
- if (isset($vals['column'])) {
- $this->column = $vals['column'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_add_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_parent = new cassandra_ColumnParent();
- $xfer += $this->column_parent->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->column = new cassandra_CounterColumn();
- $xfer += $this->column->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_add_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_parent !== null) {
- if (!is_object($this->column_parent)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_parent', TType::STRUCT, 2);
- $xfer += $this->column_parent->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column !== null) {
- if (!is_object($this->column)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column', TType::STRUCT, 3);
- $xfer += $this->column->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_add_result {
- static $_TSPEC;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_add_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_add_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_remove_args {
- static $_TSPEC;
- public $key = null;
- public $column_path = null;
- public $timestamp = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'column_path',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnPath',
- ),
- 3 => array(
- 'var' => 'timestamp',
- 'type' => TType::I64,
- ),
- 4 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['column_path'])) {
- $this->column_path = $vals['column_path'];
- }
- if (isset($vals['timestamp'])) {
- $this->timestamp = $vals['timestamp'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_remove_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->column_path = new cassandra_ColumnPath();
- $xfer += $this->column_path->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I64) {
- $xfer += $input->readI64($this->timestamp);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_remove_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column_path !== null) {
- if (!is_object($this->column_path)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_path', TType::STRUCT, 2);
- $xfer += $this->column_path->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->timestamp !== null) {
- $xfer += $output->writeFieldBegin('timestamp', TType::I64, 3);
- $xfer += $output->writeI64($this->timestamp);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 4);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_remove_result {
- static $_TSPEC;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_remove_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_remove_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_remove_counter_args {
- static $_TSPEC;
- public $key = null;
- public $path = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'path',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_ColumnPath',
- ),
- 3 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['key'])) {
- $this->key = $vals['key'];
- }
- if (isset($vals['path'])) {
- $this->path = $vals['path'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_remove_counter_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->path = new cassandra_ColumnPath();
- $xfer += $this->path->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_remove_counter_args');
- if ($this->key !== null) {
- $xfer += $output->writeFieldBegin('key', TType::STRING, 1);
- $xfer += $output->writeString($this->key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->path !== null) {
- if (!is_object($this->path)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('path', TType::STRUCT, 2);
- $xfer += $this->path->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 3);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_remove_counter_result {
- static $_TSPEC;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_remove_counter_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_remove_counter_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_batch_mutate_args {
- static $_TSPEC;
- public $mutation_map = null;
- public $consistency_level = 1;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'mutation_map',
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::MAP,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::LST,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_Mutation',
- ),
- ),
- ),
- ),
- 2 => array(
- 'var' => 'consistency_level',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['mutation_map'])) {
- $this->mutation_map = $vals['mutation_map'];
- }
- if (isset($vals['consistency_level'])) {
- $this->consistency_level = $vals['consistency_level'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_batch_mutate_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::MAP) {
- $this->mutation_map = array();
- $_size207 = 0;
- $_ktype208 = 0;
- $_vtype209 = 0;
- $xfer += $input->readMapBegin($_ktype208, $_vtype209, $_size207);
- for ($_i211 = 0; $_i211 < $_size207; ++$_i211)
- {
- $key212 = '';
- $val213 = array();
- $xfer += $input->readString($key212);
- $val213 = array();
- $_size214 = 0;
- $_ktype215 = 0;
- $_vtype216 = 0;
- $xfer += $input->readMapBegin($_ktype215, $_vtype216, $_size214);
- for ($_i218 = 0; $_i218 < $_size214; ++$_i218)
- {
- $key219 = '';
- $val220 = array();
- $xfer += $input->readString($key219);
- $val220 = array();
- $_size221 = 0;
- $_etype224 = 0;
- $xfer += $input->readListBegin($_etype224, $_size221);
- for ($_i225 = 0; $_i225 < $_size221; ++$_i225)
- {
- $elem226 = null;
- $elem226 = new cassandra_Mutation();
- $xfer += $elem226->read($input);
- $val220 []= $elem226;
- }
- $xfer += $input->readListEnd();
- $val213[$key219] = $val220;
- }
- $xfer += $input->readMapEnd();
- $this->mutation_map[$key212] = $val213;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->consistency_level);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_batch_mutate_args');
- if ($this->mutation_map !== null) {
- if (!is_array($this->mutation_map)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('mutation_map', TType::MAP, 1);
- {
- $output->writeMapBegin(TType::STRING, TType::MAP, count($this->mutation_map));
- {
- foreach ($this->mutation_map as $kiter227 => $viter228)
- {
- $xfer += $output->writeString($kiter227);
- {
- $output->writeMapBegin(TType::STRING, TType::LST, count($viter228));
- {
- foreach ($viter228 as $kiter229 => $viter230)
- {
- $xfer += $output->writeString($kiter229);
- {
- $output->writeListBegin(TType::STRUCT, count($viter230));
- {
- foreach ($viter230 as $iter231)
- {
- $xfer += $iter231->write($output);
- }
- }
- $output->writeListEnd();
- }
- }
- }
- $output->writeMapEnd();
- }
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->consistency_level !== null) {
- $xfer += $output->writeFieldBegin('consistency_level', TType::I32, 2);
- $xfer += $output->writeI32($this->consistency_level);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_batch_mutate_result {
- static $_TSPEC;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_batch_mutate_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_batch_mutate_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_truncate_args {
- static $_TSPEC;
- public $cfname = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'cfname',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['cfname'])) {
- $this->cfname = $vals['cfname'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_truncate_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->cfname);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_truncate_args');
- if ($this->cfname !== null) {
- $xfer += $output->writeFieldBegin('cfname', TType::STRING, 1);
- $xfer += $output->writeString($this->cfname);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_truncate_result {
- static $_TSPEC;
- public $ire = null;
- public $ue = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_truncate_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_truncate_result');
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_schema_versions_args {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'Cassandra_describe_schema_versions_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_schema_versions_args');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_schema_versions_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::MAP,
- 'ktype' => TType::STRING,
- 'vtype' => TType::LST,
- 'key' => array(
- 'type' => TType::STRING,
- ),
- 'val' => array(
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_schema_versions_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::MAP) {
- $this->success = array();
- $_size232 = 0;
- $_ktype233 = 0;
- $_vtype234 = 0;
- $xfer += $input->readMapBegin($_ktype233, $_vtype234, $_size232);
- for ($_i236 = 0; $_i236 < $_size232; ++$_i236)
- {
- $key237 = '';
- $val238 = array();
- $xfer += $input->readString($key237);
- $val238 = array();
- $_size239 = 0;
- $_etype242 = 0;
- $xfer += $input->readListBegin($_etype242, $_size239);
- for ($_i243 = 0; $_i243 < $_size239; ++$_i243)
- {
- $elem244 = null;
- $xfer += $input->readString($elem244);
- $val238 []= $elem244;
- }
- $xfer += $input->readListEnd();
- $this->success[$key237] = $val238;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_schema_versions_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::MAP, 0);
- {
- $output->writeMapBegin(TType::STRING, TType::LST, count($this->success));
- {
- foreach ($this->success as $kiter245 => $viter246)
- {
- $xfer += $output->writeString($kiter245);
- {
- $output->writeListBegin(TType::STRING, count($viter246));
- {
- foreach ($viter246 as $iter247)
- {
- $xfer += $output->writeString($iter247);
- }
- }
- $output->writeListEnd();
- }
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_keyspaces_args {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'Cassandra_describe_keyspaces_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_keyspaces_args');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_keyspaces_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KsDef',
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_keyspaces_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size248 = 0;
- $_etype251 = 0;
- $xfer += $input->readListBegin($_etype251, $_size248);
- for ($_i252 = 0; $_i252 < $_size248; ++$_i252)
- {
- $elem253 = null;
- $elem253 = new cassandra_KsDef();
- $xfer += $elem253->read($input);
- $this->success []= $elem253;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_keyspaces_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::LST, 0);
- {
- $output->writeListBegin(TType::STRUCT, count($this->success));
- {
- foreach ($this->success as $iter254)
- {
- $xfer += $iter254->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_cluster_name_args {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'Cassandra_describe_cluster_name_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_cluster_name_args');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_cluster_name_result {
- static $_TSPEC;
- public $success = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_cluster_name_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_cluster_name_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_version_args {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'Cassandra_describe_version_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_version_args');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_version_result {
- static $_TSPEC;
- public $success = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_version_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_version_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_ring_args {
- static $_TSPEC;
- public $keyspace = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'keyspace',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['keyspace'])) {
- $this->keyspace = $vals['keyspace'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_ring_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->keyspace);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_ring_args');
- if ($this->keyspace !== null) {
- $xfer += $output->writeFieldBegin('keyspace', TType::STRING, 1);
- $xfer += $output->writeString($this->keyspace);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_ring_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TokenRange',
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_ring_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size255 = 0;
- $_etype258 = 0;
- $xfer += $input->readListBegin($_etype258, $_size255);
- for ($_i259 = 0; $_i259 < $_size255; ++$_i259)
- {
- $elem260 = null;
- $elem260 = new cassandra_TokenRange();
- $xfer += $elem260->read($input);
- $this->success []= $elem260;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_ring_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::LST, 0);
- {
- $output->writeListBegin(TType::STRUCT, count($this->success));
- {
- foreach ($this->success as $iter261)
- {
- $xfer += $iter261->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_partitioner_args {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'Cassandra_describe_partitioner_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_partitioner_args');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_partitioner_result {
- static $_TSPEC;
- public $success = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_partitioner_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_partitioner_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_snitch_args {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'Cassandra_describe_snitch_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_snitch_args');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_snitch_result {
- static $_TSPEC;
- public $success = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_snitch_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_snitch_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_keyspace_args {
- static $_TSPEC;
- public $keyspace = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'keyspace',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['keyspace'])) {
- $this->keyspace = $vals['keyspace'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_keyspace_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->keyspace);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_keyspace_args');
- if ($this->keyspace !== null) {
- $xfer += $output->writeFieldBegin('keyspace', TType::STRING, 1);
- $xfer += $output->writeString($this->keyspace);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_keyspace_result {
- static $_TSPEC;
- public $success = null;
- public $nfe = null;
- public $ire = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KsDef',
- ),
- 1 => array(
- 'var' => 'nfe',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_NotFoundException',
- ),
- 2 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['nfe'])) {
- $this->nfe = $vals['nfe'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_keyspace_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRUCT) {
- $this->success = new cassandra_KsDef();
- $xfer += $this->success->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->nfe = new cassandra_NotFoundException();
- $xfer += $this->nfe->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_keyspace_result');
- if ($this->success !== null) {
- if (!is_object($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
- $xfer += $this->success->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->nfe !== null) {
- $xfer += $output->writeFieldBegin('nfe', TType::STRUCT, 1);
- $xfer += $this->nfe->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 2);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_splits_args {
- static $_TSPEC;
- public $cfName = null;
- public $start_token = null;
- public $end_token = null;
- public $keys_per_split = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'cfName',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'start_token',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'end_token',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'keys_per_split',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['cfName'])) {
- $this->cfName = $vals['cfName'];
- }
- if (isset($vals['start_token'])) {
- $this->start_token = $vals['start_token'];
- }
- if (isset($vals['end_token'])) {
- $this->end_token = $vals['end_token'];
- }
- if (isset($vals['keys_per_split'])) {
- $this->keys_per_split = $vals['keys_per_split'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_splits_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->cfName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->start_token);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->end_token);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->keys_per_split);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_splits_args');
- if ($this->cfName !== null) {
- $xfer += $output->writeFieldBegin('cfName', TType::STRING, 1);
- $xfer += $output->writeString($this->cfName);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->start_token !== null) {
- $xfer += $output->writeFieldBegin('start_token', TType::STRING, 2);
- $xfer += $output->writeString($this->start_token);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->end_token !== null) {
- $xfer += $output->writeFieldBegin('end_token', TType::STRING, 3);
- $xfer += $output->writeString($this->end_token);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->keys_per_split !== null) {
- $xfer += $output->writeFieldBegin('keys_per_split', TType::I32, 4);
- $xfer += $output->writeI32($this->keys_per_split);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_describe_splits_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_describe_splits_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::LST) {
- $this->success = array();
- $_size262 = 0;
- $_etype265 = 0;
- $xfer += $input->readListBegin($_etype265, $_size262);
- for ($_i266 = 0; $_i266 < $_size262; ++$_i266)
- {
- $elem267 = null;
- $xfer += $input->readString($elem267);
- $this->success []= $elem267;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_describe_splits_result');
- if ($this->success !== null) {
- if (!is_array($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::LST, 0);
- {
- $output->writeListBegin(TType::STRING, count($this->success));
- {
- foreach ($this->success as $iter268)
- {
- $xfer += $output->writeString($iter268);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_add_column_family_args {
- static $_TSPEC;
- public $cf_def = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'cf_def',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CfDef',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['cf_def'])) {
- $this->cf_def = $vals['cf_def'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_add_column_family_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->cf_def = new cassandra_CfDef();
- $xfer += $this->cf_def->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_add_column_family_args');
- if ($this->cf_def !== null) {
- if (!is_object($this->cf_def)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('cf_def', TType::STRUCT, 1);
- $xfer += $this->cf_def->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_add_column_family_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_add_column_family_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_add_column_family_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 2);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_drop_column_family_args {
- static $_TSPEC;
- public $column_family = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'column_family',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_family'])) {
- $this->column_family = $vals['column_family'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_drop_column_family_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->column_family);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_drop_column_family_args');
- if ($this->column_family !== null) {
- $xfer += $output->writeFieldBegin('column_family', TType::STRING, 1);
- $xfer += $output->writeString($this->column_family);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_drop_column_family_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_drop_column_family_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_drop_column_family_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 2);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_add_keyspace_args {
- static $_TSPEC;
- public $ks_def = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ks_def',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KsDef',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ks_def'])) {
- $this->ks_def = $vals['ks_def'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_add_keyspace_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ks_def = new cassandra_KsDef();
- $xfer += $this->ks_def->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_add_keyspace_args');
- if ($this->ks_def !== null) {
- if (!is_object($this->ks_def)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('ks_def', TType::STRUCT, 1);
- $xfer += $this->ks_def->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_add_keyspace_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_add_keyspace_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_add_keyspace_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 2);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_drop_keyspace_args {
- static $_TSPEC;
- public $keyspace = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'keyspace',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['keyspace'])) {
- $this->keyspace = $vals['keyspace'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_drop_keyspace_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->keyspace);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_drop_keyspace_args');
- if ($this->keyspace !== null) {
- $xfer += $output->writeFieldBegin('keyspace', TType::STRING, 1);
- $xfer += $output->writeString($this->keyspace);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_drop_keyspace_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_drop_keyspace_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_drop_keyspace_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 2);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_update_keyspace_args {
- static $_TSPEC;
- public $ks_def = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'ks_def',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_KsDef',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['ks_def'])) {
- $this->ks_def = $vals['ks_def'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_update_keyspace_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ks_def = new cassandra_KsDef();
- $xfer += $this->ks_def->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_update_keyspace_args');
- if ($this->ks_def !== null) {
- if (!is_object($this->ks_def)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('ks_def', TType::STRUCT, 1);
- $xfer += $this->ks_def->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_update_keyspace_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_update_keyspace_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_update_keyspace_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 2);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_update_column_family_args {
- static $_TSPEC;
- public $cf_def = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'cf_def',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CfDef',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['cf_def'])) {
- $this->cf_def = $vals['cf_def'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_update_column_family_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->cf_def = new cassandra_CfDef();
- $xfer += $this->cf_def->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_update_column_family_args');
- if ($this->cf_def !== null) {
- if (!is_object($this->cf_def)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('cf_def', TType::STRUCT, 1);
- $xfer += $this->cf_def->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_system_update_column_family_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRING,
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_system_update_column_family_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->success);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_system_update_column_family_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($this->success);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 2);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_execute_cql_query_args {
- static $_TSPEC;
- public $query = null;
- public $compression = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'query',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'compression',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['query'])) {
- $this->query = $vals['query'];
- }
- if (isset($vals['compression'])) {
- $this->compression = $vals['compression'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_execute_cql_query_args';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 1:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->query);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->compression);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_execute_cql_query_args');
- if ($this->query !== null) {
- $xfer += $output->writeFieldBegin('query', TType::STRING, 1);
- $xfer += $output->writeString($this->query);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->compression !== null) {
- $xfer += $output->writeFieldBegin('compression', TType::I32, 2);
- $xfer += $output->writeI32($this->compression);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_Cassandra_execute_cql_query_result {
- static $_TSPEC;
- public $success = null;
- public $ire = null;
- public $ue = null;
- public $te = null;
- public $sde = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 0 => array(
- 'var' => 'success',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CqlResult',
- ),
- 1 => array(
- 'var' => 'ire',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_InvalidRequestException',
- ),
- 2 => array(
- 'var' => 'ue',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_UnavailableException',
- ),
- 3 => array(
- 'var' => 'te',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_TimedOutException',
- ),
- 4 => array(
- 'var' => 'sde',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SchemaDisagreementException',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['success'])) {
- $this->success = $vals['success'];
- }
- if (isset($vals['ire'])) {
- $this->ire = $vals['ire'];
- }
- if (isset($vals['ue'])) {
- $this->ue = $vals['ue'];
- }
- if (isset($vals['te'])) {
- $this->te = $vals['te'];
- }
- if (isset($vals['sde'])) {
- $this->sde = $vals['sde'];
- }
- }
- }
- public function getName() {
- return 'Cassandra_execute_cql_query_result';
- }
- public function read($input)
- {
- $xfer = 0;
- $fname = null;
- $ftype = 0;
- $fid = 0;
- $xfer += $input->readStructBegin($fname);
- while (true)
- {
- $xfer += $input->readFieldBegin($fname, $ftype, $fid);
- if ($ftype == TType::STOP) {
- break;
- }
- switch ($fid)
- {
- case 0:
- if ($ftype == TType::STRUCT) {
- $this->success = new cassandra_CqlResult();
- $xfer += $this->success->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 1:
- if ($ftype == TType::STRUCT) {
- $this->ire = new cassandra_InvalidRequestException();
- $xfer += $this->ire->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->ue = new cassandra_UnavailableException();
- $xfer += $this->ue->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->te = new cassandra_TimedOutException();
- $xfer += $this->te->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRUCT) {
- $this->sde = new cassandra_SchemaDisagreementException();
- $xfer += $this->sde->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Cassandra_execute_cql_query_result');
- if ($this->success !== null) {
- if (!is_object($this->success)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
- $xfer += $this->success->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ire !== null) {
- $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1);
- $xfer += $this->ire->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ue !== null) {
- $xfer += $output->writeFieldBegin('ue', TType::STRUCT, 2);
- $xfer += $this->ue->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->te !== null) {
- $xfer += $output->writeFieldBegin('te', TType::STRUCT, 3);
- $xfer += $this->te->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sde !== null) {
- $xfer += $output->writeFieldBegin('sde', TType::STRUCT, 4);
- $xfer += $this->sde->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- ?>