/thrift/packages/cassandra/cassandra_types.php
PHP | 4460 lines | 4218 code | 236 blank | 6 comment | 755 complexity | 471af85419337474af7d8af16817f599 MD5 | raw file
Large files files are truncated, but you can click here to view the full 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';
- $GLOBALS['cassandra_E_ConsistencyLevel'] = array(
- 'ONE' => 1,
- 'QUORUM' => 2,
- 'LOCAL_QUORUM' => 3,
- 'EACH_QUORUM' => 4,
- 'ALL' => 5,
- 'ANY' => 6,
- 'TWO' => 7,
- 'THREE' => 8,
- );
- final class ConsistencyLevel {
- const ONE = 1;
- const QUORUM = 2;
- const LOCAL_QUORUM = 3;
- const EACH_QUORUM = 4;
- const ALL = 5;
- const ANY = 6;
- const TWO = 7;
- const THREE = 8;
- static public $__names = array(
- 1 => 'ONE',
- 2 => 'QUORUM',
- 3 => 'LOCAL_QUORUM',
- 4 => 'EACH_QUORUM',
- 5 => 'ALL',
- 6 => 'ANY',
- 7 => 'TWO',
- 8 => 'THREE',
- );
- }
- $GLOBALS['cassandra_E_IndexOperator'] = array(
- 'EQ' => 0,
- 'GTE' => 1,
- 'GT' => 2,
- 'LTE' => 3,
- 'LT' => 4,
- );
- final class IndexOperator {
- const EQ = 0;
- const GTE = 1;
- const GT = 2;
- const LTE = 3;
- const LT = 4;
- static public $__names = array(
- 0 => 'EQ',
- 1 => 'GTE',
- 2 => 'GT',
- 3 => 'LTE',
- 4 => 'LT',
- );
- }
- $GLOBALS['cassandra_E_IndexType'] = array(
- 'KEYS' => 0,
- 'CUSTOM' => 1,
- );
- final class IndexType {
- const KEYS = 0;
- const CUSTOM = 1;
- static public $__names = array(
- 0 => 'KEYS',
- 1 => 'CUSTOM',
- );
- }
- $GLOBALS['cassandra_E_Compression'] = array(
- 'GZIP' => 1,
- 'NONE' => 2,
- );
- final class Compression {
- const GZIP = 1;
- const NONE = 2;
- static public $__names = array(
- 1 => 'GZIP',
- 2 => 'NONE',
- );
- }
- $GLOBALS['cassandra_E_CqlResultType'] = array(
- 'ROWS' => 1,
- 'VOID' => 2,
- 'INT' => 3,
- );
- final class CqlResultType {
- const ROWS = 1;
- const VOID = 2;
- const INT = 3;
- static public $__names = array(
- 1 => 'ROWS',
- 2 => 'VOID',
- 3 => 'INT',
- );
- }
- class cassandra_Column {
- static $_TSPEC;
- public $name = null;
- public $value = null;
- public $timestamp = null;
- public $ttl = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'value',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'timestamp',
- 'type' => TType::I64,
- ),
- 4 => array(
- 'var' => 'ttl',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['value'])) {
- $this->value = $vals['value'];
- }
- if (isset($vals['timestamp'])) {
- $this->timestamp = $vals['timestamp'];
- }
- if (isset($vals['ttl'])) {
- $this->ttl = $vals['ttl'];
- }
- }
- }
- public function getName() {
- return 'Column';
- }
- 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->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->value);
- } 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->ttl);
- } 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('Column');
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->value !== null) {
- $xfer += $output->writeFieldBegin('value', TType::STRING, 2);
- $xfer += $output->writeString($this->value);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->timestamp !== null) {
- $xfer += $output->writeFieldBegin('timestamp', TType::I64, 3);
- $xfer += $output->writeI64($this->timestamp);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ttl !== null) {
- $xfer += $output->writeFieldBegin('ttl', TType::I32, 4);
- $xfer += $output->writeI32($this->ttl);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_SuperColumn {
- static $_TSPEC;
- public $name = null;
- public $columns = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'columns',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_Column',
- ),
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['columns'])) {
- $this->columns = $vals['columns'];
- }
- }
- }
- public function getName() {
- return 'SuperColumn';
- }
- 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->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::LST) {
- $this->columns = array();
- $_size0 = 0;
- $_etype3 = 0;
- $xfer += $input->readListBegin($_etype3, $_size0);
- for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
- {
- $elem5 = null;
- $elem5 = new cassandra_Column();
- $xfer += $elem5->read($input);
- $this->columns []= $elem5;
- }
- $xfer += $input->readListEnd();
- } 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('SuperColumn');
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->columns !== null) {
- if (!is_array($this->columns)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('columns', TType::LST, 2);
- {
- $output->writeListBegin(TType::STRUCT, count($this->columns));
- {
- foreach ($this->columns as $iter6)
- {
- $xfer += $iter6->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_CounterColumn {
- static $_TSPEC;
- public $name = null;
- public $value = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'value',
- 'type' => TType::I64,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['value'])) {
- $this->value = $vals['value'];
- }
- }
- }
- public function getName() {
- return 'CounterColumn';
- }
- 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->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I64) {
- $xfer += $input->readI64($this->value);
- } 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('CounterColumn');
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->value !== null) {
- $xfer += $output->writeFieldBegin('value', TType::I64, 2);
- $xfer += $output->writeI64($this->value);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_CounterSuperColumn {
- static $_TSPEC;
- public $name = null;
- public $columns = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'name',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'columns',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CounterColumn',
- ),
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['name'])) {
- $this->name = $vals['name'];
- }
- if (isset($vals['columns'])) {
- $this->columns = $vals['columns'];
- }
- }
- }
- public function getName() {
- return 'CounterSuperColumn';
- }
- 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->name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::LST) {
- $this->columns = array();
- $_size7 = 0;
- $_etype10 = 0;
- $xfer += $input->readListBegin($_etype10, $_size7);
- for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
- {
- $elem12 = null;
- $elem12 = new cassandra_CounterColumn();
- $xfer += $elem12->read($input);
- $this->columns []= $elem12;
- }
- $xfer += $input->readListEnd();
- } 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('CounterSuperColumn');
- if ($this->name !== null) {
- $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
- $xfer += $output->writeString($this->name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->columns !== null) {
- if (!is_array($this->columns)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('columns', TType::LST, 2);
- {
- $output->writeListBegin(TType::STRUCT, count($this->columns));
- {
- foreach ($this->columns as $iter13)
- {
- $xfer += $iter13->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_ColumnOrSuperColumn {
- static $_TSPEC;
- public $column = null;
- public $super_column = null;
- public $counter_column = null;
- public $counter_super_column = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'column',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_Column',
- ),
- 2 => array(
- 'var' => 'super_column',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SuperColumn',
- ),
- 3 => array(
- 'var' => 'counter_column',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CounterColumn',
- ),
- 4 => array(
- 'var' => 'counter_super_column',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_CounterSuperColumn',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column'])) {
- $this->column = $vals['column'];
- }
- if (isset($vals['super_column'])) {
- $this->super_column = $vals['super_column'];
- }
- if (isset($vals['counter_column'])) {
- $this->counter_column = $vals['counter_column'];
- }
- if (isset($vals['counter_super_column'])) {
- $this->counter_super_column = $vals['counter_super_column'];
- }
- }
- }
- public function getName() {
- return 'ColumnOrSuperColumn';
- }
- 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 = new cassandra_Column();
- $xfer += $this->column->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->super_column = new cassandra_SuperColumn();
- $xfer += $this->super_column->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->counter_column = new cassandra_CounterColumn();
- $xfer += $this->counter_column->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRUCT) {
- $this->counter_super_column = new cassandra_CounterSuperColumn();
- $xfer += $this->counter_super_column->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('ColumnOrSuperColumn');
- 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, 1);
- $xfer += $this->column->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->super_column !== null) {
- if (!is_object($this->super_column)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('super_column', TType::STRUCT, 2);
- $xfer += $this->super_column->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->counter_column !== null) {
- if (!is_object($this->counter_column)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('counter_column', TType::STRUCT, 3);
- $xfer += $this->counter_column->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->counter_super_column !== null) {
- if (!is_object($this->counter_super_column)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('counter_super_column', TType::STRUCT, 4);
- $xfer += $this->counter_super_column->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_NotFoundException extends TException {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'NotFoundException';
- }
- 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('NotFoundException');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_InvalidRequestException extends TException {
- static $_TSPEC;
- public $why = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'why',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['why'])) {
- $this->why = $vals['why'];
- }
- }
- }
- public function getName() {
- return 'InvalidRequestException';
- }
- 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->why);
- } 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('InvalidRequestException');
- if ($this->why !== null) {
- $xfer += $output->writeFieldBegin('why', TType::STRING, 1);
- $xfer += $output->writeString($this->why);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_UnavailableException extends TException {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'UnavailableException';
- }
- 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('UnavailableException');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_TimedOutException extends TException {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'TimedOutException';
- }
- 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('TimedOutException');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_AuthenticationException extends TException {
- static $_TSPEC;
- public $why = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'why',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['why'])) {
- $this->why = $vals['why'];
- }
- }
- }
- public function getName() {
- return 'AuthenticationException';
- }
- 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->why);
- } 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('AuthenticationException');
- if ($this->why !== null) {
- $xfer += $output->writeFieldBegin('why', TType::STRING, 1);
- $xfer += $output->writeString($this->why);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_AuthorizationException extends TException {
- static $_TSPEC;
- public $why = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'why',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['why'])) {
- $this->why = $vals['why'];
- }
- }
- }
- public function getName() {
- return 'AuthorizationException';
- }
- 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->why);
- } 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('AuthorizationException');
- if ($this->why !== null) {
- $xfer += $output->writeFieldBegin('why', TType::STRING, 1);
- $xfer += $output->writeString($this->why);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_SchemaDisagreementException extends TException {
- static $_TSPEC;
- public function __construct() {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- );
- }
- }
- public function getName() {
- return 'SchemaDisagreementException';
- }
- 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('SchemaDisagreementException');
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_ColumnParent {
- static $_TSPEC;
- public $column_family = null;
- public $super_column = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 3 => array(
- 'var' => 'column_family',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'super_column',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_family'])) {
- $this->column_family = $vals['column_family'];
- }
- if (isset($vals['super_column'])) {
- $this->super_column = $vals['super_column'];
- }
- }
- }
- public function getName() {
- return 'ColumnParent';
- }
- 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 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->column_family);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->super_column);
- } 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('ColumnParent');
- if ($this->column_family !== null) {
- $xfer += $output->writeFieldBegin('column_family', TType::STRING, 3);
- $xfer += $output->writeString($this->column_family);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->super_column !== null) {
- $xfer += $output->writeFieldBegin('super_column', TType::STRING, 4);
- $xfer += $output->writeString($this->super_column);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_ColumnPath {
- static $_TSPEC;
- public $column_family = null;
- public $super_column = null;
- public $column = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 3 => array(
- 'var' => 'column_family',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'super_column',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'column',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_family'])) {
- $this->column_family = $vals['column_family'];
- }
- if (isset($vals['super_column'])) {
- $this->super_column = $vals['super_column'];
- }
- if (isset($vals['column'])) {
- $this->column = $vals['column'];
- }
- }
- }
- public function getName() {
- return 'ColumnPath';
- }
- 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 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->column_family);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->super_column);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->column);
- } 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('ColumnPath');
- if ($this->column_family !== null) {
- $xfer += $output->writeFieldBegin('column_family', TType::STRING, 3);
- $xfer += $output->writeString($this->column_family);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->super_column !== null) {
- $xfer += $output->writeFieldBegin('super_column', TType::STRING, 4);
- $xfer += $output->writeString($this->super_column);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->column !== null) {
- $xfer += $output->writeFieldBegin('column', TType::STRING, 5);
- $xfer += $output->writeString($this->column);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_SliceRange {
- static $_TSPEC;
- public $start = null;
- public $finish = null;
- public $reversed = false;
- public $count = 100;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'start',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'finish',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'reversed',
- 'type' => TType::BOOL,
- ),
- 4 => array(
- 'var' => 'count',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['start'])) {
- $this->start = $vals['start'];
- }
- if (isset($vals['finish'])) {
- $this->finish = $vals['finish'];
- }
- if (isset($vals['reversed'])) {
- $this->reversed = $vals['reversed'];
- }
- if (isset($vals['count'])) {
- $this->count = $vals['count'];
- }
- }
- }
- public function getName() {
- return 'SliceRange';
- }
- 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->start);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->finish);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::BOOL) {
- $xfer += $input->readBool($this->reversed);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->count);
- } 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('SliceRange');
- if ($this->start !== null) {
- $xfer += $output->writeFieldBegin('start', TType::STRING, 1);
- $xfer += $output->writeString($this->start);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->finish !== null) {
- $xfer += $output->writeFieldBegin('finish', TType::STRING, 2);
- $xfer += $output->writeString($this->finish);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->reversed !== null) {
- $xfer += $output->writeFieldBegin('reversed', TType::BOOL, 3);
- $xfer += $output->writeBool($this->reversed);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->count !== null) {
- $xfer += $output->writeFieldBegin('count', TType::I32, 4);
- $xfer += $output->writeI32($this->count);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_SlicePredicate {
- static $_TSPEC;
- public $column_names = null;
- public $slice_range = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'column_names',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- 2 => array(
- 'var' => 'slice_range',
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_SliceRange',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_names'])) {
- $this->column_names = $vals['column_names'];
- }
- if (isset($vals['slice_range'])) {
- $this->slice_range = $vals['slice_range'];
- }
- }
- }
- public function getName() {
- return 'SlicePredicate';
- }
- 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->column_names = array();
- $_size14 = 0;
- $_etype17 = 0;
- $xfer += $input->readListBegin($_etype17, $_size14);
- for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
- {
- $elem19 = null;
- $xfer += $input->readString($elem19);
- $this->column_names []= $elem19;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->slice_range = new cassandra_SliceRange();
- $xfer += $this->slice_range->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('SlicePredicate');
- if ($this->column_names !== null) {
- if (!is_array($this->column_names)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('column_names', TType::LST, 1);
- {
- $output->writeListBegin(TType::STRING, count($this->column_names));
- {
- foreach ($this->column_names as $iter20)
- {
- $xfer += $output->writeString($iter20);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->slice_range !== null) {
- if (!is_object($this->slice_range)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('slice_range', TType::STRUCT, 2);
- $xfer += $this->slice_range->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_IndexExpression {
- static $_TSPEC;
- public $column_name = null;
- public $op = null;
- public $value = null;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'column_name',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'op',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'value',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['column_name'])) {
- $this->column_name = $vals['column_name'];
- }
- if (isset($vals['op'])) {
- $this->op = $vals['op'];
- }
- if (isset($vals['value'])) {
- $this->value = $vals['value'];
- }
- }
- }
- public function getName() {
- return 'IndexExpression';
- }
- 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_name);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->op);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->value);
- } 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('IndexExpression');
- if ($this->column_name !== null) {
- $xfer += $output->writeFieldBegin('column_name', TType::STRING, 1);
- $xfer += $output->writeString($this->column_name);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->op !== null) {
- $xfer += $output->writeFieldBegin('op', TType::I32, 2);
- $xfer += $output->writeI32($this->op);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->value !== null) {
- $xfer += $output->writeFieldBegin('value', TType::STRING, 3);
- $xfer += $output->writeString($this->value);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_IndexClause {
- static $_TSPEC;
- public $expressions = null;
- public $start_key = null;
- public $count = 100;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'expressions',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => 'cassandra_IndexExpression',
- ),
- ),
- 2 => array(
- 'var' => 'start_key',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'count',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['expressions'])) {
- $this->expressions = $vals['expressions'];
- }
- if (isset($vals['start_key'])) {
- $this->start_key = $vals['start_key'];
- }
- if (isset($vals['count'])) {
- $this->count = $vals['count'];
- }
- }
- }
- public function getName() {
- return 'IndexClause';
- }
- 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->expressions = array();
- $_size21 = 0;
- $_etype24 = 0;
- $xfer += $input->readListBegin($_etype24, $_size21);
- for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
- {
- $elem26 = null;
- $elem26 = new cassandra_IndexExpression();
- $xfer += $elem26->read($input);
- $this->expressions []= $elem26;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->start_key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->count);
- } 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('IndexClause');
- if ($this->expressions !== null) {
- if (!is_array($this->expressions)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('expressions', TType::LST, 1);
- {
- $output->writeListBegin(TType::STRUCT, count($this->expressions));
- {
- foreach ($this->expressions as $iter27)
- {
- $xfer += $iter27->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->start_key !== null) {
- $xfer += $output->writeFieldBegin('start_key', TType::STRING, 2);
- $xfer += $output->writeString($this->start_key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->count !== null) {
- $xfer += $output->writeFieldBegin('count', TType::I32, 3);
- $xfer += $output->writeI32($this->count);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_KeyRange {
- static $_TSPEC;
- public $start_key = null;
- public $end_key = null;
- public $start_token = null;
- public $end_token = null;
- public $count = 100;
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'start_key',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'end_key',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'start_token',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'end_token',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'count',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['start_key'])) {
- $this->start_key = $vals['start_key'];
- }
- if (isset($vals['end_key'])) {
- $this->end_key = $vals['end_key'];
- }
- 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['count'])) {
- $this->count = $vals['count'];
- }
- }
- }
- public function getName() {
- return 'KeyRange';
- }
- 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->start_key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->end_key);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->start_token);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->end_token);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->count);
- } 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('KeyRange');
- if ($this->start_key !== null) {
- $xfer += $output->writeFieldBegin('start_key', TType::STRING, 1);
- $xfer += $output->writeString($this->start_key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->end_key !== null) {
- $xfer += $output->writeFieldBegin('end_key', TType::STRING, 2);
- $xfer += $output->writeString($this->end_key);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->start_token !== null) {
- $xfer += $output->writeFieldBegin('start_token', TType::STRING, 3);
- $xfer += $output->writeString($this->start_token);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->end_token !== null) {
- $xfer += $output->writeFieldBegin('end_token', TType::STRING, 4);
- $xfer += $output->writeString($this->end_token);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->count !== null) {
- $xfer += $output->writeFieldBegin('count', TType::I32, 5);
- $xfer += $output->writeI32($this->count);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
- }
- class cassandra_KeySlice {
- static $_TSPEC;
- publ…
Large files files are truncated, but you can click here to view the full file