2
* Autogenerated by Thrift Compiler (0.9.0-dev)
4
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
7
#include "cassandra_types.h"
11
namespace org { namespace apache { namespace cassandra {
13
int _kConsistencyLevelValues[] = {
14
ConsistencyLevel::ONE,
15
ConsistencyLevel::QUORUM,
16
ConsistencyLevel::LOCAL_QUORUM,
17
ConsistencyLevel::EACH_QUORUM,
18
ConsistencyLevel::ALL,
19
ConsistencyLevel::ANY,
20
ConsistencyLevel::TWO,
21
ConsistencyLevel::THREE
23
const char* _kConsistencyLevelNames[] = {
33
const std::map<int, const char*> _ConsistencyLevel_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kConsistencyLevelValues, _kConsistencyLevelNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
35
int _kIndexOperatorValues[] = {
42
const char* _kIndexOperatorNames[] = {
49
const std::map<int, const char*> _IndexOperator_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(5, _kIndexOperatorValues, _kIndexOperatorNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
51
int _kIndexTypeValues[] = {
55
const char* _kIndexTypeNames[] = {
59
const std::map<int, const char*> _IndexType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kIndexTypeValues, _kIndexTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
61
int _kCompressionValues[] = {
65
const char* _kCompressionNames[] = {
69
const std::map<int, const char*> _Compression_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kCompressionValues, _kCompressionNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
71
int _kCqlResultTypeValues[] = {
76
const char* _kCqlResultTypeNames[] = {
81
const std::map<int, const char*> _CqlResultType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kCqlResultTypeValues, _kCqlResultTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL));
83
const char* Column::ascii_fingerprint = "3EE0E1C5C844001B62F08125068292CC";
84
const uint8_t Column::binary_fingerprint[16] = {0x3E,0xE0,0xE1,0xC5,0xC8,0x44,0x00,0x1B,0x62,0xF0,0x81,0x25,0x06,0x82,0x92,0xCC};
86
uint32_t Column::read(::apache::thrift::protocol::TProtocol* iprot) {
90
::apache::thrift::protocol::TType ftype;
93
xfer += iprot->readStructBegin(fname);
95
using ::apache::thrift::protocol::TProtocolException;
97
bool isset_name = false;
101
xfer += iprot->readFieldBegin(fname, ftype, fid);
102
if (ftype == ::apache::thrift::protocol::T_STOP) {
108
if (ftype == ::apache::thrift::protocol::T_STRING) {
109
xfer += iprot->readBinary(this->name);
112
xfer += iprot->skip(ftype);
116
if (ftype == ::apache::thrift::protocol::T_STRING) {
117
xfer += iprot->readBinary(this->value);
118
this->__isset.value = true;
120
xfer += iprot->skip(ftype);
124
if (ftype == ::apache::thrift::protocol::T_I64) {
125
xfer += iprot->readI64(this->timestamp);
126
this->__isset.timestamp = true;
128
xfer += iprot->skip(ftype);
132
if (ftype == ::apache::thrift::protocol::T_I32) {
133
xfer += iprot->readI32(this->ttl);
134
this->__isset.ttl = true;
136
xfer += iprot->skip(ftype);
140
xfer += iprot->skip(ftype);
143
xfer += iprot->readFieldEnd();
146
xfer += iprot->readStructEnd();
149
throw TProtocolException(TProtocolException::INVALID_DATA);
153
uint32_t Column::write(::apache::thrift::protocol::TProtocol* oprot) const {
155
xfer += oprot->writeStructBegin("Column");
157
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
158
xfer += oprot->writeBinary(this->name);
159
xfer += oprot->writeFieldEnd();
161
if (this->__isset.value) {
162
xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 2);
163
xfer += oprot->writeBinary(this->value);
164
xfer += oprot->writeFieldEnd();
166
if (this->__isset.timestamp) {
167
xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
168
xfer += oprot->writeI64(this->timestamp);
169
xfer += oprot->writeFieldEnd();
171
if (this->__isset.ttl) {
172
xfer += oprot->writeFieldBegin("ttl", ::apache::thrift::protocol::T_I32, 4);
173
xfer += oprot->writeI32(this->ttl);
174
xfer += oprot->writeFieldEnd();
176
xfer += oprot->writeFieldStop();
177
xfer += oprot->writeStructEnd();
181
void swap(Column &a, Column &b) {
183
swap(a.name, b.name);
184
swap(a.value, b.value);
185
swap(a.timestamp, b.timestamp);
187
swap(a.__isset, b.__isset);
190
const char* SuperColumn::ascii_fingerprint = "470EFC558004E98D92D604898305C04E";
191
const uint8_t SuperColumn::binary_fingerprint[16] = {0x47,0x0E,0xFC,0x55,0x80,0x04,0xE9,0x8D,0x92,0xD6,0x04,0x89,0x83,0x05,0xC0,0x4E};
193
uint32_t SuperColumn::read(::apache::thrift::protocol::TProtocol* iprot) {
197
::apache::thrift::protocol::TType ftype;
200
xfer += iprot->readStructBegin(fname);
202
using ::apache::thrift::protocol::TProtocolException;
204
bool isset_name = false;
205
bool isset_columns = false;
209
xfer += iprot->readFieldBegin(fname, ftype, fid);
210
if (ftype == ::apache::thrift::protocol::T_STOP) {
216
if (ftype == ::apache::thrift::protocol::T_STRING) {
217
xfer += iprot->readBinary(this->name);
220
xfer += iprot->skip(ftype);
224
if (ftype == ::apache::thrift::protocol::T_LIST) {
226
this->columns.clear();
228
::apache::thrift::protocol::TType _etype3;
229
xfer += iprot->readListBegin(_etype3, _size0);
230
this->columns.resize(_size0);
232
for (_i4 = 0; _i4 < _size0; ++_i4)
234
xfer += this->columns[_i4].read(iprot);
236
xfer += iprot->readListEnd();
238
isset_columns = true;
240
xfer += iprot->skip(ftype);
244
xfer += iprot->skip(ftype);
247
xfer += iprot->readFieldEnd();
250
xfer += iprot->readStructEnd();
253
throw TProtocolException(TProtocolException::INVALID_DATA);
255
throw TProtocolException(TProtocolException::INVALID_DATA);
259
uint32_t SuperColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
261
xfer += oprot->writeStructBegin("SuperColumn");
263
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
264
xfer += oprot->writeBinary(this->name);
265
xfer += oprot->writeFieldEnd();
267
xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 2);
269
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->columns.size()));
270
std::vector<Column> ::const_iterator _iter5;
271
for (_iter5 = this->columns.begin(); _iter5 != this->columns.end(); ++_iter5)
273
xfer += (*_iter5).write(oprot);
275
xfer += oprot->writeListEnd();
277
xfer += oprot->writeFieldEnd();
279
xfer += oprot->writeFieldStop();
280
xfer += oprot->writeStructEnd();
284
void swap(SuperColumn &a, SuperColumn &b) {
286
swap(a.name, b.name);
287
swap(a.columns, b.columns);
290
const char* CounterColumn::ascii_fingerprint = "1CCCF6FC31CFD1D61BBBB1BAF3590620";
291
const uint8_t CounterColumn::binary_fingerprint[16] = {0x1C,0xCC,0xF6,0xFC,0x31,0xCF,0xD1,0xD6,0x1B,0xBB,0xB1,0xBA,0xF3,0x59,0x06,0x20};
293
uint32_t CounterColumn::read(::apache::thrift::protocol::TProtocol* iprot) {
297
::apache::thrift::protocol::TType ftype;
300
xfer += iprot->readStructBegin(fname);
302
using ::apache::thrift::protocol::TProtocolException;
304
bool isset_name = false;
305
bool isset_value = false;
309
xfer += iprot->readFieldBegin(fname, ftype, fid);
310
if (ftype == ::apache::thrift::protocol::T_STOP) {
316
if (ftype == ::apache::thrift::protocol::T_STRING) {
317
xfer += iprot->readBinary(this->name);
320
xfer += iprot->skip(ftype);
324
if (ftype == ::apache::thrift::protocol::T_I64) {
325
xfer += iprot->readI64(this->value);
328
xfer += iprot->skip(ftype);
332
xfer += iprot->skip(ftype);
335
xfer += iprot->readFieldEnd();
338
xfer += iprot->readStructEnd();
341
throw TProtocolException(TProtocolException::INVALID_DATA);
343
throw TProtocolException(TProtocolException::INVALID_DATA);
347
uint32_t CounterColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
349
xfer += oprot->writeStructBegin("CounterColumn");
351
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
352
xfer += oprot->writeBinary(this->name);
353
xfer += oprot->writeFieldEnd();
355
xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_I64, 2);
356
xfer += oprot->writeI64(this->value);
357
xfer += oprot->writeFieldEnd();
359
xfer += oprot->writeFieldStop();
360
xfer += oprot->writeStructEnd();
364
void swap(CounterColumn &a, CounterColumn &b) {
366
swap(a.name, b.name);
367
swap(a.value, b.value);
370
const char* CounterSuperColumn::ascii_fingerprint = "CD4C8C4BF7753E46DE417CDE369343A4";
371
const uint8_t CounterSuperColumn::binary_fingerprint[16] = {0xCD,0x4C,0x8C,0x4B,0xF7,0x75,0x3E,0x46,0xDE,0x41,0x7C,0xDE,0x36,0x93,0x43,0xA4};
373
uint32_t CounterSuperColumn::read(::apache::thrift::protocol::TProtocol* iprot) {
377
::apache::thrift::protocol::TType ftype;
380
xfer += iprot->readStructBegin(fname);
382
using ::apache::thrift::protocol::TProtocolException;
384
bool isset_name = false;
385
bool isset_columns = false;
389
xfer += iprot->readFieldBegin(fname, ftype, fid);
390
if (ftype == ::apache::thrift::protocol::T_STOP) {
396
if (ftype == ::apache::thrift::protocol::T_STRING) {
397
xfer += iprot->readBinary(this->name);
400
xfer += iprot->skip(ftype);
404
if (ftype == ::apache::thrift::protocol::T_LIST) {
406
this->columns.clear();
408
::apache::thrift::protocol::TType _etype9;
409
xfer += iprot->readListBegin(_etype9, _size6);
410
this->columns.resize(_size6);
412
for (_i10 = 0; _i10 < _size6; ++_i10)
414
xfer += this->columns[_i10].read(iprot);
416
xfer += iprot->readListEnd();
418
isset_columns = true;
420
xfer += iprot->skip(ftype);
424
xfer += iprot->skip(ftype);
427
xfer += iprot->readFieldEnd();
430
xfer += iprot->readStructEnd();
433
throw TProtocolException(TProtocolException::INVALID_DATA);
435
throw TProtocolException(TProtocolException::INVALID_DATA);
439
uint32_t CounterSuperColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
441
xfer += oprot->writeStructBegin("CounterSuperColumn");
443
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
444
xfer += oprot->writeBinary(this->name);
445
xfer += oprot->writeFieldEnd();
447
xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 2);
449
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->columns.size()));
450
std::vector<CounterColumn> ::const_iterator _iter11;
451
for (_iter11 = this->columns.begin(); _iter11 != this->columns.end(); ++_iter11)
453
xfer += (*_iter11).write(oprot);
455
xfer += oprot->writeListEnd();
457
xfer += oprot->writeFieldEnd();
459
xfer += oprot->writeFieldStop();
460
xfer += oprot->writeStructEnd();
464
void swap(CounterSuperColumn &a, CounterSuperColumn &b) {
466
swap(a.name, b.name);
467
swap(a.columns, b.columns);
470
const char* ColumnOrSuperColumn::ascii_fingerprint = "2B34AC9E80F1DAA3A2A63B1AB1841E61";
471
const uint8_t ColumnOrSuperColumn::binary_fingerprint[16] = {0x2B,0x34,0xAC,0x9E,0x80,0xF1,0xDA,0xA3,0xA2,0xA6,0x3B,0x1A,0xB1,0x84,0x1E,0x61};
473
uint32_t ColumnOrSuperColumn::read(::apache::thrift::protocol::TProtocol* iprot) {
477
::apache::thrift::protocol::TType ftype;
480
xfer += iprot->readStructBegin(fname);
482
using ::apache::thrift::protocol::TProtocolException;
487
xfer += iprot->readFieldBegin(fname, ftype, fid);
488
if (ftype == ::apache::thrift::protocol::T_STOP) {
494
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
495
xfer += this->column.read(iprot);
496
this->__isset.column = true;
498
xfer += iprot->skip(ftype);
502
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
503
xfer += this->super_column.read(iprot);
504
this->__isset.super_column = true;
506
xfer += iprot->skip(ftype);
510
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
511
xfer += this->counter_column.read(iprot);
512
this->__isset.counter_column = true;
514
xfer += iprot->skip(ftype);
518
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
519
xfer += this->counter_super_column.read(iprot);
520
this->__isset.counter_super_column = true;
522
xfer += iprot->skip(ftype);
526
xfer += iprot->skip(ftype);
529
xfer += iprot->readFieldEnd();
532
xfer += iprot->readStructEnd();
537
uint32_t ColumnOrSuperColumn::write(::apache::thrift::protocol::TProtocol* oprot) const {
539
xfer += oprot->writeStructBegin("ColumnOrSuperColumn");
541
if (this->__isset.column) {
542
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 1);
543
xfer += this->column.write(oprot);
544
xfer += oprot->writeFieldEnd();
546
if (this->__isset.super_column) {
547
xfer += oprot->writeFieldBegin("super_column", ::apache::thrift::protocol::T_STRUCT, 2);
548
xfer += this->super_column.write(oprot);
549
xfer += oprot->writeFieldEnd();
551
if (this->__isset.counter_column) {
552
xfer += oprot->writeFieldBegin("counter_column", ::apache::thrift::protocol::T_STRUCT, 3);
553
xfer += this->counter_column.write(oprot);
554
xfer += oprot->writeFieldEnd();
556
if (this->__isset.counter_super_column) {
557
xfer += oprot->writeFieldBegin("counter_super_column", ::apache::thrift::protocol::T_STRUCT, 4);
558
xfer += this->counter_super_column.write(oprot);
559
xfer += oprot->writeFieldEnd();
561
xfer += oprot->writeFieldStop();
562
xfer += oprot->writeStructEnd();
566
void swap(ColumnOrSuperColumn &a, ColumnOrSuperColumn &b) {
568
swap(a.column, b.column);
569
swap(a.super_column, b.super_column);
570
swap(a.counter_column, b.counter_column);
571
swap(a.counter_super_column, b.counter_super_column);
572
swap(a.__isset, b.__isset);
575
const char* NotFoundException::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B";
576
const uint8_t NotFoundException::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B};
578
uint32_t NotFoundException::read(::apache::thrift::protocol::TProtocol* iprot) {
582
::apache::thrift::protocol::TType ftype;
585
xfer += iprot->readStructBegin(fname);
587
using ::apache::thrift::protocol::TProtocolException;
592
xfer += iprot->readFieldBegin(fname, ftype, fid);
593
if (ftype == ::apache::thrift::protocol::T_STOP) {
599
xfer += iprot->skip(ftype);
602
xfer += iprot->readFieldEnd();
605
xfer += iprot->readStructEnd();
610
uint32_t NotFoundException::write(::apache::thrift::protocol::TProtocol* oprot) const {
612
xfer += oprot->writeStructBegin("NotFoundException");
614
xfer += oprot->writeFieldStop();
615
xfer += oprot->writeStructEnd();
619
void swap(NotFoundException &a, NotFoundException &b) {
625
const char* InvalidRequestException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1";
626
const uint8_t InvalidRequestException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
628
uint32_t InvalidRequestException::read(::apache::thrift::protocol::TProtocol* iprot) {
632
::apache::thrift::protocol::TType ftype;
635
xfer += iprot->readStructBegin(fname);
637
using ::apache::thrift::protocol::TProtocolException;
639
bool isset_why = false;
643
xfer += iprot->readFieldBegin(fname, ftype, fid);
644
if (ftype == ::apache::thrift::protocol::T_STOP) {
650
if (ftype == ::apache::thrift::protocol::T_STRING) {
651
xfer += iprot->readString(this->why);
654
xfer += iprot->skip(ftype);
658
xfer += iprot->skip(ftype);
661
xfer += iprot->readFieldEnd();
664
xfer += iprot->readStructEnd();
667
throw TProtocolException(TProtocolException::INVALID_DATA);
671
uint32_t InvalidRequestException::write(::apache::thrift::protocol::TProtocol* oprot) const {
673
xfer += oprot->writeStructBegin("InvalidRequestException");
675
xfer += oprot->writeFieldBegin("why", ::apache::thrift::protocol::T_STRING, 1);
676
xfer += oprot->writeString(this->why);
677
xfer += oprot->writeFieldEnd();
679
xfer += oprot->writeFieldStop();
680
xfer += oprot->writeStructEnd();
684
void swap(InvalidRequestException &a, InvalidRequestException &b) {
689
const char* UnavailableException::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B";
690
const uint8_t UnavailableException::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B};
692
uint32_t UnavailableException::read(::apache::thrift::protocol::TProtocol* iprot) {
696
::apache::thrift::protocol::TType ftype;
699
xfer += iprot->readStructBegin(fname);
701
using ::apache::thrift::protocol::TProtocolException;
706
xfer += iprot->readFieldBegin(fname, ftype, fid);
707
if (ftype == ::apache::thrift::protocol::T_STOP) {
713
xfer += iprot->skip(ftype);
716
xfer += iprot->readFieldEnd();
719
xfer += iprot->readStructEnd();
724
uint32_t UnavailableException::write(::apache::thrift::protocol::TProtocol* oprot) const {
726
xfer += oprot->writeStructBegin("UnavailableException");
728
xfer += oprot->writeFieldStop();
729
xfer += oprot->writeStructEnd();
733
void swap(UnavailableException &a, UnavailableException &b) {
739
const char* TimedOutException::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B";
740
const uint8_t TimedOutException::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B};
742
uint32_t TimedOutException::read(::apache::thrift::protocol::TProtocol* iprot) {
746
::apache::thrift::protocol::TType ftype;
749
xfer += iprot->readStructBegin(fname);
751
using ::apache::thrift::protocol::TProtocolException;
756
xfer += iprot->readFieldBegin(fname, ftype, fid);
757
if (ftype == ::apache::thrift::protocol::T_STOP) {
763
xfer += iprot->skip(ftype);
766
xfer += iprot->readFieldEnd();
769
xfer += iprot->readStructEnd();
774
uint32_t TimedOutException::write(::apache::thrift::protocol::TProtocol* oprot) const {
776
xfer += oprot->writeStructBegin("TimedOutException");
778
xfer += oprot->writeFieldStop();
779
xfer += oprot->writeStructEnd();
783
void swap(TimedOutException &a, TimedOutException &b) {
789
const char* AuthenticationException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1";
790
const uint8_t AuthenticationException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
792
uint32_t AuthenticationException::read(::apache::thrift::protocol::TProtocol* iprot) {
796
::apache::thrift::protocol::TType ftype;
799
xfer += iprot->readStructBegin(fname);
801
using ::apache::thrift::protocol::TProtocolException;
803
bool isset_why = false;
807
xfer += iprot->readFieldBegin(fname, ftype, fid);
808
if (ftype == ::apache::thrift::protocol::T_STOP) {
814
if (ftype == ::apache::thrift::protocol::T_STRING) {
815
xfer += iprot->readString(this->why);
818
xfer += iprot->skip(ftype);
822
xfer += iprot->skip(ftype);
825
xfer += iprot->readFieldEnd();
828
xfer += iprot->readStructEnd();
831
throw TProtocolException(TProtocolException::INVALID_DATA);
835
uint32_t AuthenticationException::write(::apache::thrift::protocol::TProtocol* oprot) const {
837
xfer += oprot->writeStructBegin("AuthenticationException");
839
xfer += oprot->writeFieldBegin("why", ::apache::thrift::protocol::T_STRING, 1);
840
xfer += oprot->writeString(this->why);
841
xfer += oprot->writeFieldEnd();
843
xfer += oprot->writeFieldStop();
844
xfer += oprot->writeStructEnd();
848
void swap(AuthenticationException &a, AuthenticationException &b) {
853
const char* AuthorizationException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1";
854
const uint8_t AuthorizationException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1};
856
uint32_t AuthorizationException::read(::apache::thrift::protocol::TProtocol* iprot) {
860
::apache::thrift::protocol::TType ftype;
863
xfer += iprot->readStructBegin(fname);
865
using ::apache::thrift::protocol::TProtocolException;
867
bool isset_why = false;
871
xfer += iprot->readFieldBegin(fname, ftype, fid);
872
if (ftype == ::apache::thrift::protocol::T_STOP) {
878
if (ftype == ::apache::thrift::protocol::T_STRING) {
879
xfer += iprot->readString(this->why);
882
xfer += iprot->skip(ftype);
886
xfer += iprot->skip(ftype);
889
xfer += iprot->readFieldEnd();
892
xfer += iprot->readStructEnd();
895
throw TProtocolException(TProtocolException::INVALID_DATA);
899
uint32_t AuthorizationException::write(::apache::thrift::protocol::TProtocol* oprot) const {
901
xfer += oprot->writeStructBegin("AuthorizationException");
903
xfer += oprot->writeFieldBegin("why", ::apache::thrift::protocol::T_STRING, 1);
904
xfer += oprot->writeString(this->why);
905
xfer += oprot->writeFieldEnd();
907
xfer += oprot->writeFieldStop();
908
xfer += oprot->writeStructEnd();
912
void swap(AuthorizationException &a, AuthorizationException &b) {
917
const char* SchemaDisagreementException::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B";
918
const uint8_t SchemaDisagreementException::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B};
920
uint32_t SchemaDisagreementException::read(::apache::thrift::protocol::TProtocol* iprot) {
924
::apache::thrift::protocol::TType ftype;
927
xfer += iprot->readStructBegin(fname);
929
using ::apache::thrift::protocol::TProtocolException;
934
xfer += iprot->readFieldBegin(fname, ftype, fid);
935
if (ftype == ::apache::thrift::protocol::T_STOP) {
941
xfer += iprot->skip(ftype);
944
xfer += iprot->readFieldEnd();
947
xfer += iprot->readStructEnd();
952
uint32_t SchemaDisagreementException::write(::apache::thrift::protocol::TProtocol* oprot) const {
954
xfer += oprot->writeStructBegin("SchemaDisagreementException");
956
xfer += oprot->writeFieldStop();
957
xfer += oprot->writeStructEnd();
961
void swap(SchemaDisagreementException &a, SchemaDisagreementException &b) {
967
const char* ColumnParent::ascii_fingerprint = "0A13AE61181713A4100DFFB3EC293822";
968
const uint8_t ColumnParent::binary_fingerprint[16] = {0x0A,0x13,0xAE,0x61,0x18,0x17,0x13,0xA4,0x10,0x0D,0xFF,0xB3,0xEC,0x29,0x38,0x22};
970
uint32_t ColumnParent::read(::apache::thrift::protocol::TProtocol* iprot) {
974
::apache::thrift::protocol::TType ftype;
977
xfer += iprot->readStructBegin(fname);
979
using ::apache::thrift::protocol::TProtocolException;
981
bool isset_column_family = false;
985
xfer += iprot->readFieldBegin(fname, ftype, fid);
986
if (ftype == ::apache::thrift::protocol::T_STOP) {
992
if (ftype == ::apache::thrift::protocol::T_STRING) {
993
xfer += iprot->readString(this->column_family);
994
isset_column_family = true;
996
xfer += iprot->skip(ftype);
1000
if (ftype == ::apache::thrift::protocol::T_STRING) {
1001
xfer += iprot->readBinary(this->super_column);
1002
this->__isset.super_column = true;
1004
xfer += iprot->skip(ftype);
1008
xfer += iprot->skip(ftype);
1011
xfer += iprot->readFieldEnd();
1014
xfer += iprot->readStructEnd();
1016
if (!isset_column_family)
1017
throw TProtocolException(TProtocolException::INVALID_DATA);
1021
uint32_t ColumnParent::write(::apache::thrift::protocol::TProtocol* oprot) const {
1023
xfer += oprot->writeStructBegin("ColumnParent");
1025
xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 3);
1026
xfer += oprot->writeString(this->column_family);
1027
xfer += oprot->writeFieldEnd();
1029
if (this->__isset.super_column) {
1030
xfer += oprot->writeFieldBegin("super_column", ::apache::thrift::protocol::T_STRING, 4);
1031
xfer += oprot->writeBinary(this->super_column);
1032
xfer += oprot->writeFieldEnd();
1034
xfer += oprot->writeFieldStop();
1035
xfer += oprot->writeStructEnd();
1039
void swap(ColumnParent &a, ColumnParent &b) {
1041
swap(a.column_family, b.column_family);
1042
swap(a.super_column, b.super_column);
1043
swap(a.__isset, b.__isset);
1046
const char* ColumnPath::ascii_fingerprint = "606212895BCF63C757913CF35AEB3462";
1047
const uint8_t ColumnPath::binary_fingerprint[16] = {0x60,0x62,0x12,0x89,0x5B,0xCF,0x63,0xC7,0x57,0x91,0x3C,0xF3,0x5A,0xEB,0x34,0x62};
1049
uint32_t ColumnPath::read(::apache::thrift::protocol::TProtocol* iprot) {
1053
::apache::thrift::protocol::TType ftype;
1056
xfer += iprot->readStructBegin(fname);
1058
using ::apache::thrift::protocol::TProtocolException;
1060
bool isset_column_family = false;
1064
xfer += iprot->readFieldBegin(fname, ftype, fid);
1065
if (ftype == ::apache::thrift::protocol::T_STOP) {
1071
if (ftype == ::apache::thrift::protocol::T_STRING) {
1072
xfer += iprot->readString(this->column_family);
1073
isset_column_family = true;
1075
xfer += iprot->skip(ftype);
1079
if (ftype == ::apache::thrift::protocol::T_STRING) {
1080
xfer += iprot->readBinary(this->super_column);
1081
this->__isset.super_column = true;
1083
xfer += iprot->skip(ftype);
1087
if (ftype == ::apache::thrift::protocol::T_STRING) {
1088
xfer += iprot->readBinary(this->column);
1089
this->__isset.column = true;
1091
xfer += iprot->skip(ftype);
1095
xfer += iprot->skip(ftype);
1098
xfer += iprot->readFieldEnd();
1101
xfer += iprot->readStructEnd();
1103
if (!isset_column_family)
1104
throw TProtocolException(TProtocolException::INVALID_DATA);
1108
uint32_t ColumnPath::write(::apache::thrift::protocol::TProtocol* oprot) const {
1110
xfer += oprot->writeStructBegin("ColumnPath");
1112
xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 3);
1113
xfer += oprot->writeString(this->column_family);
1114
xfer += oprot->writeFieldEnd();
1116
if (this->__isset.super_column) {
1117
xfer += oprot->writeFieldBegin("super_column", ::apache::thrift::protocol::T_STRING, 4);
1118
xfer += oprot->writeBinary(this->super_column);
1119
xfer += oprot->writeFieldEnd();
1121
if (this->__isset.column) {
1122
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRING, 5);
1123
xfer += oprot->writeBinary(this->column);
1124
xfer += oprot->writeFieldEnd();
1126
xfer += oprot->writeFieldStop();
1127
xfer += oprot->writeStructEnd();
1131
void swap(ColumnPath &a, ColumnPath &b) {
1133
swap(a.column_family, b.column_family);
1134
swap(a.super_column, b.super_column);
1135
swap(a.column, b.column);
1136
swap(a.__isset, b.__isset);
1139
const char* SliceRange::ascii_fingerprint = "184D24C9A0B8D4415E234DB649CAE740";
1140
const uint8_t SliceRange::binary_fingerprint[16] = {0x18,0x4D,0x24,0xC9,0xA0,0xB8,0xD4,0x41,0x5E,0x23,0x4D,0xB6,0x49,0xCA,0xE7,0x40};
1142
uint32_t SliceRange::read(::apache::thrift::protocol::TProtocol* iprot) {
1146
::apache::thrift::protocol::TType ftype;
1149
xfer += iprot->readStructBegin(fname);
1151
using ::apache::thrift::protocol::TProtocolException;
1153
bool isset_start = false;
1154
bool isset_finish = false;
1155
bool isset_reversed = false;
1156
bool isset_count = false;
1160
xfer += iprot->readFieldBegin(fname, ftype, fid);
1161
if (ftype == ::apache::thrift::protocol::T_STOP) {
1167
if (ftype == ::apache::thrift::protocol::T_STRING) {
1168
xfer += iprot->readBinary(this->start);
1171
xfer += iprot->skip(ftype);
1175
if (ftype == ::apache::thrift::protocol::T_STRING) {
1176
xfer += iprot->readBinary(this->finish);
1177
isset_finish = true;
1179
xfer += iprot->skip(ftype);
1183
if (ftype == ::apache::thrift::protocol::T_BOOL) {
1184
xfer += iprot->readBool(this->reversed);
1185
isset_reversed = true;
1187
xfer += iprot->skip(ftype);
1191
if (ftype == ::apache::thrift::protocol::T_I32) {
1192
xfer += iprot->readI32(this->count);
1195
xfer += iprot->skip(ftype);
1199
xfer += iprot->skip(ftype);
1202
xfer += iprot->readFieldEnd();
1205
xfer += iprot->readStructEnd();
1208
throw TProtocolException(TProtocolException::INVALID_DATA);
1210
throw TProtocolException(TProtocolException::INVALID_DATA);
1211
if (!isset_reversed)
1212
throw TProtocolException(TProtocolException::INVALID_DATA);
1214
throw TProtocolException(TProtocolException::INVALID_DATA);
1218
uint32_t SliceRange::write(::apache::thrift::protocol::TProtocol* oprot) const {
1220
xfer += oprot->writeStructBegin("SliceRange");
1222
xfer += oprot->writeFieldBegin("start", ::apache::thrift::protocol::T_STRING, 1);
1223
xfer += oprot->writeBinary(this->start);
1224
xfer += oprot->writeFieldEnd();
1226
xfer += oprot->writeFieldBegin("finish", ::apache::thrift::protocol::T_STRING, 2);
1227
xfer += oprot->writeBinary(this->finish);
1228
xfer += oprot->writeFieldEnd();
1230
xfer += oprot->writeFieldBegin("reversed", ::apache::thrift::protocol::T_BOOL, 3);
1231
xfer += oprot->writeBool(this->reversed);
1232
xfer += oprot->writeFieldEnd();
1234
xfer += oprot->writeFieldBegin("count", ::apache::thrift::protocol::T_I32, 4);
1235
xfer += oprot->writeI32(this->count);
1236
xfer += oprot->writeFieldEnd();
1238
xfer += oprot->writeFieldStop();
1239
xfer += oprot->writeStructEnd();
1243
void swap(SliceRange &a, SliceRange &b) {
1245
swap(a.start, b.start);
1246
swap(a.finish, b.finish);
1247
swap(a.reversed, b.reversed);
1248
swap(a.count, b.count);
1251
const char* SlicePredicate::ascii_fingerprint = "F59D1D81C17DFFAF09988BF1C9CE5E27";
1252
const uint8_t SlicePredicate::binary_fingerprint[16] = {0xF5,0x9D,0x1D,0x81,0xC1,0x7D,0xFF,0xAF,0x09,0x98,0x8B,0xF1,0xC9,0xCE,0x5E,0x27};
1254
uint32_t SlicePredicate::read(::apache::thrift::protocol::TProtocol* iprot) {
1258
::apache::thrift::protocol::TType ftype;
1261
xfer += iprot->readStructBegin(fname);
1263
using ::apache::thrift::protocol::TProtocolException;
1268
xfer += iprot->readFieldBegin(fname, ftype, fid);
1269
if (ftype == ::apache::thrift::protocol::T_STOP) {
1275
if (ftype == ::apache::thrift::protocol::T_LIST) {
1277
this->column_names.clear();
1279
::apache::thrift::protocol::TType _etype15;
1280
xfer += iprot->readListBegin(_etype15, _size12);
1281
this->column_names.resize(_size12);
1283
for (_i16 = 0; _i16 < _size12; ++_i16)
1285
xfer += iprot->readBinary(this->column_names[_i16]);
1287
xfer += iprot->readListEnd();
1289
this->__isset.column_names = true;
1291
xfer += iprot->skip(ftype);
1295
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1296
xfer += this->slice_range.read(iprot);
1297
this->__isset.slice_range = true;
1299
xfer += iprot->skip(ftype);
1303
xfer += iprot->skip(ftype);
1306
xfer += iprot->readFieldEnd();
1309
xfer += iprot->readStructEnd();
1314
uint32_t SlicePredicate::write(::apache::thrift::protocol::TProtocol* oprot) const {
1316
xfer += oprot->writeStructBegin("SlicePredicate");
1318
if (this->__isset.column_names) {
1319
xfer += oprot->writeFieldBegin("column_names", ::apache::thrift::protocol::T_LIST, 1);
1321
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->column_names.size()));
1322
std::vector<std::string> ::const_iterator _iter17;
1323
for (_iter17 = this->column_names.begin(); _iter17 != this->column_names.end(); ++_iter17)
1325
xfer += oprot->writeBinary((*_iter17));
1327
xfer += oprot->writeListEnd();
1329
xfer += oprot->writeFieldEnd();
1331
if (this->__isset.slice_range) {
1332
xfer += oprot->writeFieldBegin("slice_range", ::apache::thrift::protocol::T_STRUCT, 2);
1333
xfer += this->slice_range.write(oprot);
1334
xfer += oprot->writeFieldEnd();
1336
xfer += oprot->writeFieldStop();
1337
xfer += oprot->writeStructEnd();
1341
void swap(SlicePredicate &a, SlicePredicate &b) {
1343
swap(a.column_names, b.column_names);
1344
swap(a.slice_range, b.slice_range);
1345
swap(a.__isset, b.__isset);
1348
const char* IndexExpression::ascii_fingerprint = "D9F4CFE2F293A8B1052FD3031DD2C847";
1349
const uint8_t IndexExpression::binary_fingerprint[16] = {0xD9,0xF4,0xCF,0xE2,0xF2,0x93,0xA8,0xB1,0x05,0x2F,0xD3,0x03,0x1D,0xD2,0xC8,0x47};
1351
uint32_t IndexExpression::read(::apache::thrift::protocol::TProtocol* iprot) {
1355
::apache::thrift::protocol::TType ftype;
1358
xfer += iprot->readStructBegin(fname);
1360
using ::apache::thrift::protocol::TProtocolException;
1362
bool isset_column_name = false;
1363
bool isset_op = false;
1364
bool isset_value = false;
1368
xfer += iprot->readFieldBegin(fname, ftype, fid);
1369
if (ftype == ::apache::thrift::protocol::T_STOP) {
1375
if (ftype == ::apache::thrift::protocol::T_STRING) {
1376
xfer += iprot->readBinary(this->column_name);
1377
isset_column_name = true;
1379
xfer += iprot->skip(ftype);
1383
if (ftype == ::apache::thrift::protocol::T_I32) {
1385
xfer += iprot->readI32(ecast18);
1386
this->op = (IndexOperator::type)ecast18;
1389
xfer += iprot->skip(ftype);
1393
if (ftype == ::apache::thrift::protocol::T_STRING) {
1394
xfer += iprot->readBinary(this->value);
1397
xfer += iprot->skip(ftype);
1401
xfer += iprot->skip(ftype);
1404
xfer += iprot->readFieldEnd();
1407
xfer += iprot->readStructEnd();
1409
if (!isset_column_name)
1410
throw TProtocolException(TProtocolException::INVALID_DATA);
1412
throw TProtocolException(TProtocolException::INVALID_DATA);
1414
throw TProtocolException(TProtocolException::INVALID_DATA);
1418
uint32_t IndexExpression::write(::apache::thrift::protocol::TProtocol* oprot) const {
1420
xfer += oprot->writeStructBegin("IndexExpression");
1422
xfer += oprot->writeFieldBegin("column_name", ::apache::thrift::protocol::T_STRING, 1);
1423
xfer += oprot->writeBinary(this->column_name);
1424
xfer += oprot->writeFieldEnd();
1426
xfer += oprot->writeFieldBegin("op", ::apache::thrift::protocol::T_I32, 2);
1427
xfer += oprot->writeI32((int32_t)this->op);
1428
xfer += oprot->writeFieldEnd();
1430
xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 3);
1431
xfer += oprot->writeBinary(this->value);
1432
xfer += oprot->writeFieldEnd();
1434
xfer += oprot->writeFieldStop();
1435
xfer += oprot->writeStructEnd();
1439
void swap(IndexExpression &a, IndexExpression &b) {
1441
swap(a.column_name, b.column_name);
1443
swap(a.value, b.value);
1446
const char* IndexClause::ascii_fingerprint = "9B551B9AB86120B0EEA9005C77FD3C1F";
1447
const uint8_t IndexClause::binary_fingerprint[16] = {0x9B,0x55,0x1B,0x9A,0xB8,0x61,0x20,0xB0,0xEE,0xA9,0x00,0x5C,0x77,0xFD,0x3C,0x1F};
1449
uint32_t IndexClause::read(::apache::thrift::protocol::TProtocol* iprot) {
1453
::apache::thrift::protocol::TType ftype;
1456
xfer += iprot->readStructBegin(fname);
1458
using ::apache::thrift::protocol::TProtocolException;
1460
bool isset_expressions = false;
1461
bool isset_start_key = false;
1462
bool isset_count = false;
1466
xfer += iprot->readFieldBegin(fname, ftype, fid);
1467
if (ftype == ::apache::thrift::protocol::T_STOP) {
1473
if (ftype == ::apache::thrift::protocol::T_LIST) {
1475
this->expressions.clear();
1477
::apache::thrift::protocol::TType _etype22;
1478
xfer += iprot->readListBegin(_etype22, _size19);
1479
this->expressions.resize(_size19);
1481
for (_i23 = 0; _i23 < _size19; ++_i23)
1483
xfer += this->expressions[_i23].read(iprot);
1485
xfer += iprot->readListEnd();
1487
isset_expressions = true;
1489
xfer += iprot->skip(ftype);
1493
if (ftype == ::apache::thrift::protocol::T_STRING) {
1494
xfer += iprot->readBinary(this->start_key);
1495
isset_start_key = true;
1497
xfer += iprot->skip(ftype);
1501
if (ftype == ::apache::thrift::protocol::T_I32) {
1502
xfer += iprot->readI32(this->count);
1505
xfer += iprot->skip(ftype);
1509
xfer += iprot->skip(ftype);
1512
xfer += iprot->readFieldEnd();
1515
xfer += iprot->readStructEnd();
1517
if (!isset_expressions)
1518
throw TProtocolException(TProtocolException::INVALID_DATA);
1519
if (!isset_start_key)
1520
throw TProtocolException(TProtocolException::INVALID_DATA);
1522
throw TProtocolException(TProtocolException::INVALID_DATA);
1526
uint32_t IndexClause::write(::apache::thrift::protocol::TProtocol* oprot) const {
1528
xfer += oprot->writeStructBegin("IndexClause");
1530
xfer += oprot->writeFieldBegin("expressions", ::apache::thrift::protocol::T_LIST, 1);
1532
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->expressions.size()));
1533
std::vector<IndexExpression> ::const_iterator _iter24;
1534
for (_iter24 = this->expressions.begin(); _iter24 != this->expressions.end(); ++_iter24)
1536
xfer += (*_iter24).write(oprot);
1538
xfer += oprot->writeListEnd();
1540
xfer += oprot->writeFieldEnd();
1542
xfer += oprot->writeFieldBegin("start_key", ::apache::thrift::protocol::T_STRING, 2);
1543
xfer += oprot->writeBinary(this->start_key);
1544
xfer += oprot->writeFieldEnd();
1546
xfer += oprot->writeFieldBegin("count", ::apache::thrift::protocol::T_I32, 3);
1547
xfer += oprot->writeI32(this->count);
1548
xfer += oprot->writeFieldEnd();
1550
xfer += oprot->writeFieldStop();
1551
xfer += oprot->writeStructEnd();
1555
void swap(IndexClause &a, IndexClause &b) {
1557
swap(a.expressions, b.expressions);
1558
swap(a.start_key, b.start_key);
1559
swap(a.count, b.count);
1562
const char* KeyRange::ascii_fingerprint = "A6EC82FA0980B91C7C8EB013C61CA1B0";
1563
const uint8_t KeyRange::binary_fingerprint[16] = {0xA6,0xEC,0x82,0xFA,0x09,0x80,0xB9,0x1C,0x7C,0x8E,0xB0,0x13,0xC6,0x1C,0xA1,0xB0};
1565
uint32_t KeyRange::read(::apache::thrift::protocol::TProtocol* iprot) {
1569
::apache::thrift::protocol::TType ftype;
1572
xfer += iprot->readStructBegin(fname);
1574
using ::apache::thrift::protocol::TProtocolException;
1576
bool isset_count = false;
1580
xfer += iprot->readFieldBegin(fname, ftype, fid);
1581
if (ftype == ::apache::thrift::protocol::T_STOP) {
1587
if (ftype == ::apache::thrift::protocol::T_STRING) {
1588
xfer += iprot->readBinary(this->start_key);
1589
this->__isset.start_key = true;
1591
xfer += iprot->skip(ftype);
1595
if (ftype == ::apache::thrift::protocol::T_STRING) {
1596
xfer += iprot->readBinary(this->end_key);
1597
this->__isset.end_key = true;
1599
xfer += iprot->skip(ftype);
1603
if (ftype == ::apache::thrift::protocol::T_STRING) {
1604
xfer += iprot->readString(this->start_token);
1605
this->__isset.start_token = true;
1607
xfer += iprot->skip(ftype);
1611
if (ftype == ::apache::thrift::protocol::T_STRING) {
1612
xfer += iprot->readString(this->end_token);
1613
this->__isset.end_token = true;
1615
xfer += iprot->skip(ftype);
1619
if (ftype == ::apache::thrift::protocol::T_LIST) {
1621
this->row_filter.clear();
1623
::apache::thrift::protocol::TType _etype28;
1624
xfer += iprot->readListBegin(_etype28, _size25);
1625
this->row_filter.resize(_size25);
1627
for (_i29 = 0; _i29 < _size25; ++_i29)
1629
xfer += this->row_filter[_i29].read(iprot);
1631
xfer += iprot->readListEnd();
1633
this->__isset.row_filter = true;
1635
xfer += iprot->skip(ftype);
1639
if (ftype == ::apache::thrift::protocol::T_I32) {
1640
xfer += iprot->readI32(this->count);
1643
xfer += iprot->skip(ftype);
1647
xfer += iprot->skip(ftype);
1650
xfer += iprot->readFieldEnd();
1653
xfer += iprot->readStructEnd();
1656
throw TProtocolException(TProtocolException::INVALID_DATA);
1660
uint32_t KeyRange::write(::apache::thrift::protocol::TProtocol* oprot) const {
1662
xfer += oprot->writeStructBegin("KeyRange");
1664
if (this->__isset.start_key) {
1665
xfer += oprot->writeFieldBegin("start_key", ::apache::thrift::protocol::T_STRING, 1);
1666
xfer += oprot->writeBinary(this->start_key);
1667
xfer += oprot->writeFieldEnd();
1669
if (this->__isset.end_key) {
1670
xfer += oprot->writeFieldBegin("end_key", ::apache::thrift::protocol::T_STRING, 2);
1671
xfer += oprot->writeBinary(this->end_key);
1672
xfer += oprot->writeFieldEnd();
1674
if (this->__isset.start_token) {
1675
xfer += oprot->writeFieldBegin("start_token", ::apache::thrift::protocol::T_STRING, 3);
1676
xfer += oprot->writeString(this->start_token);
1677
xfer += oprot->writeFieldEnd();
1679
if (this->__isset.end_token) {
1680
xfer += oprot->writeFieldBegin("end_token", ::apache::thrift::protocol::T_STRING, 4);
1681
xfer += oprot->writeString(this->end_token);
1682
xfer += oprot->writeFieldEnd();
1684
xfer += oprot->writeFieldBegin("count", ::apache::thrift::protocol::T_I32, 5);
1685
xfer += oprot->writeI32(this->count);
1686
xfer += oprot->writeFieldEnd();
1688
if (this->__isset.row_filter) {
1689
xfer += oprot->writeFieldBegin("row_filter", ::apache::thrift::protocol::T_LIST, 6);
1691
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->row_filter.size()));
1692
std::vector<IndexExpression> ::const_iterator _iter30;
1693
for (_iter30 = this->row_filter.begin(); _iter30 != this->row_filter.end(); ++_iter30)
1695
xfer += (*_iter30).write(oprot);
1697
xfer += oprot->writeListEnd();
1699
xfer += oprot->writeFieldEnd();
1701
xfer += oprot->writeFieldStop();
1702
xfer += oprot->writeStructEnd();
1706
void swap(KeyRange &a, KeyRange &b) {
1708
swap(a.start_key, b.start_key);
1709
swap(a.end_key, b.end_key);
1710
swap(a.start_token, b.start_token);
1711
swap(a.end_token, b.end_token);
1712
swap(a.row_filter, b.row_filter);
1713
swap(a.count, b.count);
1714
swap(a.__isset, b.__isset);
1717
const char* KeySlice::ascii_fingerprint = "D1568675B0C135C909E3169B72A4DA3D";
1718
const uint8_t KeySlice::binary_fingerprint[16] = {0xD1,0x56,0x86,0x75,0xB0,0xC1,0x35,0xC9,0x09,0xE3,0x16,0x9B,0x72,0xA4,0xDA,0x3D};
1720
uint32_t KeySlice::read(::apache::thrift::protocol::TProtocol* iprot) {
1724
::apache::thrift::protocol::TType ftype;
1727
xfer += iprot->readStructBegin(fname);
1729
using ::apache::thrift::protocol::TProtocolException;
1731
bool isset_key = false;
1732
bool isset_columns = false;
1736
xfer += iprot->readFieldBegin(fname, ftype, fid);
1737
if (ftype == ::apache::thrift::protocol::T_STOP) {
1743
if (ftype == ::apache::thrift::protocol::T_STRING) {
1744
xfer += iprot->readBinary(this->key);
1747
xfer += iprot->skip(ftype);
1751
if (ftype == ::apache::thrift::protocol::T_LIST) {
1753
this->columns.clear();
1755
::apache::thrift::protocol::TType _etype34;
1756
xfer += iprot->readListBegin(_etype34, _size31);
1757
this->columns.resize(_size31);
1759
for (_i35 = 0; _i35 < _size31; ++_i35)
1761
xfer += this->columns[_i35].read(iprot);
1763
xfer += iprot->readListEnd();
1765
isset_columns = true;
1767
xfer += iprot->skip(ftype);
1771
xfer += iprot->skip(ftype);
1774
xfer += iprot->readFieldEnd();
1777
xfer += iprot->readStructEnd();
1780
throw TProtocolException(TProtocolException::INVALID_DATA);
1782
throw TProtocolException(TProtocolException::INVALID_DATA);
1786
uint32_t KeySlice::write(::apache::thrift::protocol::TProtocol* oprot) const {
1788
xfer += oprot->writeStructBegin("KeySlice");
1790
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
1791
xfer += oprot->writeBinary(this->key);
1792
xfer += oprot->writeFieldEnd();
1794
xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 2);
1796
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->columns.size()));
1797
std::vector<ColumnOrSuperColumn> ::const_iterator _iter36;
1798
for (_iter36 = this->columns.begin(); _iter36 != this->columns.end(); ++_iter36)
1800
xfer += (*_iter36).write(oprot);
1802
xfer += oprot->writeListEnd();
1804
xfer += oprot->writeFieldEnd();
1806
xfer += oprot->writeFieldStop();
1807
xfer += oprot->writeStructEnd();
1811
void swap(KeySlice &a, KeySlice &b) {
1814
swap(a.columns, b.columns);
1817
const char* KeyCount::ascii_fingerprint = "EEBC915CE44901401D881E6091423036";
1818
const uint8_t KeyCount::binary_fingerprint[16] = {0xEE,0xBC,0x91,0x5C,0xE4,0x49,0x01,0x40,0x1D,0x88,0x1E,0x60,0x91,0x42,0x30,0x36};
1820
uint32_t KeyCount::read(::apache::thrift::protocol::TProtocol* iprot) {
1824
::apache::thrift::protocol::TType ftype;
1827
xfer += iprot->readStructBegin(fname);
1829
using ::apache::thrift::protocol::TProtocolException;
1831
bool isset_key = false;
1832
bool isset_count = false;
1836
xfer += iprot->readFieldBegin(fname, ftype, fid);
1837
if (ftype == ::apache::thrift::protocol::T_STOP) {
1843
if (ftype == ::apache::thrift::protocol::T_STRING) {
1844
xfer += iprot->readBinary(this->key);
1847
xfer += iprot->skip(ftype);
1851
if (ftype == ::apache::thrift::protocol::T_I32) {
1852
xfer += iprot->readI32(this->count);
1855
xfer += iprot->skip(ftype);
1859
xfer += iprot->skip(ftype);
1862
xfer += iprot->readFieldEnd();
1865
xfer += iprot->readStructEnd();
1868
throw TProtocolException(TProtocolException::INVALID_DATA);
1870
throw TProtocolException(TProtocolException::INVALID_DATA);
1874
uint32_t KeyCount::write(::apache::thrift::protocol::TProtocol* oprot) const {
1876
xfer += oprot->writeStructBegin("KeyCount");
1878
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
1879
xfer += oprot->writeBinary(this->key);
1880
xfer += oprot->writeFieldEnd();
1882
xfer += oprot->writeFieldBegin("count", ::apache::thrift::protocol::T_I32, 2);
1883
xfer += oprot->writeI32(this->count);
1884
xfer += oprot->writeFieldEnd();
1886
xfer += oprot->writeFieldStop();
1887
xfer += oprot->writeStructEnd();
1891
void swap(KeyCount &a, KeyCount &b) {
1894
swap(a.count, b.count);
1897
const char* Deletion::ascii_fingerprint = "40F33ECF1C932CA77C2414C4E6C60CBE";
1898
const uint8_t Deletion::binary_fingerprint[16] = {0x40,0xF3,0x3E,0xCF,0x1C,0x93,0x2C,0xA7,0x7C,0x24,0x14,0xC4,0xE6,0xC6,0x0C,0xBE};
1900
uint32_t Deletion::read(::apache::thrift::protocol::TProtocol* iprot) {
1904
::apache::thrift::protocol::TType ftype;
1907
xfer += iprot->readStructBegin(fname);
1909
using ::apache::thrift::protocol::TProtocolException;
1914
xfer += iprot->readFieldBegin(fname, ftype, fid);
1915
if (ftype == ::apache::thrift::protocol::T_STOP) {
1921
if (ftype == ::apache::thrift::protocol::T_I64) {
1922
xfer += iprot->readI64(this->timestamp);
1923
this->__isset.timestamp = true;
1925
xfer += iprot->skip(ftype);
1929
if (ftype == ::apache::thrift::protocol::T_STRING) {
1930
xfer += iprot->readBinary(this->super_column);
1931
this->__isset.super_column = true;
1933
xfer += iprot->skip(ftype);
1937
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1938
xfer += this->predicate.read(iprot);
1939
this->__isset.predicate = true;
1941
xfer += iprot->skip(ftype);
1945
xfer += iprot->skip(ftype);
1948
xfer += iprot->readFieldEnd();
1951
xfer += iprot->readStructEnd();
1956
uint32_t Deletion::write(::apache::thrift::protocol::TProtocol* oprot) const {
1958
xfer += oprot->writeStructBegin("Deletion");
1960
if (this->__isset.timestamp) {
1961
xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 1);
1962
xfer += oprot->writeI64(this->timestamp);
1963
xfer += oprot->writeFieldEnd();
1965
if (this->__isset.super_column) {
1966
xfer += oprot->writeFieldBegin("super_column", ::apache::thrift::protocol::T_STRING, 2);
1967
xfer += oprot->writeBinary(this->super_column);
1968
xfer += oprot->writeFieldEnd();
1970
if (this->__isset.predicate) {
1971
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1972
xfer += this->predicate.write(oprot);
1973
xfer += oprot->writeFieldEnd();
1975
xfer += oprot->writeFieldStop();
1976
xfer += oprot->writeStructEnd();
1980
void swap(Deletion &a, Deletion &b) {
1982
swap(a.timestamp, b.timestamp);
1983
swap(a.super_column, b.super_column);
1984
swap(a.predicate, b.predicate);
1985
swap(a.__isset, b.__isset);
1988
const char* Mutation::ascii_fingerprint = "E8B65DF3979C6868F80DF81F8E769E63";
1989
const uint8_t Mutation::binary_fingerprint[16] = {0xE8,0xB6,0x5D,0xF3,0x97,0x9C,0x68,0x68,0xF8,0x0D,0xF8,0x1F,0x8E,0x76,0x9E,0x63};
1991
uint32_t Mutation::read(::apache::thrift::protocol::TProtocol* iprot) {
1995
::apache::thrift::protocol::TType ftype;
1998
xfer += iprot->readStructBegin(fname);
2000
using ::apache::thrift::protocol::TProtocolException;
2005
xfer += iprot->readFieldBegin(fname, ftype, fid);
2006
if (ftype == ::apache::thrift::protocol::T_STOP) {
2012
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2013
xfer += this->column_or_supercolumn.read(iprot);
2014
this->__isset.column_or_supercolumn = true;
2016
xfer += iprot->skip(ftype);
2020
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2021
xfer += this->deletion.read(iprot);
2022
this->__isset.deletion = true;
2024
xfer += iprot->skip(ftype);
2028
xfer += iprot->skip(ftype);
2031
xfer += iprot->readFieldEnd();
2034
xfer += iprot->readStructEnd();
2039
uint32_t Mutation::write(::apache::thrift::protocol::TProtocol* oprot) const {
2041
xfer += oprot->writeStructBegin("Mutation");
2043
if (this->__isset.column_or_supercolumn) {
2044
xfer += oprot->writeFieldBegin("column_or_supercolumn", ::apache::thrift::protocol::T_STRUCT, 1);
2045
xfer += this->column_or_supercolumn.write(oprot);
2046
xfer += oprot->writeFieldEnd();
2048
if (this->__isset.deletion) {
2049
xfer += oprot->writeFieldBegin("deletion", ::apache::thrift::protocol::T_STRUCT, 2);
2050
xfer += this->deletion.write(oprot);
2051
xfer += oprot->writeFieldEnd();
2053
xfer += oprot->writeFieldStop();
2054
xfer += oprot->writeStructEnd();
2058
void swap(Mutation &a, Mutation &b) {
2060
swap(a.column_or_supercolumn, b.column_or_supercolumn);
2061
swap(a.deletion, b.deletion);
2062
swap(a.__isset, b.__isset);
2065
const char* EndpointDetails::ascii_fingerprint = "F4A50F0EC638C7F66026F9B6678FD89B";
2066
const uint8_t EndpointDetails::binary_fingerprint[16] = {0xF4,0xA5,0x0F,0x0E,0xC6,0x38,0xC7,0xF6,0x60,0x26,0xF9,0xB6,0x67,0x8F,0xD8,0x9B};
2068
uint32_t EndpointDetails::read(::apache::thrift::protocol::TProtocol* iprot) {
2072
::apache::thrift::protocol::TType ftype;
2075
xfer += iprot->readStructBegin(fname);
2077
using ::apache::thrift::protocol::TProtocolException;
2082
xfer += iprot->readFieldBegin(fname, ftype, fid);
2083
if (ftype == ::apache::thrift::protocol::T_STOP) {
2089
if (ftype == ::apache::thrift::protocol::T_STRING) {
2090
xfer += iprot->readString(this->host);
2091
this->__isset.host = true;
2093
xfer += iprot->skip(ftype);
2097
if (ftype == ::apache::thrift::protocol::T_STRING) {
2098
xfer += iprot->readString(this->datacenter);
2099
this->__isset.datacenter = true;
2101
xfer += iprot->skip(ftype);
2105
if (ftype == ::apache::thrift::protocol::T_STRING) {
2106
xfer += iprot->readString(this->rack);
2107
this->__isset.rack = true;
2109
xfer += iprot->skip(ftype);
2113
xfer += iprot->skip(ftype);
2116
xfer += iprot->readFieldEnd();
2119
xfer += iprot->readStructEnd();
2124
uint32_t EndpointDetails::write(::apache::thrift::protocol::TProtocol* oprot) const {
2126
xfer += oprot->writeStructBegin("EndpointDetails");
2128
xfer += oprot->writeFieldBegin("host", ::apache::thrift::protocol::T_STRING, 1);
2129
xfer += oprot->writeString(this->host);
2130
xfer += oprot->writeFieldEnd();
2132
xfer += oprot->writeFieldBegin("datacenter", ::apache::thrift::protocol::T_STRING, 2);
2133
xfer += oprot->writeString(this->datacenter);
2134
xfer += oprot->writeFieldEnd();
2136
if (this->__isset.rack) {
2137
xfer += oprot->writeFieldBegin("rack", ::apache::thrift::protocol::T_STRING, 3);
2138
xfer += oprot->writeString(this->rack);
2139
xfer += oprot->writeFieldEnd();
2141
xfer += oprot->writeFieldStop();
2142
xfer += oprot->writeStructEnd();
2146
void swap(EndpointDetails &a, EndpointDetails &b) {
2148
swap(a.host, b.host);
2149
swap(a.datacenter, b.datacenter);
2150
swap(a.rack, b.rack);
2151
swap(a.__isset, b.__isset);
2154
const char* TokenRange::ascii_fingerprint = "832268DC4CD6B17EE8881FC57EA04679";
2155
const uint8_t TokenRange::binary_fingerprint[16] = {0x83,0x22,0x68,0xDC,0x4C,0xD6,0xB1,0x7E,0xE8,0x88,0x1F,0xC5,0x7E,0xA0,0x46,0x79};
2157
uint32_t TokenRange::read(::apache::thrift::protocol::TProtocol* iprot) {
2161
::apache::thrift::protocol::TType ftype;
2164
xfer += iprot->readStructBegin(fname);
2166
using ::apache::thrift::protocol::TProtocolException;
2168
bool isset_start_token = false;
2169
bool isset_end_token = false;
2170
bool isset_endpoints = false;
2174
xfer += iprot->readFieldBegin(fname, ftype, fid);
2175
if (ftype == ::apache::thrift::protocol::T_STOP) {
2181
if (ftype == ::apache::thrift::protocol::T_STRING) {
2182
xfer += iprot->readString(this->start_token);
2183
isset_start_token = true;
2185
xfer += iprot->skip(ftype);
2189
if (ftype == ::apache::thrift::protocol::T_STRING) {
2190
xfer += iprot->readString(this->end_token);
2191
isset_end_token = true;
2193
xfer += iprot->skip(ftype);
2197
if (ftype == ::apache::thrift::protocol::T_LIST) {
2199
this->endpoints.clear();
2201
::apache::thrift::protocol::TType _etype40;
2202
xfer += iprot->readListBegin(_etype40, _size37);
2203
this->endpoints.resize(_size37);
2205
for (_i41 = 0; _i41 < _size37; ++_i41)
2207
xfer += iprot->readString(this->endpoints[_i41]);
2209
xfer += iprot->readListEnd();
2211
isset_endpoints = true;
2213
xfer += iprot->skip(ftype);
2217
if (ftype == ::apache::thrift::protocol::T_LIST) {
2219
this->rpc_endpoints.clear();
2221
::apache::thrift::protocol::TType _etype45;
2222
xfer += iprot->readListBegin(_etype45, _size42);
2223
this->rpc_endpoints.resize(_size42);
2225
for (_i46 = 0; _i46 < _size42; ++_i46)
2227
xfer += iprot->readString(this->rpc_endpoints[_i46]);
2229
xfer += iprot->readListEnd();
2231
this->__isset.rpc_endpoints = true;
2233
xfer += iprot->skip(ftype);
2237
if (ftype == ::apache::thrift::protocol::T_LIST) {
2239
this->endpoint_details.clear();
2241
::apache::thrift::protocol::TType _etype50;
2242
xfer += iprot->readListBegin(_etype50, _size47);
2243
this->endpoint_details.resize(_size47);
2245
for (_i51 = 0; _i51 < _size47; ++_i51)
2247
xfer += this->endpoint_details[_i51].read(iprot);
2249
xfer += iprot->readListEnd();
2251
this->__isset.endpoint_details = true;
2253
xfer += iprot->skip(ftype);
2257
xfer += iprot->skip(ftype);
2260
xfer += iprot->readFieldEnd();
2263
xfer += iprot->readStructEnd();
2265
if (!isset_start_token)
2266
throw TProtocolException(TProtocolException::INVALID_DATA);
2267
if (!isset_end_token)
2268
throw TProtocolException(TProtocolException::INVALID_DATA);
2269
if (!isset_endpoints)
2270
throw TProtocolException(TProtocolException::INVALID_DATA);
2274
uint32_t TokenRange::write(::apache::thrift::protocol::TProtocol* oprot) const {
2276
xfer += oprot->writeStructBegin("TokenRange");
2278
xfer += oprot->writeFieldBegin("start_token", ::apache::thrift::protocol::T_STRING, 1);
2279
xfer += oprot->writeString(this->start_token);
2280
xfer += oprot->writeFieldEnd();
2282
xfer += oprot->writeFieldBegin("end_token", ::apache::thrift::protocol::T_STRING, 2);
2283
xfer += oprot->writeString(this->end_token);
2284
xfer += oprot->writeFieldEnd();
2286
xfer += oprot->writeFieldBegin("endpoints", ::apache::thrift::protocol::T_LIST, 3);
2288
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->endpoints.size()));
2289
std::vector<std::string> ::const_iterator _iter52;
2290
for (_iter52 = this->endpoints.begin(); _iter52 != this->endpoints.end(); ++_iter52)
2292
xfer += oprot->writeString((*_iter52));
2294
xfer += oprot->writeListEnd();
2296
xfer += oprot->writeFieldEnd();
2298
if (this->__isset.rpc_endpoints) {
2299
xfer += oprot->writeFieldBegin("rpc_endpoints", ::apache::thrift::protocol::T_LIST, 4);
2301
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->rpc_endpoints.size()));
2302
std::vector<std::string> ::const_iterator _iter53;
2303
for (_iter53 = this->rpc_endpoints.begin(); _iter53 != this->rpc_endpoints.end(); ++_iter53)
2305
xfer += oprot->writeString((*_iter53));
2307
xfer += oprot->writeListEnd();
2309
xfer += oprot->writeFieldEnd();
2311
if (this->__isset.endpoint_details) {
2312
xfer += oprot->writeFieldBegin("endpoint_details", ::apache::thrift::protocol::T_LIST, 5);
2314
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->endpoint_details.size()));
2315
std::vector<EndpointDetails> ::const_iterator _iter54;
2316
for (_iter54 = this->endpoint_details.begin(); _iter54 != this->endpoint_details.end(); ++_iter54)
2318
xfer += (*_iter54).write(oprot);
2320
xfer += oprot->writeListEnd();
2322
xfer += oprot->writeFieldEnd();
2324
xfer += oprot->writeFieldStop();
2325
xfer += oprot->writeStructEnd();
2329
void swap(TokenRange &a, TokenRange &b) {
2331
swap(a.start_token, b.start_token);
2332
swap(a.end_token, b.end_token);
2333
swap(a.endpoints, b.endpoints);
2334
swap(a.rpc_endpoints, b.rpc_endpoints);
2335
swap(a.endpoint_details, b.endpoint_details);
2336
swap(a.__isset, b.__isset);
2339
const char* AuthenticationRequest::ascii_fingerprint = "5EA2D527ECA3BA20C77AFC023EE8C05F";
2340
const uint8_t AuthenticationRequest::binary_fingerprint[16] = {0x5E,0xA2,0xD5,0x27,0xEC,0xA3,0xBA,0x20,0xC7,0x7A,0xFC,0x02,0x3E,0xE8,0xC0,0x5F};
2342
uint32_t AuthenticationRequest::read(::apache::thrift::protocol::TProtocol* iprot) {
2346
::apache::thrift::protocol::TType ftype;
2349
xfer += iprot->readStructBegin(fname);
2351
using ::apache::thrift::protocol::TProtocolException;
2353
bool isset_credentials = false;
2357
xfer += iprot->readFieldBegin(fname, ftype, fid);
2358
if (ftype == ::apache::thrift::protocol::T_STOP) {
2364
if (ftype == ::apache::thrift::protocol::T_MAP) {
2366
this->credentials.clear();
2368
::apache::thrift::protocol::TType _ktype56;
2369
::apache::thrift::protocol::TType _vtype57;
2370
xfer += iprot->readMapBegin(_ktype56, _vtype57, _size55);
2372
for (_i59 = 0; _i59 < _size55; ++_i59)
2375
xfer += iprot->readString(_key60);
2376
std::string& _val61 = this->credentials[_key60];
2377
xfer += iprot->readString(_val61);
2379
xfer += iprot->readMapEnd();
2381
isset_credentials = true;
2383
xfer += iprot->skip(ftype);
2387
xfer += iprot->skip(ftype);
2390
xfer += iprot->readFieldEnd();
2393
xfer += iprot->readStructEnd();
2395
if (!isset_credentials)
2396
throw TProtocolException(TProtocolException::INVALID_DATA);
2400
uint32_t AuthenticationRequest::write(::apache::thrift::protocol::TProtocol* oprot) const {
2402
xfer += oprot->writeStructBegin("AuthenticationRequest");
2404
xfer += oprot->writeFieldBegin("credentials", ::apache::thrift::protocol::T_MAP, 1);
2406
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->credentials.size()));
2407
std::map<std::string, std::string> ::const_iterator _iter62;
2408
for (_iter62 = this->credentials.begin(); _iter62 != this->credentials.end(); ++_iter62)
2410
xfer += oprot->writeString(_iter62->first);
2411
xfer += oprot->writeString(_iter62->second);
2413
xfer += oprot->writeMapEnd();
2415
xfer += oprot->writeFieldEnd();
2417
xfer += oprot->writeFieldStop();
2418
xfer += oprot->writeStructEnd();
2422
void swap(AuthenticationRequest &a, AuthenticationRequest &b) {
2424
swap(a.credentials, b.credentials);
2427
const char* ColumnDef::ascii_fingerprint = "0D89CE83D7EDAD079AC3213ED1DCAA58";
2428
const uint8_t ColumnDef::binary_fingerprint[16] = {0x0D,0x89,0xCE,0x83,0xD7,0xED,0xAD,0x07,0x9A,0xC3,0x21,0x3E,0xD1,0xDC,0xAA,0x58};
2430
uint32_t ColumnDef::read(::apache::thrift::protocol::TProtocol* iprot) {
2434
::apache::thrift::protocol::TType ftype;
2437
xfer += iprot->readStructBegin(fname);
2439
using ::apache::thrift::protocol::TProtocolException;
2441
bool isset_name = false;
2442
bool isset_validation_class = false;
2446
xfer += iprot->readFieldBegin(fname, ftype, fid);
2447
if (ftype == ::apache::thrift::protocol::T_STOP) {
2453
if (ftype == ::apache::thrift::protocol::T_STRING) {
2454
xfer += iprot->readBinary(this->name);
2457
xfer += iprot->skip(ftype);
2461
if (ftype == ::apache::thrift::protocol::T_STRING) {
2462
xfer += iprot->readString(this->validation_class);
2463
isset_validation_class = true;
2465
xfer += iprot->skip(ftype);
2469
if (ftype == ::apache::thrift::protocol::T_I32) {
2471
xfer += iprot->readI32(ecast63);
2472
this->index_type = (IndexType::type)ecast63;
2473
this->__isset.index_type = true;
2475
xfer += iprot->skip(ftype);
2479
if (ftype == ::apache::thrift::protocol::T_STRING) {
2480
xfer += iprot->readString(this->index_name);
2481
this->__isset.index_name = true;
2483
xfer += iprot->skip(ftype);
2487
if (ftype == ::apache::thrift::protocol::T_MAP) {
2489
this->index_options.clear();
2491
::apache::thrift::protocol::TType _ktype65;
2492
::apache::thrift::protocol::TType _vtype66;
2493
xfer += iprot->readMapBegin(_ktype65, _vtype66, _size64);
2495
for (_i68 = 0; _i68 < _size64; ++_i68)
2498
xfer += iprot->readString(_key69);
2499
std::string& _val70 = this->index_options[_key69];
2500
xfer += iprot->readString(_val70);
2502
xfer += iprot->readMapEnd();
2504
this->__isset.index_options = true;
2506
xfer += iprot->skip(ftype);
2510
xfer += iprot->skip(ftype);
2513
xfer += iprot->readFieldEnd();
2516
xfer += iprot->readStructEnd();
2519
throw TProtocolException(TProtocolException::INVALID_DATA);
2520
if (!isset_validation_class)
2521
throw TProtocolException(TProtocolException::INVALID_DATA);
2525
uint32_t ColumnDef::write(::apache::thrift::protocol::TProtocol* oprot) const {
2527
xfer += oprot->writeStructBegin("ColumnDef");
2529
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
2530
xfer += oprot->writeBinary(this->name);
2531
xfer += oprot->writeFieldEnd();
2533
xfer += oprot->writeFieldBegin("validation_class", ::apache::thrift::protocol::T_STRING, 2);
2534
xfer += oprot->writeString(this->validation_class);
2535
xfer += oprot->writeFieldEnd();
2537
if (this->__isset.index_type) {
2538
xfer += oprot->writeFieldBegin("index_type", ::apache::thrift::protocol::T_I32, 3);
2539
xfer += oprot->writeI32((int32_t)this->index_type);
2540
xfer += oprot->writeFieldEnd();
2542
if (this->__isset.index_name) {
2543
xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 4);
2544
xfer += oprot->writeString(this->index_name);
2545
xfer += oprot->writeFieldEnd();
2547
if (this->__isset.index_options) {
2548
xfer += oprot->writeFieldBegin("index_options", ::apache::thrift::protocol::T_MAP, 5);
2550
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->index_options.size()));
2551
std::map<std::string, std::string> ::const_iterator _iter71;
2552
for (_iter71 = this->index_options.begin(); _iter71 != this->index_options.end(); ++_iter71)
2554
xfer += oprot->writeString(_iter71->first);
2555
xfer += oprot->writeString(_iter71->second);
2557
xfer += oprot->writeMapEnd();
2559
xfer += oprot->writeFieldEnd();
2561
xfer += oprot->writeFieldStop();
2562
xfer += oprot->writeStructEnd();
2566
void swap(ColumnDef &a, ColumnDef &b) {
2568
swap(a.name, b.name);
2569
swap(a.validation_class, b.validation_class);
2570
swap(a.index_type, b.index_type);
2571
swap(a.index_name, b.index_name);
2572
swap(a.index_options, b.index_options);
2573
swap(a.__isset, b.__isset);
2576
const char* CfDef::ascii_fingerprint = "231A260521B5DD99EFBCCBDD8768CA7D";
2577
const uint8_t CfDef::binary_fingerprint[16] = {0x23,0x1A,0x26,0x05,0x21,0xB5,0xDD,0x99,0xEF,0xBC,0xCB,0xDD,0x87,0x68,0xCA,0x7D};
2579
uint32_t CfDef::read(::apache::thrift::protocol::TProtocol* iprot) {
2583
::apache::thrift::protocol::TType ftype;
2586
xfer += iprot->readStructBegin(fname);
2588
using ::apache::thrift::protocol::TProtocolException;
2590
bool isset_keyspace = false;
2591
bool isset_name = false;
2595
xfer += iprot->readFieldBegin(fname, ftype, fid);
2596
if (ftype == ::apache::thrift::protocol::T_STOP) {
2602
if (ftype == ::apache::thrift::protocol::T_STRING) {
2603
xfer += iprot->readString(this->keyspace);
2604
isset_keyspace = true;
2606
xfer += iprot->skip(ftype);
2610
if (ftype == ::apache::thrift::protocol::T_STRING) {
2611
xfer += iprot->readString(this->name);
2614
xfer += iprot->skip(ftype);
2618
if (ftype == ::apache::thrift::protocol::T_STRING) {
2619
xfer += iprot->readString(this->column_type);
2620
this->__isset.column_type = true;
2622
xfer += iprot->skip(ftype);
2626
if (ftype == ::apache::thrift::protocol::T_STRING) {
2627
xfer += iprot->readString(this->comparator_type);
2628
this->__isset.comparator_type = true;
2630
xfer += iprot->skip(ftype);
2634
if (ftype == ::apache::thrift::protocol::T_STRING) {
2635
xfer += iprot->readString(this->subcomparator_type);
2636
this->__isset.subcomparator_type = true;
2638
xfer += iprot->skip(ftype);
2642
if (ftype == ::apache::thrift::protocol::T_STRING) {
2643
xfer += iprot->readString(this->comment);
2644
this->__isset.comment = true;
2646
xfer += iprot->skip(ftype);
2650
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2651
xfer += iprot->readDouble(this->read_repair_chance);
2652
this->__isset.read_repair_chance = true;
2654
xfer += iprot->skip(ftype);
2658
if (ftype == ::apache::thrift::protocol::T_LIST) {
2660
this->column_metadata.clear();
2662
::apache::thrift::protocol::TType _etype75;
2663
xfer += iprot->readListBegin(_etype75, _size72);
2664
this->column_metadata.resize(_size72);
2666
for (_i76 = 0; _i76 < _size72; ++_i76)
2668
xfer += this->column_metadata[_i76].read(iprot);
2670
xfer += iprot->readListEnd();
2672
this->__isset.column_metadata = true;
2674
xfer += iprot->skip(ftype);
2678
if (ftype == ::apache::thrift::protocol::T_I32) {
2679
xfer += iprot->readI32(this->gc_grace_seconds);
2680
this->__isset.gc_grace_seconds = true;
2682
xfer += iprot->skip(ftype);
2686
if (ftype == ::apache::thrift::protocol::T_STRING) {
2687
xfer += iprot->readString(this->default_validation_class);
2688
this->__isset.default_validation_class = true;
2690
xfer += iprot->skip(ftype);
2694
if (ftype == ::apache::thrift::protocol::T_I32) {
2695
xfer += iprot->readI32(this->id);
2696
this->__isset.id = true;
2698
xfer += iprot->skip(ftype);
2702
if (ftype == ::apache::thrift::protocol::T_I32) {
2703
xfer += iprot->readI32(this->min_compaction_threshold);
2704
this->__isset.min_compaction_threshold = true;
2706
xfer += iprot->skip(ftype);
2710
if (ftype == ::apache::thrift::protocol::T_I32) {
2711
xfer += iprot->readI32(this->max_compaction_threshold);
2712
this->__isset.max_compaction_threshold = true;
2714
xfer += iprot->skip(ftype);
2718
if (ftype == ::apache::thrift::protocol::T_BOOL) {
2719
xfer += iprot->readBool(this->replicate_on_write);
2720
this->__isset.replicate_on_write = true;
2722
xfer += iprot->skip(ftype);
2726
if (ftype == ::apache::thrift::protocol::T_STRING) {
2727
xfer += iprot->readString(this->key_validation_class);
2728
this->__isset.key_validation_class = true;
2730
xfer += iprot->skip(ftype);
2734
if (ftype == ::apache::thrift::protocol::T_STRING) {
2735
xfer += iprot->readBinary(this->key_alias);
2736
this->__isset.key_alias = true;
2738
xfer += iprot->skip(ftype);
2742
if (ftype == ::apache::thrift::protocol::T_STRING) {
2743
xfer += iprot->readString(this->compaction_strategy);
2744
this->__isset.compaction_strategy = true;
2746
xfer += iprot->skip(ftype);
2750
if (ftype == ::apache::thrift::protocol::T_MAP) {
2752
this->compaction_strategy_options.clear();
2754
::apache::thrift::protocol::TType _ktype78;
2755
::apache::thrift::protocol::TType _vtype79;
2756
xfer += iprot->readMapBegin(_ktype78, _vtype79, _size77);
2758
for (_i81 = 0; _i81 < _size77; ++_i81)
2761
xfer += iprot->readString(_key82);
2762
std::string& _val83 = this->compaction_strategy_options[_key82];
2763
xfer += iprot->readString(_val83);
2765
xfer += iprot->readMapEnd();
2767
this->__isset.compaction_strategy_options = true;
2769
xfer += iprot->skip(ftype);
2773
if (ftype == ::apache::thrift::protocol::T_MAP) {
2775
this->compression_options.clear();
2777
::apache::thrift::protocol::TType _ktype85;
2778
::apache::thrift::protocol::TType _vtype86;
2779
xfer += iprot->readMapBegin(_ktype85, _vtype86, _size84);
2781
for (_i88 = 0; _i88 < _size84; ++_i88)
2784
xfer += iprot->readString(_key89);
2785
std::string& _val90 = this->compression_options[_key89];
2786
xfer += iprot->readString(_val90);
2788
xfer += iprot->readMapEnd();
2790
this->__isset.compression_options = true;
2792
xfer += iprot->skip(ftype);
2796
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2797
xfer += iprot->readDouble(this->bloom_filter_fp_chance);
2798
this->__isset.bloom_filter_fp_chance = true;
2800
xfer += iprot->skip(ftype);
2804
if (ftype == ::apache::thrift::protocol::T_STRING) {
2805
xfer += iprot->readString(this->caching);
2806
this->__isset.caching = true;
2808
xfer += iprot->skip(ftype);
2812
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2813
xfer += iprot->readDouble(this->dclocal_read_repair_chance);
2814
this->__isset.dclocal_read_repair_chance = true;
2816
xfer += iprot->skip(ftype);
2820
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2821
xfer += iprot->readDouble(this->row_cache_size);
2822
this->__isset.row_cache_size = true;
2824
xfer += iprot->skip(ftype);
2828
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2829
xfer += iprot->readDouble(this->key_cache_size);
2830
this->__isset.key_cache_size = true;
2832
xfer += iprot->skip(ftype);
2836
if (ftype == ::apache::thrift::protocol::T_I32) {
2837
xfer += iprot->readI32(this->row_cache_save_period_in_seconds);
2838
this->__isset.row_cache_save_period_in_seconds = true;
2840
xfer += iprot->skip(ftype);
2844
if (ftype == ::apache::thrift::protocol::T_I32) {
2845
xfer += iprot->readI32(this->key_cache_save_period_in_seconds);
2846
this->__isset.key_cache_save_period_in_seconds = true;
2848
xfer += iprot->skip(ftype);
2852
if (ftype == ::apache::thrift::protocol::T_I32) {
2853
xfer += iprot->readI32(this->memtable_flush_after_mins);
2854
this->__isset.memtable_flush_after_mins = true;
2856
xfer += iprot->skip(ftype);
2860
if (ftype == ::apache::thrift::protocol::T_I32) {
2861
xfer += iprot->readI32(this->memtable_throughput_in_mb);
2862
this->__isset.memtable_throughput_in_mb = true;
2864
xfer += iprot->skip(ftype);
2868
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2869
xfer += iprot->readDouble(this->memtable_operations_in_millions);
2870
this->__isset.memtable_operations_in_millions = true;
2872
xfer += iprot->skip(ftype);
2876
if (ftype == ::apache::thrift::protocol::T_DOUBLE) {
2877
xfer += iprot->readDouble(this->merge_shards_chance);
2878
this->__isset.merge_shards_chance = true;
2880
xfer += iprot->skip(ftype);
2884
if (ftype == ::apache::thrift::protocol::T_STRING) {
2885
xfer += iprot->readString(this->row_cache_provider);
2886
this->__isset.row_cache_provider = true;
2888
xfer += iprot->skip(ftype);
2892
if (ftype == ::apache::thrift::protocol::T_I32) {
2893
xfer += iprot->readI32(this->row_cache_keys_to_save);
2894
this->__isset.row_cache_keys_to_save = true;
2896
xfer += iprot->skip(ftype);
2900
xfer += iprot->skip(ftype);
2903
xfer += iprot->readFieldEnd();
2906
xfer += iprot->readStructEnd();
2908
if (!isset_keyspace)
2909
throw TProtocolException(TProtocolException::INVALID_DATA);
2911
throw TProtocolException(TProtocolException::INVALID_DATA);
2915
uint32_t CfDef::write(::apache::thrift::protocol::TProtocol* oprot) const {
2917
xfer += oprot->writeStructBegin("CfDef");
2919
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
2920
xfer += oprot->writeString(this->keyspace);
2921
xfer += oprot->writeFieldEnd();
2923
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2);
2924
xfer += oprot->writeString(this->name);
2925
xfer += oprot->writeFieldEnd();
2927
if (this->__isset.column_type) {
2928
xfer += oprot->writeFieldBegin("column_type", ::apache::thrift::protocol::T_STRING, 3);
2929
xfer += oprot->writeString(this->column_type);
2930
xfer += oprot->writeFieldEnd();
2932
if (this->__isset.comparator_type) {
2933
xfer += oprot->writeFieldBegin("comparator_type", ::apache::thrift::protocol::T_STRING, 5);
2934
xfer += oprot->writeString(this->comparator_type);
2935
xfer += oprot->writeFieldEnd();
2937
if (this->__isset.subcomparator_type) {
2938
xfer += oprot->writeFieldBegin("subcomparator_type", ::apache::thrift::protocol::T_STRING, 6);
2939
xfer += oprot->writeString(this->subcomparator_type);
2940
xfer += oprot->writeFieldEnd();
2942
if (this->__isset.comment) {
2943
xfer += oprot->writeFieldBegin("comment", ::apache::thrift::protocol::T_STRING, 8);
2944
xfer += oprot->writeString(this->comment);
2945
xfer += oprot->writeFieldEnd();
2947
if (this->__isset.row_cache_size) {
2948
xfer += oprot->writeFieldBegin("row_cache_size", ::apache::thrift::protocol::T_DOUBLE, 9);
2949
xfer += oprot->writeDouble(this->row_cache_size);
2950
xfer += oprot->writeFieldEnd();
2952
if (this->__isset.key_cache_size) {
2953
xfer += oprot->writeFieldBegin("key_cache_size", ::apache::thrift::protocol::T_DOUBLE, 11);
2954
xfer += oprot->writeDouble(this->key_cache_size);
2955
xfer += oprot->writeFieldEnd();
2957
if (this->__isset.read_repair_chance) {
2958
xfer += oprot->writeFieldBegin("read_repair_chance", ::apache::thrift::protocol::T_DOUBLE, 12);
2959
xfer += oprot->writeDouble(this->read_repair_chance);
2960
xfer += oprot->writeFieldEnd();
2962
if (this->__isset.column_metadata) {
2963
xfer += oprot->writeFieldBegin("column_metadata", ::apache::thrift::protocol::T_LIST, 13);
2965
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->column_metadata.size()));
2966
std::vector<ColumnDef> ::const_iterator _iter91;
2967
for (_iter91 = this->column_metadata.begin(); _iter91 != this->column_metadata.end(); ++_iter91)
2969
xfer += (*_iter91).write(oprot);
2971
xfer += oprot->writeListEnd();
2973
xfer += oprot->writeFieldEnd();
2975
if (this->__isset.gc_grace_seconds) {
2976
xfer += oprot->writeFieldBegin("gc_grace_seconds", ::apache::thrift::protocol::T_I32, 14);
2977
xfer += oprot->writeI32(this->gc_grace_seconds);
2978
xfer += oprot->writeFieldEnd();
2980
if (this->__isset.default_validation_class) {
2981
xfer += oprot->writeFieldBegin("default_validation_class", ::apache::thrift::protocol::T_STRING, 15);
2982
xfer += oprot->writeString(this->default_validation_class);
2983
xfer += oprot->writeFieldEnd();
2985
if (this->__isset.id) {
2986
xfer += oprot->writeFieldBegin("id", ::apache::thrift::protocol::T_I32, 16);
2987
xfer += oprot->writeI32(this->id);
2988
xfer += oprot->writeFieldEnd();
2990
if (this->__isset.min_compaction_threshold) {
2991
xfer += oprot->writeFieldBegin("min_compaction_threshold", ::apache::thrift::protocol::T_I32, 17);
2992
xfer += oprot->writeI32(this->min_compaction_threshold);
2993
xfer += oprot->writeFieldEnd();
2995
if (this->__isset.max_compaction_threshold) {
2996
xfer += oprot->writeFieldBegin("max_compaction_threshold", ::apache::thrift::protocol::T_I32, 18);
2997
xfer += oprot->writeI32(this->max_compaction_threshold);
2998
xfer += oprot->writeFieldEnd();
3000
if (this->__isset.row_cache_save_period_in_seconds) {
3001
xfer += oprot->writeFieldBegin("row_cache_save_period_in_seconds", ::apache::thrift::protocol::T_I32, 19);
3002
xfer += oprot->writeI32(this->row_cache_save_period_in_seconds);
3003
xfer += oprot->writeFieldEnd();
3005
if (this->__isset.key_cache_save_period_in_seconds) {
3006
xfer += oprot->writeFieldBegin("key_cache_save_period_in_seconds", ::apache::thrift::protocol::T_I32, 20);
3007
xfer += oprot->writeI32(this->key_cache_save_period_in_seconds);
3008
xfer += oprot->writeFieldEnd();
3010
if (this->__isset.memtable_flush_after_mins) {
3011
xfer += oprot->writeFieldBegin("memtable_flush_after_mins", ::apache::thrift::protocol::T_I32, 21);
3012
xfer += oprot->writeI32(this->memtable_flush_after_mins);
3013
xfer += oprot->writeFieldEnd();
3015
if (this->__isset.memtable_throughput_in_mb) {
3016
xfer += oprot->writeFieldBegin("memtable_throughput_in_mb", ::apache::thrift::protocol::T_I32, 22);
3017
xfer += oprot->writeI32(this->memtable_throughput_in_mb);
3018
xfer += oprot->writeFieldEnd();
3020
if (this->__isset.memtable_operations_in_millions) {
3021
xfer += oprot->writeFieldBegin("memtable_operations_in_millions", ::apache::thrift::protocol::T_DOUBLE, 23);
3022
xfer += oprot->writeDouble(this->memtable_operations_in_millions);
3023
xfer += oprot->writeFieldEnd();
3025
if (this->__isset.replicate_on_write) {
3026
xfer += oprot->writeFieldBegin("replicate_on_write", ::apache::thrift::protocol::T_BOOL, 24);
3027
xfer += oprot->writeBool(this->replicate_on_write);
3028
xfer += oprot->writeFieldEnd();
3030
if (this->__isset.merge_shards_chance) {
3031
xfer += oprot->writeFieldBegin("merge_shards_chance", ::apache::thrift::protocol::T_DOUBLE, 25);
3032
xfer += oprot->writeDouble(this->merge_shards_chance);
3033
xfer += oprot->writeFieldEnd();
3035
if (this->__isset.key_validation_class) {
3036
xfer += oprot->writeFieldBegin("key_validation_class", ::apache::thrift::protocol::T_STRING, 26);
3037
xfer += oprot->writeString(this->key_validation_class);
3038
xfer += oprot->writeFieldEnd();
3040
if (this->__isset.row_cache_provider) {
3041
xfer += oprot->writeFieldBegin("row_cache_provider", ::apache::thrift::protocol::T_STRING, 27);
3042
xfer += oprot->writeString(this->row_cache_provider);
3043
xfer += oprot->writeFieldEnd();
3045
if (this->__isset.key_alias) {
3046
xfer += oprot->writeFieldBegin("key_alias", ::apache::thrift::protocol::T_STRING, 28);
3047
xfer += oprot->writeBinary(this->key_alias);
3048
xfer += oprot->writeFieldEnd();
3050
if (this->__isset.compaction_strategy) {
3051
xfer += oprot->writeFieldBegin("compaction_strategy", ::apache::thrift::protocol::T_STRING, 29);
3052
xfer += oprot->writeString(this->compaction_strategy);
3053
xfer += oprot->writeFieldEnd();
3055
if (this->__isset.compaction_strategy_options) {
3056
xfer += oprot->writeFieldBegin("compaction_strategy_options", ::apache::thrift::protocol::T_MAP, 30);
3058
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->compaction_strategy_options.size()));
3059
std::map<std::string, std::string> ::const_iterator _iter92;
3060
for (_iter92 = this->compaction_strategy_options.begin(); _iter92 != this->compaction_strategy_options.end(); ++_iter92)
3062
xfer += oprot->writeString(_iter92->first);
3063
xfer += oprot->writeString(_iter92->second);
3065
xfer += oprot->writeMapEnd();
3067
xfer += oprot->writeFieldEnd();
3069
if (this->__isset.row_cache_keys_to_save) {
3070
xfer += oprot->writeFieldBegin("row_cache_keys_to_save", ::apache::thrift::protocol::T_I32, 31);
3071
xfer += oprot->writeI32(this->row_cache_keys_to_save);
3072
xfer += oprot->writeFieldEnd();
3074
if (this->__isset.compression_options) {
3075
xfer += oprot->writeFieldBegin("compression_options", ::apache::thrift::protocol::T_MAP, 32);
3077
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->compression_options.size()));
3078
std::map<std::string, std::string> ::const_iterator _iter93;
3079
for (_iter93 = this->compression_options.begin(); _iter93 != this->compression_options.end(); ++_iter93)
3081
xfer += oprot->writeString(_iter93->first);
3082
xfer += oprot->writeString(_iter93->second);
3084
xfer += oprot->writeMapEnd();
3086
xfer += oprot->writeFieldEnd();
3088
if (this->__isset.bloom_filter_fp_chance) {
3089
xfer += oprot->writeFieldBegin("bloom_filter_fp_chance", ::apache::thrift::protocol::T_DOUBLE, 33);
3090
xfer += oprot->writeDouble(this->bloom_filter_fp_chance);
3091
xfer += oprot->writeFieldEnd();
3093
if (this->__isset.caching) {
3094
xfer += oprot->writeFieldBegin("caching", ::apache::thrift::protocol::T_STRING, 34);
3095
xfer += oprot->writeString(this->caching);
3096
xfer += oprot->writeFieldEnd();
3098
if (this->__isset.dclocal_read_repair_chance) {
3099
xfer += oprot->writeFieldBegin("dclocal_read_repair_chance", ::apache::thrift::protocol::T_DOUBLE, 37);
3100
xfer += oprot->writeDouble(this->dclocal_read_repair_chance);
3101
xfer += oprot->writeFieldEnd();
3103
xfer += oprot->writeFieldStop();
3104
xfer += oprot->writeStructEnd();
3108
void swap(CfDef &a, CfDef &b) {
3110
swap(a.keyspace, b.keyspace);
3111
swap(a.name, b.name);
3112
swap(a.column_type, b.column_type);
3113
swap(a.comparator_type, b.comparator_type);
3114
swap(a.subcomparator_type, b.subcomparator_type);
3115
swap(a.comment, b.comment);
3116
swap(a.read_repair_chance, b.read_repair_chance);
3117
swap(a.column_metadata, b.column_metadata);
3118
swap(a.gc_grace_seconds, b.gc_grace_seconds);
3119
swap(a.default_validation_class, b.default_validation_class);
3121
swap(a.min_compaction_threshold, b.min_compaction_threshold);
3122
swap(a.max_compaction_threshold, b.max_compaction_threshold);
3123
swap(a.replicate_on_write, b.replicate_on_write);
3124
swap(a.key_validation_class, b.key_validation_class);
3125
swap(a.key_alias, b.key_alias);
3126
swap(a.compaction_strategy, b.compaction_strategy);
3127
swap(a.compaction_strategy_options, b.compaction_strategy_options);
3128
swap(a.compression_options, b.compression_options);
3129
swap(a.bloom_filter_fp_chance, b.bloom_filter_fp_chance);
3130
swap(a.caching, b.caching);
3131
swap(a.dclocal_read_repair_chance, b.dclocal_read_repair_chance);
3132
swap(a.row_cache_size, b.row_cache_size);
3133
swap(a.key_cache_size, b.key_cache_size);
3134
swap(a.row_cache_save_period_in_seconds, b.row_cache_save_period_in_seconds);
3135
swap(a.key_cache_save_period_in_seconds, b.key_cache_save_period_in_seconds);
3136
swap(a.memtable_flush_after_mins, b.memtable_flush_after_mins);
3137
swap(a.memtable_throughput_in_mb, b.memtable_throughput_in_mb);
3138
swap(a.memtable_operations_in_millions, b.memtable_operations_in_millions);
3139
swap(a.merge_shards_chance, b.merge_shards_chance);
3140
swap(a.row_cache_provider, b.row_cache_provider);
3141
swap(a.row_cache_keys_to_save, b.row_cache_keys_to_save);
3142
swap(a.__isset, b.__isset);
3145
const char* KsDef::ascii_fingerprint = "0767851B6476EB3777A21E59E912E11A";
3146
const uint8_t KsDef::binary_fingerprint[16] = {0x07,0x67,0x85,0x1B,0x64,0x76,0xEB,0x37,0x77,0xA2,0x1E,0x59,0xE9,0x12,0xE1,0x1A};
3148
uint32_t KsDef::read(::apache::thrift::protocol::TProtocol* iprot) {
3152
::apache::thrift::protocol::TType ftype;
3155
xfer += iprot->readStructBegin(fname);
3157
using ::apache::thrift::protocol::TProtocolException;
3159
bool isset_name = false;
3160
bool isset_strategy_class = false;
3161
bool isset_cf_defs = false;
3165
xfer += iprot->readFieldBegin(fname, ftype, fid);
3166
if (ftype == ::apache::thrift::protocol::T_STOP) {
3172
if (ftype == ::apache::thrift::protocol::T_STRING) {
3173
xfer += iprot->readString(this->name);
3176
xfer += iprot->skip(ftype);
3180
if (ftype == ::apache::thrift::protocol::T_STRING) {
3181
xfer += iprot->readString(this->strategy_class);
3182
isset_strategy_class = true;
3184
xfer += iprot->skip(ftype);
3188
if (ftype == ::apache::thrift::protocol::T_MAP) {
3190
this->strategy_options.clear();
3192
::apache::thrift::protocol::TType _ktype95;
3193
::apache::thrift::protocol::TType _vtype96;
3194
xfer += iprot->readMapBegin(_ktype95, _vtype96, _size94);
3196
for (_i98 = 0; _i98 < _size94; ++_i98)
3199
xfer += iprot->readString(_key99);
3200
std::string& _val100 = this->strategy_options[_key99];
3201
xfer += iprot->readString(_val100);
3203
xfer += iprot->readMapEnd();
3205
this->__isset.strategy_options = true;
3207
xfer += iprot->skip(ftype);
3211
if (ftype == ::apache::thrift::protocol::T_I32) {
3212
xfer += iprot->readI32(this->replication_factor);
3213
this->__isset.replication_factor = true;
3215
xfer += iprot->skip(ftype);
3219
if (ftype == ::apache::thrift::protocol::T_LIST) {
3221
this->cf_defs.clear();
3223
::apache::thrift::protocol::TType _etype104;
3224
xfer += iprot->readListBegin(_etype104, _size101);
3225
this->cf_defs.resize(_size101);
3227
for (_i105 = 0; _i105 < _size101; ++_i105)
3229
xfer += this->cf_defs[_i105].read(iprot);
3231
xfer += iprot->readListEnd();
3233
isset_cf_defs = true;
3235
xfer += iprot->skip(ftype);
3239
if (ftype == ::apache::thrift::protocol::T_BOOL) {
3240
xfer += iprot->readBool(this->durable_writes);
3241
this->__isset.durable_writes = true;
3243
xfer += iprot->skip(ftype);
3247
xfer += iprot->skip(ftype);
3250
xfer += iprot->readFieldEnd();
3253
xfer += iprot->readStructEnd();
3256
throw TProtocolException(TProtocolException::INVALID_DATA);
3257
if (!isset_strategy_class)
3258
throw TProtocolException(TProtocolException::INVALID_DATA);
3260
throw TProtocolException(TProtocolException::INVALID_DATA);
3264
uint32_t KsDef::write(::apache::thrift::protocol::TProtocol* oprot) const {
3266
xfer += oprot->writeStructBegin("KsDef");
3268
xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
3269
xfer += oprot->writeString(this->name);
3270
xfer += oprot->writeFieldEnd();
3272
xfer += oprot->writeFieldBegin("strategy_class", ::apache::thrift::protocol::T_STRING, 2);
3273
xfer += oprot->writeString(this->strategy_class);
3274
xfer += oprot->writeFieldEnd();
3276
if (this->__isset.strategy_options) {
3277
xfer += oprot->writeFieldBegin("strategy_options", ::apache::thrift::protocol::T_MAP, 3);
3279
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->strategy_options.size()));
3280
std::map<std::string, std::string> ::const_iterator _iter106;
3281
for (_iter106 = this->strategy_options.begin(); _iter106 != this->strategy_options.end(); ++_iter106)
3283
xfer += oprot->writeString(_iter106->first);
3284
xfer += oprot->writeString(_iter106->second);
3286
xfer += oprot->writeMapEnd();
3288
xfer += oprot->writeFieldEnd();
3290
if (this->__isset.replication_factor) {
3291
xfer += oprot->writeFieldBegin("replication_factor", ::apache::thrift::protocol::T_I32, 4);
3292
xfer += oprot->writeI32(this->replication_factor);
3293
xfer += oprot->writeFieldEnd();
3295
xfer += oprot->writeFieldBegin("cf_defs", ::apache::thrift::protocol::T_LIST, 5);
3297
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->cf_defs.size()));
3298
std::vector<CfDef> ::const_iterator _iter107;
3299
for (_iter107 = this->cf_defs.begin(); _iter107 != this->cf_defs.end(); ++_iter107)
3301
xfer += (*_iter107).write(oprot);
3303
xfer += oprot->writeListEnd();
3305
xfer += oprot->writeFieldEnd();
3307
if (this->__isset.durable_writes) {
3308
xfer += oprot->writeFieldBegin("durable_writes", ::apache::thrift::protocol::T_BOOL, 6);
3309
xfer += oprot->writeBool(this->durable_writes);
3310
xfer += oprot->writeFieldEnd();
3312
xfer += oprot->writeFieldStop();
3313
xfer += oprot->writeStructEnd();
3317
void swap(KsDef &a, KsDef &b) {
3319
swap(a.name, b.name);
3320
swap(a.strategy_class, b.strategy_class);
3321
swap(a.strategy_options, b.strategy_options);
3322
swap(a.replication_factor, b.replication_factor);
3323
swap(a.cf_defs, b.cf_defs);
3324
swap(a.durable_writes, b.durable_writes);
3325
swap(a.__isset, b.__isset);
3328
const char* CqlRow::ascii_fingerprint = "470EFC558004E98D92D604898305C04E";
3329
const uint8_t CqlRow::binary_fingerprint[16] = {0x47,0x0E,0xFC,0x55,0x80,0x04,0xE9,0x8D,0x92,0xD6,0x04,0x89,0x83,0x05,0xC0,0x4E};
3331
uint32_t CqlRow::read(::apache::thrift::protocol::TProtocol* iprot) {
3335
::apache::thrift::protocol::TType ftype;
3338
xfer += iprot->readStructBegin(fname);
3340
using ::apache::thrift::protocol::TProtocolException;
3342
bool isset_key = false;
3343
bool isset_columns = false;
3347
xfer += iprot->readFieldBegin(fname, ftype, fid);
3348
if (ftype == ::apache::thrift::protocol::T_STOP) {
3354
if (ftype == ::apache::thrift::protocol::T_STRING) {
3355
xfer += iprot->readBinary(this->key);
3358
xfer += iprot->skip(ftype);
3362
if (ftype == ::apache::thrift::protocol::T_LIST) {
3364
this->columns.clear();
3366
::apache::thrift::protocol::TType _etype111;
3367
xfer += iprot->readListBegin(_etype111, _size108);
3368
this->columns.resize(_size108);
3370
for (_i112 = 0; _i112 < _size108; ++_i112)
3372
xfer += this->columns[_i112].read(iprot);
3374
xfer += iprot->readListEnd();
3376
isset_columns = true;
3378
xfer += iprot->skip(ftype);
3382
xfer += iprot->skip(ftype);
3385
xfer += iprot->readFieldEnd();
3388
xfer += iprot->readStructEnd();
3391
throw TProtocolException(TProtocolException::INVALID_DATA);
3393
throw TProtocolException(TProtocolException::INVALID_DATA);
3397
uint32_t CqlRow::write(::apache::thrift::protocol::TProtocol* oprot) const {
3399
xfer += oprot->writeStructBegin("CqlRow");
3401
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3402
xfer += oprot->writeBinary(this->key);
3403
xfer += oprot->writeFieldEnd();
3405
xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 2);
3407
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->columns.size()));
3408
std::vector<Column> ::const_iterator _iter113;
3409
for (_iter113 = this->columns.begin(); _iter113 != this->columns.end(); ++_iter113)
3411
xfer += (*_iter113).write(oprot);
3413
xfer += oprot->writeListEnd();
3415
xfer += oprot->writeFieldEnd();
3417
xfer += oprot->writeFieldStop();
3418
xfer += oprot->writeStructEnd();
3422
void swap(CqlRow &a, CqlRow &b) {
3425
swap(a.columns, b.columns);
3428
const char* CqlMetadata::ascii_fingerprint = "B7C5A4AA9652C744A48EBC1C12D531E7";
3429
const uint8_t CqlMetadata::binary_fingerprint[16] = {0xB7,0xC5,0xA4,0xAA,0x96,0x52,0xC7,0x44,0xA4,0x8E,0xBC,0x1C,0x12,0xD5,0x31,0xE7};
3431
uint32_t CqlMetadata::read(::apache::thrift::protocol::TProtocol* iprot) {
3435
::apache::thrift::protocol::TType ftype;
3438
xfer += iprot->readStructBegin(fname);
3440
using ::apache::thrift::protocol::TProtocolException;
3442
bool isset_name_types = false;
3443
bool isset_value_types = false;
3444
bool isset_default_name_type = false;
3445
bool isset_default_value_type = false;
3449
xfer += iprot->readFieldBegin(fname, ftype, fid);
3450
if (ftype == ::apache::thrift::protocol::T_STOP) {
3456
if (ftype == ::apache::thrift::protocol::T_MAP) {
3458
this->name_types.clear();
3460
::apache::thrift::protocol::TType _ktype115;
3461
::apache::thrift::protocol::TType _vtype116;
3462
xfer += iprot->readMapBegin(_ktype115, _vtype116, _size114);
3464
for (_i118 = 0; _i118 < _size114; ++_i118)
3466
std::string _key119;
3467
xfer += iprot->readBinary(_key119);
3468
std::string& _val120 = this->name_types[_key119];
3469
xfer += iprot->readString(_val120);
3471
xfer += iprot->readMapEnd();
3473
isset_name_types = true;
3475
xfer += iprot->skip(ftype);
3479
if (ftype == ::apache::thrift::protocol::T_MAP) {
3481
this->value_types.clear();
3483
::apache::thrift::protocol::TType _ktype122;
3484
::apache::thrift::protocol::TType _vtype123;
3485
xfer += iprot->readMapBegin(_ktype122, _vtype123, _size121);
3487
for (_i125 = 0; _i125 < _size121; ++_i125)
3489
std::string _key126;
3490
xfer += iprot->readBinary(_key126);
3491
std::string& _val127 = this->value_types[_key126];
3492
xfer += iprot->readString(_val127);
3494
xfer += iprot->readMapEnd();
3496
isset_value_types = true;
3498
xfer += iprot->skip(ftype);
3502
if (ftype == ::apache::thrift::protocol::T_STRING) {
3503
xfer += iprot->readString(this->default_name_type);
3504
isset_default_name_type = true;
3506
xfer += iprot->skip(ftype);
3510
if (ftype == ::apache::thrift::protocol::T_STRING) {
3511
xfer += iprot->readString(this->default_value_type);
3512
isset_default_value_type = true;
3514
xfer += iprot->skip(ftype);
3518
xfer += iprot->skip(ftype);
3521
xfer += iprot->readFieldEnd();
3524
xfer += iprot->readStructEnd();
3526
if (!isset_name_types)
3527
throw TProtocolException(TProtocolException::INVALID_DATA);
3528
if (!isset_value_types)
3529
throw TProtocolException(TProtocolException::INVALID_DATA);
3530
if (!isset_default_name_type)
3531
throw TProtocolException(TProtocolException::INVALID_DATA);
3532
if (!isset_default_value_type)
3533
throw TProtocolException(TProtocolException::INVALID_DATA);
3537
uint32_t CqlMetadata::write(::apache::thrift::protocol::TProtocol* oprot) const {
3539
xfer += oprot->writeStructBegin("CqlMetadata");
3541
xfer += oprot->writeFieldBegin("name_types", ::apache::thrift::protocol::T_MAP, 1);
3543
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->name_types.size()));
3544
std::map<std::string, std::string> ::const_iterator _iter128;
3545
for (_iter128 = this->name_types.begin(); _iter128 != this->name_types.end(); ++_iter128)
3547
xfer += oprot->writeBinary(_iter128->first);
3548
xfer += oprot->writeString(_iter128->second);
3550
xfer += oprot->writeMapEnd();
3552
xfer += oprot->writeFieldEnd();
3554
xfer += oprot->writeFieldBegin("value_types", ::apache::thrift::protocol::T_MAP, 2);
3556
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->value_types.size()));
3557
std::map<std::string, std::string> ::const_iterator _iter129;
3558
for (_iter129 = this->value_types.begin(); _iter129 != this->value_types.end(); ++_iter129)
3560
xfer += oprot->writeBinary(_iter129->first);
3561
xfer += oprot->writeString(_iter129->second);
3563
xfer += oprot->writeMapEnd();
3565
xfer += oprot->writeFieldEnd();
3567
xfer += oprot->writeFieldBegin("default_name_type", ::apache::thrift::protocol::T_STRING, 3);
3568
xfer += oprot->writeString(this->default_name_type);
3569
xfer += oprot->writeFieldEnd();
3571
xfer += oprot->writeFieldBegin("default_value_type", ::apache::thrift::protocol::T_STRING, 4);
3572
xfer += oprot->writeString(this->default_value_type);
3573
xfer += oprot->writeFieldEnd();
3575
xfer += oprot->writeFieldStop();
3576
xfer += oprot->writeStructEnd();
3580
void swap(CqlMetadata &a, CqlMetadata &b) {
3582
swap(a.name_types, b.name_types);
3583
swap(a.value_types, b.value_types);
3584
swap(a.default_name_type, b.default_name_type);
3585
swap(a.default_value_type, b.default_value_type);
3588
const char* CqlResult::ascii_fingerprint = "521B9CE5AF77539F7267F6952B609E81";
3589
const uint8_t CqlResult::binary_fingerprint[16] = {0x52,0x1B,0x9C,0xE5,0xAF,0x77,0x53,0x9F,0x72,0x67,0xF6,0x95,0x2B,0x60,0x9E,0x81};
3591
uint32_t CqlResult::read(::apache::thrift::protocol::TProtocol* iprot) {
3595
::apache::thrift::protocol::TType ftype;
3598
xfer += iprot->readStructBegin(fname);
3600
using ::apache::thrift::protocol::TProtocolException;
3602
bool isset_type = false;
3606
xfer += iprot->readFieldBegin(fname, ftype, fid);
3607
if (ftype == ::apache::thrift::protocol::T_STOP) {
3613
if (ftype == ::apache::thrift::protocol::T_I32) {
3615
xfer += iprot->readI32(ecast130);
3616
this->type = (CqlResultType::type)ecast130;
3619
xfer += iprot->skip(ftype);
3623
if (ftype == ::apache::thrift::protocol::T_LIST) {
3627
::apache::thrift::protocol::TType _etype134;
3628
xfer += iprot->readListBegin(_etype134, _size131);
3629
this->rows.resize(_size131);
3631
for (_i135 = 0; _i135 < _size131; ++_i135)
3633
xfer += this->rows[_i135].read(iprot);
3635
xfer += iprot->readListEnd();
3637
this->__isset.rows = true;
3639
xfer += iprot->skip(ftype);
3643
if (ftype == ::apache::thrift::protocol::T_I32) {
3644
xfer += iprot->readI32(this->num);
3645
this->__isset.num = true;
3647
xfer += iprot->skip(ftype);
3651
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3652
xfer += this->schema.read(iprot);
3653
this->__isset.schema = true;
3655
xfer += iprot->skip(ftype);
3659
xfer += iprot->skip(ftype);
3662
xfer += iprot->readFieldEnd();
3665
xfer += iprot->readStructEnd();
3668
throw TProtocolException(TProtocolException::INVALID_DATA);
3672
uint32_t CqlResult::write(::apache::thrift::protocol::TProtocol* oprot) const {
3674
xfer += oprot->writeStructBegin("CqlResult");
3676
xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1);
3677
xfer += oprot->writeI32((int32_t)this->type);
3678
xfer += oprot->writeFieldEnd();
3680
if (this->__isset.rows) {
3681
xfer += oprot->writeFieldBegin("rows", ::apache::thrift::protocol::T_LIST, 2);
3683
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->rows.size()));
3684
std::vector<CqlRow> ::const_iterator _iter136;
3685
for (_iter136 = this->rows.begin(); _iter136 != this->rows.end(); ++_iter136)
3687
xfer += (*_iter136).write(oprot);
3689
xfer += oprot->writeListEnd();
3691
xfer += oprot->writeFieldEnd();
3693
if (this->__isset.num) {
3694
xfer += oprot->writeFieldBegin("num", ::apache::thrift::protocol::T_I32, 3);
3695
xfer += oprot->writeI32(this->num);
3696
xfer += oprot->writeFieldEnd();
3698
if (this->__isset.schema) {
3699
xfer += oprot->writeFieldBegin("schema", ::apache::thrift::protocol::T_STRUCT, 4);
3700
xfer += this->schema.write(oprot);
3701
xfer += oprot->writeFieldEnd();
3703
xfer += oprot->writeFieldStop();
3704
xfer += oprot->writeStructEnd();
3708
void swap(CqlResult &a, CqlResult &b) {
3710
swap(a.type, b.type);
3711
swap(a.rows, b.rows);
3713
swap(a.schema, b.schema);
3714
swap(a.__isset, b.__isset);
3717
const char* CqlPreparedResult::ascii_fingerprint = "7E1663EC688DFDC28722BF36F9F64E6F";
3718
const uint8_t CqlPreparedResult::binary_fingerprint[16] = {0x7E,0x16,0x63,0xEC,0x68,0x8D,0xFD,0xC2,0x87,0x22,0xBF,0x36,0xF9,0xF6,0x4E,0x6F};
3720
uint32_t CqlPreparedResult::read(::apache::thrift::protocol::TProtocol* iprot) {
3724
::apache::thrift::protocol::TType ftype;
3727
xfer += iprot->readStructBegin(fname);
3729
using ::apache::thrift::protocol::TProtocolException;
3731
bool isset_itemId = false;
3732
bool isset_count = false;
3736
xfer += iprot->readFieldBegin(fname, ftype, fid);
3737
if (ftype == ::apache::thrift::protocol::T_STOP) {
3743
if (ftype == ::apache::thrift::protocol::T_I32) {
3744
xfer += iprot->readI32(this->itemId);
3745
isset_itemId = true;
3747
xfer += iprot->skip(ftype);
3751
if (ftype == ::apache::thrift::protocol::T_I32) {
3752
xfer += iprot->readI32(this->count);
3755
xfer += iprot->skip(ftype);
3759
if (ftype == ::apache::thrift::protocol::T_LIST) {
3761
this->variable_types.clear();
3763
::apache::thrift::protocol::TType _etype140;
3764
xfer += iprot->readListBegin(_etype140, _size137);
3765
this->variable_types.resize(_size137);
3767
for (_i141 = 0; _i141 < _size137; ++_i141)
3769
xfer += iprot->readString(this->variable_types[_i141]);
3771
xfer += iprot->readListEnd();
3773
this->__isset.variable_types = true;
3775
xfer += iprot->skip(ftype);
3779
if (ftype == ::apache::thrift::protocol::T_LIST) {
3781
this->variable_names.clear();
3783
::apache::thrift::protocol::TType _etype145;
3784
xfer += iprot->readListBegin(_etype145, _size142);
3785
this->variable_names.resize(_size142);
3787
for (_i146 = 0; _i146 < _size142; ++_i146)
3789
xfer += iprot->readString(this->variable_names[_i146]);
3791
xfer += iprot->readListEnd();
3793
this->__isset.variable_names = true;
3795
xfer += iprot->skip(ftype);
3799
xfer += iprot->skip(ftype);
3802
xfer += iprot->readFieldEnd();
3805
xfer += iprot->readStructEnd();
3808
throw TProtocolException(TProtocolException::INVALID_DATA);
3810
throw TProtocolException(TProtocolException::INVALID_DATA);
3814
uint32_t CqlPreparedResult::write(::apache::thrift::protocol::TProtocol* oprot) const {
3816
xfer += oprot->writeStructBegin("CqlPreparedResult");
3818
xfer += oprot->writeFieldBegin("itemId", ::apache::thrift::protocol::T_I32, 1);
3819
xfer += oprot->writeI32(this->itemId);
3820
xfer += oprot->writeFieldEnd();
3822
xfer += oprot->writeFieldBegin("count", ::apache::thrift::protocol::T_I32, 2);
3823
xfer += oprot->writeI32(this->count);
3824
xfer += oprot->writeFieldEnd();
3826
if (this->__isset.variable_types) {
3827
xfer += oprot->writeFieldBegin("variable_types", ::apache::thrift::protocol::T_LIST, 3);
3829
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->variable_types.size()));
3830
std::vector<std::string> ::const_iterator _iter147;
3831
for (_iter147 = this->variable_types.begin(); _iter147 != this->variable_types.end(); ++_iter147)
3833
xfer += oprot->writeString((*_iter147));
3835
xfer += oprot->writeListEnd();
3837
xfer += oprot->writeFieldEnd();
3839
if (this->__isset.variable_names) {
3840
xfer += oprot->writeFieldBegin("variable_names", ::apache::thrift::protocol::T_LIST, 4);
3842
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->variable_names.size()));
3843
std::vector<std::string> ::const_iterator _iter148;
3844
for (_iter148 = this->variable_names.begin(); _iter148 != this->variable_names.end(); ++_iter148)
3846
xfer += oprot->writeString((*_iter148));
3848
xfer += oprot->writeListEnd();
3850
xfer += oprot->writeFieldEnd();
3852
xfer += oprot->writeFieldStop();
3853
xfer += oprot->writeStructEnd();
3857
void swap(CqlPreparedResult &a, CqlPreparedResult &b) {
3859
swap(a.itemId, b.itemId);
3860
swap(a.count, b.count);
3861
swap(a.variable_types, b.variable_types);
3862
swap(a.variable_names, b.variable_names);
3863
swap(a.__isset, b.__isset);