2
* Autogenerated by Thrift Compiler (0.9.0-dev)
4
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
9
namespace org { namespace apache { namespace cassandra {
11
uint32_t Cassandra_login_args::read(::apache::thrift::protocol::TProtocol* iprot) {
15
::apache::thrift::protocol::TType ftype;
18
xfer += iprot->readStructBegin(fname);
20
using ::apache::thrift::protocol::TProtocolException;
22
bool isset_auth_request = false;
26
xfer += iprot->readFieldBegin(fname, ftype, fid);
27
if (ftype == ::apache::thrift::protocol::T_STOP) {
33
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
34
xfer += this->auth_request.read(iprot);
35
isset_auth_request = true;
37
xfer += iprot->skip(ftype);
41
xfer += iprot->skip(ftype);
44
xfer += iprot->readFieldEnd();
47
xfer += iprot->readStructEnd();
49
if (!isset_auth_request)
50
throw TProtocolException(TProtocolException::INVALID_DATA);
54
uint32_t Cassandra_login_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
56
xfer += oprot->writeStructBegin("Cassandra_login_args");
58
xfer += oprot->writeFieldBegin("auth_request", ::apache::thrift::protocol::T_STRUCT, 1);
59
xfer += this->auth_request.write(oprot);
60
xfer += oprot->writeFieldEnd();
62
xfer += oprot->writeFieldStop();
63
xfer += oprot->writeStructEnd();
67
uint32_t Cassandra_login_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
69
xfer += oprot->writeStructBegin("Cassandra_login_pargs");
71
xfer += oprot->writeFieldBegin("auth_request", ::apache::thrift::protocol::T_STRUCT, 1);
72
xfer += (*(this->auth_request)).write(oprot);
73
xfer += oprot->writeFieldEnd();
75
xfer += oprot->writeFieldStop();
76
xfer += oprot->writeStructEnd();
80
uint32_t Cassandra_login_result::read(::apache::thrift::protocol::TProtocol* iprot) {
84
::apache::thrift::protocol::TType ftype;
87
xfer += iprot->readStructBegin(fname);
89
using ::apache::thrift::protocol::TProtocolException;
94
xfer += iprot->readFieldBegin(fname, ftype, fid);
95
if (ftype == ::apache::thrift::protocol::T_STOP) {
101
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
102
xfer += this->failure.read(iprot);
103
this->__isset.failure = true;
105
xfer += iprot->skip(ftype);
109
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
110
xfer += this->authnx.read(iprot);
111
this->__isset.authnx = true;
113
xfer += iprot->skip(ftype);
117
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
118
xfer += this->authzx.read(iprot);
119
this->__isset.authzx = true;
121
xfer += iprot->skip(ftype);
125
xfer += iprot->skip(ftype);
128
xfer += iprot->readFieldEnd();
131
xfer += iprot->readStructEnd();
136
uint32_t Cassandra_login_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
140
xfer += oprot->writeStructBegin("Cassandra_login_result");
142
if (this->__isset.failure) {
143
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
144
xfer += this->failure.write(oprot);
145
xfer += oprot->writeFieldEnd();
146
} else if (this->__isset.authnx) {
147
xfer += oprot->writeFieldBegin("authnx", ::apache::thrift::protocol::T_STRUCT, 1);
148
xfer += this->authnx.write(oprot);
149
xfer += oprot->writeFieldEnd();
150
} else if (this->__isset.authzx) {
151
xfer += oprot->writeFieldBegin("authzx", ::apache::thrift::protocol::T_STRUCT, 2);
152
xfer += this->authzx.write(oprot);
153
xfer += oprot->writeFieldEnd();
155
xfer += oprot->writeFieldStop();
156
xfer += oprot->writeStructEnd();
160
uint32_t Cassandra_login_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
164
::apache::thrift::protocol::TType ftype;
167
xfer += iprot->readStructBegin(fname);
169
using ::apache::thrift::protocol::TProtocolException;
174
xfer += iprot->readFieldBegin(fname, ftype, fid);
175
if (ftype == ::apache::thrift::protocol::T_STOP) {
181
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
182
xfer += (*(this->failure)).read(iprot);
183
this->__isset.failure = true;
185
xfer += iprot->skip(ftype);
189
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
190
xfer += this->authnx.read(iprot);
191
this->__isset.authnx = true;
193
xfer += iprot->skip(ftype);
197
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
198
xfer += this->authzx.read(iprot);
199
this->__isset.authzx = true;
201
xfer += iprot->skip(ftype);
205
xfer += iprot->skip(ftype);
208
xfer += iprot->readFieldEnd();
211
xfer += iprot->readStructEnd();
216
uint32_t Cassandra_set_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
220
::apache::thrift::protocol::TType ftype;
223
xfer += iprot->readStructBegin(fname);
225
using ::apache::thrift::protocol::TProtocolException;
227
bool isset_keyspace = false;
231
xfer += iprot->readFieldBegin(fname, ftype, fid);
232
if (ftype == ::apache::thrift::protocol::T_STOP) {
238
if (ftype == ::apache::thrift::protocol::T_STRING) {
239
xfer += iprot->readString(this->keyspace);
240
isset_keyspace = true;
242
xfer += iprot->skip(ftype);
246
xfer += iprot->skip(ftype);
249
xfer += iprot->readFieldEnd();
252
xfer += iprot->readStructEnd();
255
throw TProtocolException(TProtocolException::INVALID_DATA);
259
uint32_t Cassandra_set_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
261
xfer += oprot->writeStructBegin("Cassandra_set_keyspace_args");
263
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
264
xfer += oprot->writeString(this->keyspace);
265
xfer += oprot->writeFieldEnd();
267
xfer += oprot->writeFieldStop();
268
xfer += oprot->writeStructEnd();
272
uint32_t Cassandra_set_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
274
xfer += oprot->writeStructBegin("Cassandra_set_keyspace_pargs");
276
xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
277
xfer += oprot->writeString((*(this->keyspace)));
278
xfer += oprot->writeFieldEnd();
280
xfer += oprot->writeFieldStop();
281
xfer += oprot->writeStructEnd();
285
uint32_t Cassandra_set_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
289
::apache::thrift::protocol::TType ftype;
292
xfer += iprot->readStructBegin(fname);
294
using ::apache::thrift::protocol::TProtocolException;
299
xfer += iprot->readFieldBegin(fname, ftype, fid);
300
if (ftype == ::apache::thrift::protocol::T_STOP) {
306
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
307
xfer += this->failure.read(iprot);
308
this->__isset.failure = true;
310
xfer += iprot->skip(ftype);
314
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
315
xfer += this->ire.read(iprot);
316
this->__isset.ire = true;
318
xfer += iprot->skip(ftype);
322
xfer += iprot->skip(ftype);
325
xfer += iprot->readFieldEnd();
328
xfer += iprot->readStructEnd();
333
uint32_t Cassandra_set_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
337
xfer += oprot->writeStructBegin("Cassandra_set_keyspace_result");
339
if (this->__isset.failure) {
340
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
341
xfer += this->failure.write(oprot);
342
xfer += oprot->writeFieldEnd();
343
} else if (this->__isset.ire) {
344
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
345
xfer += this->ire.write(oprot);
346
xfer += oprot->writeFieldEnd();
348
xfer += oprot->writeFieldStop();
349
xfer += oprot->writeStructEnd();
353
uint32_t Cassandra_set_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
357
::apache::thrift::protocol::TType ftype;
360
xfer += iprot->readStructBegin(fname);
362
using ::apache::thrift::protocol::TProtocolException;
367
xfer += iprot->readFieldBegin(fname, ftype, fid);
368
if (ftype == ::apache::thrift::protocol::T_STOP) {
374
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
375
xfer += (*(this->failure)).read(iprot);
376
this->__isset.failure = true;
378
xfer += iprot->skip(ftype);
382
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
383
xfer += this->ire.read(iprot);
384
this->__isset.ire = true;
386
xfer += iprot->skip(ftype);
390
xfer += iprot->skip(ftype);
393
xfer += iprot->readFieldEnd();
396
xfer += iprot->readStructEnd();
401
uint32_t Cassandra_get_args::read(::apache::thrift::protocol::TProtocol* iprot) {
405
::apache::thrift::protocol::TType ftype;
408
xfer += iprot->readStructBegin(fname);
410
using ::apache::thrift::protocol::TProtocolException;
412
bool isset_key = false;
413
bool isset_column_path = false;
414
bool isset_consistency_level = false;
418
xfer += iprot->readFieldBegin(fname, ftype, fid);
419
if (ftype == ::apache::thrift::protocol::T_STOP) {
425
if (ftype == ::apache::thrift::protocol::T_STRING) {
426
xfer += iprot->readBinary(this->key);
429
xfer += iprot->skip(ftype);
433
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
434
xfer += this->column_path.read(iprot);
435
isset_column_path = true;
437
xfer += iprot->skip(ftype);
441
if (ftype == ::apache::thrift::protocol::T_I32) {
443
xfer += iprot->readI32(ecast149);
444
this->consistency_level = (ConsistencyLevel::type)ecast149;
445
isset_consistency_level = true;
447
xfer += iprot->skip(ftype);
451
xfer += iprot->skip(ftype);
454
xfer += iprot->readFieldEnd();
457
xfer += iprot->readStructEnd();
460
throw TProtocolException(TProtocolException::INVALID_DATA);
461
if (!isset_column_path)
462
throw TProtocolException(TProtocolException::INVALID_DATA);
463
if (!isset_consistency_level)
464
throw TProtocolException(TProtocolException::INVALID_DATA);
468
uint32_t Cassandra_get_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
470
xfer += oprot->writeStructBegin("Cassandra_get_args");
472
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
473
xfer += oprot->writeBinary(this->key);
474
xfer += oprot->writeFieldEnd();
476
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
477
xfer += this->column_path.write(oprot);
478
xfer += oprot->writeFieldEnd();
480
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
481
xfer += oprot->writeI32((int32_t)this->consistency_level);
482
xfer += oprot->writeFieldEnd();
484
xfer += oprot->writeFieldStop();
485
xfer += oprot->writeStructEnd();
489
uint32_t Cassandra_get_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
491
xfer += oprot->writeStructBegin("Cassandra_get_pargs");
493
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
494
xfer += oprot->writeBinary((*(this->key)));
495
xfer += oprot->writeFieldEnd();
497
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
498
xfer += (*(this->column_path)).write(oprot);
499
xfer += oprot->writeFieldEnd();
501
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
502
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
503
xfer += oprot->writeFieldEnd();
505
xfer += oprot->writeFieldStop();
506
xfer += oprot->writeStructEnd();
510
uint32_t Cassandra_get_result::read(::apache::thrift::protocol::TProtocol* iprot) {
514
::apache::thrift::protocol::TType ftype;
517
xfer += iprot->readStructBegin(fname);
519
using ::apache::thrift::protocol::TProtocolException;
524
xfer += iprot->readFieldBegin(fname, ftype, fid);
525
if (ftype == ::apache::thrift::protocol::T_STOP) {
531
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
532
xfer += this->success.read(iprot);
533
this->__isset.success = true;
535
xfer += iprot->skip(ftype);
539
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
540
xfer += this->failure.read(iprot);
541
this->__isset.failure = true;
543
xfer += iprot->skip(ftype);
547
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
548
xfer += this->ire.read(iprot);
549
this->__isset.ire = true;
551
xfer += iprot->skip(ftype);
555
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
556
xfer += this->nfe.read(iprot);
557
this->__isset.nfe = true;
559
xfer += iprot->skip(ftype);
563
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
564
xfer += this->ue.read(iprot);
565
this->__isset.ue = true;
567
xfer += iprot->skip(ftype);
571
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
572
xfer += this->te.read(iprot);
573
this->__isset.te = true;
575
xfer += iprot->skip(ftype);
579
xfer += iprot->skip(ftype);
582
xfer += iprot->readFieldEnd();
585
xfer += iprot->readStructEnd();
590
uint32_t Cassandra_get_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
594
xfer += oprot->writeStructBegin("Cassandra_get_result");
596
if (this->__isset.failure) {
597
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
598
xfer += this->failure.write(oprot);
599
xfer += oprot->writeFieldEnd();
600
} else if (this->__isset.success) {
601
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
602
xfer += this->success.write(oprot);
603
xfer += oprot->writeFieldEnd();
604
} else if (this->__isset.ire) {
605
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
606
xfer += this->ire.write(oprot);
607
xfer += oprot->writeFieldEnd();
608
} else if (this->__isset.nfe) {
609
xfer += oprot->writeFieldBegin("nfe", ::apache::thrift::protocol::T_STRUCT, 2);
610
xfer += this->nfe.write(oprot);
611
xfer += oprot->writeFieldEnd();
612
} else if (this->__isset.ue) {
613
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 3);
614
xfer += this->ue.write(oprot);
615
xfer += oprot->writeFieldEnd();
616
} else if (this->__isset.te) {
617
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 4);
618
xfer += this->te.write(oprot);
619
xfer += oprot->writeFieldEnd();
621
xfer += oprot->writeFieldStop();
622
xfer += oprot->writeStructEnd();
626
uint32_t Cassandra_get_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
630
::apache::thrift::protocol::TType ftype;
633
xfer += iprot->readStructBegin(fname);
635
using ::apache::thrift::protocol::TProtocolException;
640
xfer += iprot->readFieldBegin(fname, ftype, fid);
641
if (ftype == ::apache::thrift::protocol::T_STOP) {
647
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
648
xfer += (*(this->success)).read(iprot);
649
this->__isset.success = true;
651
xfer += iprot->skip(ftype);
655
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
656
xfer += (*(this->failure)).read(iprot);
657
this->__isset.failure = true;
659
xfer += iprot->skip(ftype);
663
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
664
xfer += this->ire.read(iprot);
665
this->__isset.ire = true;
667
xfer += iprot->skip(ftype);
671
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
672
xfer += this->nfe.read(iprot);
673
this->__isset.nfe = true;
675
xfer += iprot->skip(ftype);
679
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
680
xfer += this->ue.read(iprot);
681
this->__isset.ue = true;
683
xfer += iprot->skip(ftype);
687
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
688
xfer += this->te.read(iprot);
689
this->__isset.te = true;
691
xfer += iprot->skip(ftype);
695
xfer += iprot->skip(ftype);
698
xfer += iprot->readFieldEnd();
701
xfer += iprot->readStructEnd();
706
uint32_t Cassandra_get_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
710
::apache::thrift::protocol::TType ftype;
713
xfer += iprot->readStructBegin(fname);
715
using ::apache::thrift::protocol::TProtocolException;
717
bool isset_key = false;
718
bool isset_column_parent = false;
719
bool isset_predicate = false;
720
bool isset_consistency_level = false;
724
xfer += iprot->readFieldBegin(fname, ftype, fid);
725
if (ftype == ::apache::thrift::protocol::T_STOP) {
731
if (ftype == ::apache::thrift::protocol::T_STRING) {
732
xfer += iprot->readBinary(this->key);
735
xfer += iprot->skip(ftype);
739
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
740
xfer += this->column_parent.read(iprot);
741
isset_column_parent = true;
743
xfer += iprot->skip(ftype);
747
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
748
xfer += this->predicate.read(iprot);
749
isset_predicate = true;
751
xfer += iprot->skip(ftype);
755
if (ftype == ::apache::thrift::protocol::T_I32) {
757
xfer += iprot->readI32(ecast150);
758
this->consistency_level = (ConsistencyLevel::type)ecast150;
759
isset_consistency_level = true;
761
xfer += iprot->skip(ftype);
765
xfer += iprot->skip(ftype);
768
xfer += iprot->readFieldEnd();
771
xfer += iprot->readStructEnd();
774
throw TProtocolException(TProtocolException::INVALID_DATA);
775
if (!isset_column_parent)
776
throw TProtocolException(TProtocolException::INVALID_DATA);
777
if (!isset_predicate)
778
throw TProtocolException(TProtocolException::INVALID_DATA);
779
if (!isset_consistency_level)
780
throw TProtocolException(TProtocolException::INVALID_DATA);
784
uint32_t Cassandra_get_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
786
xfer += oprot->writeStructBegin("Cassandra_get_slice_args");
788
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
789
xfer += oprot->writeBinary(this->key);
790
xfer += oprot->writeFieldEnd();
792
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
793
xfer += this->column_parent.write(oprot);
794
xfer += oprot->writeFieldEnd();
796
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
797
xfer += this->predicate.write(oprot);
798
xfer += oprot->writeFieldEnd();
800
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
801
xfer += oprot->writeI32((int32_t)this->consistency_level);
802
xfer += oprot->writeFieldEnd();
804
xfer += oprot->writeFieldStop();
805
xfer += oprot->writeStructEnd();
809
uint32_t Cassandra_get_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
811
xfer += oprot->writeStructBegin("Cassandra_get_slice_pargs");
813
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
814
xfer += oprot->writeBinary((*(this->key)));
815
xfer += oprot->writeFieldEnd();
817
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
818
xfer += (*(this->column_parent)).write(oprot);
819
xfer += oprot->writeFieldEnd();
821
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
822
xfer += (*(this->predicate)).write(oprot);
823
xfer += oprot->writeFieldEnd();
825
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
826
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
827
xfer += oprot->writeFieldEnd();
829
xfer += oprot->writeFieldStop();
830
xfer += oprot->writeStructEnd();
834
uint32_t Cassandra_get_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
838
::apache::thrift::protocol::TType ftype;
841
xfer += iprot->readStructBegin(fname);
843
using ::apache::thrift::protocol::TProtocolException;
848
xfer += iprot->readFieldBegin(fname, ftype, fid);
849
if (ftype == ::apache::thrift::protocol::T_STOP) {
855
if (ftype == ::apache::thrift::protocol::T_LIST) {
857
this->success.clear();
859
::apache::thrift::protocol::TType _etype154;
860
xfer += iprot->readListBegin(_etype154, _size151);
861
this->success.resize(_size151);
863
for (_i155 = 0; _i155 < _size151; ++_i155)
865
xfer += this->success[_i155].read(iprot);
867
xfer += iprot->readListEnd();
869
this->__isset.success = true;
871
xfer += iprot->skip(ftype);
875
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
876
xfer += this->failure.read(iprot);
877
this->__isset.failure = true;
879
xfer += iprot->skip(ftype);
883
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
884
xfer += this->ire.read(iprot);
885
this->__isset.ire = true;
887
xfer += iprot->skip(ftype);
891
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
892
xfer += this->ue.read(iprot);
893
this->__isset.ue = true;
895
xfer += iprot->skip(ftype);
899
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
900
xfer += this->te.read(iprot);
901
this->__isset.te = true;
903
xfer += iprot->skip(ftype);
907
xfer += iprot->skip(ftype);
910
xfer += iprot->readFieldEnd();
913
xfer += iprot->readStructEnd();
918
uint32_t Cassandra_get_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
922
xfer += oprot->writeStructBegin("Cassandra_get_slice_result");
924
if (this->__isset.failure) {
925
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
926
xfer += this->failure.write(oprot);
927
xfer += oprot->writeFieldEnd();
928
} else if (this->__isset.success) {
929
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
931
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
932
std::vector<ColumnOrSuperColumn> ::const_iterator _iter156;
933
for (_iter156 = this->success.begin(); _iter156 != this->success.end(); ++_iter156)
935
xfer += (*_iter156).write(oprot);
937
xfer += oprot->writeListEnd();
939
xfer += oprot->writeFieldEnd();
940
} else if (this->__isset.ire) {
941
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
942
xfer += this->ire.write(oprot);
943
xfer += oprot->writeFieldEnd();
944
} else if (this->__isset.ue) {
945
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
946
xfer += this->ue.write(oprot);
947
xfer += oprot->writeFieldEnd();
948
} else if (this->__isset.te) {
949
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
950
xfer += this->te.write(oprot);
951
xfer += oprot->writeFieldEnd();
953
xfer += oprot->writeFieldStop();
954
xfer += oprot->writeStructEnd();
958
uint32_t Cassandra_get_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
962
::apache::thrift::protocol::TType ftype;
965
xfer += iprot->readStructBegin(fname);
967
using ::apache::thrift::protocol::TProtocolException;
972
xfer += iprot->readFieldBegin(fname, ftype, fid);
973
if (ftype == ::apache::thrift::protocol::T_STOP) {
979
if (ftype == ::apache::thrift::protocol::T_LIST) {
981
(*(this->success)).clear();
983
::apache::thrift::protocol::TType _etype160;
984
xfer += iprot->readListBegin(_etype160, _size157);
985
(*(this->success)).resize(_size157);
987
for (_i161 = 0; _i161 < _size157; ++_i161)
989
xfer += (*(this->success))[_i161].read(iprot);
991
xfer += iprot->readListEnd();
993
this->__isset.success = true;
995
xfer += iprot->skip(ftype);
999
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1000
xfer += (*(this->failure)).read(iprot);
1001
this->__isset.failure = true;
1003
xfer += iprot->skip(ftype);
1007
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1008
xfer += this->ire.read(iprot);
1009
this->__isset.ire = true;
1011
xfer += iprot->skip(ftype);
1015
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1016
xfer += this->ue.read(iprot);
1017
this->__isset.ue = true;
1019
xfer += iprot->skip(ftype);
1023
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1024
xfer += this->te.read(iprot);
1025
this->__isset.te = true;
1027
xfer += iprot->skip(ftype);
1031
xfer += iprot->skip(ftype);
1034
xfer += iprot->readFieldEnd();
1037
xfer += iprot->readStructEnd();
1042
uint32_t Cassandra_get_count_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1046
::apache::thrift::protocol::TType ftype;
1049
xfer += iprot->readStructBegin(fname);
1051
using ::apache::thrift::protocol::TProtocolException;
1053
bool isset_key = false;
1054
bool isset_column_parent = false;
1055
bool isset_predicate = false;
1056
bool isset_consistency_level = false;
1060
xfer += iprot->readFieldBegin(fname, ftype, fid);
1061
if (ftype == ::apache::thrift::protocol::T_STOP) {
1067
if (ftype == ::apache::thrift::protocol::T_STRING) {
1068
xfer += iprot->readBinary(this->key);
1071
xfer += iprot->skip(ftype);
1075
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1076
xfer += this->column_parent.read(iprot);
1077
isset_column_parent = true;
1079
xfer += iprot->skip(ftype);
1083
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1084
xfer += this->predicate.read(iprot);
1085
isset_predicate = true;
1087
xfer += iprot->skip(ftype);
1091
if (ftype == ::apache::thrift::protocol::T_I32) {
1093
xfer += iprot->readI32(ecast162);
1094
this->consistency_level = (ConsistencyLevel::type)ecast162;
1095
isset_consistency_level = true;
1097
xfer += iprot->skip(ftype);
1101
xfer += iprot->skip(ftype);
1104
xfer += iprot->readFieldEnd();
1107
xfer += iprot->readStructEnd();
1110
throw TProtocolException(TProtocolException::INVALID_DATA);
1111
if (!isset_column_parent)
1112
throw TProtocolException(TProtocolException::INVALID_DATA);
1113
if (!isset_predicate)
1114
throw TProtocolException(TProtocolException::INVALID_DATA);
1115
if (!isset_consistency_level)
1116
throw TProtocolException(TProtocolException::INVALID_DATA);
1120
uint32_t Cassandra_get_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1122
xfer += oprot->writeStructBegin("Cassandra_get_count_args");
1124
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
1125
xfer += oprot->writeBinary(this->key);
1126
xfer += oprot->writeFieldEnd();
1128
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1129
xfer += this->column_parent.write(oprot);
1130
xfer += oprot->writeFieldEnd();
1132
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1133
xfer += this->predicate.write(oprot);
1134
xfer += oprot->writeFieldEnd();
1136
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1137
xfer += oprot->writeI32((int32_t)this->consistency_level);
1138
xfer += oprot->writeFieldEnd();
1140
xfer += oprot->writeFieldStop();
1141
xfer += oprot->writeStructEnd();
1145
uint32_t Cassandra_get_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1147
xfer += oprot->writeStructBegin("Cassandra_get_count_pargs");
1149
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
1150
xfer += oprot->writeBinary((*(this->key)));
1151
xfer += oprot->writeFieldEnd();
1153
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1154
xfer += (*(this->column_parent)).write(oprot);
1155
xfer += oprot->writeFieldEnd();
1157
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1158
xfer += (*(this->predicate)).write(oprot);
1159
xfer += oprot->writeFieldEnd();
1161
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1162
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
1163
xfer += oprot->writeFieldEnd();
1165
xfer += oprot->writeFieldStop();
1166
xfer += oprot->writeStructEnd();
1170
uint32_t Cassandra_get_count_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1174
::apache::thrift::protocol::TType ftype;
1177
xfer += iprot->readStructBegin(fname);
1179
using ::apache::thrift::protocol::TProtocolException;
1184
xfer += iprot->readFieldBegin(fname, ftype, fid);
1185
if (ftype == ::apache::thrift::protocol::T_STOP) {
1191
if (ftype == ::apache::thrift::protocol::T_I32) {
1192
xfer += iprot->readI32(this->success);
1193
this->__isset.success = true;
1195
xfer += iprot->skip(ftype);
1199
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1200
xfer += this->failure.read(iprot);
1201
this->__isset.failure = true;
1203
xfer += iprot->skip(ftype);
1207
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1208
xfer += this->ire.read(iprot);
1209
this->__isset.ire = true;
1211
xfer += iprot->skip(ftype);
1215
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1216
xfer += this->ue.read(iprot);
1217
this->__isset.ue = true;
1219
xfer += iprot->skip(ftype);
1223
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1224
xfer += this->te.read(iprot);
1225
this->__isset.te = true;
1227
xfer += iprot->skip(ftype);
1231
xfer += iprot->skip(ftype);
1234
xfer += iprot->readFieldEnd();
1237
xfer += iprot->readStructEnd();
1242
uint32_t Cassandra_get_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1246
xfer += oprot->writeStructBegin("Cassandra_get_count_result");
1248
if (this->__isset.failure) {
1249
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
1250
xfer += this->failure.write(oprot);
1251
xfer += oprot->writeFieldEnd();
1252
} else if (this->__isset.success) {
1253
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I32, 0);
1254
xfer += oprot->writeI32(this->success);
1255
xfer += oprot->writeFieldEnd();
1256
} else if (this->__isset.ire) {
1257
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
1258
xfer += this->ire.write(oprot);
1259
xfer += oprot->writeFieldEnd();
1260
} else if (this->__isset.ue) {
1261
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
1262
xfer += this->ue.write(oprot);
1263
xfer += oprot->writeFieldEnd();
1264
} else if (this->__isset.te) {
1265
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
1266
xfer += this->te.write(oprot);
1267
xfer += oprot->writeFieldEnd();
1269
xfer += oprot->writeFieldStop();
1270
xfer += oprot->writeStructEnd();
1274
uint32_t Cassandra_get_count_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1278
::apache::thrift::protocol::TType ftype;
1281
xfer += iprot->readStructBegin(fname);
1283
using ::apache::thrift::protocol::TProtocolException;
1288
xfer += iprot->readFieldBegin(fname, ftype, fid);
1289
if (ftype == ::apache::thrift::protocol::T_STOP) {
1295
if (ftype == ::apache::thrift::protocol::T_I32) {
1296
xfer += iprot->readI32((*(this->success)));
1297
this->__isset.success = true;
1299
xfer += iprot->skip(ftype);
1303
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1304
xfer += (*(this->failure)).read(iprot);
1305
this->__isset.failure = true;
1307
xfer += iprot->skip(ftype);
1311
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1312
xfer += this->ire.read(iprot);
1313
this->__isset.ire = true;
1315
xfer += iprot->skip(ftype);
1319
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1320
xfer += this->ue.read(iprot);
1321
this->__isset.ue = true;
1323
xfer += iprot->skip(ftype);
1327
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1328
xfer += this->te.read(iprot);
1329
this->__isset.te = true;
1331
xfer += iprot->skip(ftype);
1335
xfer += iprot->skip(ftype);
1338
xfer += iprot->readFieldEnd();
1341
xfer += iprot->readStructEnd();
1346
uint32_t Cassandra_multiget_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1350
::apache::thrift::protocol::TType ftype;
1353
xfer += iprot->readStructBegin(fname);
1355
using ::apache::thrift::protocol::TProtocolException;
1357
bool isset_keys = false;
1358
bool isset_column_parent = false;
1359
bool isset_predicate = false;
1360
bool isset_consistency_level = false;
1364
xfer += iprot->readFieldBegin(fname, ftype, fid);
1365
if (ftype == ::apache::thrift::protocol::T_STOP) {
1371
if (ftype == ::apache::thrift::protocol::T_LIST) {
1375
::apache::thrift::protocol::TType _etype166;
1376
xfer += iprot->readListBegin(_etype166, _size163);
1377
this->keys.resize(_size163);
1379
for (_i167 = 0; _i167 < _size163; ++_i167)
1381
xfer += iprot->readBinary(this->keys[_i167]);
1383
xfer += iprot->readListEnd();
1387
xfer += iprot->skip(ftype);
1391
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1392
xfer += this->column_parent.read(iprot);
1393
isset_column_parent = true;
1395
xfer += iprot->skip(ftype);
1399
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1400
xfer += this->predicate.read(iprot);
1401
isset_predicate = true;
1403
xfer += iprot->skip(ftype);
1407
if (ftype == ::apache::thrift::protocol::T_I32) {
1409
xfer += iprot->readI32(ecast168);
1410
this->consistency_level = (ConsistencyLevel::type)ecast168;
1411
isset_consistency_level = true;
1413
xfer += iprot->skip(ftype);
1417
xfer += iprot->skip(ftype);
1420
xfer += iprot->readFieldEnd();
1423
xfer += iprot->readStructEnd();
1426
throw TProtocolException(TProtocolException::INVALID_DATA);
1427
if (!isset_column_parent)
1428
throw TProtocolException(TProtocolException::INVALID_DATA);
1429
if (!isset_predicate)
1430
throw TProtocolException(TProtocolException::INVALID_DATA);
1431
if (!isset_consistency_level)
1432
throw TProtocolException(TProtocolException::INVALID_DATA);
1436
uint32_t Cassandra_multiget_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1438
xfer += oprot->writeStructBegin("Cassandra_multiget_slice_args");
1440
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1442
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->keys.size()));
1443
std::vector<std::string> ::const_iterator _iter169;
1444
for (_iter169 = this->keys.begin(); _iter169 != this->keys.end(); ++_iter169)
1446
xfer += oprot->writeBinary((*_iter169));
1448
xfer += oprot->writeListEnd();
1450
xfer += oprot->writeFieldEnd();
1452
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1453
xfer += this->column_parent.write(oprot);
1454
xfer += oprot->writeFieldEnd();
1456
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1457
xfer += this->predicate.write(oprot);
1458
xfer += oprot->writeFieldEnd();
1460
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1461
xfer += oprot->writeI32((int32_t)this->consistency_level);
1462
xfer += oprot->writeFieldEnd();
1464
xfer += oprot->writeFieldStop();
1465
xfer += oprot->writeStructEnd();
1469
uint32_t Cassandra_multiget_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1471
xfer += oprot->writeStructBegin("Cassandra_multiget_slice_pargs");
1473
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1475
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->keys)).size()));
1476
std::vector<std::string> ::const_iterator _iter170;
1477
for (_iter170 = (*(this->keys)).begin(); _iter170 != (*(this->keys)).end(); ++_iter170)
1479
xfer += oprot->writeBinary((*_iter170));
1481
xfer += oprot->writeListEnd();
1483
xfer += oprot->writeFieldEnd();
1485
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1486
xfer += (*(this->column_parent)).write(oprot);
1487
xfer += oprot->writeFieldEnd();
1489
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1490
xfer += (*(this->predicate)).write(oprot);
1491
xfer += oprot->writeFieldEnd();
1493
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1494
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
1495
xfer += oprot->writeFieldEnd();
1497
xfer += oprot->writeFieldStop();
1498
xfer += oprot->writeStructEnd();
1502
uint32_t Cassandra_multiget_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1506
::apache::thrift::protocol::TType ftype;
1509
xfer += iprot->readStructBegin(fname);
1511
using ::apache::thrift::protocol::TProtocolException;
1516
xfer += iprot->readFieldBegin(fname, ftype, fid);
1517
if (ftype == ::apache::thrift::protocol::T_STOP) {
1523
if (ftype == ::apache::thrift::protocol::T_MAP) {
1525
this->success.clear();
1527
::apache::thrift::protocol::TType _ktype172;
1528
::apache::thrift::protocol::TType _vtype173;
1529
xfer += iprot->readMapBegin(_ktype172, _vtype173, _size171);
1531
for (_i175 = 0; _i175 < _size171; ++_i175)
1533
std::string _key176;
1534
xfer += iprot->readBinary(_key176);
1535
std::vector<ColumnOrSuperColumn> & _val177 = this->success[_key176];
1539
::apache::thrift::protocol::TType _etype181;
1540
xfer += iprot->readListBegin(_etype181, _size178);
1541
_val177.resize(_size178);
1543
for (_i182 = 0; _i182 < _size178; ++_i182)
1545
xfer += _val177[_i182].read(iprot);
1547
xfer += iprot->readListEnd();
1550
xfer += iprot->readMapEnd();
1552
this->__isset.success = true;
1554
xfer += iprot->skip(ftype);
1558
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1559
xfer += this->failure.read(iprot);
1560
this->__isset.failure = true;
1562
xfer += iprot->skip(ftype);
1566
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1567
xfer += this->ire.read(iprot);
1568
this->__isset.ire = true;
1570
xfer += iprot->skip(ftype);
1574
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1575
xfer += this->ue.read(iprot);
1576
this->__isset.ue = true;
1578
xfer += iprot->skip(ftype);
1582
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1583
xfer += this->te.read(iprot);
1584
this->__isset.te = true;
1586
xfer += iprot->skip(ftype);
1590
xfer += iprot->skip(ftype);
1593
xfer += iprot->readFieldEnd();
1596
xfer += iprot->readStructEnd();
1601
uint32_t Cassandra_multiget_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1605
xfer += oprot->writeStructBegin("Cassandra_multiget_slice_result");
1607
if (this->__isset.failure) {
1608
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
1609
xfer += this->failure.write(oprot);
1610
xfer += oprot->writeFieldEnd();
1611
} else if (this->__isset.success) {
1612
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
1614
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->success.size()));
1615
std::map<std::string, std::vector<ColumnOrSuperColumn> > ::const_iterator _iter183;
1616
for (_iter183 = this->success.begin(); _iter183 != this->success.end(); ++_iter183)
1618
xfer += oprot->writeBinary(_iter183->first);
1620
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter183->second.size()));
1621
std::vector<ColumnOrSuperColumn> ::const_iterator _iter184;
1622
for (_iter184 = _iter183->second.begin(); _iter184 != _iter183->second.end(); ++_iter184)
1624
xfer += (*_iter184).write(oprot);
1626
xfer += oprot->writeListEnd();
1629
xfer += oprot->writeMapEnd();
1631
xfer += oprot->writeFieldEnd();
1632
} else if (this->__isset.ire) {
1633
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
1634
xfer += this->ire.write(oprot);
1635
xfer += oprot->writeFieldEnd();
1636
} else if (this->__isset.ue) {
1637
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
1638
xfer += this->ue.write(oprot);
1639
xfer += oprot->writeFieldEnd();
1640
} else if (this->__isset.te) {
1641
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
1642
xfer += this->te.write(oprot);
1643
xfer += oprot->writeFieldEnd();
1645
xfer += oprot->writeFieldStop();
1646
xfer += oprot->writeStructEnd();
1650
uint32_t Cassandra_multiget_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1654
::apache::thrift::protocol::TType ftype;
1657
xfer += iprot->readStructBegin(fname);
1659
using ::apache::thrift::protocol::TProtocolException;
1664
xfer += iprot->readFieldBegin(fname, ftype, fid);
1665
if (ftype == ::apache::thrift::protocol::T_STOP) {
1671
if (ftype == ::apache::thrift::protocol::T_MAP) {
1673
(*(this->success)).clear();
1675
::apache::thrift::protocol::TType _ktype186;
1676
::apache::thrift::protocol::TType _vtype187;
1677
xfer += iprot->readMapBegin(_ktype186, _vtype187, _size185);
1679
for (_i189 = 0; _i189 < _size185; ++_i189)
1681
std::string _key190;
1682
xfer += iprot->readBinary(_key190);
1683
std::vector<ColumnOrSuperColumn> & _val191 = (*(this->success))[_key190];
1687
::apache::thrift::protocol::TType _etype195;
1688
xfer += iprot->readListBegin(_etype195, _size192);
1689
_val191.resize(_size192);
1691
for (_i196 = 0; _i196 < _size192; ++_i196)
1693
xfer += _val191[_i196].read(iprot);
1695
xfer += iprot->readListEnd();
1698
xfer += iprot->readMapEnd();
1700
this->__isset.success = true;
1702
xfer += iprot->skip(ftype);
1706
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1707
xfer += (*(this->failure)).read(iprot);
1708
this->__isset.failure = true;
1710
xfer += iprot->skip(ftype);
1714
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1715
xfer += this->ire.read(iprot);
1716
this->__isset.ire = true;
1718
xfer += iprot->skip(ftype);
1722
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1723
xfer += this->ue.read(iprot);
1724
this->__isset.ue = true;
1726
xfer += iprot->skip(ftype);
1730
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1731
xfer += this->te.read(iprot);
1732
this->__isset.te = true;
1734
xfer += iprot->skip(ftype);
1738
xfer += iprot->skip(ftype);
1741
xfer += iprot->readFieldEnd();
1744
xfer += iprot->readStructEnd();
1749
uint32_t Cassandra_multiget_count_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1753
::apache::thrift::protocol::TType ftype;
1756
xfer += iprot->readStructBegin(fname);
1758
using ::apache::thrift::protocol::TProtocolException;
1760
bool isset_keys = false;
1761
bool isset_column_parent = false;
1762
bool isset_predicate = false;
1763
bool isset_consistency_level = false;
1767
xfer += iprot->readFieldBegin(fname, ftype, fid);
1768
if (ftype == ::apache::thrift::protocol::T_STOP) {
1774
if (ftype == ::apache::thrift::protocol::T_LIST) {
1778
::apache::thrift::protocol::TType _etype200;
1779
xfer += iprot->readListBegin(_etype200, _size197);
1780
this->keys.resize(_size197);
1782
for (_i201 = 0; _i201 < _size197; ++_i201)
1784
xfer += iprot->readBinary(this->keys[_i201]);
1786
xfer += iprot->readListEnd();
1790
xfer += iprot->skip(ftype);
1794
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1795
xfer += this->column_parent.read(iprot);
1796
isset_column_parent = true;
1798
xfer += iprot->skip(ftype);
1802
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1803
xfer += this->predicate.read(iprot);
1804
isset_predicate = true;
1806
xfer += iprot->skip(ftype);
1810
if (ftype == ::apache::thrift::protocol::T_I32) {
1812
xfer += iprot->readI32(ecast202);
1813
this->consistency_level = (ConsistencyLevel::type)ecast202;
1814
isset_consistency_level = true;
1816
xfer += iprot->skip(ftype);
1820
xfer += iprot->skip(ftype);
1823
xfer += iprot->readFieldEnd();
1826
xfer += iprot->readStructEnd();
1829
throw TProtocolException(TProtocolException::INVALID_DATA);
1830
if (!isset_column_parent)
1831
throw TProtocolException(TProtocolException::INVALID_DATA);
1832
if (!isset_predicate)
1833
throw TProtocolException(TProtocolException::INVALID_DATA);
1834
if (!isset_consistency_level)
1835
throw TProtocolException(TProtocolException::INVALID_DATA);
1839
uint32_t Cassandra_multiget_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1841
xfer += oprot->writeStructBegin("Cassandra_multiget_count_args");
1843
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1845
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->keys.size()));
1846
std::vector<std::string> ::const_iterator _iter203;
1847
for (_iter203 = this->keys.begin(); _iter203 != this->keys.end(); ++_iter203)
1849
xfer += oprot->writeBinary((*_iter203));
1851
xfer += oprot->writeListEnd();
1853
xfer += oprot->writeFieldEnd();
1855
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1856
xfer += this->column_parent.write(oprot);
1857
xfer += oprot->writeFieldEnd();
1859
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1860
xfer += this->predicate.write(oprot);
1861
xfer += oprot->writeFieldEnd();
1863
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1864
xfer += oprot->writeI32((int32_t)this->consistency_level);
1865
xfer += oprot->writeFieldEnd();
1867
xfer += oprot->writeFieldStop();
1868
xfer += oprot->writeStructEnd();
1872
uint32_t Cassandra_multiget_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1874
xfer += oprot->writeStructBegin("Cassandra_multiget_count_pargs");
1876
xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1878
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->keys)).size()));
1879
std::vector<std::string> ::const_iterator _iter204;
1880
for (_iter204 = (*(this->keys)).begin(); _iter204 != (*(this->keys)).end(); ++_iter204)
1882
xfer += oprot->writeBinary((*_iter204));
1884
xfer += oprot->writeListEnd();
1886
xfer += oprot->writeFieldEnd();
1888
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1889
xfer += (*(this->column_parent)).write(oprot);
1890
xfer += oprot->writeFieldEnd();
1892
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1893
xfer += (*(this->predicate)).write(oprot);
1894
xfer += oprot->writeFieldEnd();
1896
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1897
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
1898
xfer += oprot->writeFieldEnd();
1900
xfer += oprot->writeFieldStop();
1901
xfer += oprot->writeStructEnd();
1905
uint32_t Cassandra_multiget_count_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1909
::apache::thrift::protocol::TType ftype;
1912
xfer += iprot->readStructBegin(fname);
1914
using ::apache::thrift::protocol::TProtocolException;
1919
xfer += iprot->readFieldBegin(fname, ftype, fid);
1920
if (ftype == ::apache::thrift::protocol::T_STOP) {
1926
if (ftype == ::apache::thrift::protocol::T_MAP) {
1928
this->success.clear();
1930
::apache::thrift::protocol::TType _ktype206;
1931
::apache::thrift::protocol::TType _vtype207;
1932
xfer += iprot->readMapBegin(_ktype206, _vtype207, _size205);
1934
for (_i209 = 0; _i209 < _size205; ++_i209)
1936
std::string _key210;
1937
xfer += iprot->readBinary(_key210);
1938
int32_t& _val211 = this->success[_key210];
1939
xfer += iprot->readI32(_val211);
1941
xfer += iprot->readMapEnd();
1943
this->__isset.success = true;
1945
xfer += iprot->skip(ftype);
1949
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1950
xfer += this->failure.read(iprot);
1951
this->__isset.failure = true;
1953
xfer += iprot->skip(ftype);
1957
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1958
xfer += this->ire.read(iprot);
1959
this->__isset.ire = true;
1961
xfer += iprot->skip(ftype);
1965
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1966
xfer += this->ue.read(iprot);
1967
this->__isset.ue = true;
1969
xfer += iprot->skip(ftype);
1973
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1974
xfer += this->te.read(iprot);
1975
this->__isset.te = true;
1977
xfer += iprot->skip(ftype);
1981
xfer += iprot->skip(ftype);
1984
xfer += iprot->readFieldEnd();
1987
xfer += iprot->readStructEnd();
1992
uint32_t Cassandra_multiget_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1996
xfer += oprot->writeStructBegin("Cassandra_multiget_count_result");
1998
if (this->__isset.failure) {
1999
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
2000
xfer += this->failure.write(oprot);
2001
xfer += oprot->writeFieldEnd();
2002
} else if (this->__isset.success) {
2003
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
2005
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast<uint32_t>(this->success.size()));
2006
std::map<std::string, int32_t> ::const_iterator _iter212;
2007
for (_iter212 = this->success.begin(); _iter212 != this->success.end(); ++_iter212)
2009
xfer += oprot->writeBinary(_iter212->first);
2010
xfer += oprot->writeI32(_iter212->second);
2012
xfer += oprot->writeMapEnd();
2014
xfer += oprot->writeFieldEnd();
2015
} else if (this->__isset.ire) {
2016
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
2017
xfer += this->ire.write(oprot);
2018
xfer += oprot->writeFieldEnd();
2019
} else if (this->__isset.ue) {
2020
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
2021
xfer += this->ue.write(oprot);
2022
xfer += oprot->writeFieldEnd();
2023
} else if (this->__isset.te) {
2024
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
2025
xfer += this->te.write(oprot);
2026
xfer += oprot->writeFieldEnd();
2028
xfer += oprot->writeFieldStop();
2029
xfer += oprot->writeStructEnd();
2033
uint32_t Cassandra_multiget_count_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2037
::apache::thrift::protocol::TType ftype;
2040
xfer += iprot->readStructBegin(fname);
2042
using ::apache::thrift::protocol::TProtocolException;
2047
xfer += iprot->readFieldBegin(fname, ftype, fid);
2048
if (ftype == ::apache::thrift::protocol::T_STOP) {
2054
if (ftype == ::apache::thrift::protocol::T_MAP) {
2056
(*(this->success)).clear();
2058
::apache::thrift::protocol::TType _ktype214;
2059
::apache::thrift::protocol::TType _vtype215;
2060
xfer += iprot->readMapBegin(_ktype214, _vtype215, _size213);
2062
for (_i217 = 0; _i217 < _size213; ++_i217)
2064
std::string _key218;
2065
xfer += iprot->readBinary(_key218);
2066
int32_t& _val219 = (*(this->success))[_key218];
2067
xfer += iprot->readI32(_val219);
2069
xfer += iprot->readMapEnd();
2071
this->__isset.success = true;
2073
xfer += iprot->skip(ftype);
2077
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2078
xfer += (*(this->failure)).read(iprot);
2079
this->__isset.failure = true;
2081
xfer += iprot->skip(ftype);
2085
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2086
xfer += this->ire.read(iprot);
2087
this->__isset.ire = true;
2089
xfer += iprot->skip(ftype);
2093
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2094
xfer += this->ue.read(iprot);
2095
this->__isset.ue = true;
2097
xfer += iprot->skip(ftype);
2101
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2102
xfer += this->te.read(iprot);
2103
this->__isset.te = true;
2105
xfer += iprot->skip(ftype);
2109
xfer += iprot->skip(ftype);
2112
xfer += iprot->readFieldEnd();
2115
xfer += iprot->readStructEnd();
2120
uint32_t Cassandra_get_range_slices_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2124
::apache::thrift::protocol::TType ftype;
2127
xfer += iprot->readStructBegin(fname);
2129
using ::apache::thrift::protocol::TProtocolException;
2131
bool isset_column_parent = false;
2132
bool isset_predicate = false;
2133
bool isset_range = false;
2134
bool isset_consistency_level = false;
2138
xfer += iprot->readFieldBegin(fname, ftype, fid);
2139
if (ftype == ::apache::thrift::protocol::T_STOP) {
2145
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2146
xfer += this->column_parent.read(iprot);
2147
isset_column_parent = true;
2149
xfer += iprot->skip(ftype);
2153
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2154
xfer += this->predicate.read(iprot);
2155
isset_predicate = true;
2157
xfer += iprot->skip(ftype);
2161
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2162
xfer += this->range.read(iprot);
2165
xfer += iprot->skip(ftype);
2169
if (ftype == ::apache::thrift::protocol::T_I32) {
2171
xfer += iprot->readI32(ecast220);
2172
this->consistency_level = (ConsistencyLevel::type)ecast220;
2173
isset_consistency_level = true;
2175
xfer += iprot->skip(ftype);
2179
xfer += iprot->skip(ftype);
2182
xfer += iprot->readFieldEnd();
2185
xfer += iprot->readStructEnd();
2187
if (!isset_column_parent)
2188
throw TProtocolException(TProtocolException::INVALID_DATA);
2189
if (!isset_predicate)
2190
throw TProtocolException(TProtocolException::INVALID_DATA);
2192
throw TProtocolException(TProtocolException::INVALID_DATA);
2193
if (!isset_consistency_level)
2194
throw TProtocolException(TProtocolException::INVALID_DATA);
2198
uint32_t Cassandra_get_range_slices_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2200
xfer += oprot->writeStructBegin("Cassandra_get_range_slices_args");
2202
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2203
xfer += this->column_parent.write(oprot);
2204
xfer += oprot->writeFieldEnd();
2206
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 2);
2207
xfer += this->predicate.write(oprot);
2208
xfer += oprot->writeFieldEnd();
2210
xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 3);
2211
xfer += this->range.write(oprot);
2212
xfer += oprot->writeFieldEnd();
2214
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2215
xfer += oprot->writeI32((int32_t)this->consistency_level);
2216
xfer += oprot->writeFieldEnd();
2218
xfer += oprot->writeFieldStop();
2219
xfer += oprot->writeStructEnd();
2223
uint32_t Cassandra_get_range_slices_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2225
xfer += oprot->writeStructBegin("Cassandra_get_range_slices_pargs");
2227
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2228
xfer += (*(this->column_parent)).write(oprot);
2229
xfer += oprot->writeFieldEnd();
2231
xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 2);
2232
xfer += (*(this->predicate)).write(oprot);
2233
xfer += oprot->writeFieldEnd();
2235
xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 3);
2236
xfer += (*(this->range)).write(oprot);
2237
xfer += oprot->writeFieldEnd();
2239
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2240
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2241
xfer += oprot->writeFieldEnd();
2243
xfer += oprot->writeFieldStop();
2244
xfer += oprot->writeStructEnd();
2248
uint32_t Cassandra_get_range_slices_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2252
::apache::thrift::protocol::TType ftype;
2255
xfer += iprot->readStructBegin(fname);
2257
using ::apache::thrift::protocol::TProtocolException;
2262
xfer += iprot->readFieldBegin(fname, ftype, fid);
2263
if (ftype == ::apache::thrift::protocol::T_STOP) {
2269
if (ftype == ::apache::thrift::protocol::T_LIST) {
2271
this->success.clear();
2273
::apache::thrift::protocol::TType _etype224;
2274
xfer += iprot->readListBegin(_etype224, _size221);
2275
this->success.resize(_size221);
2277
for (_i225 = 0; _i225 < _size221; ++_i225)
2279
xfer += this->success[_i225].read(iprot);
2281
xfer += iprot->readListEnd();
2283
this->__isset.success = true;
2285
xfer += iprot->skip(ftype);
2289
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2290
xfer += this->failure.read(iprot);
2291
this->__isset.failure = true;
2293
xfer += iprot->skip(ftype);
2297
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2298
xfer += this->ire.read(iprot);
2299
this->__isset.ire = true;
2301
xfer += iprot->skip(ftype);
2305
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2306
xfer += this->ue.read(iprot);
2307
this->__isset.ue = true;
2309
xfer += iprot->skip(ftype);
2313
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2314
xfer += this->te.read(iprot);
2315
this->__isset.te = true;
2317
xfer += iprot->skip(ftype);
2321
xfer += iprot->skip(ftype);
2324
xfer += iprot->readFieldEnd();
2327
xfer += iprot->readStructEnd();
2332
uint32_t Cassandra_get_range_slices_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2336
xfer += oprot->writeStructBegin("Cassandra_get_range_slices_result");
2338
if (this->__isset.failure) {
2339
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
2340
xfer += this->failure.write(oprot);
2341
xfer += oprot->writeFieldEnd();
2342
} else if (this->__isset.success) {
2343
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
2345
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
2346
std::vector<KeySlice> ::const_iterator _iter226;
2347
for (_iter226 = this->success.begin(); _iter226 != this->success.end(); ++_iter226)
2349
xfer += (*_iter226).write(oprot);
2351
xfer += oprot->writeListEnd();
2353
xfer += oprot->writeFieldEnd();
2354
} else if (this->__isset.ire) {
2355
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
2356
xfer += this->ire.write(oprot);
2357
xfer += oprot->writeFieldEnd();
2358
} else if (this->__isset.ue) {
2359
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
2360
xfer += this->ue.write(oprot);
2361
xfer += oprot->writeFieldEnd();
2362
} else if (this->__isset.te) {
2363
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
2364
xfer += this->te.write(oprot);
2365
xfer += oprot->writeFieldEnd();
2367
xfer += oprot->writeFieldStop();
2368
xfer += oprot->writeStructEnd();
2372
uint32_t Cassandra_get_range_slices_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2376
::apache::thrift::protocol::TType ftype;
2379
xfer += iprot->readStructBegin(fname);
2381
using ::apache::thrift::protocol::TProtocolException;
2386
xfer += iprot->readFieldBegin(fname, ftype, fid);
2387
if (ftype == ::apache::thrift::protocol::T_STOP) {
2393
if (ftype == ::apache::thrift::protocol::T_LIST) {
2395
(*(this->success)).clear();
2397
::apache::thrift::protocol::TType _etype230;
2398
xfer += iprot->readListBegin(_etype230, _size227);
2399
(*(this->success)).resize(_size227);
2401
for (_i231 = 0; _i231 < _size227; ++_i231)
2403
xfer += (*(this->success))[_i231].read(iprot);
2405
xfer += iprot->readListEnd();
2407
this->__isset.success = true;
2409
xfer += iprot->skip(ftype);
2413
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2414
xfer += (*(this->failure)).read(iprot);
2415
this->__isset.failure = true;
2417
xfer += iprot->skip(ftype);
2421
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2422
xfer += this->ire.read(iprot);
2423
this->__isset.ire = true;
2425
xfer += iprot->skip(ftype);
2429
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2430
xfer += this->ue.read(iprot);
2431
this->__isset.ue = true;
2433
xfer += iprot->skip(ftype);
2437
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2438
xfer += this->te.read(iprot);
2439
this->__isset.te = true;
2441
xfer += iprot->skip(ftype);
2445
xfer += iprot->skip(ftype);
2448
xfer += iprot->readFieldEnd();
2451
xfer += iprot->readStructEnd();
2456
uint32_t Cassandra_get_paged_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2460
::apache::thrift::protocol::TType ftype;
2463
xfer += iprot->readStructBegin(fname);
2465
using ::apache::thrift::protocol::TProtocolException;
2467
bool isset_column_family = false;
2468
bool isset_range = false;
2469
bool isset_start_column = false;
2470
bool isset_consistency_level = false;
2474
xfer += iprot->readFieldBegin(fname, ftype, fid);
2475
if (ftype == ::apache::thrift::protocol::T_STOP) {
2481
if (ftype == ::apache::thrift::protocol::T_STRING) {
2482
xfer += iprot->readString(this->column_family);
2483
isset_column_family = true;
2485
xfer += iprot->skip(ftype);
2489
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2490
xfer += this->range.read(iprot);
2493
xfer += iprot->skip(ftype);
2497
if (ftype == ::apache::thrift::protocol::T_STRING) {
2498
xfer += iprot->readBinary(this->start_column);
2499
isset_start_column = true;
2501
xfer += iprot->skip(ftype);
2505
if (ftype == ::apache::thrift::protocol::T_I32) {
2507
xfer += iprot->readI32(ecast232);
2508
this->consistency_level = (ConsistencyLevel::type)ecast232;
2509
isset_consistency_level = true;
2511
xfer += iprot->skip(ftype);
2515
xfer += iprot->skip(ftype);
2518
xfer += iprot->readFieldEnd();
2521
xfer += iprot->readStructEnd();
2523
if (!isset_column_family)
2524
throw TProtocolException(TProtocolException::INVALID_DATA);
2526
throw TProtocolException(TProtocolException::INVALID_DATA);
2527
if (!isset_start_column)
2528
throw TProtocolException(TProtocolException::INVALID_DATA);
2529
if (!isset_consistency_level)
2530
throw TProtocolException(TProtocolException::INVALID_DATA);
2534
uint32_t Cassandra_get_paged_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2536
xfer += oprot->writeStructBegin("Cassandra_get_paged_slice_args");
2538
xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
2539
xfer += oprot->writeString(this->column_family);
2540
xfer += oprot->writeFieldEnd();
2542
xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 2);
2543
xfer += this->range.write(oprot);
2544
xfer += oprot->writeFieldEnd();
2546
xfer += oprot->writeFieldBegin("start_column", ::apache::thrift::protocol::T_STRING, 3);
2547
xfer += oprot->writeBinary(this->start_column);
2548
xfer += oprot->writeFieldEnd();
2550
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2551
xfer += oprot->writeI32((int32_t)this->consistency_level);
2552
xfer += oprot->writeFieldEnd();
2554
xfer += oprot->writeFieldStop();
2555
xfer += oprot->writeStructEnd();
2559
uint32_t Cassandra_get_paged_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2561
xfer += oprot->writeStructBegin("Cassandra_get_paged_slice_pargs");
2563
xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
2564
xfer += oprot->writeString((*(this->column_family)));
2565
xfer += oprot->writeFieldEnd();
2567
xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 2);
2568
xfer += (*(this->range)).write(oprot);
2569
xfer += oprot->writeFieldEnd();
2571
xfer += oprot->writeFieldBegin("start_column", ::apache::thrift::protocol::T_STRING, 3);
2572
xfer += oprot->writeBinary((*(this->start_column)));
2573
xfer += oprot->writeFieldEnd();
2575
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2576
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2577
xfer += oprot->writeFieldEnd();
2579
xfer += oprot->writeFieldStop();
2580
xfer += oprot->writeStructEnd();
2584
uint32_t Cassandra_get_paged_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2588
::apache::thrift::protocol::TType ftype;
2591
xfer += iprot->readStructBegin(fname);
2593
using ::apache::thrift::protocol::TProtocolException;
2598
xfer += iprot->readFieldBegin(fname, ftype, fid);
2599
if (ftype == ::apache::thrift::protocol::T_STOP) {
2605
if (ftype == ::apache::thrift::protocol::T_LIST) {
2607
this->success.clear();
2609
::apache::thrift::protocol::TType _etype236;
2610
xfer += iprot->readListBegin(_etype236, _size233);
2611
this->success.resize(_size233);
2613
for (_i237 = 0; _i237 < _size233; ++_i237)
2615
xfer += this->success[_i237].read(iprot);
2617
xfer += iprot->readListEnd();
2619
this->__isset.success = true;
2621
xfer += iprot->skip(ftype);
2625
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2626
xfer += this->failure.read(iprot);
2627
this->__isset.failure = true;
2629
xfer += iprot->skip(ftype);
2633
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2634
xfer += this->ire.read(iprot);
2635
this->__isset.ire = true;
2637
xfer += iprot->skip(ftype);
2641
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2642
xfer += this->ue.read(iprot);
2643
this->__isset.ue = true;
2645
xfer += iprot->skip(ftype);
2649
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2650
xfer += this->te.read(iprot);
2651
this->__isset.te = true;
2653
xfer += iprot->skip(ftype);
2657
xfer += iprot->skip(ftype);
2660
xfer += iprot->readFieldEnd();
2663
xfer += iprot->readStructEnd();
2668
uint32_t Cassandra_get_paged_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2672
xfer += oprot->writeStructBegin("Cassandra_get_paged_slice_result");
2674
if (this->__isset.failure) {
2675
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
2676
xfer += this->failure.write(oprot);
2677
xfer += oprot->writeFieldEnd();
2678
} else if (this->__isset.success) {
2679
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
2681
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
2682
std::vector<KeySlice> ::const_iterator _iter238;
2683
for (_iter238 = this->success.begin(); _iter238 != this->success.end(); ++_iter238)
2685
xfer += (*_iter238).write(oprot);
2687
xfer += oprot->writeListEnd();
2689
xfer += oprot->writeFieldEnd();
2690
} else if (this->__isset.ire) {
2691
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
2692
xfer += this->ire.write(oprot);
2693
xfer += oprot->writeFieldEnd();
2694
} else if (this->__isset.ue) {
2695
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
2696
xfer += this->ue.write(oprot);
2697
xfer += oprot->writeFieldEnd();
2698
} else if (this->__isset.te) {
2699
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
2700
xfer += this->te.write(oprot);
2701
xfer += oprot->writeFieldEnd();
2703
xfer += oprot->writeFieldStop();
2704
xfer += oprot->writeStructEnd();
2708
uint32_t Cassandra_get_paged_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2712
::apache::thrift::protocol::TType ftype;
2715
xfer += iprot->readStructBegin(fname);
2717
using ::apache::thrift::protocol::TProtocolException;
2722
xfer += iprot->readFieldBegin(fname, ftype, fid);
2723
if (ftype == ::apache::thrift::protocol::T_STOP) {
2729
if (ftype == ::apache::thrift::protocol::T_LIST) {
2731
(*(this->success)).clear();
2733
::apache::thrift::protocol::TType _etype242;
2734
xfer += iprot->readListBegin(_etype242, _size239);
2735
(*(this->success)).resize(_size239);
2737
for (_i243 = 0; _i243 < _size239; ++_i243)
2739
xfer += (*(this->success))[_i243].read(iprot);
2741
xfer += iprot->readListEnd();
2743
this->__isset.success = true;
2745
xfer += iprot->skip(ftype);
2749
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2750
xfer += (*(this->failure)).read(iprot);
2751
this->__isset.failure = true;
2753
xfer += iprot->skip(ftype);
2757
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2758
xfer += this->ire.read(iprot);
2759
this->__isset.ire = true;
2761
xfer += iprot->skip(ftype);
2765
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2766
xfer += this->ue.read(iprot);
2767
this->__isset.ue = true;
2769
xfer += iprot->skip(ftype);
2773
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2774
xfer += this->te.read(iprot);
2775
this->__isset.te = true;
2777
xfer += iprot->skip(ftype);
2781
xfer += iprot->skip(ftype);
2784
xfer += iprot->readFieldEnd();
2787
xfer += iprot->readStructEnd();
2792
uint32_t Cassandra_get_indexed_slices_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2796
::apache::thrift::protocol::TType ftype;
2799
xfer += iprot->readStructBegin(fname);
2801
using ::apache::thrift::protocol::TProtocolException;
2803
bool isset_column_parent = false;
2804
bool isset_index_clause = false;
2805
bool isset_column_predicate = false;
2806
bool isset_consistency_level = false;
2810
xfer += iprot->readFieldBegin(fname, ftype, fid);
2811
if (ftype == ::apache::thrift::protocol::T_STOP) {
2817
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2818
xfer += this->column_parent.read(iprot);
2819
isset_column_parent = true;
2821
xfer += iprot->skip(ftype);
2825
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2826
xfer += this->index_clause.read(iprot);
2827
isset_index_clause = true;
2829
xfer += iprot->skip(ftype);
2833
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2834
xfer += this->column_predicate.read(iprot);
2835
isset_column_predicate = true;
2837
xfer += iprot->skip(ftype);
2841
if (ftype == ::apache::thrift::protocol::T_I32) {
2843
xfer += iprot->readI32(ecast244);
2844
this->consistency_level = (ConsistencyLevel::type)ecast244;
2845
isset_consistency_level = true;
2847
xfer += iprot->skip(ftype);
2851
xfer += iprot->skip(ftype);
2854
xfer += iprot->readFieldEnd();
2857
xfer += iprot->readStructEnd();
2859
if (!isset_column_parent)
2860
throw TProtocolException(TProtocolException::INVALID_DATA);
2861
if (!isset_index_clause)
2862
throw TProtocolException(TProtocolException::INVALID_DATA);
2863
if (!isset_column_predicate)
2864
throw TProtocolException(TProtocolException::INVALID_DATA);
2865
if (!isset_consistency_level)
2866
throw TProtocolException(TProtocolException::INVALID_DATA);
2870
uint32_t Cassandra_get_indexed_slices_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2872
xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_args");
2874
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2875
xfer += this->column_parent.write(oprot);
2876
xfer += oprot->writeFieldEnd();
2878
xfer += oprot->writeFieldBegin("index_clause", ::apache::thrift::protocol::T_STRUCT, 2);
2879
xfer += this->index_clause.write(oprot);
2880
xfer += oprot->writeFieldEnd();
2882
xfer += oprot->writeFieldBegin("column_predicate", ::apache::thrift::protocol::T_STRUCT, 3);
2883
xfer += this->column_predicate.write(oprot);
2884
xfer += oprot->writeFieldEnd();
2886
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2887
xfer += oprot->writeI32((int32_t)this->consistency_level);
2888
xfer += oprot->writeFieldEnd();
2890
xfer += oprot->writeFieldStop();
2891
xfer += oprot->writeStructEnd();
2895
uint32_t Cassandra_get_indexed_slices_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2897
xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_pargs");
2899
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2900
xfer += (*(this->column_parent)).write(oprot);
2901
xfer += oprot->writeFieldEnd();
2903
xfer += oprot->writeFieldBegin("index_clause", ::apache::thrift::protocol::T_STRUCT, 2);
2904
xfer += (*(this->index_clause)).write(oprot);
2905
xfer += oprot->writeFieldEnd();
2907
xfer += oprot->writeFieldBegin("column_predicate", ::apache::thrift::protocol::T_STRUCT, 3);
2908
xfer += (*(this->column_predicate)).write(oprot);
2909
xfer += oprot->writeFieldEnd();
2911
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2912
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2913
xfer += oprot->writeFieldEnd();
2915
xfer += oprot->writeFieldStop();
2916
xfer += oprot->writeStructEnd();
2920
uint32_t Cassandra_get_indexed_slices_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2924
::apache::thrift::protocol::TType ftype;
2927
xfer += iprot->readStructBegin(fname);
2929
using ::apache::thrift::protocol::TProtocolException;
2934
xfer += iprot->readFieldBegin(fname, ftype, fid);
2935
if (ftype == ::apache::thrift::protocol::T_STOP) {
2941
if (ftype == ::apache::thrift::protocol::T_LIST) {
2943
this->success.clear();
2945
::apache::thrift::protocol::TType _etype248;
2946
xfer += iprot->readListBegin(_etype248, _size245);
2947
this->success.resize(_size245);
2949
for (_i249 = 0; _i249 < _size245; ++_i249)
2951
xfer += this->success[_i249].read(iprot);
2953
xfer += iprot->readListEnd();
2955
this->__isset.success = true;
2957
xfer += iprot->skip(ftype);
2961
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2962
xfer += this->failure.read(iprot);
2963
this->__isset.failure = true;
2965
xfer += iprot->skip(ftype);
2969
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2970
xfer += this->ire.read(iprot);
2971
this->__isset.ire = true;
2973
xfer += iprot->skip(ftype);
2977
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2978
xfer += this->ue.read(iprot);
2979
this->__isset.ue = true;
2981
xfer += iprot->skip(ftype);
2985
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2986
xfer += this->te.read(iprot);
2987
this->__isset.te = true;
2989
xfer += iprot->skip(ftype);
2993
xfer += iprot->skip(ftype);
2996
xfer += iprot->readFieldEnd();
2999
xfer += iprot->readStructEnd();
3004
uint32_t Cassandra_get_indexed_slices_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3008
xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_result");
3010
if (this->__isset.failure) {
3011
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
3012
xfer += this->failure.write(oprot);
3013
xfer += oprot->writeFieldEnd();
3014
} else if (this->__isset.success) {
3015
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
3017
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
3018
std::vector<KeySlice> ::const_iterator _iter250;
3019
for (_iter250 = this->success.begin(); _iter250 != this->success.end(); ++_iter250)
3021
xfer += (*_iter250).write(oprot);
3023
xfer += oprot->writeListEnd();
3025
xfer += oprot->writeFieldEnd();
3026
} else if (this->__isset.ire) {
3027
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3028
xfer += this->ire.write(oprot);
3029
xfer += oprot->writeFieldEnd();
3030
} else if (this->__isset.ue) {
3031
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3032
xfer += this->ue.write(oprot);
3033
xfer += oprot->writeFieldEnd();
3034
} else if (this->__isset.te) {
3035
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3036
xfer += this->te.write(oprot);
3037
xfer += oprot->writeFieldEnd();
3039
xfer += oprot->writeFieldStop();
3040
xfer += oprot->writeStructEnd();
3044
uint32_t Cassandra_get_indexed_slices_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3048
::apache::thrift::protocol::TType ftype;
3051
xfer += iprot->readStructBegin(fname);
3053
using ::apache::thrift::protocol::TProtocolException;
3058
xfer += iprot->readFieldBegin(fname, ftype, fid);
3059
if (ftype == ::apache::thrift::protocol::T_STOP) {
3065
if (ftype == ::apache::thrift::protocol::T_LIST) {
3067
(*(this->success)).clear();
3069
::apache::thrift::protocol::TType _etype254;
3070
xfer += iprot->readListBegin(_etype254, _size251);
3071
(*(this->success)).resize(_size251);
3073
for (_i255 = 0; _i255 < _size251; ++_i255)
3075
xfer += (*(this->success))[_i255].read(iprot);
3077
xfer += iprot->readListEnd();
3079
this->__isset.success = true;
3081
xfer += iprot->skip(ftype);
3085
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3086
xfer += (*(this->failure)).read(iprot);
3087
this->__isset.failure = true;
3089
xfer += iprot->skip(ftype);
3093
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3094
xfer += this->ire.read(iprot);
3095
this->__isset.ire = true;
3097
xfer += iprot->skip(ftype);
3101
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3102
xfer += this->ue.read(iprot);
3103
this->__isset.ue = true;
3105
xfer += iprot->skip(ftype);
3109
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3110
xfer += this->te.read(iprot);
3111
this->__isset.te = true;
3113
xfer += iprot->skip(ftype);
3117
xfer += iprot->skip(ftype);
3120
xfer += iprot->readFieldEnd();
3123
xfer += iprot->readStructEnd();
3128
uint32_t Cassandra_insert_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3132
::apache::thrift::protocol::TType ftype;
3135
xfer += iprot->readStructBegin(fname);
3137
using ::apache::thrift::protocol::TProtocolException;
3139
bool isset_key = false;
3140
bool isset_column_parent = false;
3141
bool isset_column = false;
3142
bool isset_consistency_level = false;
3146
xfer += iprot->readFieldBegin(fname, ftype, fid);
3147
if (ftype == ::apache::thrift::protocol::T_STOP) {
3153
if (ftype == ::apache::thrift::protocol::T_STRING) {
3154
xfer += iprot->readBinary(this->key);
3157
xfer += iprot->skip(ftype);
3161
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3162
xfer += this->column_parent.read(iprot);
3163
isset_column_parent = true;
3165
xfer += iprot->skip(ftype);
3169
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3170
xfer += this->column.read(iprot);
3171
isset_column = true;
3173
xfer += iprot->skip(ftype);
3177
if (ftype == ::apache::thrift::protocol::T_I32) {
3179
xfer += iprot->readI32(ecast256);
3180
this->consistency_level = (ConsistencyLevel::type)ecast256;
3181
isset_consistency_level = true;
3183
xfer += iprot->skip(ftype);
3187
xfer += iprot->skip(ftype);
3190
xfer += iprot->readFieldEnd();
3193
xfer += iprot->readStructEnd();
3196
throw TProtocolException(TProtocolException::INVALID_DATA);
3197
if (!isset_column_parent)
3198
throw TProtocolException(TProtocolException::INVALID_DATA);
3200
throw TProtocolException(TProtocolException::INVALID_DATA);
3201
if (!isset_consistency_level)
3202
throw TProtocolException(TProtocolException::INVALID_DATA);
3206
uint32_t Cassandra_insert_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3208
xfer += oprot->writeStructBegin("Cassandra_insert_args");
3210
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3211
xfer += oprot->writeBinary(this->key);
3212
xfer += oprot->writeFieldEnd();
3214
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
3215
xfer += this->column_parent.write(oprot);
3216
xfer += oprot->writeFieldEnd();
3218
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
3219
xfer += this->column.write(oprot);
3220
xfer += oprot->writeFieldEnd();
3222
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3223
xfer += oprot->writeI32((int32_t)this->consistency_level);
3224
xfer += oprot->writeFieldEnd();
3226
xfer += oprot->writeFieldStop();
3227
xfer += oprot->writeStructEnd();
3231
uint32_t Cassandra_insert_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3233
xfer += oprot->writeStructBegin("Cassandra_insert_pargs");
3235
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3236
xfer += oprot->writeBinary((*(this->key)));
3237
xfer += oprot->writeFieldEnd();
3239
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
3240
xfer += (*(this->column_parent)).write(oprot);
3241
xfer += oprot->writeFieldEnd();
3243
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
3244
xfer += (*(this->column)).write(oprot);
3245
xfer += oprot->writeFieldEnd();
3247
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3248
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
3249
xfer += oprot->writeFieldEnd();
3251
xfer += oprot->writeFieldStop();
3252
xfer += oprot->writeStructEnd();
3256
uint32_t Cassandra_insert_result::read(::apache::thrift::protocol::TProtocol* iprot) {
3260
::apache::thrift::protocol::TType ftype;
3263
xfer += iprot->readStructBegin(fname);
3265
using ::apache::thrift::protocol::TProtocolException;
3270
xfer += iprot->readFieldBegin(fname, ftype, fid);
3271
if (ftype == ::apache::thrift::protocol::T_STOP) {
3277
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3278
xfer += this->failure.read(iprot);
3279
this->__isset.failure = true;
3281
xfer += iprot->skip(ftype);
3285
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3286
xfer += this->ire.read(iprot);
3287
this->__isset.ire = true;
3289
xfer += iprot->skip(ftype);
3293
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3294
xfer += this->ue.read(iprot);
3295
this->__isset.ue = true;
3297
xfer += iprot->skip(ftype);
3301
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3302
xfer += this->te.read(iprot);
3303
this->__isset.te = true;
3305
xfer += iprot->skip(ftype);
3309
xfer += iprot->skip(ftype);
3312
xfer += iprot->readFieldEnd();
3315
xfer += iprot->readStructEnd();
3320
uint32_t Cassandra_insert_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3324
xfer += oprot->writeStructBegin("Cassandra_insert_result");
3326
if (this->__isset.failure) {
3327
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
3328
xfer += this->failure.write(oprot);
3329
xfer += oprot->writeFieldEnd();
3330
} else if (this->__isset.ire) {
3331
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3332
xfer += this->ire.write(oprot);
3333
xfer += oprot->writeFieldEnd();
3334
} else if (this->__isset.ue) {
3335
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3336
xfer += this->ue.write(oprot);
3337
xfer += oprot->writeFieldEnd();
3338
} else if (this->__isset.te) {
3339
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3340
xfer += this->te.write(oprot);
3341
xfer += oprot->writeFieldEnd();
3343
xfer += oprot->writeFieldStop();
3344
xfer += oprot->writeStructEnd();
3348
uint32_t Cassandra_insert_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3352
::apache::thrift::protocol::TType ftype;
3355
xfer += iprot->readStructBegin(fname);
3357
using ::apache::thrift::protocol::TProtocolException;
3362
xfer += iprot->readFieldBegin(fname, ftype, fid);
3363
if (ftype == ::apache::thrift::protocol::T_STOP) {
3369
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3370
xfer += (*(this->failure)).read(iprot);
3371
this->__isset.failure = true;
3373
xfer += iprot->skip(ftype);
3377
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3378
xfer += this->ire.read(iprot);
3379
this->__isset.ire = true;
3381
xfer += iprot->skip(ftype);
3385
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3386
xfer += this->ue.read(iprot);
3387
this->__isset.ue = true;
3389
xfer += iprot->skip(ftype);
3393
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3394
xfer += this->te.read(iprot);
3395
this->__isset.te = true;
3397
xfer += iprot->skip(ftype);
3401
xfer += iprot->skip(ftype);
3404
xfer += iprot->readFieldEnd();
3407
xfer += iprot->readStructEnd();
3412
uint32_t Cassandra_add_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3416
::apache::thrift::protocol::TType ftype;
3419
xfer += iprot->readStructBegin(fname);
3421
using ::apache::thrift::protocol::TProtocolException;
3423
bool isset_key = false;
3424
bool isset_column_parent = false;
3425
bool isset_column = false;
3426
bool isset_consistency_level = false;
3430
xfer += iprot->readFieldBegin(fname, ftype, fid);
3431
if (ftype == ::apache::thrift::protocol::T_STOP) {
3437
if (ftype == ::apache::thrift::protocol::T_STRING) {
3438
xfer += iprot->readBinary(this->key);
3441
xfer += iprot->skip(ftype);
3445
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3446
xfer += this->column_parent.read(iprot);
3447
isset_column_parent = true;
3449
xfer += iprot->skip(ftype);
3453
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3454
xfer += this->column.read(iprot);
3455
isset_column = true;
3457
xfer += iprot->skip(ftype);
3461
if (ftype == ::apache::thrift::protocol::T_I32) {
3463
xfer += iprot->readI32(ecast257);
3464
this->consistency_level = (ConsistencyLevel::type)ecast257;
3465
isset_consistency_level = true;
3467
xfer += iprot->skip(ftype);
3471
xfer += iprot->skip(ftype);
3474
xfer += iprot->readFieldEnd();
3477
xfer += iprot->readStructEnd();
3480
throw TProtocolException(TProtocolException::INVALID_DATA);
3481
if (!isset_column_parent)
3482
throw TProtocolException(TProtocolException::INVALID_DATA);
3484
throw TProtocolException(TProtocolException::INVALID_DATA);
3485
if (!isset_consistency_level)
3486
throw TProtocolException(TProtocolException::INVALID_DATA);
3490
uint32_t Cassandra_add_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3492
xfer += oprot->writeStructBegin("Cassandra_add_args");
3494
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3495
xfer += oprot->writeBinary(this->key);
3496
xfer += oprot->writeFieldEnd();
3498
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
3499
xfer += this->column_parent.write(oprot);
3500
xfer += oprot->writeFieldEnd();
3502
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
3503
xfer += this->column.write(oprot);
3504
xfer += oprot->writeFieldEnd();
3506
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3507
xfer += oprot->writeI32((int32_t)this->consistency_level);
3508
xfer += oprot->writeFieldEnd();
3510
xfer += oprot->writeFieldStop();
3511
xfer += oprot->writeStructEnd();
3515
uint32_t Cassandra_add_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3517
xfer += oprot->writeStructBegin("Cassandra_add_pargs");
3519
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3520
xfer += oprot->writeBinary((*(this->key)));
3521
xfer += oprot->writeFieldEnd();
3523
xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
3524
xfer += (*(this->column_parent)).write(oprot);
3525
xfer += oprot->writeFieldEnd();
3527
xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
3528
xfer += (*(this->column)).write(oprot);
3529
xfer += oprot->writeFieldEnd();
3531
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3532
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
3533
xfer += oprot->writeFieldEnd();
3535
xfer += oprot->writeFieldStop();
3536
xfer += oprot->writeStructEnd();
3540
uint32_t Cassandra_add_result::read(::apache::thrift::protocol::TProtocol* iprot) {
3544
::apache::thrift::protocol::TType ftype;
3547
xfer += iprot->readStructBegin(fname);
3549
using ::apache::thrift::protocol::TProtocolException;
3554
xfer += iprot->readFieldBegin(fname, ftype, fid);
3555
if (ftype == ::apache::thrift::protocol::T_STOP) {
3561
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3562
xfer += this->failure.read(iprot);
3563
this->__isset.failure = true;
3565
xfer += iprot->skip(ftype);
3569
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3570
xfer += this->ire.read(iprot);
3571
this->__isset.ire = true;
3573
xfer += iprot->skip(ftype);
3577
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3578
xfer += this->ue.read(iprot);
3579
this->__isset.ue = true;
3581
xfer += iprot->skip(ftype);
3585
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3586
xfer += this->te.read(iprot);
3587
this->__isset.te = true;
3589
xfer += iprot->skip(ftype);
3593
xfer += iprot->skip(ftype);
3596
xfer += iprot->readFieldEnd();
3599
xfer += iprot->readStructEnd();
3604
uint32_t Cassandra_add_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3608
xfer += oprot->writeStructBegin("Cassandra_add_result");
3610
if (this->__isset.failure) {
3611
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
3612
xfer += this->failure.write(oprot);
3613
xfer += oprot->writeFieldEnd();
3614
} else if (this->__isset.ire) {
3615
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3616
xfer += this->ire.write(oprot);
3617
xfer += oprot->writeFieldEnd();
3618
} else if (this->__isset.ue) {
3619
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3620
xfer += this->ue.write(oprot);
3621
xfer += oprot->writeFieldEnd();
3622
} else if (this->__isset.te) {
3623
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3624
xfer += this->te.write(oprot);
3625
xfer += oprot->writeFieldEnd();
3627
xfer += oprot->writeFieldStop();
3628
xfer += oprot->writeStructEnd();
3632
uint32_t Cassandra_add_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3636
::apache::thrift::protocol::TType ftype;
3639
xfer += iprot->readStructBegin(fname);
3641
using ::apache::thrift::protocol::TProtocolException;
3646
xfer += iprot->readFieldBegin(fname, ftype, fid);
3647
if (ftype == ::apache::thrift::protocol::T_STOP) {
3653
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3654
xfer += (*(this->failure)).read(iprot);
3655
this->__isset.failure = true;
3657
xfer += iprot->skip(ftype);
3661
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3662
xfer += this->ire.read(iprot);
3663
this->__isset.ire = true;
3665
xfer += iprot->skip(ftype);
3669
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3670
xfer += this->ue.read(iprot);
3671
this->__isset.ue = true;
3673
xfer += iprot->skip(ftype);
3677
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3678
xfer += this->te.read(iprot);
3679
this->__isset.te = true;
3681
xfer += iprot->skip(ftype);
3685
xfer += iprot->skip(ftype);
3688
xfer += iprot->readFieldEnd();
3691
xfer += iprot->readStructEnd();
3696
uint32_t Cassandra_remove_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3700
::apache::thrift::protocol::TType ftype;
3703
xfer += iprot->readStructBegin(fname);
3705
using ::apache::thrift::protocol::TProtocolException;
3707
bool isset_key = false;
3708
bool isset_column_path = false;
3709
bool isset_timestamp = false;
3713
xfer += iprot->readFieldBegin(fname, ftype, fid);
3714
if (ftype == ::apache::thrift::protocol::T_STOP) {
3720
if (ftype == ::apache::thrift::protocol::T_STRING) {
3721
xfer += iprot->readBinary(this->key);
3724
xfer += iprot->skip(ftype);
3728
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3729
xfer += this->column_path.read(iprot);
3730
isset_column_path = true;
3732
xfer += iprot->skip(ftype);
3736
if (ftype == ::apache::thrift::protocol::T_I64) {
3737
xfer += iprot->readI64(this->timestamp);
3738
isset_timestamp = true;
3740
xfer += iprot->skip(ftype);
3744
if (ftype == ::apache::thrift::protocol::T_I32) {
3746
xfer += iprot->readI32(ecast258);
3747
this->consistency_level = (ConsistencyLevel::type)ecast258;
3748
this->__isset.consistency_level = true;
3750
xfer += iprot->skip(ftype);
3754
xfer += iprot->skip(ftype);
3757
xfer += iprot->readFieldEnd();
3760
xfer += iprot->readStructEnd();
3763
throw TProtocolException(TProtocolException::INVALID_DATA);
3764
if (!isset_column_path)
3765
throw TProtocolException(TProtocolException::INVALID_DATA);
3766
if (!isset_timestamp)
3767
throw TProtocolException(TProtocolException::INVALID_DATA);
3771
uint32_t Cassandra_remove_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3773
xfer += oprot->writeStructBegin("Cassandra_remove_args");
3775
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3776
xfer += oprot->writeBinary(this->key);
3777
xfer += oprot->writeFieldEnd();
3779
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
3780
xfer += this->column_path.write(oprot);
3781
xfer += oprot->writeFieldEnd();
3783
xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
3784
xfer += oprot->writeI64(this->timestamp);
3785
xfer += oprot->writeFieldEnd();
3787
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3788
xfer += oprot->writeI32((int32_t)this->consistency_level);
3789
xfer += oprot->writeFieldEnd();
3791
xfer += oprot->writeFieldStop();
3792
xfer += oprot->writeStructEnd();
3796
uint32_t Cassandra_remove_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3798
xfer += oprot->writeStructBegin("Cassandra_remove_pargs");
3800
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3801
xfer += oprot->writeBinary((*(this->key)));
3802
xfer += oprot->writeFieldEnd();
3804
xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
3805
xfer += (*(this->column_path)).write(oprot);
3806
xfer += oprot->writeFieldEnd();
3808
xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
3809
xfer += oprot->writeI64((*(this->timestamp)));
3810
xfer += oprot->writeFieldEnd();
3812
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3813
xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
3814
xfer += oprot->writeFieldEnd();
3816
xfer += oprot->writeFieldStop();
3817
xfer += oprot->writeStructEnd();
3821
uint32_t Cassandra_remove_result::read(::apache::thrift::protocol::TProtocol* iprot) {
3825
::apache::thrift::protocol::TType ftype;
3828
xfer += iprot->readStructBegin(fname);
3830
using ::apache::thrift::protocol::TProtocolException;
3835
xfer += iprot->readFieldBegin(fname, ftype, fid);
3836
if (ftype == ::apache::thrift::protocol::T_STOP) {
3842
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3843
xfer += this->failure.read(iprot);
3844
this->__isset.failure = true;
3846
xfer += iprot->skip(ftype);
3850
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3851
xfer += this->ire.read(iprot);
3852
this->__isset.ire = true;
3854
xfer += iprot->skip(ftype);
3858
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3859
xfer += this->ue.read(iprot);
3860
this->__isset.ue = true;
3862
xfer += iprot->skip(ftype);
3866
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3867
xfer += this->te.read(iprot);
3868
this->__isset.te = true;
3870
xfer += iprot->skip(ftype);
3874
xfer += iprot->skip(ftype);
3877
xfer += iprot->readFieldEnd();
3880
xfer += iprot->readStructEnd();
3885
uint32_t Cassandra_remove_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3889
xfer += oprot->writeStructBegin("Cassandra_remove_result");
3891
if (this->__isset.failure) {
3892
xfer += oprot->writeFieldBegin("failure", ::apache::thrift::protocol::T_STRUCT, -1337);
3893
xfer += this->failure.write(oprot);
3894
xfer += oprot->writeFieldEnd();
3895
} else if (this->__isset.ire) {
3896
xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3897
xfer += this->ire.write(oprot);
3898
xfer += oprot->writeFieldEnd();
3899
} else if (this->__isset.ue) {
3900
xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3901
xfer += this->ue.write(oprot);
3902
xfer += oprot->writeFieldEnd();
3903
} else if (this->__isset.te) {
3904
xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3905
xfer += this->te.write(oprot);
3906
xfer += oprot->writeFieldEnd();
3908
xfer += oprot->writeFieldStop();
3909
xfer += oprot->writeStructEnd();
3913
uint32_t Cassandra_remove_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3917
::apache::thrift::protocol::TType ftype;
3920
xfer += iprot->readStructBegin(fname);
3922
using ::apache::thrift::protocol::TProtocolException;
3927
xfer += iprot->readFieldBegin(fname, ftype, fid);
3928
if (ftype == ::apache::thrift::protocol::T_STOP) {
3934
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3935
xfer += (*(this->failure)).read(iprot);
3936
this->__isset.failure = true;
3938
xfer += iprot->skip(ftype);
3942
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3943
xfer += this->ire.read(iprot);
3944
this->__isset.ire = true;
3946
xfer += iprot->skip(ftype);
3950
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3951
xfer += this->ue.read(iprot);
3952
this->__isset.ue = true;
3954
xfer += iprot->skip(ftype);
3958
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3959
xfer += this->te.read(iprot);
3960
this->__isset.te = true;
3962
xfer += iprot->skip(ftype);
3966
xfer += iprot->skip(ftype);
3969
xfer += iprot->readFieldEnd();
3972
xfer += iprot->readStructEnd();
3977
uint32_t Cassandra_remove_counter_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3981
::apache::thrift::protocol::TType ftype;
3984
xfer += iprot->readStructBegin(fname);
3986
using ::apache::thrift::protocol::TProtocolException;
3988
bool isset_key = false;
3989
bool isset_path = false;
3990
bool isset_consistency_level = false;
3994
xfer += iprot->readFieldBegin(fname, ftype, fid);
3995
if (ftype == ::apache::thrift::protocol::T_STOP) {
4001
if (ftype == ::apache::thrift::protocol::T_STRING) {
4002
xfer += iprot->readBinary(this->key);
4005
xfer += iprot->skip(ftype);
4009
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4010
xfer += this->path.read(iprot);
4013
xfer += iprot->skip(ftype);
4017
if (ftype == ::apache::thrift::protocol::T_I32) {
4019
xfer += iprot->readI32(ecast259);
4020
this->consistency_level = (ConsistencyLevel::type)ecast259;
4021
isset_consistency_level = true;
4023
xfer += iprot->skip(ftype);
4027
xfer += iprot->skip(ftype);
4030
xfer += iprot->readFieldEnd();
4033
xfer += iprot->readStructEnd();
4036
throw TProtocolException(TProtocolException::INVALID_DATA);
4038
throw TProtocolException(TProtocolException::INVALID_DATA);
4039
if (!isset_consistency_level)
4040
throw TProtocolException(TProtocolException::INVALID_DATA);
4044
uint32_t Cassandra_remove_counter_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
4046
xfer += oprot->writeStructBegin("Cassandra_remove_counter_args");
4048
xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
4049
xfer += oprot->writeBinary(this->key);
4050
xfer += oprot->writeFieldEnd();
4052
xfer += oprot->writeFieldBegin("path", ::apache::thrift::protocol::T_STRUCT, 2);
4053
xfer += this->path.write(oprot);
4054
xfer += oprot->writeFieldEnd();
4056
xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
4057
xfer += oprot->writeI32((int32_t)this->consistency_level);
4058
xfer += oprot->writeFieldEnd();
4060
xfer += oprot->writeFieldStop();
4061
xfer += oprot->writeStructEnd();
4065
uint32_t Cassandra_remove_counter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {