1 /**
2 * Autogenerated by Thrift Compiler (0.8.0)
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
7 #include <inttypes.h>
8 #include <netinet/in.h>
9
10 #include "Cassandra.h"
11
12 namespace org { namespace apache { namespace cassandra {
13
read(::apache::thrift::protocol::TProtocol * iprot)14 uint32_t Cassandra_login_args::read(::apache::thrift::protocol::TProtocol* iprot) {
15
16 uint32_t xfer = 0;
17 std::string fname;
18 ::apache::thrift::protocol::TType ftype;
19 int16_t fid;
20
21 xfer += iprot->readStructBegin(fname);
22
23 using ::apache::thrift::protocol::TProtocolException;
24
25 bool isset_auth_request = false;
26
27 while (true)
28 {
29 xfer += iprot->readFieldBegin(fname, ftype, fid);
30 if (ftype == ::apache::thrift::protocol::T_STOP) {
31 break;
32 }
33 switch (fid)
34 {
35 case 1:
36 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
37 xfer += this->auth_request.read(iprot);
38 isset_auth_request = true;
39 } else {
40 xfer += iprot->skip(ftype);
41 }
42 break;
43 default:
44 xfer += iprot->skip(ftype);
45 break;
46 }
47 xfer += iprot->readFieldEnd();
48 }
49
50 xfer += iprot->readStructEnd();
51
52 if (!isset_auth_request)
53 throw TProtocolException(TProtocolException::INVALID_DATA);
54 return xfer;
55 }
56
write(::apache::thrift::protocol::TProtocol * oprot) const57 uint32_t Cassandra_login_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
58 uint32_t xfer = 0;
59 xfer += oprot->writeStructBegin("Cassandra_login_args");
60 xfer += oprot->writeFieldBegin("auth_request", ::apache::thrift::protocol::T_STRUCT, 1);
61 xfer += this->auth_request.write(oprot);
62 xfer += oprot->writeFieldEnd();
63 xfer += oprot->writeFieldStop();
64 xfer += oprot->writeStructEnd();
65 return xfer;
66 }
67
write(::apache::thrift::protocol::TProtocol * oprot) const68 uint32_t Cassandra_login_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
69 uint32_t xfer = 0;
70 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();
74 xfer += oprot->writeFieldStop();
75 xfer += oprot->writeStructEnd();
76 return xfer;
77 }
78
read(::apache::thrift::protocol::TProtocol * iprot)79 uint32_t Cassandra_login_result::read(::apache::thrift::protocol::TProtocol* iprot) {
80
81 uint32_t xfer = 0;
82 std::string fname;
83 ::apache::thrift::protocol::TType ftype;
84 int16_t fid;
85
86 xfer += iprot->readStructBegin(fname);
87
88 using ::apache::thrift::protocol::TProtocolException;
89
90
91 while (true)
92 {
93 xfer += iprot->readFieldBegin(fname, ftype, fid);
94 if (ftype == ::apache::thrift::protocol::T_STOP) {
95 break;
96 }
97 switch (fid)
98 {
99 case 1:
100 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
101 xfer += this->authnx.read(iprot);
102 this->__isset.authnx = true;
103 } else {
104 xfer += iprot->skip(ftype);
105 }
106 break;
107 case 2:
108 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
109 xfer += this->authzx.read(iprot);
110 this->__isset.authzx = true;
111 } else {
112 xfer += iprot->skip(ftype);
113 }
114 break;
115 default:
116 xfer += iprot->skip(ftype);
117 break;
118 }
119 xfer += iprot->readFieldEnd();
120 }
121
122 xfer += iprot->readStructEnd();
123
124 return xfer;
125 }
126
write(::apache::thrift::protocol::TProtocol * oprot) const127 uint32_t Cassandra_login_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
128
129 uint32_t xfer = 0;
130
131 xfer += oprot->writeStructBegin("Cassandra_login_result");
132
133 if (this->__isset.authnx) {
134 xfer += oprot->writeFieldBegin("authnx", ::apache::thrift::protocol::T_STRUCT, 1);
135 xfer += this->authnx.write(oprot);
136 xfer += oprot->writeFieldEnd();
137 } else if (this->__isset.authzx) {
138 xfer += oprot->writeFieldBegin("authzx", ::apache::thrift::protocol::T_STRUCT, 2);
139 xfer += this->authzx.write(oprot);
140 xfer += oprot->writeFieldEnd();
141 }
142 xfer += oprot->writeFieldStop();
143 xfer += oprot->writeStructEnd();
144 return xfer;
145 }
146
read(::apache::thrift::protocol::TProtocol * iprot)147 uint32_t Cassandra_login_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
148
149 uint32_t xfer = 0;
150 std::string fname;
151 ::apache::thrift::protocol::TType ftype;
152 int16_t fid;
153
154 xfer += iprot->readStructBegin(fname);
155
156 using ::apache::thrift::protocol::TProtocolException;
157
158
159 while (true)
160 {
161 xfer += iprot->readFieldBegin(fname, ftype, fid);
162 if (ftype == ::apache::thrift::protocol::T_STOP) {
163 break;
164 }
165 switch (fid)
166 {
167 case 1:
168 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
169 xfer += this->authnx.read(iprot);
170 this->__isset.authnx = true;
171 } else {
172 xfer += iprot->skip(ftype);
173 }
174 break;
175 case 2:
176 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
177 xfer += this->authzx.read(iprot);
178 this->__isset.authzx = true;
179 } else {
180 xfer += iprot->skip(ftype);
181 }
182 break;
183 default:
184 xfer += iprot->skip(ftype);
185 break;
186 }
187 xfer += iprot->readFieldEnd();
188 }
189
190 xfer += iprot->readStructEnd();
191
192 return xfer;
193 }
194
read(::apache::thrift::protocol::TProtocol * iprot)195 uint32_t Cassandra_set_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
196
197 uint32_t xfer = 0;
198 std::string fname;
199 ::apache::thrift::protocol::TType ftype;
200 int16_t fid;
201
202 xfer += iprot->readStructBegin(fname);
203
204 using ::apache::thrift::protocol::TProtocolException;
205
206 bool isset_keyspace = false;
207
208 while (true)
209 {
210 xfer += iprot->readFieldBegin(fname, ftype, fid);
211 if (ftype == ::apache::thrift::protocol::T_STOP) {
212 break;
213 }
214 switch (fid)
215 {
216 case 1:
217 if (ftype == ::apache::thrift::protocol::T_STRING) {
218 xfer += iprot->readString(this->keyspace);
219 isset_keyspace = true;
220 } else {
221 xfer += iprot->skip(ftype);
222 }
223 break;
224 default:
225 xfer += iprot->skip(ftype);
226 break;
227 }
228 xfer += iprot->readFieldEnd();
229 }
230
231 xfer += iprot->readStructEnd();
232
233 if (!isset_keyspace)
234 throw TProtocolException(TProtocolException::INVALID_DATA);
235 return xfer;
236 }
237
write(::apache::thrift::protocol::TProtocol * oprot) const238 uint32_t Cassandra_set_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
239 uint32_t xfer = 0;
240 xfer += oprot->writeStructBegin("Cassandra_set_keyspace_args");
241 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
242 xfer += oprot->writeString(this->keyspace);
243 xfer += oprot->writeFieldEnd();
244 xfer += oprot->writeFieldStop();
245 xfer += oprot->writeStructEnd();
246 return xfer;
247 }
248
write(::apache::thrift::protocol::TProtocol * oprot) const249 uint32_t Cassandra_set_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
250 uint32_t xfer = 0;
251 xfer += oprot->writeStructBegin("Cassandra_set_keyspace_pargs");
252 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
253 xfer += oprot->writeString((*(this->keyspace)));
254 xfer += oprot->writeFieldEnd();
255 xfer += oprot->writeFieldStop();
256 xfer += oprot->writeStructEnd();
257 return xfer;
258 }
259
read(::apache::thrift::protocol::TProtocol * iprot)260 uint32_t Cassandra_set_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
261
262 uint32_t xfer = 0;
263 std::string fname;
264 ::apache::thrift::protocol::TType ftype;
265 int16_t fid;
266
267 xfer += iprot->readStructBegin(fname);
268
269 using ::apache::thrift::protocol::TProtocolException;
270
271
272 while (true)
273 {
274 xfer += iprot->readFieldBegin(fname, ftype, fid);
275 if (ftype == ::apache::thrift::protocol::T_STOP) {
276 break;
277 }
278 switch (fid)
279 {
280 case 1:
281 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
282 xfer += this->ire.read(iprot);
283 this->__isset.ire = true;
284 } else {
285 xfer += iprot->skip(ftype);
286 }
287 break;
288 default:
289 xfer += iprot->skip(ftype);
290 break;
291 }
292 xfer += iprot->readFieldEnd();
293 }
294
295 xfer += iprot->readStructEnd();
296
297 return xfer;
298 }
299
write(::apache::thrift::protocol::TProtocol * oprot) const300 uint32_t Cassandra_set_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
301
302 uint32_t xfer = 0;
303
304 xfer += oprot->writeStructBegin("Cassandra_set_keyspace_result");
305
306 if (this->__isset.ire) {
307 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
308 xfer += this->ire.write(oprot);
309 xfer += oprot->writeFieldEnd();
310 }
311 xfer += oprot->writeFieldStop();
312 xfer += oprot->writeStructEnd();
313 return xfer;
314 }
315
read(::apache::thrift::protocol::TProtocol * iprot)316 uint32_t Cassandra_set_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
317
318 uint32_t xfer = 0;
319 std::string fname;
320 ::apache::thrift::protocol::TType ftype;
321 int16_t fid;
322
323 xfer += iprot->readStructBegin(fname);
324
325 using ::apache::thrift::protocol::TProtocolException;
326
327
328 while (true)
329 {
330 xfer += iprot->readFieldBegin(fname, ftype, fid);
331 if (ftype == ::apache::thrift::protocol::T_STOP) {
332 break;
333 }
334 switch (fid)
335 {
336 case 1:
337 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
338 xfer += this->ire.read(iprot);
339 this->__isset.ire = true;
340 } else {
341 xfer += iprot->skip(ftype);
342 }
343 break;
344 default:
345 xfer += iprot->skip(ftype);
346 break;
347 }
348 xfer += iprot->readFieldEnd();
349 }
350
351 xfer += iprot->readStructEnd();
352
353 return xfer;
354 }
355
read(::apache::thrift::protocol::TProtocol * iprot)356 uint32_t Cassandra_get_args::read(::apache::thrift::protocol::TProtocol* iprot) {
357
358 uint32_t xfer = 0;
359 std::string fname;
360 ::apache::thrift::protocol::TType ftype;
361 int16_t fid;
362
363 xfer += iprot->readStructBegin(fname);
364
365 using ::apache::thrift::protocol::TProtocolException;
366
367 bool isset_key = false;
368 bool isset_column_path = false;
369 bool isset_consistency_level = false;
370
371 while (true)
372 {
373 xfer += iprot->readFieldBegin(fname, ftype, fid);
374 if (ftype == ::apache::thrift::protocol::T_STOP) {
375 break;
376 }
377 switch (fid)
378 {
379 case 1:
380 if (ftype == ::apache::thrift::protocol::T_STRING) {
381 xfer += iprot->readBinary(this->key);
382 isset_key = true;
383 } else {
384 xfer += iprot->skip(ftype);
385 }
386 break;
387 case 2:
388 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
389 xfer += this->column_path.read(iprot);
390 isset_column_path = true;
391 } else {
392 xfer += iprot->skip(ftype);
393 }
394 break;
395 case 3:
396 if (ftype == ::apache::thrift::protocol::T_I32) {
397 int32_t ecast149;
398 xfer += iprot->readI32(ecast149);
399 this->consistency_level = (ConsistencyLevel::type)ecast149;
400 isset_consistency_level = true;
401 } else {
402 xfer += iprot->skip(ftype);
403 }
404 break;
405 default:
406 xfer += iprot->skip(ftype);
407 break;
408 }
409 xfer += iprot->readFieldEnd();
410 }
411
412 xfer += iprot->readStructEnd();
413
414 if (!isset_key)
415 throw TProtocolException(TProtocolException::INVALID_DATA);
416 if (!isset_column_path)
417 throw TProtocolException(TProtocolException::INVALID_DATA);
418 if (!isset_consistency_level)
419 throw TProtocolException(TProtocolException::INVALID_DATA);
420 return xfer;
421 }
422
write(::apache::thrift::protocol::TProtocol * oprot) const423 uint32_t Cassandra_get_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
424 uint32_t xfer = 0;
425 xfer += oprot->writeStructBegin("Cassandra_get_args");
426 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
427 xfer += oprot->writeBinary(this->key);
428 xfer += oprot->writeFieldEnd();
429 xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
430 xfer += this->column_path.write(oprot);
431 xfer += oprot->writeFieldEnd();
432 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
433 xfer += oprot->writeI32((int32_t)this->consistency_level);
434 xfer += oprot->writeFieldEnd();
435 xfer += oprot->writeFieldStop();
436 xfer += oprot->writeStructEnd();
437 return xfer;
438 }
439
write(::apache::thrift::protocol::TProtocol * oprot) const440 uint32_t Cassandra_get_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
441 uint32_t xfer = 0;
442 xfer += oprot->writeStructBegin("Cassandra_get_pargs");
443 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
444 xfer += oprot->writeBinary((*(this->key)));
445 xfer += oprot->writeFieldEnd();
446 xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
447 xfer += (*(this->column_path)).write(oprot);
448 xfer += oprot->writeFieldEnd();
449 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
450 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
451 xfer += oprot->writeFieldEnd();
452 xfer += oprot->writeFieldStop();
453 xfer += oprot->writeStructEnd();
454 return xfer;
455 }
456
read(::apache::thrift::protocol::TProtocol * iprot)457 uint32_t Cassandra_get_result::read(::apache::thrift::protocol::TProtocol* iprot) {
458
459 uint32_t xfer = 0;
460 std::string fname;
461 ::apache::thrift::protocol::TType ftype;
462 int16_t fid;
463
464 xfer += iprot->readStructBegin(fname);
465
466 using ::apache::thrift::protocol::TProtocolException;
467
468
469 while (true)
470 {
471 xfer += iprot->readFieldBegin(fname, ftype, fid);
472 if (ftype == ::apache::thrift::protocol::T_STOP) {
473 break;
474 }
475 switch (fid)
476 {
477 case 0:
478 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
479 xfer += this->success.read(iprot);
480 this->__isset.success = true;
481 } else {
482 xfer += iprot->skip(ftype);
483 }
484 break;
485 case 1:
486 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
487 xfer += this->ire.read(iprot);
488 this->__isset.ire = true;
489 } else {
490 xfer += iprot->skip(ftype);
491 }
492 break;
493 case 2:
494 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
495 xfer += this->nfe.read(iprot);
496 this->__isset.nfe = true;
497 } else {
498 xfer += iprot->skip(ftype);
499 }
500 break;
501 case 3:
502 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
503 xfer += this->ue.read(iprot);
504 this->__isset.ue = true;
505 } else {
506 xfer += iprot->skip(ftype);
507 }
508 break;
509 case 4:
510 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
511 xfer += this->te.read(iprot);
512 this->__isset.te = true;
513 } else {
514 xfer += iprot->skip(ftype);
515 }
516 break;
517 default:
518 xfer += iprot->skip(ftype);
519 break;
520 }
521 xfer += iprot->readFieldEnd();
522 }
523
524 xfer += iprot->readStructEnd();
525
526 return xfer;
527 }
528
write(::apache::thrift::protocol::TProtocol * oprot) const529 uint32_t Cassandra_get_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
530
531 uint32_t xfer = 0;
532
533 xfer += oprot->writeStructBegin("Cassandra_get_result");
534
535 if (this->__isset.success) {
536 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
537 xfer += this->success.write(oprot);
538 xfer += oprot->writeFieldEnd();
539 } else if (this->__isset.ire) {
540 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
541 xfer += this->ire.write(oprot);
542 xfer += oprot->writeFieldEnd();
543 } else if (this->__isset.nfe) {
544 xfer += oprot->writeFieldBegin("nfe", ::apache::thrift::protocol::T_STRUCT, 2);
545 xfer += this->nfe.write(oprot);
546 xfer += oprot->writeFieldEnd();
547 } else if (this->__isset.ue) {
548 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 3);
549 xfer += this->ue.write(oprot);
550 xfer += oprot->writeFieldEnd();
551 } else if (this->__isset.te) {
552 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 4);
553 xfer += this->te.write(oprot);
554 xfer += oprot->writeFieldEnd();
555 }
556 xfer += oprot->writeFieldStop();
557 xfer += oprot->writeStructEnd();
558 return xfer;
559 }
560
read(::apache::thrift::protocol::TProtocol * iprot)561 uint32_t Cassandra_get_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
562
563 uint32_t xfer = 0;
564 std::string fname;
565 ::apache::thrift::protocol::TType ftype;
566 int16_t fid;
567
568 xfer += iprot->readStructBegin(fname);
569
570 using ::apache::thrift::protocol::TProtocolException;
571
572
573 while (true)
574 {
575 xfer += iprot->readFieldBegin(fname, ftype, fid);
576 if (ftype == ::apache::thrift::protocol::T_STOP) {
577 break;
578 }
579 switch (fid)
580 {
581 case 0:
582 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
583 xfer += (*(this->success)).read(iprot);
584 this->__isset.success = true;
585 } else {
586 xfer += iprot->skip(ftype);
587 }
588 break;
589 case 1:
590 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
591 xfer += this->ire.read(iprot);
592 this->__isset.ire = true;
593 } else {
594 xfer += iprot->skip(ftype);
595 }
596 break;
597 case 2:
598 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
599 xfer += this->nfe.read(iprot);
600 this->__isset.nfe = true;
601 } else {
602 xfer += iprot->skip(ftype);
603 }
604 break;
605 case 3:
606 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
607 xfer += this->ue.read(iprot);
608 this->__isset.ue = true;
609 } else {
610 xfer += iprot->skip(ftype);
611 }
612 break;
613 case 4:
614 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
615 xfer += this->te.read(iprot);
616 this->__isset.te = true;
617 } else {
618 xfer += iprot->skip(ftype);
619 }
620 break;
621 default:
622 xfer += iprot->skip(ftype);
623 break;
624 }
625 xfer += iprot->readFieldEnd();
626 }
627
628 xfer += iprot->readStructEnd();
629
630 return xfer;
631 }
632
read(::apache::thrift::protocol::TProtocol * iprot)633 uint32_t Cassandra_get_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
634
635 uint32_t xfer = 0;
636 std::string fname;
637 ::apache::thrift::protocol::TType ftype;
638 int16_t fid;
639
640 xfer += iprot->readStructBegin(fname);
641
642 using ::apache::thrift::protocol::TProtocolException;
643
644 bool isset_key = false;
645 bool isset_column_parent = false;
646 bool isset_predicate = false;
647 bool isset_consistency_level = false;
648
649 while (true)
650 {
651 xfer += iprot->readFieldBegin(fname, ftype, fid);
652 if (ftype == ::apache::thrift::protocol::T_STOP) {
653 break;
654 }
655 switch (fid)
656 {
657 case 1:
658 if (ftype == ::apache::thrift::protocol::T_STRING) {
659 xfer += iprot->readBinary(this->key);
660 isset_key = true;
661 } else {
662 xfer += iprot->skip(ftype);
663 }
664 break;
665 case 2:
666 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
667 xfer += this->column_parent.read(iprot);
668 isset_column_parent = true;
669 } else {
670 xfer += iprot->skip(ftype);
671 }
672 break;
673 case 3:
674 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
675 xfer += this->predicate.read(iprot);
676 isset_predicate = true;
677 } else {
678 xfer += iprot->skip(ftype);
679 }
680 break;
681 case 4:
682 if (ftype == ::apache::thrift::protocol::T_I32) {
683 int32_t ecast150;
684 xfer += iprot->readI32(ecast150);
685 this->consistency_level = (ConsistencyLevel::type)ecast150;
686 isset_consistency_level = true;
687 } else {
688 xfer += iprot->skip(ftype);
689 }
690 break;
691 default:
692 xfer += iprot->skip(ftype);
693 break;
694 }
695 xfer += iprot->readFieldEnd();
696 }
697
698 xfer += iprot->readStructEnd();
699
700 if (!isset_key)
701 throw TProtocolException(TProtocolException::INVALID_DATA);
702 if (!isset_column_parent)
703 throw TProtocolException(TProtocolException::INVALID_DATA);
704 if (!isset_predicate)
705 throw TProtocolException(TProtocolException::INVALID_DATA);
706 if (!isset_consistency_level)
707 throw TProtocolException(TProtocolException::INVALID_DATA);
708 return xfer;
709 }
710
write(::apache::thrift::protocol::TProtocol * oprot) const711 uint32_t Cassandra_get_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
712 uint32_t xfer = 0;
713 xfer += oprot->writeStructBegin("Cassandra_get_slice_args");
714 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
715 xfer += oprot->writeBinary(this->key);
716 xfer += oprot->writeFieldEnd();
717 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
718 xfer += this->column_parent.write(oprot);
719 xfer += oprot->writeFieldEnd();
720 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
721 xfer += this->predicate.write(oprot);
722 xfer += oprot->writeFieldEnd();
723 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
724 xfer += oprot->writeI32((int32_t)this->consistency_level);
725 xfer += oprot->writeFieldEnd();
726 xfer += oprot->writeFieldStop();
727 xfer += oprot->writeStructEnd();
728 return xfer;
729 }
730
write(::apache::thrift::protocol::TProtocol * oprot) const731 uint32_t Cassandra_get_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
732 uint32_t xfer = 0;
733 xfer += oprot->writeStructBegin("Cassandra_get_slice_pargs");
734 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
735 xfer += oprot->writeBinary((*(this->key)));
736 xfer += oprot->writeFieldEnd();
737 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
738 xfer += (*(this->column_parent)).write(oprot);
739 xfer += oprot->writeFieldEnd();
740 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
741 xfer += (*(this->predicate)).write(oprot);
742 xfer += oprot->writeFieldEnd();
743 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
744 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
745 xfer += oprot->writeFieldEnd();
746 xfer += oprot->writeFieldStop();
747 xfer += oprot->writeStructEnd();
748 return xfer;
749 }
750
read(::apache::thrift::protocol::TProtocol * iprot)751 uint32_t Cassandra_get_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
752
753 uint32_t xfer = 0;
754 std::string fname;
755 ::apache::thrift::protocol::TType ftype;
756 int16_t fid;
757
758 xfer += iprot->readStructBegin(fname);
759
760 using ::apache::thrift::protocol::TProtocolException;
761
762
763 while (true)
764 {
765 xfer += iprot->readFieldBegin(fname, ftype, fid);
766 if (ftype == ::apache::thrift::protocol::T_STOP) {
767 break;
768 }
769 switch (fid)
770 {
771 case 0:
772 if (ftype == ::apache::thrift::protocol::T_LIST) {
773 {
774 this->success.clear();
775 uint32_t _size151;
776 ::apache::thrift::protocol::TType _etype154;
777 iprot->readListBegin(_etype154, _size151);
778 this->success.resize(_size151);
779 uint32_t _i155;
780 for (_i155 = 0; _i155 < _size151; ++_i155)
781 {
782 xfer += this->success[_i155].read(iprot);
783 }
784 iprot->readListEnd();
785 }
786 this->__isset.success = true;
787 } else {
788 xfer += iprot->skip(ftype);
789 }
790 break;
791 case 1:
792 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
793 xfer += this->ire.read(iprot);
794 this->__isset.ire = true;
795 } else {
796 xfer += iprot->skip(ftype);
797 }
798 break;
799 case 2:
800 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
801 xfer += this->ue.read(iprot);
802 this->__isset.ue = true;
803 } else {
804 xfer += iprot->skip(ftype);
805 }
806 break;
807 case 3:
808 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
809 xfer += this->te.read(iprot);
810 this->__isset.te = true;
811 } else {
812 xfer += iprot->skip(ftype);
813 }
814 break;
815 default:
816 xfer += iprot->skip(ftype);
817 break;
818 }
819 xfer += iprot->readFieldEnd();
820 }
821
822 xfer += iprot->readStructEnd();
823
824 return xfer;
825 }
826
write(::apache::thrift::protocol::TProtocol * oprot) const827 uint32_t Cassandra_get_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
828
829 uint32_t xfer = 0;
830
831 xfer += oprot->writeStructBegin("Cassandra_get_slice_result");
832
833 if (this->__isset.success) {
834 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
835 {
836 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
837 std::vector<ColumnOrSuperColumn> ::const_iterator _iter156;
838 for (_iter156 = this->success.begin(); _iter156 != this->success.end(); ++_iter156)
839 {
840 xfer += (*_iter156).write(oprot);
841 }
842 xfer += oprot->writeListEnd();
843 }
844 xfer += oprot->writeFieldEnd();
845 } else if (this->__isset.ire) {
846 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
847 xfer += this->ire.write(oprot);
848 xfer += oprot->writeFieldEnd();
849 } else if (this->__isset.ue) {
850 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
851 xfer += this->ue.write(oprot);
852 xfer += oprot->writeFieldEnd();
853 } else if (this->__isset.te) {
854 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
855 xfer += this->te.write(oprot);
856 xfer += oprot->writeFieldEnd();
857 }
858 xfer += oprot->writeFieldStop();
859 xfer += oprot->writeStructEnd();
860 return xfer;
861 }
862
read(::apache::thrift::protocol::TProtocol * iprot)863 uint32_t Cassandra_get_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
864
865 uint32_t xfer = 0;
866 std::string fname;
867 ::apache::thrift::protocol::TType ftype;
868 int16_t fid;
869
870 xfer += iprot->readStructBegin(fname);
871
872 using ::apache::thrift::protocol::TProtocolException;
873
874
875 while (true)
876 {
877 xfer += iprot->readFieldBegin(fname, ftype, fid);
878 if (ftype == ::apache::thrift::protocol::T_STOP) {
879 break;
880 }
881 switch (fid)
882 {
883 case 0:
884 if (ftype == ::apache::thrift::protocol::T_LIST) {
885 {
886 (*(this->success)).clear();
887 uint32_t _size157;
888 ::apache::thrift::protocol::TType _etype160;
889 iprot->readListBegin(_etype160, _size157);
890 (*(this->success)).resize(_size157);
891 uint32_t _i161;
892 for (_i161 = 0; _i161 < _size157; ++_i161)
893 {
894 xfer += (*(this->success))[_i161].read(iprot);
895 }
896 iprot->readListEnd();
897 }
898 this->__isset.success = true;
899 } else {
900 xfer += iprot->skip(ftype);
901 }
902 break;
903 case 1:
904 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
905 xfer += this->ire.read(iprot);
906 this->__isset.ire = true;
907 } else {
908 xfer += iprot->skip(ftype);
909 }
910 break;
911 case 2:
912 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
913 xfer += this->ue.read(iprot);
914 this->__isset.ue = true;
915 } else {
916 xfer += iprot->skip(ftype);
917 }
918 break;
919 case 3:
920 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
921 xfer += this->te.read(iprot);
922 this->__isset.te = true;
923 } else {
924 xfer += iprot->skip(ftype);
925 }
926 break;
927 default:
928 xfer += iprot->skip(ftype);
929 break;
930 }
931 xfer += iprot->readFieldEnd();
932 }
933
934 xfer += iprot->readStructEnd();
935
936 return xfer;
937 }
938
read(::apache::thrift::protocol::TProtocol * iprot)939 uint32_t Cassandra_get_count_args::read(::apache::thrift::protocol::TProtocol* iprot) {
940
941 uint32_t xfer = 0;
942 std::string fname;
943 ::apache::thrift::protocol::TType ftype;
944 int16_t fid;
945
946 xfer += iprot->readStructBegin(fname);
947
948 using ::apache::thrift::protocol::TProtocolException;
949
950 bool isset_key = false;
951 bool isset_column_parent = false;
952 bool isset_predicate = false;
953 bool isset_consistency_level = false;
954
955 while (true)
956 {
957 xfer += iprot->readFieldBegin(fname, ftype, fid);
958 if (ftype == ::apache::thrift::protocol::T_STOP) {
959 break;
960 }
961 switch (fid)
962 {
963 case 1:
964 if (ftype == ::apache::thrift::protocol::T_STRING) {
965 xfer += iprot->readBinary(this->key);
966 isset_key = true;
967 } else {
968 xfer += iprot->skip(ftype);
969 }
970 break;
971 case 2:
972 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
973 xfer += this->column_parent.read(iprot);
974 isset_column_parent = true;
975 } else {
976 xfer += iprot->skip(ftype);
977 }
978 break;
979 case 3:
980 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
981 xfer += this->predicate.read(iprot);
982 isset_predicate = true;
983 } else {
984 xfer += iprot->skip(ftype);
985 }
986 break;
987 case 4:
988 if (ftype == ::apache::thrift::protocol::T_I32) {
989 int32_t ecast162;
990 xfer += iprot->readI32(ecast162);
991 this->consistency_level = (ConsistencyLevel::type)ecast162;
992 isset_consistency_level = true;
993 } else {
994 xfer += iprot->skip(ftype);
995 }
996 break;
997 default:
998 xfer += iprot->skip(ftype);
999 break;
1000 }
1001 xfer += iprot->readFieldEnd();
1002 }
1003
1004 xfer += iprot->readStructEnd();
1005
1006 if (!isset_key)
1007 throw TProtocolException(TProtocolException::INVALID_DATA);
1008 if (!isset_column_parent)
1009 throw TProtocolException(TProtocolException::INVALID_DATA);
1010 if (!isset_predicate)
1011 throw TProtocolException(TProtocolException::INVALID_DATA);
1012 if (!isset_consistency_level)
1013 throw TProtocolException(TProtocolException::INVALID_DATA);
1014 return xfer;
1015 }
1016
write(::apache::thrift::protocol::TProtocol * oprot) const1017 uint32_t Cassandra_get_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1018 uint32_t xfer = 0;
1019 xfer += oprot->writeStructBegin("Cassandra_get_count_args");
1020 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
1021 xfer += oprot->writeBinary(this->key);
1022 xfer += oprot->writeFieldEnd();
1023 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1024 xfer += this->column_parent.write(oprot);
1025 xfer += oprot->writeFieldEnd();
1026 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1027 xfer += this->predicate.write(oprot);
1028 xfer += oprot->writeFieldEnd();
1029 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1030 xfer += oprot->writeI32((int32_t)this->consistency_level);
1031 xfer += oprot->writeFieldEnd();
1032 xfer += oprot->writeFieldStop();
1033 xfer += oprot->writeStructEnd();
1034 return xfer;
1035 }
1036
write(::apache::thrift::protocol::TProtocol * oprot) const1037 uint32_t Cassandra_get_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1038 uint32_t xfer = 0;
1039 xfer += oprot->writeStructBegin("Cassandra_get_count_pargs");
1040 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
1041 xfer += oprot->writeBinary((*(this->key)));
1042 xfer += oprot->writeFieldEnd();
1043 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1044 xfer += (*(this->column_parent)).write(oprot);
1045 xfer += oprot->writeFieldEnd();
1046 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1047 xfer += (*(this->predicate)).write(oprot);
1048 xfer += oprot->writeFieldEnd();
1049 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1050 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
1051 xfer += oprot->writeFieldEnd();
1052 xfer += oprot->writeFieldStop();
1053 xfer += oprot->writeStructEnd();
1054 return xfer;
1055 }
1056
read(::apache::thrift::protocol::TProtocol * iprot)1057 uint32_t Cassandra_get_count_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1058
1059 uint32_t xfer = 0;
1060 std::string fname;
1061 ::apache::thrift::protocol::TType ftype;
1062 int16_t fid;
1063
1064 xfer += iprot->readStructBegin(fname);
1065
1066 using ::apache::thrift::protocol::TProtocolException;
1067
1068
1069 while (true)
1070 {
1071 xfer += iprot->readFieldBegin(fname, ftype, fid);
1072 if (ftype == ::apache::thrift::protocol::T_STOP) {
1073 break;
1074 }
1075 switch (fid)
1076 {
1077 case 0:
1078 if (ftype == ::apache::thrift::protocol::T_I32) {
1079 xfer += iprot->readI32(this->success);
1080 this->__isset.success = true;
1081 } else {
1082 xfer += iprot->skip(ftype);
1083 }
1084 break;
1085 case 1:
1086 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1087 xfer += this->ire.read(iprot);
1088 this->__isset.ire = true;
1089 } else {
1090 xfer += iprot->skip(ftype);
1091 }
1092 break;
1093 case 2:
1094 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1095 xfer += this->ue.read(iprot);
1096 this->__isset.ue = true;
1097 } else {
1098 xfer += iprot->skip(ftype);
1099 }
1100 break;
1101 case 3:
1102 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1103 xfer += this->te.read(iprot);
1104 this->__isset.te = true;
1105 } else {
1106 xfer += iprot->skip(ftype);
1107 }
1108 break;
1109 default:
1110 xfer += iprot->skip(ftype);
1111 break;
1112 }
1113 xfer += iprot->readFieldEnd();
1114 }
1115
1116 xfer += iprot->readStructEnd();
1117
1118 return xfer;
1119 }
1120
write(::apache::thrift::protocol::TProtocol * oprot) const1121 uint32_t Cassandra_get_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1122
1123 uint32_t xfer = 0;
1124
1125 xfer += oprot->writeStructBegin("Cassandra_get_count_result");
1126
1127 if (this->__isset.success) {
1128 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I32, 0);
1129 xfer += oprot->writeI32(this->success);
1130 xfer += oprot->writeFieldEnd();
1131 } else if (this->__isset.ire) {
1132 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
1133 xfer += this->ire.write(oprot);
1134 xfer += oprot->writeFieldEnd();
1135 } else if (this->__isset.ue) {
1136 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
1137 xfer += this->ue.write(oprot);
1138 xfer += oprot->writeFieldEnd();
1139 } else if (this->__isset.te) {
1140 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
1141 xfer += this->te.write(oprot);
1142 xfer += oprot->writeFieldEnd();
1143 }
1144 xfer += oprot->writeFieldStop();
1145 xfer += oprot->writeStructEnd();
1146 return xfer;
1147 }
1148
read(::apache::thrift::protocol::TProtocol * iprot)1149 uint32_t Cassandra_get_count_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1150
1151 uint32_t xfer = 0;
1152 std::string fname;
1153 ::apache::thrift::protocol::TType ftype;
1154 int16_t fid;
1155
1156 xfer += iprot->readStructBegin(fname);
1157
1158 using ::apache::thrift::protocol::TProtocolException;
1159
1160
1161 while (true)
1162 {
1163 xfer += iprot->readFieldBegin(fname, ftype, fid);
1164 if (ftype == ::apache::thrift::protocol::T_STOP) {
1165 break;
1166 }
1167 switch (fid)
1168 {
1169 case 0:
1170 if (ftype == ::apache::thrift::protocol::T_I32) {
1171 xfer += iprot->readI32((*(this->success)));
1172 this->__isset.success = true;
1173 } else {
1174 xfer += iprot->skip(ftype);
1175 }
1176 break;
1177 case 1:
1178 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1179 xfer += this->ire.read(iprot);
1180 this->__isset.ire = true;
1181 } else {
1182 xfer += iprot->skip(ftype);
1183 }
1184 break;
1185 case 2:
1186 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1187 xfer += this->ue.read(iprot);
1188 this->__isset.ue = true;
1189 } else {
1190 xfer += iprot->skip(ftype);
1191 }
1192 break;
1193 case 3:
1194 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1195 xfer += this->te.read(iprot);
1196 this->__isset.te = true;
1197 } else {
1198 xfer += iprot->skip(ftype);
1199 }
1200 break;
1201 default:
1202 xfer += iprot->skip(ftype);
1203 break;
1204 }
1205 xfer += iprot->readFieldEnd();
1206 }
1207
1208 xfer += iprot->readStructEnd();
1209
1210 return xfer;
1211 }
1212
read(::apache::thrift::protocol::TProtocol * iprot)1213 uint32_t Cassandra_multiget_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1214
1215 uint32_t xfer = 0;
1216 std::string fname;
1217 ::apache::thrift::protocol::TType ftype;
1218 int16_t fid;
1219
1220 xfer += iprot->readStructBegin(fname);
1221
1222 using ::apache::thrift::protocol::TProtocolException;
1223
1224 bool isset_keys = false;
1225 bool isset_column_parent = false;
1226 bool isset_predicate = false;
1227 bool isset_consistency_level = false;
1228
1229 while (true)
1230 {
1231 xfer += iprot->readFieldBegin(fname, ftype, fid);
1232 if (ftype == ::apache::thrift::protocol::T_STOP) {
1233 break;
1234 }
1235 switch (fid)
1236 {
1237 case 1:
1238 if (ftype == ::apache::thrift::protocol::T_LIST) {
1239 {
1240 this->keys.clear();
1241 uint32_t _size163;
1242 ::apache::thrift::protocol::TType _etype166;
1243 iprot->readListBegin(_etype166, _size163);
1244 this->keys.resize(_size163);
1245 uint32_t _i167;
1246 for (_i167 = 0; _i167 < _size163; ++_i167)
1247 {
1248 xfer += iprot->readBinary(this->keys[_i167]);
1249 }
1250 iprot->readListEnd();
1251 }
1252 isset_keys = true;
1253 } else {
1254 xfer += iprot->skip(ftype);
1255 }
1256 break;
1257 case 2:
1258 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1259 xfer += this->column_parent.read(iprot);
1260 isset_column_parent = true;
1261 } else {
1262 xfer += iprot->skip(ftype);
1263 }
1264 break;
1265 case 3:
1266 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1267 xfer += this->predicate.read(iprot);
1268 isset_predicate = true;
1269 } else {
1270 xfer += iprot->skip(ftype);
1271 }
1272 break;
1273 case 4:
1274 if (ftype == ::apache::thrift::protocol::T_I32) {
1275 int32_t ecast168;
1276 xfer += iprot->readI32(ecast168);
1277 this->consistency_level = (ConsistencyLevel::type)ecast168;
1278 isset_consistency_level = true;
1279 } else {
1280 xfer += iprot->skip(ftype);
1281 }
1282 break;
1283 default:
1284 xfer += iprot->skip(ftype);
1285 break;
1286 }
1287 xfer += iprot->readFieldEnd();
1288 }
1289
1290 xfer += iprot->readStructEnd();
1291
1292 if (!isset_keys)
1293 throw TProtocolException(TProtocolException::INVALID_DATA);
1294 if (!isset_column_parent)
1295 throw TProtocolException(TProtocolException::INVALID_DATA);
1296 if (!isset_predicate)
1297 throw TProtocolException(TProtocolException::INVALID_DATA);
1298 if (!isset_consistency_level)
1299 throw TProtocolException(TProtocolException::INVALID_DATA);
1300 return xfer;
1301 }
1302
write(::apache::thrift::protocol::TProtocol * oprot) const1303 uint32_t Cassandra_multiget_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1304 uint32_t xfer = 0;
1305 xfer += oprot->writeStructBegin("Cassandra_multiget_slice_args");
1306 xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1307 {
1308 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->keys.size()));
1309 std::vector<std::string> ::const_iterator _iter169;
1310 for (_iter169 = this->keys.begin(); _iter169 != this->keys.end(); ++_iter169)
1311 {
1312 xfer += oprot->writeBinary((*_iter169));
1313 }
1314 xfer += oprot->writeListEnd();
1315 }
1316 xfer += oprot->writeFieldEnd();
1317 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1318 xfer += this->column_parent.write(oprot);
1319 xfer += oprot->writeFieldEnd();
1320 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1321 xfer += this->predicate.write(oprot);
1322 xfer += oprot->writeFieldEnd();
1323 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1324 xfer += oprot->writeI32((int32_t)this->consistency_level);
1325 xfer += oprot->writeFieldEnd();
1326 xfer += oprot->writeFieldStop();
1327 xfer += oprot->writeStructEnd();
1328 return xfer;
1329 }
1330
write(::apache::thrift::protocol::TProtocol * oprot) const1331 uint32_t Cassandra_multiget_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1332 uint32_t xfer = 0;
1333 xfer += oprot->writeStructBegin("Cassandra_multiget_slice_pargs");
1334 xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1335 {
1336 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->keys)).size()));
1337 std::vector<std::string> ::const_iterator _iter170;
1338 for (_iter170 = (*(this->keys)).begin(); _iter170 != (*(this->keys)).end(); ++_iter170)
1339 {
1340 xfer += oprot->writeBinary((*_iter170));
1341 }
1342 xfer += oprot->writeListEnd();
1343 }
1344 xfer += oprot->writeFieldEnd();
1345 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1346 xfer += (*(this->column_parent)).write(oprot);
1347 xfer += oprot->writeFieldEnd();
1348 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1349 xfer += (*(this->predicate)).write(oprot);
1350 xfer += oprot->writeFieldEnd();
1351 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1352 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
1353 xfer += oprot->writeFieldEnd();
1354 xfer += oprot->writeFieldStop();
1355 xfer += oprot->writeStructEnd();
1356 return xfer;
1357 }
1358
read(::apache::thrift::protocol::TProtocol * iprot)1359 uint32_t Cassandra_multiget_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1360
1361 uint32_t xfer = 0;
1362 std::string fname;
1363 ::apache::thrift::protocol::TType ftype;
1364 int16_t fid;
1365
1366 xfer += iprot->readStructBegin(fname);
1367
1368 using ::apache::thrift::protocol::TProtocolException;
1369
1370
1371 while (true)
1372 {
1373 xfer += iprot->readFieldBegin(fname, ftype, fid);
1374 if (ftype == ::apache::thrift::protocol::T_STOP) {
1375 break;
1376 }
1377 switch (fid)
1378 {
1379 case 0:
1380 if (ftype == ::apache::thrift::protocol::T_MAP) {
1381 {
1382 this->success.clear();
1383 uint32_t _size171;
1384 ::apache::thrift::protocol::TType _ktype172;
1385 ::apache::thrift::protocol::TType _vtype173;
1386 iprot->readMapBegin(_ktype172, _vtype173, _size171);
1387 uint32_t _i175;
1388 for (_i175 = 0; _i175 < _size171; ++_i175)
1389 {
1390 std::string _key176;
1391 xfer += iprot->readBinary(_key176);
1392 std::vector<ColumnOrSuperColumn> & _val177 = this->success[_key176];
1393 {
1394 _val177.clear();
1395 uint32_t _size178;
1396 ::apache::thrift::protocol::TType _etype181;
1397 iprot->readListBegin(_etype181, _size178);
1398 _val177.resize(_size178);
1399 uint32_t _i182;
1400 for (_i182 = 0; _i182 < _size178; ++_i182)
1401 {
1402 xfer += _val177[_i182].read(iprot);
1403 }
1404 iprot->readListEnd();
1405 }
1406 }
1407 iprot->readMapEnd();
1408 }
1409 this->__isset.success = true;
1410 } else {
1411 xfer += iprot->skip(ftype);
1412 }
1413 break;
1414 case 1:
1415 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1416 xfer += this->ire.read(iprot);
1417 this->__isset.ire = true;
1418 } else {
1419 xfer += iprot->skip(ftype);
1420 }
1421 break;
1422 case 2:
1423 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1424 xfer += this->ue.read(iprot);
1425 this->__isset.ue = true;
1426 } else {
1427 xfer += iprot->skip(ftype);
1428 }
1429 break;
1430 case 3:
1431 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1432 xfer += this->te.read(iprot);
1433 this->__isset.te = true;
1434 } else {
1435 xfer += iprot->skip(ftype);
1436 }
1437 break;
1438 default:
1439 xfer += iprot->skip(ftype);
1440 break;
1441 }
1442 xfer += iprot->readFieldEnd();
1443 }
1444
1445 xfer += iprot->readStructEnd();
1446
1447 return xfer;
1448 }
1449
write(::apache::thrift::protocol::TProtocol * oprot) const1450 uint32_t Cassandra_multiget_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1451
1452 uint32_t xfer = 0;
1453
1454 xfer += oprot->writeStructBegin("Cassandra_multiget_slice_result");
1455
1456 if (this->__isset.success) {
1457 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
1458 {
1459 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->success.size()));
1460 std::map<std::string, std::vector<ColumnOrSuperColumn> > ::const_iterator _iter183;
1461 for (_iter183 = this->success.begin(); _iter183 != this->success.end(); ++_iter183)
1462 {
1463 xfer += oprot->writeBinary(_iter183->first);
1464 {
1465 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter183->second.size()));
1466 std::vector<ColumnOrSuperColumn> ::const_iterator _iter184;
1467 for (_iter184 = _iter183->second.begin(); _iter184 != _iter183->second.end(); ++_iter184)
1468 {
1469 xfer += (*_iter184).write(oprot);
1470 }
1471 xfer += oprot->writeListEnd();
1472 }
1473 }
1474 xfer += oprot->writeMapEnd();
1475 }
1476 xfer += oprot->writeFieldEnd();
1477 } else if (this->__isset.ire) {
1478 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
1479 xfer += this->ire.write(oprot);
1480 xfer += oprot->writeFieldEnd();
1481 } else if (this->__isset.ue) {
1482 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
1483 xfer += this->ue.write(oprot);
1484 xfer += oprot->writeFieldEnd();
1485 } else if (this->__isset.te) {
1486 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
1487 xfer += this->te.write(oprot);
1488 xfer += oprot->writeFieldEnd();
1489 }
1490 xfer += oprot->writeFieldStop();
1491 xfer += oprot->writeStructEnd();
1492 return xfer;
1493 }
1494
read(::apache::thrift::protocol::TProtocol * iprot)1495 uint32_t Cassandra_multiget_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1496
1497 uint32_t xfer = 0;
1498 std::string fname;
1499 ::apache::thrift::protocol::TType ftype;
1500 int16_t fid;
1501
1502 xfer += iprot->readStructBegin(fname);
1503
1504 using ::apache::thrift::protocol::TProtocolException;
1505
1506
1507 while (true)
1508 {
1509 xfer += iprot->readFieldBegin(fname, ftype, fid);
1510 if (ftype == ::apache::thrift::protocol::T_STOP) {
1511 break;
1512 }
1513 switch (fid)
1514 {
1515 case 0:
1516 if (ftype == ::apache::thrift::protocol::T_MAP) {
1517 {
1518 (*(this->success)).clear();
1519 uint32_t _size185;
1520 ::apache::thrift::protocol::TType _ktype186;
1521 ::apache::thrift::protocol::TType _vtype187;
1522 iprot->readMapBegin(_ktype186, _vtype187, _size185);
1523 uint32_t _i189;
1524 for (_i189 = 0; _i189 < _size185; ++_i189)
1525 {
1526 std::string _key190;
1527 xfer += iprot->readBinary(_key190);
1528 std::vector<ColumnOrSuperColumn> & _val191 = (*(this->success))[_key190];
1529 {
1530 _val191.clear();
1531 uint32_t _size192;
1532 ::apache::thrift::protocol::TType _etype195;
1533 iprot->readListBegin(_etype195, _size192);
1534 _val191.resize(_size192);
1535 uint32_t _i196;
1536 for (_i196 = 0; _i196 < _size192; ++_i196)
1537 {
1538 xfer += _val191[_i196].read(iprot);
1539 }
1540 iprot->readListEnd();
1541 }
1542 }
1543 iprot->readMapEnd();
1544 }
1545 this->__isset.success = true;
1546 } else {
1547 xfer += iprot->skip(ftype);
1548 }
1549 break;
1550 case 1:
1551 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1552 xfer += this->ire.read(iprot);
1553 this->__isset.ire = true;
1554 } else {
1555 xfer += iprot->skip(ftype);
1556 }
1557 break;
1558 case 2:
1559 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1560 xfer += this->ue.read(iprot);
1561 this->__isset.ue = true;
1562 } else {
1563 xfer += iprot->skip(ftype);
1564 }
1565 break;
1566 case 3:
1567 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1568 xfer += this->te.read(iprot);
1569 this->__isset.te = true;
1570 } else {
1571 xfer += iprot->skip(ftype);
1572 }
1573 break;
1574 default:
1575 xfer += iprot->skip(ftype);
1576 break;
1577 }
1578 xfer += iprot->readFieldEnd();
1579 }
1580
1581 xfer += iprot->readStructEnd();
1582
1583 return xfer;
1584 }
1585
read(::apache::thrift::protocol::TProtocol * iprot)1586 uint32_t Cassandra_multiget_count_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1587
1588 uint32_t xfer = 0;
1589 std::string fname;
1590 ::apache::thrift::protocol::TType ftype;
1591 int16_t fid;
1592
1593 xfer += iprot->readStructBegin(fname);
1594
1595 using ::apache::thrift::protocol::TProtocolException;
1596
1597 bool isset_keys = false;
1598 bool isset_column_parent = false;
1599 bool isset_predicate = false;
1600 bool isset_consistency_level = false;
1601
1602 while (true)
1603 {
1604 xfer += iprot->readFieldBegin(fname, ftype, fid);
1605 if (ftype == ::apache::thrift::protocol::T_STOP) {
1606 break;
1607 }
1608 switch (fid)
1609 {
1610 case 1:
1611 if (ftype == ::apache::thrift::protocol::T_LIST) {
1612 {
1613 this->keys.clear();
1614 uint32_t _size197;
1615 ::apache::thrift::protocol::TType _etype200;
1616 iprot->readListBegin(_etype200, _size197);
1617 this->keys.resize(_size197);
1618 uint32_t _i201;
1619 for (_i201 = 0; _i201 < _size197; ++_i201)
1620 {
1621 xfer += iprot->readBinary(this->keys[_i201]);
1622 }
1623 iprot->readListEnd();
1624 }
1625 isset_keys = true;
1626 } else {
1627 xfer += iprot->skip(ftype);
1628 }
1629 break;
1630 case 2:
1631 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1632 xfer += this->column_parent.read(iprot);
1633 isset_column_parent = true;
1634 } else {
1635 xfer += iprot->skip(ftype);
1636 }
1637 break;
1638 case 3:
1639 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1640 xfer += this->predicate.read(iprot);
1641 isset_predicate = true;
1642 } else {
1643 xfer += iprot->skip(ftype);
1644 }
1645 break;
1646 case 4:
1647 if (ftype == ::apache::thrift::protocol::T_I32) {
1648 int32_t ecast202;
1649 xfer += iprot->readI32(ecast202);
1650 this->consistency_level = (ConsistencyLevel::type)ecast202;
1651 isset_consistency_level = true;
1652 } else {
1653 xfer += iprot->skip(ftype);
1654 }
1655 break;
1656 default:
1657 xfer += iprot->skip(ftype);
1658 break;
1659 }
1660 xfer += iprot->readFieldEnd();
1661 }
1662
1663 xfer += iprot->readStructEnd();
1664
1665 if (!isset_keys)
1666 throw TProtocolException(TProtocolException::INVALID_DATA);
1667 if (!isset_column_parent)
1668 throw TProtocolException(TProtocolException::INVALID_DATA);
1669 if (!isset_predicate)
1670 throw TProtocolException(TProtocolException::INVALID_DATA);
1671 if (!isset_consistency_level)
1672 throw TProtocolException(TProtocolException::INVALID_DATA);
1673 return xfer;
1674 }
1675
write(::apache::thrift::protocol::TProtocol * oprot) const1676 uint32_t Cassandra_multiget_count_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
1677 uint32_t xfer = 0;
1678 xfer += oprot->writeStructBegin("Cassandra_multiget_count_args");
1679 xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1680 {
1681 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->keys.size()));
1682 std::vector<std::string> ::const_iterator _iter203;
1683 for (_iter203 = this->keys.begin(); _iter203 != this->keys.end(); ++_iter203)
1684 {
1685 xfer += oprot->writeBinary((*_iter203));
1686 }
1687 xfer += oprot->writeListEnd();
1688 }
1689 xfer += oprot->writeFieldEnd();
1690 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1691 xfer += this->column_parent.write(oprot);
1692 xfer += oprot->writeFieldEnd();
1693 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1694 xfer += this->predicate.write(oprot);
1695 xfer += oprot->writeFieldEnd();
1696 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1697 xfer += oprot->writeI32((int32_t)this->consistency_level);
1698 xfer += oprot->writeFieldEnd();
1699 xfer += oprot->writeFieldStop();
1700 xfer += oprot->writeStructEnd();
1701 return xfer;
1702 }
1703
write(::apache::thrift::protocol::TProtocol * oprot) const1704 uint32_t Cassandra_multiget_count_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
1705 uint32_t xfer = 0;
1706 xfer += oprot->writeStructBegin("Cassandra_multiget_count_pargs");
1707 xfer += oprot->writeFieldBegin("keys", ::apache::thrift::protocol::T_LIST, 1);
1708 {
1709 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->keys)).size()));
1710 std::vector<std::string> ::const_iterator _iter204;
1711 for (_iter204 = (*(this->keys)).begin(); _iter204 != (*(this->keys)).end(); ++_iter204)
1712 {
1713 xfer += oprot->writeBinary((*_iter204));
1714 }
1715 xfer += oprot->writeListEnd();
1716 }
1717 xfer += oprot->writeFieldEnd();
1718 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
1719 xfer += (*(this->column_parent)).write(oprot);
1720 xfer += oprot->writeFieldEnd();
1721 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 3);
1722 xfer += (*(this->predicate)).write(oprot);
1723 xfer += oprot->writeFieldEnd();
1724 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
1725 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
1726 xfer += oprot->writeFieldEnd();
1727 xfer += oprot->writeFieldStop();
1728 xfer += oprot->writeStructEnd();
1729 return xfer;
1730 }
1731
read(::apache::thrift::protocol::TProtocol * iprot)1732 uint32_t Cassandra_multiget_count_result::read(::apache::thrift::protocol::TProtocol* iprot) {
1733
1734 uint32_t xfer = 0;
1735 std::string fname;
1736 ::apache::thrift::protocol::TType ftype;
1737 int16_t fid;
1738
1739 xfer += iprot->readStructBegin(fname);
1740
1741 using ::apache::thrift::protocol::TProtocolException;
1742
1743
1744 while (true)
1745 {
1746 xfer += iprot->readFieldBegin(fname, ftype, fid);
1747 if (ftype == ::apache::thrift::protocol::T_STOP) {
1748 break;
1749 }
1750 switch (fid)
1751 {
1752 case 0:
1753 if (ftype == ::apache::thrift::protocol::T_MAP) {
1754 {
1755 this->success.clear();
1756 uint32_t _size205;
1757 ::apache::thrift::protocol::TType _ktype206;
1758 ::apache::thrift::protocol::TType _vtype207;
1759 iprot->readMapBegin(_ktype206, _vtype207, _size205);
1760 uint32_t _i209;
1761 for (_i209 = 0; _i209 < _size205; ++_i209)
1762 {
1763 std::string _key210;
1764 xfer += iprot->readBinary(_key210);
1765 int32_t& _val211 = this->success[_key210];
1766 xfer += iprot->readI32(_val211);
1767 }
1768 iprot->readMapEnd();
1769 }
1770 this->__isset.success = true;
1771 } else {
1772 xfer += iprot->skip(ftype);
1773 }
1774 break;
1775 case 1:
1776 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1777 xfer += this->ire.read(iprot);
1778 this->__isset.ire = true;
1779 } else {
1780 xfer += iprot->skip(ftype);
1781 }
1782 break;
1783 case 2:
1784 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1785 xfer += this->ue.read(iprot);
1786 this->__isset.ue = true;
1787 } else {
1788 xfer += iprot->skip(ftype);
1789 }
1790 break;
1791 case 3:
1792 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1793 xfer += this->te.read(iprot);
1794 this->__isset.te = true;
1795 } else {
1796 xfer += iprot->skip(ftype);
1797 }
1798 break;
1799 default:
1800 xfer += iprot->skip(ftype);
1801 break;
1802 }
1803 xfer += iprot->readFieldEnd();
1804 }
1805
1806 xfer += iprot->readStructEnd();
1807
1808 return xfer;
1809 }
1810
write(::apache::thrift::protocol::TProtocol * oprot) const1811 uint32_t Cassandra_multiget_count_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
1812
1813 uint32_t xfer = 0;
1814
1815 xfer += oprot->writeStructBegin("Cassandra_multiget_count_result");
1816
1817 if (this->__isset.success) {
1818 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
1819 {
1820 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast<uint32_t>(this->success.size()));
1821 std::map<std::string, int32_t> ::const_iterator _iter212;
1822 for (_iter212 = this->success.begin(); _iter212 != this->success.end(); ++_iter212)
1823 {
1824 xfer += oprot->writeBinary(_iter212->first);
1825 xfer += oprot->writeI32(_iter212->second);
1826 }
1827 xfer += oprot->writeMapEnd();
1828 }
1829 xfer += oprot->writeFieldEnd();
1830 } else if (this->__isset.ire) {
1831 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
1832 xfer += this->ire.write(oprot);
1833 xfer += oprot->writeFieldEnd();
1834 } else if (this->__isset.ue) {
1835 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
1836 xfer += this->ue.write(oprot);
1837 xfer += oprot->writeFieldEnd();
1838 } else if (this->__isset.te) {
1839 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
1840 xfer += this->te.write(oprot);
1841 xfer += oprot->writeFieldEnd();
1842 }
1843 xfer += oprot->writeFieldStop();
1844 xfer += oprot->writeStructEnd();
1845 return xfer;
1846 }
1847
read(::apache::thrift::protocol::TProtocol * iprot)1848 uint32_t Cassandra_multiget_count_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
1849
1850 uint32_t xfer = 0;
1851 std::string fname;
1852 ::apache::thrift::protocol::TType ftype;
1853 int16_t fid;
1854
1855 xfer += iprot->readStructBegin(fname);
1856
1857 using ::apache::thrift::protocol::TProtocolException;
1858
1859
1860 while (true)
1861 {
1862 xfer += iprot->readFieldBegin(fname, ftype, fid);
1863 if (ftype == ::apache::thrift::protocol::T_STOP) {
1864 break;
1865 }
1866 switch (fid)
1867 {
1868 case 0:
1869 if (ftype == ::apache::thrift::protocol::T_MAP) {
1870 {
1871 (*(this->success)).clear();
1872 uint32_t _size213;
1873 ::apache::thrift::protocol::TType _ktype214;
1874 ::apache::thrift::protocol::TType _vtype215;
1875 iprot->readMapBegin(_ktype214, _vtype215, _size213);
1876 uint32_t _i217;
1877 for (_i217 = 0; _i217 < _size213; ++_i217)
1878 {
1879 std::string _key218;
1880 xfer += iprot->readBinary(_key218);
1881 int32_t& _val219 = (*(this->success))[_key218];
1882 xfer += iprot->readI32(_val219);
1883 }
1884 iprot->readMapEnd();
1885 }
1886 this->__isset.success = true;
1887 } else {
1888 xfer += iprot->skip(ftype);
1889 }
1890 break;
1891 case 1:
1892 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1893 xfer += this->ire.read(iprot);
1894 this->__isset.ire = true;
1895 } else {
1896 xfer += iprot->skip(ftype);
1897 }
1898 break;
1899 case 2:
1900 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1901 xfer += this->ue.read(iprot);
1902 this->__isset.ue = true;
1903 } else {
1904 xfer += iprot->skip(ftype);
1905 }
1906 break;
1907 case 3:
1908 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1909 xfer += this->te.read(iprot);
1910 this->__isset.te = true;
1911 } else {
1912 xfer += iprot->skip(ftype);
1913 }
1914 break;
1915 default:
1916 xfer += iprot->skip(ftype);
1917 break;
1918 }
1919 xfer += iprot->readFieldEnd();
1920 }
1921
1922 xfer += iprot->readStructEnd();
1923
1924 return xfer;
1925 }
1926
read(::apache::thrift::protocol::TProtocol * iprot)1927 uint32_t Cassandra_get_range_slices_args::read(::apache::thrift::protocol::TProtocol* iprot) {
1928
1929 uint32_t xfer = 0;
1930 std::string fname;
1931 ::apache::thrift::protocol::TType ftype;
1932 int16_t fid;
1933
1934 xfer += iprot->readStructBegin(fname);
1935
1936 using ::apache::thrift::protocol::TProtocolException;
1937
1938 bool isset_column_parent = false;
1939 bool isset_predicate = false;
1940 bool isset_range = false;
1941 bool isset_consistency_level = false;
1942
1943 while (true)
1944 {
1945 xfer += iprot->readFieldBegin(fname, ftype, fid);
1946 if (ftype == ::apache::thrift::protocol::T_STOP) {
1947 break;
1948 }
1949 switch (fid)
1950 {
1951 case 1:
1952 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1953 xfer += this->column_parent.read(iprot);
1954 isset_column_parent = true;
1955 } else {
1956 xfer += iprot->skip(ftype);
1957 }
1958 break;
1959 case 2:
1960 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1961 xfer += this->predicate.read(iprot);
1962 isset_predicate = true;
1963 } else {
1964 xfer += iprot->skip(ftype);
1965 }
1966 break;
1967 case 3:
1968 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
1969 xfer += this->range.read(iprot);
1970 isset_range = true;
1971 } else {
1972 xfer += iprot->skip(ftype);
1973 }
1974 break;
1975 case 4:
1976 if (ftype == ::apache::thrift::protocol::T_I32) {
1977 int32_t ecast220;
1978 xfer += iprot->readI32(ecast220);
1979 this->consistency_level = (ConsistencyLevel::type)ecast220;
1980 isset_consistency_level = true;
1981 } else {
1982 xfer += iprot->skip(ftype);
1983 }
1984 break;
1985 default:
1986 xfer += iprot->skip(ftype);
1987 break;
1988 }
1989 xfer += iprot->readFieldEnd();
1990 }
1991
1992 xfer += iprot->readStructEnd();
1993
1994 if (!isset_column_parent)
1995 throw TProtocolException(TProtocolException::INVALID_DATA);
1996 if (!isset_predicate)
1997 throw TProtocolException(TProtocolException::INVALID_DATA);
1998 if (!isset_range)
1999 throw TProtocolException(TProtocolException::INVALID_DATA);
2000 if (!isset_consistency_level)
2001 throw TProtocolException(TProtocolException::INVALID_DATA);
2002 return xfer;
2003 }
2004
write(::apache::thrift::protocol::TProtocol * oprot) const2005 uint32_t Cassandra_get_range_slices_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2006 uint32_t xfer = 0;
2007 xfer += oprot->writeStructBegin("Cassandra_get_range_slices_args");
2008 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2009 xfer += this->column_parent.write(oprot);
2010 xfer += oprot->writeFieldEnd();
2011 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 2);
2012 xfer += this->predicate.write(oprot);
2013 xfer += oprot->writeFieldEnd();
2014 xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 3);
2015 xfer += this->range.write(oprot);
2016 xfer += oprot->writeFieldEnd();
2017 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2018 xfer += oprot->writeI32((int32_t)this->consistency_level);
2019 xfer += oprot->writeFieldEnd();
2020 xfer += oprot->writeFieldStop();
2021 xfer += oprot->writeStructEnd();
2022 return xfer;
2023 }
2024
write(::apache::thrift::protocol::TProtocol * oprot) const2025 uint32_t Cassandra_get_range_slices_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2026 uint32_t xfer = 0;
2027 xfer += oprot->writeStructBegin("Cassandra_get_range_slices_pargs");
2028 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2029 xfer += (*(this->column_parent)).write(oprot);
2030 xfer += oprot->writeFieldEnd();
2031 xfer += oprot->writeFieldBegin("predicate", ::apache::thrift::protocol::T_STRUCT, 2);
2032 xfer += (*(this->predicate)).write(oprot);
2033 xfer += oprot->writeFieldEnd();
2034 xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 3);
2035 xfer += (*(this->range)).write(oprot);
2036 xfer += oprot->writeFieldEnd();
2037 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2038 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2039 xfer += oprot->writeFieldEnd();
2040 xfer += oprot->writeFieldStop();
2041 xfer += oprot->writeStructEnd();
2042 return xfer;
2043 }
2044
read(::apache::thrift::protocol::TProtocol * iprot)2045 uint32_t Cassandra_get_range_slices_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2046
2047 uint32_t xfer = 0;
2048 std::string fname;
2049 ::apache::thrift::protocol::TType ftype;
2050 int16_t fid;
2051
2052 xfer += iprot->readStructBegin(fname);
2053
2054 using ::apache::thrift::protocol::TProtocolException;
2055
2056
2057 while (true)
2058 {
2059 xfer += iprot->readFieldBegin(fname, ftype, fid);
2060 if (ftype == ::apache::thrift::protocol::T_STOP) {
2061 break;
2062 }
2063 switch (fid)
2064 {
2065 case 0:
2066 if (ftype == ::apache::thrift::protocol::T_LIST) {
2067 {
2068 this->success.clear();
2069 uint32_t _size221;
2070 ::apache::thrift::protocol::TType _etype224;
2071 iprot->readListBegin(_etype224, _size221);
2072 this->success.resize(_size221);
2073 uint32_t _i225;
2074 for (_i225 = 0; _i225 < _size221; ++_i225)
2075 {
2076 xfer += this->success[_i225].read(iprot);
2077 }
2078 iprot->readListEnd();
2079 }
2080 this->__isset.success = true;
2081 } else {
2082 xfer += iprot->skip(ftype);
2083 }
2084 break;
2085 case 1:
2086 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2087 xfer += this->ire.read(iprot);
2088 this->__isset.ire = true;
2089 } else {
2090 xfer += iprot->skip(ftype);
2091 }
2092 break;
2093 case 2:
2094 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2095 xfer += this->ue.read(iprot);
2096 this->__isset.ue = true;
2097 } else {
2098 xfer += iprot->skip(ftype);
2099 }
2100 break;
2101 case 3:
2102 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2103 xfer += this->te.read(iprot);
2104 this->__isset.te = true;
2105 } else {
2106 xfer += iprot->skip(ftype);
2107 }
2108 break;
2109 default:
2110 xfer += iprot->skip(ftype);
2111 break;
2112 }
2113 xfer += iprot->readFieldEnd();
2114 }
2115
2116 xfer += iprot->readStructEnd();
2117
2118 return xfer;
2119 }
2120
write(::apache::thrift::protocol::TProtocol * oprot) const2121 uint32_t Cassandra_get_range_slices_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2122
2123 uint32_t xfer = 0;
2124
2125 xfer += oprot->writeStructBegin("Cassandra_get_range_slices_result");
2126
2127 if (this->__isset.success) {
2128 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
2129 {
2130 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
2131 std::vector<KeySlice> ::const_iterator _iter226;
2132 for (_iter226 = this->success.begin(); _iter226 != this->success.end(); ++_iter226)
2133 {
2134 xfer += (*_iter226).write(oprot);
2135 }
2136 xfer += oprot->writeListEnd();
2137 }
2138 xfer += oprot->writeFieldEnd();
2139 } else if (this->__isset.ire) {
2140 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
2141 xfer += this->ire.write(oprot);
2142 xfer += oprot->writeFieldEnd();
2143 } else if (this->__isset.ue) {
2144 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
2145 xfer += this->ue.write(oprot);
2146 xfer += oprot->writeFieldEnd();
2147 } else if (this->__isset.te) {
2148 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
2149 xfer += this->te.write(oprot);
2150 xfer += oprot->writeFieldEnd();
2151 }
2152 xfer += oprot->writeFieldStop();
2153 xfer += oprot->writeStructEnd();
2154 return xfer;
2155 }
2156
read(::apache::thrift::protocol::TProtocol * iprot)2157 uint32_t Cassandra_get_range_slices_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2158
2159 uint32_t xfer = 0;
2160 std::string fname;
2161 ::apache::thrift::protocol::TType ftype;
2162 int16_t fid;
2163
2164 xfer += iprot->readStructBegin(fname);
2165
2166 using ::apache::thrift::protocol::TProtocolException;
2167
2168
2169 while (true)
2170 {
2171 xfer += iprot->readFieldBegin(fname, ftype, fid);
2172 if (ftype == ::apache::thrift::protocol::T_STOP) {
2173 break;
2174 }
2175 switch (fid)
2176 {
2177 case 0:
2178 if (ftype == ::apache::thrift::protocol::T_LIST) {
2179 {
2180 (*(this->success)).clear();
2181 uint32_t _size227;
2182 ::apache::thrift::protocol::TType _etype230;
2183 iprot->readListBegin(_etype230, _size227);
2184 (*(this->success)).resize(_size227);
2185 uint32_t _i231;
2186 for (_i231 = 0; _i231 < _size227; ++_i231)
2187 {
2188 xfer += (*(this->success))[_i231].read(iprot);
2189 }
2190 iprot->readListEnd();
2191 }
2192 this->__isset.success = true;
2193 } else {
2194 xfer += iprot->skip(ftype);
2195 }
2196 break;
2197 case 1:
2198 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2199 xfer += this->ire.read(iprot);
2200 this->__isset.ire = true;
2201 } else {
2202 xfer += iprot->skip(ftype);
2203 }
2204 break;
2205 case 2:
2206 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2207 xfer += this->ue.read(iprot);
2208 this->__isset.ue = true;
2209 } else {
2210 xfer += iprot->skip(ftype);
2211 }
2212 break;
2213 case 3:
2214 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2215 xfer += this->te.read(iprot);
2216 this->__isset.te = true;
2217 } else {
2218 xfer += iprot->skip(ftype);
2219 }
2220 break;
2221 default:
2222 xfer += iprot->skip(ftype);
2223 break;
2224 }
2225 xfer += iprot->readFieldEnd();
2226 }
2227
2228 xfer += iprot->readStructEnd();
2229
2230 return xfer;
2231 }
2232
read(::apache::thrift::protocol::TProtocol * iprot)2233 uint32_t Cassandra_get_paged_slice_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2234
2235 uint32_t xfer = 0;
2236 std::string fname;
2237 ::apache::thrift::protocol::TType ftype;
2238 int16_t fid;
2239
2240 xfer += iprot->readStructBegin(fname);
2241
2242 using ::apache::thrift::protocol::TProtocolException;
2243
2244 bool isset_column_family = false;
2245 bool isset_range = false;
2246 bool isset_start_column = false;
2247 bool isset_consistency_level = false;
2248
2249 while (true)
2250 {
2251 xfer += iprot->readFieldBegin(fname, ftype, fid);
2252 if (ftype == ::apache::thrift::protocol::T_STOP) {
2253 break;
2254 }
2255 switch (fid)
2256 {
2257 case 1:
2258 if (ftype == ::apache::thrift::protocol::T_STRING) {
2259 xfer += iprot->readString(this->column_family);
2260 isset_column_family = true;
2261 } else {
2262 xfer += iprot->skip(ftype);
2263 }
2264 break;
2265 case 2:
2266 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2267 xfer += this->range.read(iprot);
2268 isset_range = true;
2269 } else {
2270 xfer += iprot->skip(ftype);
2271 }
2272 break;
2273 case 3:
2274 if (ftype == ::apache::thrift::protocol::T_STRING) {
2275 xfer += iprot->readBinary(this->start_column);
2276 isset_start_column = true;
2277 } else {
2278 xfer += iprot->skip(ftype);
2279 }
2280 break;
2281 case 4:
2282 if (ftype == ::apache::thrift::protocol::T_I32) {
2283 int32_t ecast232;
2284 xfer += iprot->readI32(ecast232);
2285 this->consistency_level = (ConsistencyLevel::type)ecast232;
2286 isset_consistency_level = true;
2287 } else {
2288 xfer += iprot->skip(ftype);
2289 }
2290 break;
2291 default:
2292 xfer += iprot->skip(ftype);
2293 break;
2294 }
2295 xfer += iprot->readFieldEnd();
2296 }
2297
2298 xfer += iprot->readStructEnd();
2299
2300 if (!isset_column_family)
2301 throw TProtocolException(TProtocolException::INVALID_DATA);
2302 if (!isset_range)
2303 throw TProtocolException(TProtocolException::INVALID_DATA);
2304 if (!isset_start_column)
2305 throw TProtocolException(TProtocolException::INVALID_DATA);
2306 if (!isset_consistency_level)
2307 throw TProtocolException(TProtocolException::INVALID_DATA);
2308 return xfer;
2309 }
2310
write(::apache::thrift::protocol::TProtocol * oprot) const2311 uint32_t Cassandra_get_paged_slice_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2312 uint32_t xfer = 0;
2313 xfer += oprot->writeStructBegin("Cassandra_get_paged_slice_args");
2314 xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
2315 xfer += oprot->writeString(this->column_family);
2316 xfer += oprot->writeFieldEnd();
2317 xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 2);
2318 xfer += this->range.write(oprot);
2319 xfer += oprot->writeFieldEnd();
2320 xfer += oprot->writeFieldBegin("start_column", ::apache::thrift::protocol::T_STRING, 3);
2321 xfer += oprot->writeBinary(this->start_column);
2322 xfer += oprot->writeFieldEnd();
2323 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2324 xfer += oprot->writeI32((int32_t)this->consistency_level);
2325 xfer += oprot->writeFieldEnd();
2326 xfer += oprot->writeFieldStop();
2327 xfer += oprot->writeStructEnd();
2328 return xfer;
2329 }
2330
write(::apache::thrift::protocol::TProtocol * oprot) const2331 uint32_t Cassandra_get_paged_slice_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2332 uint32_t xfer = 0;
2333 xfer += oprot->writeStructBegin("Cassandra_get_paged_slice_pargs");
2334 xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
2335 xfer += oprot->writeString((*(this->column_family)));
2336 xfer += oprot->writeFieldEnd();
2337 xfer += oprot->writeFieldBegin("range", ::apache::thrift::protocol::T_STRUCT, 2);
2338 xfer += (*(this->range)).write(oprot);
2339 xfer += oprot->writeFieldEnd();
2340 xfer += oprot->writeFieldBegin("start_column", ::apache::thrift::protocol::T_STRING, 3);
2341 xfer += oprot->writeBinary((*(this->start_column)));
2342 xfer += oprot->writeFieldEnd();
2343 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2344 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2345 xfer += oprot->writeFieldEnd();
2346 xfer += oprot->writeFieldStop();
2347 xfer += oprot->writeStructEnd();
2348 return xfer;
2349 }
2350
read(::apache::thrift::protocol::TProtocol * iprot)2351 uint32_t Cassandra_get_paged_slice_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2352
2353 uint32_t xfer = 0;
2354 std::string fname;
2355 ::apache::thrift::protocol::TType ftype;
2356 int16_t fid;
2357
2358 xfer += iprot->readStructBegin(fname);
2359
2360 using ::apache::thrift::protocol::TProtocolException;
2361
2362
2363 while (true)
2364 {
2365 xfer += iprot->readFieldBegin(fname, ftype, fid);
2366 if (ftype == ::apache::thrift::protocol::T_STOP) {
2367 break;
2368 }
2369 switch (fid)
2370 {
2371 case 0:
2372 if (ftype == ::apache::thrift::protocol::T_LIST) {
2373 {
2374 this->success.clear();
2375 uint32_t _size233;
2376 ::apache::thrift::protocol::TType _etype236;
2377 iprot->readListBegin(_etype236, _size233);
2378 this->success.resize(_size233);
2379 uint32_t _i237;
2380 for (_i237 = 0; _i237 < _size233; ++_i237)
2381 {
2382 xfer += this->success[_i237].read(iprot);
2383 }
2384 iprot->readListEnd();
2385 }
2386 this->__isset.success = true;
2387 } else {
2388 xfer += iprot->skip(ftype);
2389 }
2390 break;
2391 case 1:
2392 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2393 xfer += this->ire.read(iprot);
2394 this->__isset.ire = true;
2395 } else {
2396 xfer += iprot->skip(ftype);
2397 }
2398 break;
2399 case 2:
2400 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2401 xfer += this->ue.read(iprot);
2402 this->__isset.ue = true;
2403 } else {
2404 xfer += iprot->skip(ftype);
2405 }
2406 break;
2407 case 3:
2408 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2409 xfer += this->te.read(iprot);
2410 this->__isset.te = true;
2411 } else {
2412 xfer += iprot->skip(ftype);
2413 }
2414 break;
2415 default:
2416 xfer += iprot->skip(ftype);
2417 break;
2418 }
2419 xfer += iprot->readFieldEnd();
2420 }
2421
2422 xfer += iprot->readStructEnd();
2423
2424 return xfer;
2425 }
2426
write(::apache::thrift::protocol::TProtocol * oprot) const2427 uint32_t Cassandra_get_paged_slice_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2428
2429 uint32_t xfer = 0;
2430
2431 xfer += oprot->writeStructBegin("Cassandra_get_paged_slice_result");
2432
2433 if (this->__isset.success) {
2434 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
2435 {
2436 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
2437 std::vector<KeySlice> ::const_iterator _iter238;
2438 for (_iter238 = this->success.begin(); _iter238 != this->success.end(); ++_iter238)
2439 {
2440 xfer += (*_iter238).write(oprot);
2441 }
2442 xfer += oprot->writeListEnd();
2443 }
2444 xfer += oprot->writeFieldEnd();
2445 } else if (this->__isset.ire) {
2446 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
2447 xfer += this->ire.write(oprot);
2448 xfer += oprot->writeFieldEnd();
2449 } else if (this->__isset.ue) {
2450 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
2451 xfer += this->ue.write(oprot);
2452 xfer += oprot->writeFieldEnd();
2453 } else if (this->__isset.te) {
2454 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
2455 xfer += this->te.write(oprot);
2456 xfer += oprot->writeFieldEnd();
2457 }
2458 xfer += oprot->writeFieldStop();
2459 xfer += oprot->writeStructEnd();
2460 return xfer;
2461 }
2462
read(::apache::thrift::protocol::TProtocol * iprot)2463 uint32_t Cassandra_get_paged_slice_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2464
2465 uint32_t xfer = 0;
2466 std::string fname;
2467 ::apache::thrift::protocol::TType ftype;
2468 int16_t fid;
2469
2470 xfer += iprot->readStructBegin(fname);
2471
2472 using ::apache::thrift::protocol::TProtocolException;
2473
2474
2475 while (true)
2476 {
2477 xfer += iprot->readFieldBegin(fname, ftype, fid);
2478 if (ftype == ::apache::thrift::protocol::T_STOP) {
2479 break;
2480 }
2481 switch (fid)
2482 {
2483 case 0:
2484 if (ftype == ::apache::thrift::protocol::T_LIST) {
2485 {
2486 (*(this->success)).clear();
2487 uint32_t _size239;
2488 ::apache::thrift::protocol::TType _etype242;
2489 iprot->readListBegin(_etype242, _size239);
2490 (*(this->success)).resize(_size239);
2491 uint32_t _i243;
2492 for (_i243 = 0; _i243 < _size239; ++_i243)
2493 {
2494 xfer += (*(this->success))[_i243].read(iprot);
2495 }
2496 iprot->readListEnd();
2497 }
2498 this->__isset.success = true;
2499 } else {
2500 xfer += iprot->skip(ftype);
2501 }
2502 break;
2503 case 1:
2504 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2505 xfer += this->ire.read(iprot);
2506 this->__isset.ire = true;
2507 } else {
2508 xfer += iprot->skip(ftype);
2509 }
2510 break;
2511 case 2:
2512 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2513 xfer += this->ue.read(iprot);
2514 this->__isset.ue = true;
2515 } else {
2516 xfer += iprot->skip(ftype);
2517 }
2518 break;
2519 case 3:
2520 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2521 xfer += this->te.read(iprot);
2522 this->__isset.te = true;
2523 } else {
2524 xfer += iprot->skip(ftype);
2525 }
2526 break;
2527 default:
2528 xfer += iprot->skip(ftype);
2529 break;
2530 }
2531 xfer += iprot->readFieldEnd();
2532 }
2533
2534 xfer += iprot->readStructEnd();
2535
2536 return xfer;
2537 }
2538
read(::apache::thrift::protocol::TProtocol * iprot)2539 uint32_t Cassandra_get_indexed_slices_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2540
2541 uint32_t xfer = 0;
2542 std::string fname;
2543 ::apache::thrift::protocol::TType ftype;
2544 int16_t fid;
2545
2546 xfer += iprot->readStructBegin(fname);
2547
2548 using ::apache::thrift::protocol::TProtocolException;
2549
2550 bool isset_column_parent = false;
2551 bool isset_index_clause = false;
2552 bool isset_column_predicate = false;
2553 bool isset_consistency_level = false;
2554
2555 while (true)
2556 {
2557 xfer += iprot->readFieldBegin(fname, ftype, fid);
2558 if (ftype == ::apache::thrift::protocol::T_STOP) {
2559 break;
2560 }
2561 switch (fid)
2562 {
2563 case 1:
2564 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2565 xfer += this->column_parent.read(iprot);
2566 isset_column_parent = true;
2567 } else {
2568 xfer += iprot->skip(ftype);
2569 }
2570 break;
2571 case 2:
2572 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2573 xfer += this->index_clause.read(iprot);
2574 isset_index_clause = true;
2575 } else {
2576 xfer += iprot->skip(ftype);
2577 }
2578 break;
2579 case 3:
2580 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2581 xfer += this->column_predicate.read(iprot);
2582 isset_column_predicate = true;
2583 } else {
2584 xfer += iprot->skip(ftype);
2585 }
2586 break;
2587 case 4:
2588 if (ftype == ::apache::thrift::protocol::T_I32) {
2589 int32_t ecast244;
2590 xfer += iprot->readI32(ecast244);
2591 this->consistency_level = (ConsistencyLevel::type)ecast244;
2592 isset_consistency_level = true;
2593 } else {
2594 xfer += iprot->skip(ftype);
2595 }
2596 break;
2597 default:
2598 xfer += iprot->skip(ftype);
2599 break;
2600 }
2601 xfer += iprot->readFieldEnd();
2602 }
2603
2604 xfer += iprot->readStructEnd();
2605
2606 if (!isset_column_parent)
2607 throw TProtocolException(TProtocolException::INVALID_DATA);
2608 if (!isset_index_clause)
2609 throw TProtocolException(TProtocolException::INVALID_DATA);
2610 if (!isset_column_predicate)
2611 throw TProtocolException(TProtocolException::INVALID_DATA);
2612 if (!isset_consistency_level)
2613 throw TProtocolException(TProtocolException::INVALID_DATA);
2614 return xfer;
2615 }
2616
write(::apache::thrift::protocol::TProtocol * oprot) const2617 uint32_t Cassandra_get_indexed_slices_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2618 uint32_t xfer = 0;
2619 xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_args");
2620 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2621 xfer += this->column_parent.write(oprot);
2622 xfer += oprot->writeFieldEnd();
2623 xfer += oprot->writeFieldBegin("index_clause", ::apache::thrift::protocol::T_STRUCT, 2);
2624 xfer += this->index_clause.write(oprot);
2625 xfer += oprot->writeFieldEnd();
2626 xfer += oprot->writeFieldBegin("column_predicate", ::apache::thrift::protocol::T_STRUCT, 3);
2627 xfer += this->column_predicate.write(oprot);
2628 xfer += oprot->writeFieldEnd();
2629 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2630 xfer += oprot->writeI32((int32_t)this->consistency_level);
2631 xfer += oprot->writeFieldEnd();
2632 xfer += oprot->writeFieldStop();
2633 xfer += oprot->writeStructEnd();
2634 return xfer;
2635 }
2636
write(::apache::thrift::protocol::TProtocol * oprot) const2637 uint32_t Cassandra_get_indexed_slices_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2638 uint32_t xfer = 0;
2639 xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_pargs");
2640 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 1);
2641 xfer += (*(this->column_parent)).write(oprot);
2642 xfer += oprot->writeFieldEnd();
2643 xfer += oprot->writeFieldBegin("index_clause", ::apache::thrift::protocol::T_STRUCT, 2);
2644 xfer += (*(this->index_clause)).write(oprot);
2645 xfer += oprot->writeFieldEnd();
2646 xfer += oprot->writeFieldBegin("column_predicate", ::apache::thrift::protocol::T_STRUCT, 3);
2647 xfer += (*(this->column_predicate)).write(oprot);
2648 xfer += oprot->writeFieldEnd();
2649 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2650 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2651 xfer += oprot->writeFieldEnd();
2652 xfer += oprot->writeFieldStop();
2653 xfer += oprot->writeStructEnd();
2654 return xfer;
2655 }
2656
read(::apache::thrift::protocol::TProtocol * iprot)2657 uint32_t Cassandra_get_indexed_slices_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2658
2659 uint32_t xfer = 0;
2660 std::string fname;
2661 ::apache::thrift::protocol::TType ftype;
2662 int16_t fid;
2663
2664 xfer += iprot->readStructBegin(fname);
2665
2666 using ::apache::thrift::protocol::TProtocolException;
2667
2668
2669 while (true)
2670 {
2671 xfer += iprot->readFieldBegin(fname, ftype, fid);
2672 if (ftype == ::apache::thrift::protocol::T_STOP) {
2673 break;
2674 }
2675 switch (fid)
2676 {
2677 case 0:
2678 if (ftype == ::apache::thrift::protocol::T_LIST) {
2679 {
2680 this->success.clear();
2681 uint32_t _size245;
2682 ::apache::thrift::protocol::TType _etype248;
2683 iprot->readListBegin(_etype248, _size245);
2684 this->success.resize(_size245);
2685 uint32_t _i249;
2686 for (_i249 = 0; _i249 < _size245; ++_i249)
2687 {
2688 xfer += this->success[_i249].read(iprot);
2689 }
2690 iprot->readListEnd();
2691 }
2692 this->__isset.success = true;
2693 } else {
2694 xfer += iprot->skip(ftype);
2695 }
2696 break;
2697 case 1:
2698 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2699 xfer += this->ire.read(iprot);
2700 this->__isset.ire = true;
2701 } else {
2702 xfer += iprot->skip(ftype);
2703 }
2704 break;
2705 case 2:
2706 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2707 xfer += this->ue.read(iprot);
2708 this->__isset.ue = true;
2709 } else {
2710 xfer += iprot->skip(ftype);
2711 }
2712 break;
2713 case 3:
2714 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2715 xfer += this->te.read(iprot);
2716 this->__isset.te = true;
2717 } else {
2718 xfer += iprot->skip(ftype);
2719 }
2720 break;
2721 default:
2722 xfer += iprot->skip(ftype);
2723 break;
2724 }
2725 xfer += iprot->readFieldEnd();
2726 }
2727
2728 xfer += iprot->readStructEnd();
2729
2730 return xfer;
2731 }
2732
write(::apache::thrift::protocol::TProtocol * oprot) const2733 uint32_t Cassandra_get_indexed_slices_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
2734
2735 uint32_t xfer = 0;
2736
2737 xfer += oprot->writeStructBegin("Cassandra_get_indexed_slices_result");
2738
2739 if (this->__isset.success) {
2740 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
2741 {
2742 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
2743 std::vector<KeySlice> ::const_iterator _iter250;
2744 for (_iter250 = this->success.begin(); _iter250 != this->success.end(); ++_iter250)
2745 {
2746 xfer += (*_iter250).write(oprot);
2747 }
2748 xfer += oprot->writeListEnd();
2749 }
2750 xfer += oprot->writeFieldEnd();
2751 } else if (this->__isset.ire) {
2752 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
2753 xfer += this->ire.write(oprot);
2754 xfer += oprot->writeFieldEnd();
2755 } else if (this->__isset.ue) {
2756 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
2757 xfer += this->ue.write(oprot);
2758 xfer += oprot->writeFieldEnd();
2759 } else if (this->__isset.te) {
2760 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
2761 xfer += this->te.write(oprot);
2762 xfer += oprot->writeFieldEnd();
2763 }
2764 xfer += oprot->writeFieldStop();
2765 xfer += oprot->writeStructEnd();
2766 return xfer;
2767 }
2768
read(::apache::thrift::protocol::TProtocol * iprot)2769 uint32_t Cassandra_get_indexed_slices_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
2770
2771 uint32_t xfer = 0;
2772 std::string fname;
2773 ::apache::thrift::protocol::TType ftype;
2774 int16_t fid;
2775
2776 xfer += iprot->readStructBegin(fname);
2777
2778 using ::apache::thrift::protocol::TProtocolException;
2779
2780
2781 while (true)
2782 {
2783 xfer += iprot->readFieldBegin(fname, ftype, fid);
2784 if (ftype == ::apache::thrift::protocol::T_STOP) {
2785 break;
2786 }
2787 switch (fid)
2788 {
2789 case 0:
2790 if (ftype == ::apache::thrift::protocol::T_LIST) {
2791 {
2792 (*(this->success)).clear();
2793 uint32_t _size251;
2794 ::apache::thrift::protocol::TType _etype254;
2795 iprot->readListBegin(_etype254, _size251);
2796 (*(this->success)).resize(_size251);
2797 uint32_t _i255;
2798 for (_i255 = 0; _i255 < _size251; ++_i255)
2799 {
2800 xfer += (*(this->success))[_i255].read(iprot);
2801 }
2802 iprot->readListEnd();
2803 }
2804 this->__isset.success = true;
2805 } else {
2806 xfer += iprot->skip(ftype);
2807 }
2808 break;
2809 case 1:
2810 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2811 xfer += this->ire.read(iprot);
2812 this->__isset.ire = true;
2813 } else {
2814 xfer += iprot->skip(ftype);
2815 }
2816 break;
2817 case 2:
2818 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2819 xfer += this->ue.read(iprot);
2820 this->__isset.ue = true;
2821 } else {
2822 xfer += iprot->skip(ftype);
2823 }
2824 break;
2825 case 3:
2826 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2827 xfer += this->te.read(iprot);
2828 this->__isset.te = true;
2829 } else {
2830 xfer += iprot->skip(ftype);
2831 }
2832 break;
2833 default:
2834 xfer += iprot->skip(ftype);
2835 break;
2836 }
2837 xfer += iprot->readFieldEnd();
2838 }
2839
2840 xfer += iprot->readStructEnd();
2841
2842 return xfer;
2843 }
2844
read(::apache::thrift::protocol::TProtocol * iprot)2845 uint32_t Cassandra_insert_args::read(::apache::thrift::protocol::TProtocol* iprot) {
2846
2847 uint32_t xfer = 0;
2848 std::string fname;
2849 ::apache::thrift::protocol::TType ftype;
2850 int16_t fid;
2851
2852 xfer += iprot->readStructBegin(fname);
2853
2854 using ::apache::thrift::protocol::TProtocolException;
2855
2856 bool isset_key = false;
2857 bool isset_column_parent = false;
2858 bool isset_column = false;
2859 bool isset_consistency_level = false;
2860
2861 while (true)
2862 {
2863 xfer += iprot->readFieldBegin(fname, ftype, fid);
2864 if (ftype == ::apache::thrift::protocol::T_STOP) {
2865 break;
2866 }
2867 switch (fid)
2868 {
2869 case 1:
2870 if (ftype == ::apache::thrift::protocol::T_STRING) {
2871 xfer += iprot->readBinary(this->key);
2872 isset_key = true;
2873 } else {
2874 xfer += iprot->skip(ftype);
2875 }
2876 break;
2877 case 2:
2878 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2879 xfer += this->column_parent.read(iprot);
2880 isset_column_parent = true;
2881 } else {
2882 xfer += iprot->skip(ftype);
2883 }
2884 break;
2885 case 3:
2886 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2887 xfer += this->column.read(iprot);
2888 isset_column = true;
2889 } else {
2890 xfer += iprot->skip(ftype);
2891 }
2892 break;
2893 case 4:
2894 if (ftype == ::apache::thrift::protocol::T_I32) {
2895 int32_t ecast256;
2896 xfer += iprot->readI32(ecast256);
2897 this->consistency_level = (ConsistencyLevel::type)ecast256;
2898 isset_consistency_level = true;
2899 } else {
2900 xfer += iprot->skip(ftype);
2901 }
2902 break;
2903 default:
2904 xfer += iprot->skip(ftype);
2905 break;
2906 }
2907 xfer += iprot->readFieldEnd();
2908 }
2909
2910 xfer += iprot->readStructEnd();
2911
2912 if (!isset_key)
2913 throw TProtocolException(TProtocolException::INVALID_DATA);
2914 if (!isset_column_parent)
2915 throw TProtocolException(TProtocolException::INVALID_DATA);
2916 if (!isset_column)
2917 throw TProtocolException(TProtocolException::INVALID_DATA);
2918 if (!isset_consistency_level)
2919 throw TProtocolException(TProtocolException::INVALID_DATA);
2920 return xfer;
2921 }
2922
write(::apache::thrift::protocol::TProtocol * oprot) const2923 uint32_t Cassandra_insert_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
2924 uint32_t xfer = 0;
2925 xfer += oprot->writeStructBegin("Cassandra_insert_args");
2926 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
2927 xfer += oprot->writeBinary(this->key);
2928 xfer += oprot->writeFieldEnd();
2929 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
2930 xfer += this->column_parent.write(oprot);
2931 xfer += oprot->writeFieldEnd();
2932 xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
2933 xfer += this->column.write(oprot);
2934 xfer += oprot->writeFieldEnd();
2935 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2936 xfer += oprot->writeI32((int32_t)this->consistency_level);
2937 xfer += oprot->writeFieldEnd();
2938 xfer += oprot->writeFieldStop();
2939 xfer += oprot->writeStructEnd();
2940 return xfer;
2941 }
2942
write(::apache::thrift::protocol::TProtocol * oprot) const2943 uint32_t Cassandra_insert_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
2944 uint32_t xfer = 0;
2945 xfer += oprot->writeStructBegin("Cassandra_insert_pargs");
2946 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
2947 xfer += oprot->writeBinary((*(this->key)));
2948 xfer += oprot->writeFieldEnd();
2949 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
2950 xfer += (*(this->column_parent)).write(oprot);
2951 xfer += oprot->writeFieldEnd();
2952 xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
2953 xfer += (*(this->column)).write(oprot);
2954 xfer += oprot->writeFieldEnd();
2955 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
2956 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
2957 xfer += oprot->writeFieldEnd();
2958 xfer += oprot->writeFieldStop();
2959 xfer += oprot->writeStructEnd();
2960 return xfer;
2961 }
2962
read(::apache::thrift::protocol::TProtocol * iprot)2963 uint32_t Cassandra_insert_result::read(::apache::thrift::protocol::TProtocol* iprot) {
2964
2965 uint32_t xfer = 0;
2966 std::string fname;
2967 ::apache::thrift::protocol::TType ftype;
2968 int16_t fid;
2969
2970 xfer += iprot->readStructBegin(fname);
2971
2972 using ::apache::thrift::protocol::TProtocolException;
2973
2974
2975 while (true)
2976 {
2977 xfer += iprot->readFieldBegin(fname, ftype, fid);
2978 if (ftype == ::apache::thrift::protocol::T_STOP) {
2979 break;
2980 }
2981 switch (fid)
2982 {
2983 case 1:
2984 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2985 xfer += this->ire.read(iprot);
2986 this->__isset.ire = true;
2987 } else {
2988 xfer += iprot->skip(ftype);
2989 }
2990 break;
2991 case 2:
2992 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
2993 xfer += this->ue.read(iprot);
2994 this->__isset.ue = true;
2995 } else {
2996 xfer += iprot->skip(ftype);
2997 }
2998 break;
2999 case 3:
3000 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3001 xfer += this->te.read(iprot);
3002 this->__isset.te = true;
3003 } else {
3004 xfer += iprot->skip(ftype);
3005 }
3006 break;
3007 default:
3008 xfer += iprot->skip(ftype);
3009 break;
3010 }
3011 xfer += iprot->readFieldEnd();
3012 }
3013
3014 xfer += iprot->readStructEnd();
3015
3016 return xfer;
3017 }
3018
write(::apache::thrift::protocol::TProtocol * oprot) const3019 uint32_t Cassandra_insert_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3020
3021 uint32_t xfer = 0;
3022
3023 xfer += oprot->writeStructBegin("Cassandra_insert_result");
3024
3025 if (this->__isset.ire) {
3026 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3027 xfer += this->ire.write(oprot);
3028 xfer += oprot->writeFieldEnd();
3029 } else if (this->__isset.ue) {
3030 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3031 xfer += this->ue.write(oprot);
3032 xfer += oprot->writeFieldEnd();
3033 } else if (this->__isset.te) {
3034 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3035 xfer += this->te.write(oprot);
3036 xfer += oprot->writeFieldEnd();
3037 }
3038 xfer += oprot->writeFieldStop();
3039 xfer += oprot->writeStructEnd();
3040 return xfer;
3041 }
3042
read(::apache::thrift::protocol::TProtocol * iprot)3043 uint32_t Cassandra_insert_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3044
3045 uint32_t xfer = 0;
3046 std::string fname;
3047 ::apache::thrift::protocol::TType ftype;
3048 int16_t fid;
3049
3050 xfer += iprot->readStructBegin(fname);
3051
3052 using ::apache::thrift::protocol::TProtocolException;
3053
3054
3055 while (true)
3056 {
3057 xfer += iprot->readFieldBegin(fname, ftype, fid);
3058 if (ftype == ::apache::thrift::protocol::T_STOP) {
3059 break;
3060 }
3061 switch (fid)
3062 {
3063 case 1:
3064 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3065 xfer += this->ire.read(iprot);
3066 this->__isset.ire = true;
3067 } else {
3068 xfer += iprot->skip(ftype);
3069 }
3070 break;
3071 case 2:
3072 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3073 xfer += this->ue.read(iprot);
3074 this->__isset.ue = true;
3075 } else {
3076 xfer += iprot->skip(ftype);
3077 }
3078 break;
3079 case 3:
3080 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3081 xfer += this->te.read(iprot);
3082 this->__isset.te = true;
3083 } else {
3084 xfer += iprot->skip(ftype);
3085 }
3086 break;
3087 default:
3088 xfer += iprot->skip(ftype);
3089 break;
3090 }
3091 xfer += iprot->readFieldEnd();
3092 }
3093
3094 xfer += iprot->readStructEnd();
3095
3096 return xfer;
3097 }
3098
read(::apache::thrift::protocol::TProtocol * iprot)3099 uint32_t Cassandra_add_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3100
3101 uint32_t xfer = 0;
3102 std::string fname;
3103 ::apache::thrift::protocol::TType ftype;
3104 int16_t fid;
3105
3106 xfer += iprot->readStructBegin(fname);
3107
3108 using ::apache::thrift::protocol::TProtocolException;
3109
3110 bool isset_key = false;
3111 bool isset_column_parent = false;
3112 bool isset_column = false;
3113 bool isset_consistency_level = false;
3114
3115 while (true)
3116 {
3117 xfer += iprot->readFieldBegin(fname, ftype, fid);
3118 if (ftype == ::apache::thrift::protocol::T_STOP) {
3119 break;
3120 }
3121 switch (fid)
3122 {
3123 case 1:
3124 if (ftype == ::apache::thrift::protocol::T_STRING) {
3125 xfer += iprot->readBinary(this->key);
3126 isset_key = true;
3127 } else {
3128 xfer += iprot->skip(ftype);
3129 }
3130 break;
3131 case 2:
3132 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3133 xfer += this->column_parent.read(iprot);
3134 isset_column_parent = true;
3135 } else {
3136 xfer += iprot->skip(ftype);
3137 }
3138 break;
3139 case 3:
3140 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3141 xfer += this->column.read(iprot);
3142 isset_column = true;
3143 } else {
3144 xfer += iprot->skip(ftype);
3145 }
3146 break;
3147 case 4:
3148 if (ftype == ::apache::thrift::protocol::T_I32) {
3149 int32_t ecast257;
3150 xfer += iprot->readI32(ecast257);
3151 this->consistency_level = (ConsistencyLevel::type)ecast257;
3152 isset_consistency_level = true;
3153 } else {
3154 xfer += iprot->skip(ftype);
3155 }
3156 break;
3157 default:
3158 xfer += iprot->skip(ftype);
3159 break;
3160 }
3161 xfer += iprot->readFieldEnd();
3162 }
3163
3164 xfer += iprot->readStructEnd();
3165
3166 if (!isset_key)
3167 throw TProtocolException(TProtocolException::INVALID_DATA);
3168 if (!isset_column_parent)
3169 throw TProtocolException(TProtocolException::INVALID_DATA);
3170 if (!isset_column)
3171 throw TProtocolException(TProtocolException::INVALID_DATA);
3172 if (!isset_consistency_level)
3173 throw TProtocolException(TProtocolException::INVALID_DATA);
3174 return xfer;
3175 }
3176
write(::apache::thrift::protocol::TProtocol * oprot) const3177 uint32_t Cassandra_add_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3178 uint32_t xfer = 0;
3179 xfer += oprot->writeStructBegin("Cassandra_add_args");
3180 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3181 xfer += oprot->writeBinary(this->key);
3182 xfer += oprot->writeFieldEnd();
3183 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
3184 xfer += this->column_parent.write(oprot);
3185 xfer += oprot->writeFieldEnd();
3186 xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
3187 xfer += this->column.write(oprot);
3188 xfer += oprot->writeFieldEnd();
3189 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3190 xfer += oprot->writeI32((int32_t)this->consistency_level);
3191 xfer += oprot->writeFieldEnd();
3192 xfer += oprot->writeFieldStop();
3193 xfer += oprot->writeStructEnd();
3194 return xfer;
3195 }
3196
write(::apache::thrift::protocol::TProtocol * oprot) const3197 uint32_t Cassandra_add_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3198 uint32_t xfer = 0;
3199 xfer += oprot->writeStructBegin("Cassandra_add_pargs");
3200 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3201 xfer += oprot->writeBinary((*(this->key)));
3202 xfer += oprot->writeFieldEnd();
3203 xfer += oprot->writeFieldBegin("column_parent", ::apache::thrift::protocol::T_STRUCT, 2);
3204 xfer += (*(this->column_parent)).write(oprot);
3205 xfer += oprot->writeFieldEnd();
3206 xfer += oprot->writeFieldBegin("column", ::apache::thrift::protocol::T_STRUCT, 3);
3207 xfer += (*(this->column)).write(oprot);
3208 xfer += oprot->writeFieldEnd();
3209 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3210 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
3211 xfer += oprot->writeFieldEnd();
3212 xfer += oprot->writeFieldStop();
3213 xfer += oprot->writeStructEnd();
3214 return xfer;
3215 }
3216
read(::apache::thrift::protocol::TProtocol * iprot)3217 uint32_t Cassandra_add_result::read(::apache::thrift::protocol::TProtocol* iprot) {
3218
3219 uint32_t xfer = 0;
3220 std::string fname;
3221 ::apache::thrift::protocol::TType ftype;
3222 int16_t fid;
3223
3224 xfer += iprot->readStructBegin(fname);
3225
3226 using ::apache::thrift::protocol::TProtocolException;
3227
3228
3229 while (true)
3230 {
3231 xfer += iprot->readFieldBegin(fname, ftype, fid);
3232 if (ftype == ::apache::thrift::protocol::T_STOP) {
3233 break;
3234 }
3235 switch (fid)
3236 {
3237 case 1:
3238 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3239 xfer += this->ire.read(iprot);
3240 this->__isset.ire = true;
3241 } else {
3242 xfer += iprot->skip(ftype);
3243 }
3244 break;
3245 case 2:
3246 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3247 xfer += this->ue.read(iprot);
3248 this->__isset.ue = true;
3249 } else {
3250 xfer += iprot->skip(ftype);
3251 }
3252 break;
3253 case 3:
3254 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3255 xfer += this->te.read(iprot);
3256 this->__isset.te = true;
3257 } else {
3258 xfer += iprot->skip(ftype);
3259 }
3260 break;
3261 default:
3262 xfer += iprot->skip(ftype);
3263 break;
3264 }
3265 xfer += iprot->readFieldEnd();
3266 }
3267
3268 xfer += iprot->readStructEnd();
3269
3270 return xfer;
3271 }
3272
write(::apache::thrift::protocol::TProtocol * oprot) const3273 uint32_t Cassandra_add_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3274
3275 uint32_t xfer = 0;
3276
3277 xfer += oprot->writeStructBegin("Cassandra_add_result");
3278
3279 if (this->__isset.ire) {
3280 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3281 xfer += this->ire.write(oprot);
3282 xfer += oprot->writeFieldEnd();
3283 } else if (this->__isset.ue) {
3284 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3285 xfer += this->ue.write(oprot);
3286 xfer += oprot->writeFieldEnd();
3287 } else if (this->__isset.te) {
3288 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3289 xfer += this->te.write(oprot);
3290 xfer += oprot->writeFieldEnd();
3291 }
3292 xfer += oprot->writeFieldStop();
3293 xfer += oprot->writeStructEnd();
3294 return xfer;
3295 }
3296
read(::apache::thrift::protocol::TProtocol * iprot)3297 uint32_t Cassandra_add_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3298
3299 uint32_t xfer = 0;
3300 std::string fname;
3301 ::apache::thrift::protocol::TType ftype;
3302 int16_t fid;
3303
3304 xfer += iprot->readStructBegin(fname);
3305
3306 using ::apache::thrift::protocol::TProtocolException;
3307
3308
3309 while (true)
3310 {
3311 xfer += iprot->readFieldBegin(fname, ftype, fid);
3312 if (ftype == ::apache::thrift::protocol::T_STOP) {
3313 break;
3314 }
3315 switch (fid)
3316 {
3317 case 1:
3318 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3319 xfer += this->ire.read(iprot);
3320 this->__isset.ire = true;
3321 } else {
3322 xfer += iprot->skip(ftype);
3323 }
3324 break;
3325 case 2:
3326 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3327 xfer += this->ue.read(iprot);
3328 this->__isset.ue = true;
3329 } else {
3330 xfer += iprot->skip(ftype);
3331 }
3332 break;
3333 case 3:
3334 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3335 xfer += this->te.read(iprot);
3336 this->__isset.te = true;
3337 } else {
3338 xfer += iprot->skip(ftype);
3339 }
3340 break;
3341 default:
3342 xfer += iprot->skip(ftype);
3343 break;
3344 }
3345 xfer += iprot->readFieldEnd();
3346 }
3347
3348 xfer += iprot->readStructEnd();
3349
3350 return xfer;
3351 }
3352
read(::apache::thrift::protocol::TProtocol * iprot)3353 uint32_t Cassandra_remove_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3354
3355 uint32_t xfer = 0;
3356 std::string fname;
3357 ::apache::thrift::protocol::TType ftype;
3358 int16_t fid;
3359
3360 xfer += iprot->readStructBegin(fname);
3361
3362 using ::apache::thrift::protocol::TProtocolException;
3363
3364 bool isset_key = false;
3365 bool isset_column_path = false;
3366 bool isset_timestamp = false;
3367
3368 while (true)
3369 {
3370 xfer += iprot->readFieldBegin(fname, ftype, fid);
3371 if (ftype == ::apache::thrift::protocol::T_STOP) {
3372 break;
3373 }
3374 switch (fid)
3375 {
3376 case 1:
3377 if (ftype == ::apache::thrift::protocol::T_STRING) {
3378 xfer += iprot->readBinary(this->key);
3379 isset_key = true;
3380 } else {
3381 xfer += iprot->skip(ftype);
3382 }
3383 break;
3384 case 2:
3385 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3386 xfer += this->column_path.read(iprot);
3387 isset_column_path = true;
3388 } else {
3389 xfer += iprot->skip(ftype);
3390 }
3391 break;
3392 case 3:
3393 if (ftype == ::apache::thrift::protocol::T_I64) {
3394 xfer += iprot->readI64(this->timestamp);
3395 isset_timestamp = true;
3396 } else {
3397 xfer += iprot->skip(ftype);
3398 }
3399 break;
3400 case 4:
3401 if (ftype == ::apache::thrift::protocol::T_I32) {
3402 int32_t ecast258;
3403 xfer += iprot->readI32(ecast258);
3404 this->consistency_level = (ConsistencyLevel::type)ecast258;
3405 this->__isset.consistency_level = true;
3406 } else {
3407 xfer += iprot->skip(ftype);
3408 }
3409 break;
3410 default:
3411 xfer += iprot->skip(ftype);
3412 break;
3413 }
3414 xfer += iprot->readFieldEnd();
3415 }
3416
3417 xfer += iprot->readStructEnd();
3418
3419 if (!isset_key)
3420 throw TProtocolException(TProtocolException::INVALID_DATA);
3421 if (!isset_column_path)
3422 throw TProtocolException(TProtocolException::INVALID_DATA);
3423 if (!isset_timestamp)
3424 throw TProtocolException(TProtocolException::INVALID_DATA);
3425 return xfer;
3426 }
3427
write(::apache::thrift::protocol::TProtocol * oprot) const3428 uint32_t Cassandra_remove_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3429 uint32_t xfer = 0;
3430 xfer += oprot->writeStructBegin("Cassandra_remove_args");
3431 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3432 xfer += oprot->writeBinary(this->key);
3433 xfer += oprot->writeFieldEnd();
3434 xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
3435 xfer += this->column_path.write(oprot);
3436 xfer += oprot->writeFieldEnd();
3437 xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
3438 xfer += oprot->writeI64(this->timestamp);
3439 xfer += oprot->writeFieldEnd();
3440 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3441 xfer += oprot->writeI32((int32_t)this->consistency_level);
3442 xfer += oprot->writeFieldEnd();
3443 xfer += oprot->writeFieldStop();
3444 xfer += oprot->writeStructEnd();
3445 return xfer;
3446 }
3447
write(::apache::thrift::protocol::TProtocol * oprot) const3448 uint32_t Cassandra_remove_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3449 uint32_t xfer = 0;
3450 xfer += oprot->writeStructBegin("Cassandra_remove_pargs");
3451 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3452 xfer += oprot->writeBinary((*(this->key)));
3453 xfer += oprot->writeFieldEnd();
3454 xfer += oprot->writeFieldBegin("column_path", ::apache::thrift::protocol::T_STRUCT, 2);
3455 xfer += (*(this->column_path)).write(oprot);
3456 xfer += oprot->writeFieldEnd();
3457 xfer += oprot->writeFieldBegin("timestamp", ::apache::thrift::protocol::T_I64, 3);
3458 xfer += oprot->writeI64((*(this->timestamp)));
3459 xfer += oprot->writeFieldEnd();
3460 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 4);
3461 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
3462 xfer += oprot->writeFieldEnd();
3463 xfer += oprot->writeFieldStop();
3464 xfer += oprot->writeStructEnd();
3465 return xfer;
3466 }
3467
read(::apache::thrift::protocol::TProtocol * iprot)3468 uint32_t Cassandra_remove_result::read(::apache::thrift::protocol::TProtocol* iprot) {
3469
3470 uint32_t xfer = 0;
3471 std::string fname;
3472 ::apache::thrift::protocol::TType ftype;
3473 int16_t fid;
3474
3475 xfer += iprot->readStructBegin(fname);
3476
3477 using ::apache::thrift::protocol::TProtocolException;
3478
3479
3480 while (true)
3481 {
3482 xfer += iprot->readFieldBegin(fname, ftype, fid);
3483 if (ftype == ::apache::thrift::protocol::T_STOP) {
3484 break;
3485 }
3486 switch (fid)
3487 {
3488 case 1:
3489 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3490 xfer += this->ire.read(iprot);
3491 this->__isset.ire = true;
3492 } else {
3493 xfer += iprot->skip(ftype);
3494 }
3495 break;
3496 case 2:
3497 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3498 xfer += this->ue.read(iprot);
3499 this->__isset.ue = true;
3500 } else {
3501 xfer += iprot->skip(ftype);
3502 }
3503 break;
3504 case 3:
3505 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3506 xfer += this->te.read(iprot);
3507 this->__isset.te = true;
3508 } else {
3509 xfer += iprot->skip(ftype);
3510 }
3511 break;
3512 default:
3513 xfer += iprot->skip(ftype);
3514 break;
3515 }
3516 xfer += iprot->readFieldEnd();
3517 }
3518
3519 xfer += iprot->readStructEnd();
3520
3521 return xfer;
3522 }
3523
write(::apache::thrift::protocol::TProtocol * oprot) const3524 uint32_t Cassandra_remove_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3525
3526 uint32_t xfer = 0;
3527
3528 xfer += oprot->writeStructBegin("Cassandra_remove_result");
3529
3530 if (this->__isset.ire) {
3531 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3532 xfer += this->ire.write(oprot);
3533 xfer += oprot->writeFieldEnd();
3534 } else if (this->__isset.ue) {
3535 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3536 xfer += this->ue.write(oprot);
3537 xfer += oprot->writeFieldEnd();
3538 } else if (this->__isset.te) {
3539 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3540 xfer += this->te.write(oprot);
3541 xfer += oprot->writeFieldEnd();
3542 }
3543 xfer += oprot->writeFieldStop();
3544 xfer += oprot->writeStructEnd();
3545 return xfer;
3546 }
3547
read(::apache::thrift::protocol::TProtocol * iprot)3548 uint32_t Cassandra_remove_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3549
3550 uint32_t xfer = 0;
3551 std::string fname;
3552 ::apache::thrift::protocol::TType ftype;
3553 int16_t fid;
3554
3555 xfer += iprot->readStructBegin(fname);
3556
3557 using ::apache::thrift::protocol::TProtocolException;
3558
3559
3560 while (true)
3561 {
3562 xfer += iprot->readFieldBegin(fname, ftype, fid);
3563 if (ftype == ::apache::thrift::protocol::T_STOP) {
3564 break;
3565 }
3566 switch (fid)
3567 {
3568 case 1:
3569 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3570 xfer += this->ire.read(iprot);
3571 this->__isset.ire = true;
3572 } else {
3573 xfer += iprot->skip(ftype);
3574 }
3575 break;
3576 case 2:
3577 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3578 xfer += this->ue.read(iprot);
3579 this->__isset.ue = true;
3580 } else {
3581 xfer += iprot->skip(ftype);
3582 }
3583 break;
3584 case 3:
3585 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3586 xfer += this->te.read(iprot);
3587 this->__isset.te = true;
3588 } else {
3589 xfer += iprot->skip(ftype);
3590 }
3591 break;
3592 default:
3593 xfer += iprot->skip(ftype);
3594 break;
3595 }
3596 xfer += iprot->readFieldEnd();
3597 }
3598
3599 xfer += iprot->readStructEnd();
3600
3601 return xfer;
3602 }
3603
read(::apache::thrift::protocol::TProtocol * iprot)3604 uint32_t Cassandra_remove_counter_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3605
3606 uint32_t xfer = 0;
3607 std::string fname;
3608 ::apache::thrift::protocol::TType ftype;
3609 int16_t fid;
3610
3611 xfer += iprot->readStructBegin(fname);
3612
3613 using ::apache::thrift::protocol::TProtocolException;
3614
3615 bool isset_key = false;
3616 bool isset_path = false;
3617 bool isset_consistency_level = false;
3618
3619 while (true)
3620 {
3621 xfer += iprot->readFieldBegin(fname, ftype, fid);
3622 if (ftype == ::apache::thrift::protocol::T_STOP) {
3623 break;
3624 }
3625 switch (fid)
3626 {
3627 case 1:
3628 if (ftype == ::apache::thrift::protocol::T_STRING) {
3629 xfer += iprot->readBinary(this->key);
3630 isset_key = true;
3631 } else {
3632 xfer += iprot->skip(ftype);
3633 }
3634 break;
3635 case 2:
3636 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3637 xfer += this->path.read(iprot);
3638 isset_path = true;
3639 } else {
3640 xfer += iprot->skip(ftype);
3641 }
3642 break;
3643 case 3:
3644 if (ftype == ::apache::thrift::protocol::T_I32) {
3645 int32_t ecast259;
3646 xfer += iprot->readI32(ecast259);
3647 this->consistency_level = (ConsistencyLevel::type)ecast259;
3648 isset_consistency_level = true;
3649 } else {
3650 xfer += iprot->skip(ftype);
3651 }
3652 break;
3653 default:
3654 xfer += iprot->skip(ftype);
3655 break;
3656 }
3657 xfer += iprot->readFieldEnd();
3658 }
3659
3660 xfer += iprot->readStructEnd();
3661
3662 if (!isset_key)
3663 throw TProtocolException(TProtocolException::INVALID_DATA);
3664 if (!isset_path)
3665 throw TProtocolException(TProtocolException::INVALID_DATA);
3666 if (!isset_consistency_level)
3667 throw TProtocolException(TProtocolException::INVALID_DATA);
3668 return xfer;
3669 }
3670
write(::apache::thrift::protocol::TProtocol * oprot) const3671 uint32_t Cassandra_remove_counter_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3672 uint32_t xfer = 0;
3673 xfer += oprot->writeStructBegin("Cassandra_remove_counter_args");
3674 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3675 xfer += oprot->writeBinary(this->key);
3676 xfer += oprot->writeFieldEnd();
3677 xfer += oprot->writeFieldBegin("path", ::apache::thrift::protocol::T_STRUCT, 2);
3678 xfer += this->path.write(oprot);
3679 xfer += oprot->writeFieldEnd();
3680 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
3681 xfer += oprot->writeI32((int32_t)this->consistency_level);
3682 xfer += oprot->writeFieldEnd();
3683 xfer += oprot->writeFieldStop();
3684 xfer += oprot->writeStructEnd();
3685 return xfer;
3686 }
3687
write(::apache::thrift::protocol::TProtocol * oprot) const3688 uint32_t Cassandra_remove_counter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3689 uint32_t xfer = 0;
3690 xfer += oprot->writeStructBegin("Cassandra_remove_counter_pargs");
3691 xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1);
3692 xfer += oprot->writeBinary((*(this->key)));
3693 xfer += oprot->writeFieldEnd();
3694 xfer += oprot->writeFieldBegin("path", ::apache::thrift::protocol::T_STRUCT, 2);
3695 xfer += (*(this->path)).write(oprot);
3696 xfer += oprot->writeFieldEnd();
3697 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 3);
3698 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
3699 xfer += oprot->writeFieldEnd();
3700 xfer += oprot->writeFieldStop();
3701 xfer += oprot->writeStructEnd();
3702 return xfer;
3703 }
3704
read(::apache::thrift::protocol::TProtocol * iprot)3705 uint32_t Cassandra_remove_counter_result::read(::apache::thrift::protocol::TProtocol* iprot) {
3706
3707 uint32_t xfer = 0;
3708 std::string fname;
3709 ::apache::thrift::protocol::TType ftype;
3710 int16_t fid;
3711
3712 xfer += iprot->readStructBegin(fname);
3713
3714 using ::apache::thrift::protocol::TProtocolException;
3715
3716
3717 while (true)
3718 {
3719 xfer += iprot->readFieldBegin(fname, ftype, fid);
3720 if (ftype == ::apache::thrift::protocol::T_STOP) {
3721 break;
3722 }
3723 switch (fid)
3724 {
3725 case 1:
3726 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3727 xfer += this->ire.read(iprot);
3728 this->__isset.ire = true;
3729 } else {
3730 xfer += iprot->skip(ftype);
3731 }
3732 break;
3733 case 2:
3734 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3735 xfer += this->ue.read(iprot);
3736 this->__isset.ue = true;
3737 } else {
3738 xfer += iprot->skip(ftype);
3739 }
3740 break;
3741 case 3:
3742 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3743 xfer += this->te.read(iprot);
3744 this->__isset.te = true;
3745 } else {
3746 xfer += iprot->skip(ftype);
3747 }
3748 break;
3749 default:
3750 xfer += iprot->skip(ftype);
3751 break;
3752 }
3753 xfer += iprot->readFieldEnd();
3754 }
3755
3756 xfer += iprot->readStructEnd();
3757
3758 return xfer;
3759 }
3760
write(::apache::thrift::protocol::TProtocol * oprot) const3761 uint32_t Cassandra_remove_counter_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
3762
3763 uint32_t xfer = 0;
3764
3765 xfer += oprot->writeStructBegin("Cassandra_remove_counter_result");
3766
3767 if (this->__isset.ire) {
3768 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
3769 xfer += this->ire.write(oprot);
3770 xfer += oprot->writeFieldEnd();
3771 } else if (this->__isset.ue) {
3772 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
3773 xfer += this->ue.write(oprot);
3774 xfer += oprot->writeFieldEnd();
3775 } else if (this->__isset.te) {
3776 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
3777 xfer += this->te.write(oprot);
3778 xfer += oprot->writeFieldEnd();
3779 }
3780 xfer += oprot->writeFieldStop();
3781 xfer += oprot->writeStructEnd();
3782 return xfer;
3783 }
3784
read(::apache::thrift::protocol::TProtocol * iprot)3785 uint32_t Cassandra_remove_counter_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
3786
3787 uint32_t xfer = 0;
3788 std::string fname;
3789 ::apache::thrift::protocol::TType ftype;
3790 int16_t fid;
3791
3792 xfer += iprot->readStructBegin(fname);
3793
3794 using ::apache::thrift::protocol::TProtocolException;
3795
3796
3797 while (true)
3798 {
3799 xfer += iprot->readFieldBegin(fname, ftype, fid);
3800 if (ftype == ::apache::thrift::protocol::T_STOP) {
3801 break;
3802 }
3803 switch (fid)
3804 {
3805 case 1:
3806 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3807 xfer += this->ire.read(iprot);
3808 this->__isset.ire = true;
3809 } else {
3810 xfer += iprot->skip(ftype);
3811 }
3812 break;
3813 case 2:
3814 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3815 xfer += this->ue.read(iprot);
3816 this->__isset.ue = true;
3817 } else {
3818 xfer += iprot->skip(ftype);
3819 }
3820 break;
3821 case 3:
3822 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
3823 xfer += this->te.read(iprot);
3824 this->__isset.te = true;
3825 } else {
3826 xfer += iprot->skip(ftype);
3827 }
3828 break;
3829 default:
3830 xfer += iprot->skip(ftype);
3831 break;
3832 }
3833 xfer += iprot->readFieldEnd();
3834 }
3835
3836 xfer += iprot->readStructEnd();
3837
3838 return xfer;
3839 }
3840
read(::apache::thrift::protocol::TProtocol * iprot)3841 uint32_t Cassandra_batch_mutate_args::read(::apache::thrift::protocol::TProtocol* iprot) {
3842
3843 uint32_t xfer = 0;
3844 std::string fname;
3845 ::apache::thrift::protocol::TType ftype;
3846 int16_t fid;
3847
3848 xfer += iprot->readStructBegin(fname);
3849
3850 using ::apache::thrift::protocol::TProtocolException;
3851
3852 bool isset_mutation_map = false;
3853 bool isset_consistency_level = false;
3854
3855 while (true)
3856 {
3857 xfer += iprot->readFieldBegin(fname, ftype, fid);
3858 if (ftype == ::apache::thrift::protocol::T_STOP) {
3859 break;
3860 }
3861 switch (fid)
3862 {
3863 case 1:
3864 if (ftype == ::apache::thrift::protocol::T_MAP) {
3865 {
3866 this->mutation_map.clear();
3867 uint32_t _size260;
3868 ::apache::thrift::protocol::TType _ktype261;
3869 ::apache::thrift::protocol::TType _vtype262;
3870 iprot->readMapBegin(_ktype261, _vtype262, _size260);
3871 uint32_t _i264;
3872 for (_i264 = 0; _i264 < _size260; ++_i264)
3873 {
3874 std::string _key265;
3875 xfer += iprot->readBinary(_key265);
3876 std::map<std::string, std::vector<Mutation> > & _val266 = this->mutation_map[_key265];
3877 {
3878 _val266.clear();
3879 uint32_t _size267;
3880 ::apache::thrift::protocol::TType _ktype268;
3881 ::apache::thrift::protocol::TType _vtype269;
3882 iprot->readMapBegin(_ktype268, _vtype269, _size267);
3883 uint32_t _i271;
3884 for (_i271 = 0; _i271 < _size267; ++_i271)
3885 {
3886 std::string _key272;
3887 xfer += iprot->readString(_key272);
3888 std::vector<Mutation> & _val273 = _val266[_key272];
3889 {
3890 _val273.clear();
3891 uint32_t _size274;
3892 ::apache::thrift::protocol::TType _etype277;
3893 iprot->readListBegin(_etype277, _size274);
3894 _val273.resize(_size274);
3895 uint32_t _i278;
3896 for (_i278 = 0; _i278 < _size274; ++_i278)
3897 {
3898 xfer += _val273[_i278].read(iprot);
3899 }
3900 iprot->readListEnd();
3901 }
3902 }
3903 iprot->readMapEnd();
3904 }
3905 }
3906 iprot->readMapEnd();
3907 }
3908 isset_mutation_map = true;
3909 } else {
3910 xfer += iprot->skip(ftype);
3911 }
3912 break;
3913 case 2:
3914 if (ftype == ::apache::thrift::protocol::T_I32) {
3915 int32_t ecast279;
3916 xfer += iprot->readI32(ecast279);
3917 this->consistency_level = (ConsistencyLevel::type)ecast279;
3918 isset_consistency_level = true;
3919 } else {
3920 xfer += iprot->skip(ftype);
3921 }
3922 break;
3923 default:
3924 xfer += iprot->skip(ftype);
3925 break;
3926 }
3927 xfer += iprot->readFieldEnd();
3928 }
3929
3930 xfer += iprot->readStructEnd();
3931
3932 if (!isset_mutation_map)
3933 throw TProtocolException(TProtocolException::INVALID_DATA);
3934 if (!isset_consistency_level)
3935 throw TProtocolException(TProtocolException::INVALID_DATA);
3936 return xfer;
3937 }
3938
write(::apache::thrift::protocol::TProtocol * oprot) const3939 uint32_t Cassandra_batch_mutate_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
3940 uint32_t xfer = 0;
3941 xfer += oprot->writeStructBegin("Cassandra_batch_mutate_args");
3942 xfer += oprot->writeFieldBegin("mutation_map", ::apache::thrift::protocol::T_MAP, 1);
3943 {
3944 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast<uint32_t>(this->mutation_map.size()));
3945 std::map<std::string, std::map<std::string, std::vector<Mutation> > > ::const_iterator _iter280;
3946 for (_iter280 = this->mutation_map.begin(); _iter280 != this->mutation_map.end(); ++_iter280)
3947 {
3948 xfer += oprot->writeBinary(_iter280->first);
3949 {
3950 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(_iter280->second.size()));
3951 std::map<std::string, std::vector<Mutation> > ::const_iterator _iter281;
3952 for (_iter281 = _iter280->second.begin(); _iter281 != _iter280->second.end(); ++_iter281)
3953 {
3954 xfer += oprot->writeString(_iter281->first);
3955 {
3956 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter281->second.size()));
3957 std::vector<Mutation> ::const_iterator _iter282;
3958 for (_iter282 = _iter281->second.begin(); _iter282 != _iter281->second.end(); ++_iter282)
3959 {
3960 xfer += (*_iter282).write(oprot);
3961 }
3962 xfer += oprot->writeListEnd();
3963 }
3964 }
3965 xfer += oprot->writeMapEnd();
3966 }
3967 }
3968 xfer += oprot->writeMapEnd();
3969 }
3970 xfer += oprot->writeFieldEnd();
3971 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 2);
3972 xfer += oprot->writeI32((int32_t)this->consistency_level);
3973 xfer += oprot->writeFieldEnd();
3974 xfer += oprot->writeFieldStop();
3975 xfer += oprot->writeStructEnd();
3976 return xfer;
3977 }
3978
write(::apache::thrift::protocol::TProtocol * oprot) const3979 uint32_t Cassandra_batch_mutate_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
3980 uint32_t xfer = 0;
3981 xfer += oprot->writeStructBegin("Cassandra_batch_mutate_pargs");
3982 xfer += oprot->writeFieldBegin("mutation_map", ::apache::thrift::protocol::T_MAP, 1);
3983 {
3984 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast<uint32_t>((*(this->mutation_map)).size()));
3985 std::map<std::string, std::map<std::string, std::vector<Mutation> > > ::const_iterator _iter283;
3986 for (_iter283 = (*(this->mutation_map)).begin(); _iter283 != (*(this->mutation_map)).end(); ++_iter283)
3987 {
3988 xfer += oprot->writeBinary(_iter283->first);
3989 {
3990 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(_iter283->second.size()));
3991 std::map<std::string, std::vector<Mutation> > ::const_iterator _iter284;
3992 for (_iter284 = _iter283->second.begin(); _iter284 != _iter283->second.end(); ++_iter284)
3993 {
3994 xfer += oprot->writeString(_iter284->first);
3995 {
3996 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(_iter284->second.size()));
3997 std::vector<Mutation> ::const_iterator _iter285;
3998 for (_iter285 = _iter284->second.begin(); _iter285 != _iter284->second.end(); ++_iter285)
3999 {
4000 xfer += (*_iter285).write(oprot);
4001 }
4002 xfer += oprot->writeListEnd();
4003 }
4004 }
4005 xfer += oprot->writeMapEnd();
4006 }
4007 }
4008 xfer += oprot->writeMapEnd();
4009 }
4010 xfer += oprot->writeFieldEnd();
4011 xfer += oprot->writeFieldBegin("consistency_level", ::apache::thrift::protocol::T_I32, 2);
4012 xfer += oprot->writeI32((int32_t)(*(this->consistency_level)));
4013 xfer += oprot->writeFieldEnd();
4014 xfer += oprot->writeFieldStop();
4015 xfer += oprot->writeStructEnd();
4016 return xfer;
4017 }
4018
read(::apache::thrift::protocol::TProtocol * iprot)4019 uint32_t Cassandra_batch_mutate_result::read(::apache::thrift::protocol::TProtocol* iprot) {
4020
4021 uint32_t xfer = 0;
4022 std::string fname;
4023 ::apache::thrift::protocol::TType ftype;
4024 int16_t fid;
4025
4026 xfer += iprot->readStructBegin(fname);
4027
4028 using ::apache::thrift::protocol::TProtocolException;
4029
4030
4031 while (true)
4032 {
4033 xfer += iprot->readFieldBegin(fname, ftype, fid);
4034 if (ftype == ::apache::thrift::protocol::T_STOP) {
4035 break;
4036 }
4037 switch (fid)
4038 {
4039 case 1:
4040 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4041 xfer += this->ire.read(iprot);
4042 this->__isset.ire = true;
4043 } else {
4044 xfer += iprot->skip(ftype);
4045 }
4046 break;
4047 case 2:
4048 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4049 xfer += this->ue.read(iprot);
4050 this->__isset.ue = true;
4051 } else {
4052 xfer += iprot->skip(ftype);
4053 }
4054 break;
4055 case 3:
4056 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4057 xfer += this->te.read(iprot);
4058 this->__isset.te = true;
4059 } else {
4060 xfer += iprot->skip(ftype);
4061 }
4062 break;
4063 default:
4064 xfer += iprot->skip(ftype);
4065 break;
4066 }
4067 xfer += iprot->readFieldEnd();
4068 }
4069
4070 xfer += iprot->readStructEnd();
4071
4072 return xfer;
4073 }
4074
write(::apache::thrift::protocol::TProtocol * oprot) const4075 uint32_t Cassandra_batch_mutate_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
4076
4077 uint32_t xfer = 0;
4078
4079 xfer += oprot->writeStructBegin("Cassandra_batch_mutate_result");
4080
4081 if (this->__isset.ire) {
4082 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
4083 xfer += this->ire.write(oprot);
4084 xfer += oprot->writeFieldEnd();
4085 } else if (this->__isset.ue) {
4086 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
4087 xfer += this->ue.write(oprot);
4088 xfer += oprot->writeFieldEnd();
4089 } else if (this->__isset.te) {
4090 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
4091 xfer += this->te.write(oprot);
4092 xfer += oprot->writeFieldEnd();
4093 }
4094 xfer += oprot->writeFieldStop();
4095 xfer += oprot->writeStructEnd();
4096 return xfer;
4097 }
4098
read(::apache::thrift::protocol::TProtocol * iprot)4099 uint32_t Cassandra_batch_mutate_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
4100
4101 uint32_t xfer = 0;
4102 std::string fname;
4103 ::apache::thrift::protocol::TType ftype;
4104 int16_t fid;
4105
4106 xfer += iprot->readStructBegin(fname);
4107
4108 using ::apache::thrift::protocol::TProtocolException;
4109
4110
4111 while (true)
4112 {
4113 xfer += iprot->readFieldBegin(fname, ftype, fid);
4114 if (ftype == ::apache::thrift::protocol::T_STOP) {
4115 break;
4116 }
4117 switch (fid)
4118 {
4119 case 1:
4120 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4121 xfer += this->ire.read(iprot);
4122 this->__isset.ire = true;
4123 } else {
4124 xfer += iprot->skip(ftype);
4125 }
4126 break;
4127 case 2:
4128 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4129 xfer += this->ue.read(iprot);
4130 this->__isset.ue = true;
4131 } else {
4132 xfer += iprot->skip(ftype);
4133 }
4134 break;
4135 case 3:
4136 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4137 xfer += this->te.read(iprot);
4138 this->__isset.te = true;
4139 } else {
4140 xfer += iprot->skip(ftype);
4141 }
4142 break;
4143 default:
4144 xfer += iprot->skip(ftype);
4145 break;
4146 }
4147 xfer += iprot->readFieldEnd();
4148 }
4149
4150 xfer += iprot->readStructEnd();
4151
4152 return xfer;
4153 }
4154
read(::apache::thrift::protocol::TProtocol * iprot)4155 uint32_t Cassandra_truncate_args::read(::apache::thrift::protocol::TProtocol* iprot) {
4156
4157 uint32_t xfer = 0;
4158 std::string fname;
4159 ::apache::thrift::protocol::TType ftype;
4160 int16_t fid;
4161
4162 xfer += iprot->readStructBegin(fname);
4163
4164 using ::apache::thrift::protocol::TProtocolException;
4165
4166 bool isset_cfname = false;
4167
4168 while (true)
4169 {
4170 xfer += iprot->readFieldBegin(fname, ftype, fid);
4171 if (ftype == ::apache::thrift::protocol::T_STOP) {
4172 break;
4173 }
4174 switch (fid)
4175 {
4176 case 1:
4177 if (ftype == ::apache::thrift::protocol::T_STRING) {
4178 xfer += iprot->readString(this->cfname);
4179 isset_cfname = true;
4180 } else {
4181 xfer += iprot->skip(ftype);
4182 }
4183 break;
4184 default:
4185 xfer += iprot->skip(ftype);
4186 break;
4187 }
4188 xfer += iprot->readFieldEnd();
4189 }
4190
4191 xfer += iprot->readStructEnd();
4192
4193 if (!isset_cfname)
4194 throw TProtocolException(TProtocolException::INVALID_DATA);
4195 return xfer;
4196 }
4197
write(::apache::thrift::protocol::TProtocol * oprot) const4198 uint32_t Cassandra_truncate_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
4199 uint32_t xfer = 0;
4200 xfer += oprot->writeStructBegin("Cassandra_truncate_args");
4201 xfer += oprot->writeFieldBegin("cfname", ::apache::thrift::protocol::T_STRING, 1);
4202 xfer += oprot->writeString(this->cfname);
4203 xfer += oprot->writeFieldEnd();
4204 xfer += oprot->writeFieldStop();
4205 xfer += oprot->writeStructEnd();
4206 return xfer;
4207 }
4208
write(::apache::thrift::protocol::TProtocol * oprot) const4209 uint32_t Cassandra_truncate_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
4210 uint32_t xfer = 0;
4211 xfer += oprot->writeStructBegin("Cassandra_truncate_pargs");
4212 xfer += oprot->writeFieldBegin("cfname", ::apache::thrift::protocol::T_STRING, 1);
4213 xfer += oprot->writeString((*(this->cfname)));
4214 xfer += oprot->writeFieldEnd();
4215 xfer += oprot->writeFieldStop();
4216 xfer += oprot->writeStructEnd();
4217 return xfer;
4218 }
4219
read(::apache::thrift::protocol::TProtocol * iprot)4220 uint32_t Cassandra_truncate_result::read(::apache::thrift::protocol::TProtocol* iprot) {
4221
4222 uint32_t xfer = 0;
4223 std::string fname;
4224 ::apache::thrift::protocol::TType ftype;
4225 int16_t fid;
4226
4227 xfer += iprot->readStructBegin(fname);
4228
4229 using ::apache::thrift::protocol::TProtocolException;
4230
4231
4232 while (true)
4233 {
4234 xfer += iprot->readFieldBegin(fname, ftype, fid);
4235 if (ftype == ::apache::thrift::protocol::T_STOP) {
4236 break;
4237 }
4238 switch (fid)
4239 {
4240 case 1:
4241 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4242 xfer += this->ire.read(iprot);
4243 this->__isset.ire = true;
4244 } else {
4245 xfer += iprot->skip(ftype);
4246 }
4247 break;
4248 case 2:
4249 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4250 xfer += this->ue.read(iprot);
4251 this->__isset.ue = true;
4252 } else {
4253 xfer += iprot->skip(ftype);
4254 }
4255 break;
4256 case 3:
4257 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4258 xfer += this->te.read(iprot);
4259 this->__isset.te = true;
4260 } else {
4261 xfer += iprot->skip(ftype);
4262 }
4263 break;
4264 default:
4265 xfer += iprot->skip(ftype);
4266 break;
4267 }
4268 xfer += iprot->readFieldEnd();
4269 }
4270
4271 xfer += iprot->readStructEnd();
4272
4273 return xfer;
4274 }
4275
write(::apache::thrift::protocol::TProtocol * oprot) const4276 uint32_t Cassandra_truncate_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
4277
4278 uint32_t xfer = 0;
4279
4280 xfer += oprot->writeStructBegin("Cassandra_truncate_result");
4281
4282 if (this->__isset.ire) {
4283 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
4284 xfer += this->ire.write(oprot);
4285 xfer += oprot->writeFieldEnd();
4286 } else if (this->__isset.ue) {
4287 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
4288 xfer += this->ue.write(oprot);
4289 xfer += oprot->writeFieldEnd();
4290 } else if (this->__isset.te) {
4291 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
4292 xfer += this->te.write(oprot);
4293 xfer += oprot->writeFieldEnd();
4294 }
4295 xfer += oprot->writeFieldStop();
4296 xfer += oprot->writeStructEnd();
4297 return xfer;
4298 }
4299
read(::apache::thrift::protocol::TProtocol * iprot)4300 uint32_t Cassandra_truncate_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
4301
4302 uint32_t xfer = 0;
4303 std::string fname;
4304 ::apache::thrift::protocol::TType ftype;
4305 int16_t fid;
4306
4307 xfer += iprot->readStructBegin(fname);
4308
4309 using ::apache::thrift::protocol::TProtocolException;
4310
4311
4312 while (true)
4313 {
4314 xfer += iprot->readFieldBegin(fname, ftype, fid);
4315 if (ftype == ::apache::thrift::protocol::T_STOP) {
4316 break;
4317 }
4318 switch (fid)
4319 {
4320 case 1:
4321 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4322 xfer += this->ire.read(iprot);
4323 this->__isset.ire = true;
4324 } else {
4325 xfer += iprot->skip(ftype);
4326 }
4327 break;
4328 case 2:
4329 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4330 xfer += this->ue.read(iprot);
4331 this->__isset.ue = true;
4332 } else {
4333 xfer += iprot->skip(ftype);
4334 }
4335 break;
4336 case 3:
4337 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4338 xfer += this->te.read(iprot);
4339 this->__isset.te = true;
4340 } else {
4341 xfer += iprot->skip(ftype);
4342 }
4343 break;
4344 default:
4345 xfer += iprot->skip(ftype);
4346 break;
4347 }
4348 xfer += iprot->readFieldEnd();
4349 }
4350
4351 xfer += iprot->readStructEnd();
4352
4353 return xfer;
4354 }
4355
read(::apache::thrift::protocol::TProtocol * iprot)4356 uint32_t Cassandra_describe_schema_versions_args::read(::apache::thrift::protocol::TProtocol* iprot) {
4357
4358 uint32_t xfer = 0;
4359 std::string fname;
4360 ::apache::thrift::protocol::TType ftype;
4361 int16_t fid;
4362
4363 xfer += iprot->readStructBegin(fname);
4364
4365 using ::apache::thrift::protocol::TProtocolException;
4366
4367
4368 while (true)
4369 {
4370 xfer += iprot->readFieldBegin(fname, ftype, fid);
4371 if (ftype == ::apache::thrift::protocol::T_STOP) {
4372 break;
4373 }
4374 switch (fid)
4375 {
4376 default:
4377 xfer += iprot->skip(ftype);
4378 break;
4379 }
4380 xfer += iprot->readFieldEnd();
4381 }
4382
4383 xfer += iprot->readStructEnd();
4384
4385 return xfer;
4386 }
4387
write(::apache::thrift::protocol::TProtocol * oprot) const4388 uint32_t Cassandra_describe_schema_versions_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
4389 uint32_t xfer = 0;
4390 xfer += oprot->writeStructBegin("Cassandra_describe_schema_versions_args");
4391 xfer += oprot->writeFieldStop();
4392 xfer += oprot->writeStructEnd();
4393 return xfer;
4394 }
4395
write(::apache::thrift::protocol::TProtocol * oprot) const4396 uint32_t Cassandra_describe_schema_versions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
4397 uint32_t xfer = 0;
4398 xfer += oprot->writeStructBegin("Cassandra_describe_schema_versions_pargs");
4399 xfer += oprot->writeFieldStop();
4400 xfer += oprot->writeStructEnd();
4401 return xfer;
4402 }
4403
read(::apache::thrift::protocol::TProtocol * iprot)4404 uint32_t Cassandra_describe_schema_versions_result::read(::apache::thrift::protocol::TProtocol* iprot) {
4405
4406 uint32_t xfer = 0;
4407 std::string fname;
4408 ::apache::thrift::protocol::TType ftype;
4409 int16_t fid;
4410
4411 xfer += iprot->readStructBegin(fname);
4412
4413 using ::apache::thrift::protocol::TProtocolException;
4414
4415
4416 while (true)
4417 {
4418 xfer += iprot->readFieldBegin(fname, ftype, fid);
4419 if (ftype == ::apache::thrift::protocol::T_STOP) {
4420 break;
4421 }
4422 switch (fid)
4423 {
4424 case 0:
4425 if (ftype == ::apache::thrift::protocol::T_MAP) {
4426 {
4427 this->success.clear();
4428 uint32_t _size286;
4429 ::apache::thrift::protocol::TType _ktype287;
4430 ::apache::thrift::protocol::TType _vtype288;
4431 iprot->readMapBegin(_ktype287, _vtype288, _size286);
4432 uint32_t _i290;
4433 for (_i290 = 0; _i290 < _size286; ++_i290)
4434 {
4435 std::string _key291;
4436 xfer += iprot->readString(_key291);
4437 std::vector<std::string> & _val292 = this->success[_key291];
4438 {
4439 _val292.clear();
4440 uint32_t _size293;
4441 ::apache::thrift::protocol::TType _etype296;
4442 iprot->readListBegin(_etype296, _size293);
4443 _val292.resize(_size293);
4444 uint32_t _i297;
4445 for (_i297 = 0; _i297 < _size293; ++_i297)
4446 {
4447 xfer += iprot->readString(_val292[_i297]);
4448 }
4449 iprot->readListEnd();
4450 }
4451 }
4452 iprot->readMapEnd();
4453 }
4454 this->__isset.success = true;
4455 } else {
4456 xfer += iprot->skip(ftype);
4457 }
4458 break;
4459 case 1:
4460 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4461 xfer += this->ire.read(iprot);
4462 this->__isset.ire = true;
4463 } else {
4464 xfer += iprot->skip(ftype);
4465 }
4466 break;
4467 default:
4468 xfer += iprot->skip(ftype);
4469 break;
4470 }
4471 xfer += iprot->readFieldEnd();
4472 }
4473
4474 xfer += iprot->readStructEnd();
4475
4476 return xfer;
4477 }
4478
write(::apache::thrift::protocol::TProtocol * oprot) const4479 uint32_t Cassandra_describe_schema_versions_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
4480
4481 uint32_t xfer = 0;
4482
4483 xfer += oprot->writeStructBegin("Cassandra_describe_schema_versions_result");
4484
4485 if (this->__isset.success) {
4486 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
4487 {
4488 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast<uint32_t>(this->success.size()));
4489 std::map<std::string, std::vector<std::string> > ::const_iterator _iter298;
4490 for (_iter298 = this->success.begin(); _iter298 != this->success.end(); ++_iter298)
4491 {
4492 xfer += oprot->writeString(_iter298->first);
4493 {
4494 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(_iter298->second.size()));
4495 std::vector<std::string> ::const_iterator _iter299;
4496 for (_iter299 = _iter298->second.begin(); _iter299 != _iter298->second.end(); ++_iter299)
4497 {
4498 xfer += oprot->writeString((*_iter299));
4499 }
4500 xfer += oprot->writeListEnd();
4501 }
4502 }
4503 xfer += oprot->writeMapEnd();
4504 }
4505 xfer += oprot->writeFieldEnd();
4506 } else if (this->__isset.ire) {
4507 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
4508 xfer += this->ire.write(oprot);
4509 xfer += oprot->writeFieldEnd();
4510 }
4511 xfer += oprot->writeFieldStop();
4512 xfer += oprot->writeStructEnd();
4513 return xfer;
4514 }
4515
read(::apache::thrift::protocol::TProtocol * iprot)4516 uint32_t Cassandra_describe_schema_versions_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
4517
4518 uint32_t xfer = 0;
4519 std::string fname;
4520 ::apache::thrift::protocol::TType ftype;
4521 int16_t fid;
4522
4523 xfer += iprot->readStructBegin(fname);
4524
4525 using ::apache::thrift::protocol::TProtocolException;
4526
4527
4528 while (true)
4529 {
4530 xfer += iprot->readFieldBegin(fname, ftype, fid);
4531 if (ftype == ::apache::thrift::protocol::T_STOP) {
4532 break;
4533 }
4534 switch (fid)
4535 {
4536 case 0:
4537 if (ftype == ::apache::thrift::protocol::T_MAP) {
4538 {
4539 (*(this->success)).clear();
4540 uint32_t _size300;
4541 ::apache::thrift::protocol::TType _ktype301;
4542 ::apache::thrift::protocol::TType _vtype302;
4543 iprot->readMapBegin(_ktype301, _vtype302, _size300);
4544 uint32_t _i304;
4545 for (_i304 = 0; _i304 < _size300; ++_i304)
4546 {
4547 std::string _key305;
4548 xfer += iprot->readString(_key305);
4549 std::vector<std::string> & _val306 = (*(this->success))[_key305];
4550 {
4551 _val306.clear();
4552 uint32_t _size307;
4553 ::apache::thrift::protocol::TType _etype310;
4554 iprot->readListBegin(_etype310, _size307);
4555 _val306.resize(_size307);
4556 uint32_t _i311;
4557 for (_i311 = 0; _i311 < _size307; ++_i311)
4558 {
4559 xfer += iprot->readString(_val306[_i311]);
4560 }
4561 iprot->readListEnd();
4562 }
4563 }
4564 iprot->readMapEnd();
4565 }
4566 this->__isset.success = true;
4567 } else {
4568 xfer += iprot->skip(ftype);
4569 }
4570 break;
4571 case 1:
4572 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4573 xfer += this->ire.read(iprot);
4574 this->__isset.ire = true;
4575 } else {
4576 xfer += iprot->skip(ftype);
4577 }
4578 break;
4579 default:
4580 xfer += iprot->skip(ftype);
4581 break;
4582 }
4583 xfer += iprot->readFieldEnd();
4584 }
4585
4586 xfer += iprot->readStructEnd();
4587
4588 return xfer;
4589 }
4590
read(::apache::thrift::protocol::TProtocol * iprot)4591 uint32_t Cassandra_describe_keyspaces_args::read(::apache::thrift::protocol::TProtocol* iprot) {
4592
4593 uint32_t xfer = 0;
4594 std::string fname;
4595 ::apache::thrift::protocol::TType ftype;
4596 int16_t fid;
4597
4598 xfer += iprot->readStructBegin(fname);
4599
4600 using ::apache::thrift::protocol::TProtocolException;
4601
4602
4603 while (true)
4604 {
4605 xfer += iprot->readFieldBegin(fname, ftype, fid);
4606 if (ftype == ::apache::thrift::protocol::T_STOP) {
4607 break;
4608 }
4609 switch (fid)
4610 {
4611 default:
4612 xfer += iprot->skip(ftype);
4613 break;
4614 }
4615 xfer += iprot->readFieldEnd();
4616 }
4617
4618 xfer += iprot->readStructEnd();
4619
4620 return xfer;
4621 }
4622
write(::apache::thrift::protocol::TProtocol * oprot) const4623 uint32_t Cassandra_describe_keyspaces_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
4624 uint32_t xfer = 0;
4625 xfer += oprot->writeStructBegin("Cassandra_describe_keyspaces_args");
4626 xfer += oprot->writeFieldStop();
4627 xfer += oprot->writeStructEnd();
4628 return xfer;
4629 }
4630
write(::apache::thrift::protocol::TProtocol * oprot) const4631 uint32_t Cassandra_describe_keyspaces_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
4632 uint32_t xfer = 0;
4633 xfer += oprot->writeStructBegin("Cassandra_describe_keyspaces_pargs");
4634 xfer += oprot->writeFieldStop();
4635 xfer += oprot->writeStructEnd();
4636 return xfer;
4637 }
4638
read(::apache::thrift::protocol::TProtocol * iprot)4639 uint32_t Cassandra_describe_keyspaces_result::read(::apache::thrift::protocol::TProtocol* iprot) {
4640
4641 uint32_t xfer = 0;
4642 std::string fname;
4643 ::apache::thrift::protocol::TType ftype;
4644 int16_t fid;
4645
4646 xfer += iprot->readStructBegin(fname);
4647
4648 using ::apache::thrift::protocol::TProtocolException;
4649
4650
4651 while (true)
4652 {
4653 xfer += iprot->readFieldBegin(fname, ftype, fid);
4654 if (ftype == ::apache::thrift::protocol::T_STOP) {
4655 break;
4656 }
4657 switch (fid)
4658 {
4659 case 0:
4660 if (ftype == ::apache::thrift::protocol::T_LIST) {
4661 {
4662 this->success.clear();
4663 uint32_t _size312;
4664 ::apache::thrift::protocol::TType _etype315;
4665 iprot->readListBegin(_etype315, _size312);
4666 this->success.resize(_size312);
4667 uint32_t _i316;
4668 for (_i316 = 0; _i316 < _size312; ++_i316)
4669 {
4670 xfer += this->success[_i316].read(iprot);
4671 }
4672 iprot->readListEnd();
4673 }
4674 this->__isset.success = true;
4675 } else {
4676 xfer += iprot->skip(ftype);
4677 }
4678 break;
4679 case 1:
4680 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4681 xfer += this->ire.read(iprot);
4682 this->__isset.ire = true;
4683 } else {
4684 xfer += iprot->skip(ftype);
4685 }
4686 break;
4687 default:
4688 xfer += iprot->skip(ftype);
4689 break;
4690 }
4691 xfer += iprot->readFieldEnd();
4692 }
4693
4694 xfer += iprot->readStructEnd();
4695
4696 return xfer;
4697 }
4698
write(::apache::thrift::protocol::TProtocol * oprot) const4699 uint32_t Cassandra_describe_keyspaces_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
4700
4701 uint32_t xfer = 0;
4702
4703 xfer += oprot->writeStructBegin("Cassandra_describe_keyspaces_result");
4704
4705 if (this->__isset.success) {
4706 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
4707 {
4708 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
4709 std::vector<KsDef> ::const_iterator _iter317;
4710 for (_iter317 = this->success.begin(); _iter317 != this->success.end(); ++_iter317)
4711 {
4712 xfer += (*_iter317).write(oprot);
4713 }
4714 xfer += oprot->writeListEnd();
4715 }
4716 xfer += oprot->writeFieldEnd();
4717 } else if (this->__isset.ire) {
4718 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
4719 xfer += this->ire.write(oprot);
4720 xfer += oprot->writeFieldEnd();
4721 }
4722 xfer += oprot->writeFieldStop();
4723 xfer += oprot->writeStructEnd();
4724 return xfer;
4725 }
4726
read(::apache::thrift::protocol::TProtocol * iprot)4727 uint32_t Cassandra_describe_keyspaces_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
4728
4729 uint32_t xfer = 0;
4730 std::string fname;
4731 ::apache::thrift::protocol::TType ftype;
4732 int16_t fid;
4733
4734 xfer += iprot->readStructBegin(fname);
4735
4736 using ::apache::thrift::protocol::TProtocolException;
4737
4738
4739 while (true)
4740 {
4741 xfer += iprot->readFieldBegin(fname, ftype, fid);
4742 if (ftype == ::apache::thrift::protocol::T_STOP) {
4743 break;
4744 }
4745 switch (fid)
4746 {
4747 case 0:
4748 if (ftype == ::apache::thrift::protocol::T_LIST) {
4749 {
4750 (*(this->success)).clear();
4751 uint32_t _size318;
4752 ::apache::thrift::protocol::TType _etype321;
4753 iprot->readListBegin(_etype321, _size318);
4754 (*(this->success)).resize(_size318);
4755 uint32_t _i322;
4756 for (_i322 = 0; _i322 < _size318; ++_i322)
4757 {
4758 xfer += (*(this->success))[_i322].read(iprot);
4759 }
4760 iprot->readListEnd();
4761 }
4762 this->__isset.success = true;
4763 } else {
4764 xfer += iprot->skip(ftype);
4765 }
4766 break;
4767 case 1:
4768 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
4769 xfer += this->ire.read(iprot);
4770 this->__isset.ire = true;
4771 } else {
4772 xfer += iprot->skip(ftype);
4773 }
4774 break;
4775 default:
4776 xfer += iprot->skip(ftype);
4777 break;
4778 }
4779 xfer += iprot->readFieldEnd();
4780 }
4781
4782 xfer += iprot->readStructEnd();
4783
4784 return xfer;
4785 }
4786
read(::apache::thrift::protocol::TProtocol * iprot)4787 uint32_t Cassandra_describe_cluster_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
4788
4789 uint32_t xfer = 0;
4790 std::string fname;
4791 ::apache::thrift::protocol::TType ftype;
4792 int16_t fid;
4793
4794 xfer += iprot->readStructBegin(fname);
4795
4796 using ::apache::thrift::protocol::TProtocolException;
4797
4798
4799 while (true)
4800 {
4801 xfer += iprot->readFieldBegin(fname, ftype, fid);
4802 if (ftype == ::apache::thrift::protocol::T_STOP) {
4803 break;
4804 }
4805 switch (fid)
4806 {
4807 default:
4808 xfer += iprot->skip(ftype);
4809 break;
4810 }
4811 xfer += iprot->readFieldEnd();
4812 }
4813
4814 xfer += iprot->readStructEnd();
4815
4816 return xfer;
4817 }
4818
write(::apache::thrift::protocol::TProtocol * oprot) const4819 uint32_t Cassandra_describe_cluster_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
4820 uint32_t xfer = 0;
4821 xfer += oprot->writeStructBegin("Cassandra_describe_cluster_name_args");
4822 xfer += oprot->writeFieldStop();
4823 xfer += oprot->writeStructEnd();
4824 return xfer;
4825 }
4826
write(::apache::thrift::protocol::TProtocol * oprot) const4827 uint32_t Cassandra_describe_cluster_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
4828 uint32_t xfer = 0;
4829 xfer += oprot->writeStructBegin("Cassandra_describe_cluster_name_pargs");
4830 xfer += oprot->writeFieldStop();
4831 xfer += oprot->writeStructEnd();
4832 return xfer;
4833 }
4834
read(::apache::thrift::protocol::TProtocol * iprot)4835 uint32_t Cassandra_describe_cluster_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
4836
4837 uint32_t xfer = 0;
4838 std::string fname;
4839 ::apache::thrift::protocol::TType ftype;
4840 int16_t fid;
4841
4842 xfer += iprot->readStructBegin(fname);
4843
4844 using ::apache::thrift::protocol::TProtocolException;
4845
4846
4847 while (true)
4848 {
4849 xfer += iprot->readFieldBegin(fname, ftype, fid);
4850 if (ftype == ::apache::thrift::protocol::T_STOP) {
4851 break;
4852 }
4853 switch (fid)
4854 {
4855 case 0:
4856 if (ftype == ::apache::thrift::protocol::T_STRING) {
4857 xfer += iprot->readString(this->success);
4858 this->__isset.success = true;
4859 } else {
4860 xfer += iprot->skip(ftype);
4861 }
4862 break;
4863 default:
4864 xfer += iprot->skip(ftype);
4865 break;
4866 }
4867 xfer += iprot->readFieldEnd();
4868 }
4869
4870 xfer += iprot->readStructEnd();
4871
4872 return xfer;
4873 }
4874
write(::apache::thrift::protocol::TProtocol * oprot) const4875 uint32_t Cassandra_describe_cluster_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
4876
4877 uint32_t xfer = 0;
4878
4879 xfer += oprot->writeStructBegin("Cassandra_describe_cluster_name_result");
4880
4881 if (this->__isset.success) {
4882 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
4883 xfer += oprot->writeString(this->success);
4884 xfer += oprot->writeFieldEnd();
4885 }
4886 xfer += oprot->writeFieldStop();
4887 xfer += oprot->writeStructEnd();
4888 return xfer;
4889 }
4890
read(::apache::thrift::protocol::TProtocol * iprot)4891 uint32_t Cassandra_describe_cluster_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
4892
4893 uint32_t xfer = 0;
4894 std::string fname;
4895 ::apache::thrift::protocol::TType ftype;
4896 int16_t fid;
4897
4898 xfer += iprot->readStructBegin(fname);
4899
4900 using ::apache::thrift::protocol::TProtocolException;
4901
4902
4903 while (true)
4904 {
4905 xfer += iprot->readFieldBegin(fname, ftype, fid);
4906 if (ftype == ::apache::thrift::protocol::T_STOP) {
4907 break;
4908 }
4909 switch (fid)
4910 {
4911 case 0:
4912 if (ftype == ::apache::thrift::protocol::T_STRING) {
4913 xfer += iprot->readString((*(this->success)));
4914 this->__isset.success = true;
4915 } else {
4916 xfer += iprot->skip(ftype);
4917 }
4918 break;
4919 default:
4920 xfer += iprot->skip(ftype);
4921 break;
4922 }
4923 xfer += iprot->readFieldEnd();
4924 }
4925
4926 xfer += iprot->readStructEnd();
4927
4928 return xfer;
4929 }
4930
read(::apache::thrift::protocol::TProtocol * iprot)4931 uint32_t Cassandra_describe_version_args::read(::apache::thrift::protocol::TProtocol* iprot) {
4932
4933 uint32_t xfer = 0;
4934 std::string fname;
4935 ::apache::thrift::protocol::TType ftype;
4936 int16_t fid;
4937
4938 xfer += iprot->readStructBegin(fname);
4939
4940 using ::apache::thrift::protocol::TProtocolException;
4941
4942
4943 while (true)
4944 {
4945 xfer += iprot->readFieldBegin(fname, ftype, fid);
4946 if (ftype == ::apache::thrift::protocol::T_STOP) {
4947 break;
4948 }
4949 switch (fid)
4950 {
4951 default:
4952 xfer += iprot->skip(ftype);
4953 break;
4954 }
4955 xfer += iprot->readFieldEnd();
4956 }
4957
4958 xfer += iprot->readStructEnd();
4959
4960 return xfer;
4961 }
4962
write(::apache::thrift::protocol::TProtocol * oprot) const4963 uint32_t Cassandra_describe_version_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
4964 uint32_t xfer = 0;
4965 xfer += oprot->writeStructBegin("Cassandra_describe_version_args");
4966 xfer += oprot->writeFieldStop();
4967 xfer += oprot->writeStructEnd();
4968 return xfer;
4969 }
4970
write(::apache::thrift::protocol::TProtocol * oprot) const4971 uint32_t Cassandra_describe_version_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
4972 uint32_t xfer = 0;
4973 xfer += oprot->writeStructBegin("Cassandra_describe_version_pargs");
4974 xfer += oprot->writeFieldStop();
4975 xfer += oprot->writeStructEnd();
4976 return xfer;
4977 }
4978
read(::apache::thrift::protocol::TProtocol * iprot)4979 uint32_t Cassandra_describe_version_result::read(::apache::thrift::protocol::TProtocol* iprot) {
4980
4981 uint32_t xfer = 0;
4982 std::string fname;
4983 ::apache::thrift::protocol::TType ftype;
4984 int16_t fid;
4985
4986 xfer += iprot->readStructBegin(fname);
4987
4988 using ::apache::thrift::protocol::TProtocolException;
4989
4990
4991 while (true)
4992 {
4993 xfer += iprot->readFieldBegin(fname, ftype, fid);
4994 if (ftype == ::apache::thrift::protocol::T_STOP) {
4995 break;
4996 }
4997 switch (fid)
4998 {
4999 case 0:
5000 if (ftype == ::apache::thrift::protocol::T_STRING) {
5001 xfer += iprot->readString(this->success);
5002 this->__isset.success = true;
5003 } else {
5004 xfer += iprot->skip(ftype);
5005 }
5006 break;
5007 default:
5008 xfer += iprot->skip(ftype);
5009 break;
5010 }
5011 xfer += iprot->readFieldEnd();
5012 }
5013
5014 xfer += iprot->readStructEnd();
5015
5016 return xfer;
5017 }
5018
write(::apache::thrift::protocol::TProtocol * oprot) const5019 uint32_t Cassandra_describe_version_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
5020
5021 uint32_t xfer = 0;
5022
5023 xfer += oprot->writeStructBegin("Cassandra_describe_version_result");
5024
5025 if (this->__isset.success) {
5026 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
5027 xfer += oprot->writeString(this->success);
5028 xfer += oprot->writeFieldEnd();
5029 }
5030 xfer += oprot->writeFieldStop();
5031 xfer += oprot->writeStructEnd();
5032 return xfer;
5033 }
5034
read(::apache::thrift::protocol::TProtocol * iprot)5035 uint32_t Cassandra_describe_version_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
5036
5037 uint32_t xfer = 0;
5038 std::string fname;
5039 ::apache::thrift::protocol::TType ftype;
5040 int16_t fid;
5041
5042 xfer += iprot->readStructBegin(fname);
5043
5044 using ::apache::thrift::protocol::TProtocolException;
5045
5046
5047 while (true)
5048 {
5049 xfer += iprot->readFieldBegin(fname, ftype, fid);
5050 if (ftype == ::apache::thrift::protocol::T_STOP) {
5051 break;
5052 }
5053 switch (fid)
5054 {
5055 case 0:
5056 if (ftype == ::apache::thrift::protocol::T_STRING) {
5057 xfer += iprot->readString((*(this->success)));
5058 this->__isset.success = true;
5059 } else {
5060 xfer += iprot->skip(ftype);
5061 }
5062 break;
5063 default:
5064 xfer += iprot->skip(ftype);
5065 break;
5066 }
5067 xfer += iprot->readFieldEnd();
5068 }
5069
5070 xfer += iprot->readStructEnd();
5071
5072 return xfer;
5073 }
5074
read(::apache::thrift::protocol::TProtocol * iprot)5075 uint32_t Cassandra_describe_ring_args::read(::apache::thrift::protocol::TProtocol* iprot) {
5076
5077 uint32_t xfer = 0;
5078 std::string fname;
5079 ::apache::thrift::protocol::TType ftype;
5080 int16_t fid;
5081
5082 xfer += iprot->readStructBegin(fname);
5083
5084 using ::apache::thrift::protocol::TProtocolException;
5085
5086 bool isset_keyspace = false;
5087
5088 while (true)
5089 {
5090 xfer += iprot->readFieldBegin(fname, ftype, fid);
5091 if (ftype == ::apache::thrift::protocol::T_STOP) {
5092 break;
5093 }
5094 switch (fid)
5095 {
5096 case 1:
5097 if (ftype == ::apache::thrift::protocol::T_STRING) {
5098 xfer += iprot->readString(this->keyspace);
5099 isset_keyspace = true;
5100 } else {
5101 xfer += iprot->skip(ftype);
5102 }
5103 break;
5104 default:
5105 xfer += iprot->skip(ftype);
5106 break;
5107 }
5108 xfer += iprot->readFieldEnd();
5109 }
5110
5111 xfer += iprot->readStructEnd();
5112
5113 if (!isset_keyspace)
5114 throw TProtocolException(TProtocolException::INVALID_DATA);
5115 return xfer;
5116 }
5117
write(::apache::thrift::protocol::TProtocol * oprot) const5118 uint32_t Cassandra_describe_ring_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
5119 uint32_t xfer = 0;
5120 xfer += oprot->writeStructBegin("Cassandra_describe_ring_args");
5121 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
5122 xfer += oprot->writeString(this->keyspace);
5123 xfer += oprot->writeFieldEnd();
5124 xfer += oprot->writeFieldStop();
5125 xfer += oprot->writeStructEnd();
5126 return xfer;
5127 }
5128
write(::apache::thrift::protocol::TProtocol * oprot) const5129 uint32_t Cassandra_describe_ring_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
5130 uint32_t xfer = 0;
5131 xfer += oprot->writeStructBegin("Cassandra_describe_ring_pargs");
5132 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
5133 xfer += oprot->writeString((*(this->keyspace)));
5134 xfer += oprot->writeFieldEnd();
5135 xfer += oprot->writeFieldStop();
5136 xfer += oprot->writeStructEnd();
5137 return xfer;
5138 }
5139
read(::apache::thrift::protocol::TProtocol * iprot)5140 uint32_t Cassandra_describe_ring_result::read(::apache::thrift::protocol::TProtocol* iprot) {
5141
5142 uint32_t xfer = 0;
5143 std::string fname;
5144 ::apache::thrift::protocol::TType ftype;
5145 int16_t fid;
5146
5147 xfer += iprot->readStructBegin(fname);
5148
5149 using ::apache::thrift::protocol::TProtocolException;
5150
5151
5152 while (true)
5153 {
5154 xfer += iprot->readFieldBegin(fname, ftype, fid);
5155 if (ftype == ::apache::thrift::protocol::T_STOP) {
5156 break;
5157 }
5158 switch (fid)
5159 {
5160 case 0:
5161 if (ftype == ::apache::thrift::protocol::T_LIST) {
5162 {
5163 this->success.clear();
5164 uint32_t _size323;
5165 ::apache::thrift::protocol::TType _etype326;
5166 iprot->readListBegin(_etype326, _size323);
5167 this->success.resize(_size323);
5168 uint32_t _i327;
5169 for (_i327 = 0; _i327 < _size323; ++_i327)
5170 {
5171 xfer += this->success[_i327].read(iprot);
5172 }
5173 iprot->readListEnd();
5174 }
5175 this->__isset.success = true;
5176 } else {
5177 xfer += iprot->skip(ftype);
5178 }
5179 break;
5180 case 1:
5181 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5182 xfer += this->ire.read(iprot);
5183 this->__isset.ire = true;
5184 } else {
5185 xfer += iprot->skip(ftype);
5186 }
5187 break;
5188 default:
5189 xfer += iprot->skip(ftype);
5190 break;
5191 }
5192 xfer += iprot->readFieldEnd();
5193 }
5194
5195 xfer += iprot->readStructEnd();
5196
5197 return xfer;
5198 }
5199
write(::apache::thrift::protocol::TProtocol * oprot) const5200 uint32_t Cassandra_describe_ring_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
5201
5202 uint32_t xfer = 0;
5203
5204 xfer += oprot->writeStructBegin("Cassandra_describe_ring_result");
5205
5206 if (this->__isset.success) {
5207 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
5208 {
5209 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
5210 std::vector<TokenRange> ::const_iterator _iter328;
5211 for (_iter328 = this->success.begin(); _iter328 != this->success.end(); ++_iter328)
5212 {
5213 xfer += (*_iter328).write(oprot);
5214 }
5215 xfer += oprot->writeListEnd();
5216 }
5217 xfer += oprot->writeFieldEnd();
5218 } else if (this->__isset.ire) {
5219 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
5220 xfer += this->ire.write(oprot);
5221 xfer += oprot->writeFieldEnd();
5222 }
5223 xfer += oprot->writeFieldStop();
5224 xfer += oprot->writeStructEnd();
5225 return xfer;
5226 }
5227
read(::apache::thrift::protocol::TProtocol * iprot)5228 uint32_t Cassandra_describe_ring_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
5229
5230 uint32_t xfer = 0;
5231 std::string fname;
5232 ::apache::thrift::protocol::TType ftype;
5233 int16_t fid;
5234
5235 xfer += iprot->readStructBegin(fname);
5236
5237 using ::apache::thrift::protocol::TProtocolException;
5238
5239
5240 while (true)
5241 {
5242 xfer += iprot->readFieldBegin(fname, ftype, fid);
5243 if (ftype == ::apache::thrift::protocol::T_STOP) {
5244 break;
5245 }
5246 switch (fid)
5247 {
5248 case 0:
5249 if (ftype == ::apache::thrift::protocol::T_LIST) {
5250 {
5251 (*(this->success)).clear();
5252 uint32_t _size329;
5253 ::apache::thrift::protocol::TType _etype332;
5254 iprot->readListBegin(_etype332, _size329);
5255 (*(this->success)).resize(_size329);
5256 uint32_t _i333;
5257 for (_i333 = 0; _i333 < _size329; ++_i333)
5258 {
5259 xfer += (*(this->success))[_i333].read(iprot);
5260 }
5261 iprot->readListEnd();
5262 }
5263 this->__isset.success = true;
5264 } else {
5265 xfer += iprot->skip(ftype);
5266 }
5267 break;
5268 case 1:
5269 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5270 xfer += this->ire.read(iprot);
5271 this->__isset.ire = true;
5272 } else {
5273 xfer += iprot->skip(ftype);
5274 }
5275 break;
5276 default:
5277 xfer += iprot->skip(ftype);
5278 break;
5279 }
5280 xfer += iprot->readFieldEnd();
5281 }
5282
5283 xfer += iprot->readStructEnd();
5284
5285 return xfer;
5286 }
5287
read(::apache::thrift::protocol::TProtocol * iprot)5288 uint32_t Cassandra_describe_token_map_args::read(::apache::thrift::protocol::TProtocol* iprot) {
5289
5290 uint32_t xfer = 0;
5291 std::string fname;
5292 ::apache::thrift::protocol::TType ftype;
5293 int16_t fid;
5294
5295 xfer += iprot->readStructBegin(fname);
5296
5297 using ::apache::thrift::protocol::TProtocolException;
5298
5299
5300 while (true)
5301 {
5302 xfer += iprot->readFieldBegin(fname, ftype, fid);
5303 if (ftype == ::apache::thrift::protocol::T_STOP) {
5304 break;
5305 }
5306 switch (fid)
5307 {
5308 default:
5309 xfer += iprot->skip(ftype);
5310 break;
5311 }
5312 xfer += iprot->readFieldEnd();
5313 }
5314
5315 xfer += iprot->readStructEnd();
5316
5317 return xfer;
5318 }
5319
write(::apache::thrift::protocol::TProtocol * oprot) const5320 uint32_t Cassandra_describe_token_map_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
5321 uint32_t xfer = 0;
5322 xfer += oprot->writeStructBegin("Cassandra_describe_token_map_args");
5323 xfer += oprot->writeFieldStop();
5324 xfer += oprot->writeStructEnd();
5325 return xfer;
5326 }
5327
write(::apache::thrift::protocol::TProtocol * oprot) const5328 uint32_t Cassandra_describe_token_map_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
5329 uint32_t xfer = 0;
5330 xfer += oprot->writeStructBegin("Cassandra_describe_token_map_pargs");
5331 xfer += oprot->writeFieldStop();
5332 xfer += oprot->writeStructEnd();
5333 return xfer;
5334 }
5335
read(::apache::thrift::protocol::TProtocol * iprot)5336 uint32_t Cassandra_describe_token_map_result::read(::apache::thrift::protocol::TProtocol* iprot) {
5337
5338 uint32_t xfer = 0;
5339 std::string fname;
5340 ::apache::thrift::protocol::TType ftype;
5341 int16_t fid;
5342
5343 xfer += iprot->readStructBegin(fname);
5344
5345 using ::apache::thrift::protocol::TProtocolException;
5346
5347
5348 while (true)
5349 {
5350 xfer += iprot->readFieldBegin(fname, ftype, fid);
5351 if (ftype == ::apache::thrift::protocol::T_STOP) {
5352 break;
5353 }
5354 switch (fid)
5355 {
5356 case 0:
5357 if (ftype == ::apache::thrift::protocol::T_MAP) {
5358 {
5359 this->success.clear();
5360 uint32_t _size334;
5361 ::apache::thrift::protocol::TType _ktype335;
5362 ::apache::thrift::protocol::TType _vtype336;
5363 iprot->readMapBegin(_ktype335, _vtype336, _size334);
5364 uint32_t _i338;
5365 for (_i338 = 0; _i338 < _size334; ++_i338)
5366 {
5367 std::string _key339;
5368 xfer += iprot->readString(_key339);
5369 std::string& _val340 = this->success[_key339];
5370 xfer += iprot->readString(_val340);
5371 }
5372 iprot->readMapEnd();
5373 }
5374 this->__isset.success = true;
5375 } else {
5376 xfer += iprot->skip(ftype);
5377 }
5378 break;
5379 case 1:
5380 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5381 xfer += this->ire.read(iprot);
5382 this->__isset.ire = true;
5383 } else {
5384 xfer += iprot->skip(ftype);
5385 }
5386 break;
5387 default:
5388 xfer += iprot->skip(ftype);
5389 break;
5390 }
5391 xfer += iprot->readFieldEnd();
5392 }
5393
5394 xfer += iprot->readStructEnd();
5395
5396 return xfer;
5397 }
5398
write(::apache::thrift::protocol::TProtocol * oprot) const5399 uint32_t Cassandra_describe_token_map_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
5400
5401 uint32_t xfer = 0;
5402
5403 xfer += oprot->writeStructBegin("Cassandra_describe_token_map_result");
5404
5405 if (this->__isset.success) {
5406 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
5407 {
5408 xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
5409 std::map<std::string, std::string> ::const_iterator _iter341;
5410 for (_iter341 = this->success.begin(); _iter341 != this->success.end(); ++_iter341)
5411 {
5412 xfer += oprot->writeString(_iter341->first);
5413 xfer += oprot->writeString(_iter341->second);
5414 }
5415 xfer += oprot->writeMapEnd();
5416 }
5417 xfer += oprot->writeFieldEnd();
5418 } else if (this->__isset.ire) {
5419 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
5420 xfer += this->ire.write(oprot);
5421 xfer += oprot->writeFieldEnd();
5422 }
5423 xfer += oprot->writeFieldStop();
5424 xfer += oprot->writeStructEnd();
5425 return xfer;
5426 }
5427
read(::apache::thrift::protocol::TProtocol * iprot)5428 uint32_t Cassandra_describe_token_map_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
5429
5430 uint32_t xfer = 0;
5431 std::string fname;
5432 ::apache::thrift::protocol::TType ftype;
5433 int16_t fid;
5434
5435 xfer += iprot->readStructBegin(fname);
5436
5437 using ::apache::thrift::protocol::TProtocolException;
5438
5439
5440 while (true)
5441 {
5442 xfer += iprot->readFieldBegin(fname, ftype, fid);
5443 if (ftype == ::apache::thrift::protocol::T_STOP) {
5444 break;
5445 }
5446 switch (fid)
5447 {
5448 case 0:
5449 if (ftype == ::apache::thrift::protocol::T_MAP) {
5450 {
5451 (*(this->success)).clear();
5452 uint32_t _size342;
5453 ::apache::thrift::protocol::TType _ktype343;
5454 ::apache::thrift::protocol::TType _vtype344;
5455 iprot->readMapBegin(_ktype343, _vtype344, _size342);
5456 uint32_t _i346;
5457 for (_i346 = 0; _i346 < _size342; ++_i346)
5458 {
5459 std::string _key347;
5460 xfer += iprot->readString(_key347);
5461 std::string& _val348 = (*(this->success))[_key347];
5462 xfer += iprot->readString(_val348);
5463 }
5464 iprot->readMapEnd();
5465 }
5466 this->__isset.success = true;
5467 } else {
5468 xfer += iprot->skip(ftype);
5469 }
5470 break;
5471 case 1:
5472 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5473 xfer += this->ire.read(iprot);
5474 this->__isset.ire = true;
5475 } else {
5476 xfer += iprot->skip(ftype);
5477 }
5478 break;
5479 default:
5480 xfer += iprot->skip(ftype);
5481 break;
5482 }
5483 xfer += iprot->readFieldEnd();
5484 }
5485
5486 xfer += iprot->readStructEnd();
5487
5488 return xfer;
5489 }
5490
read(::apache::thrift::protocol::TProtocol * iprot)5491 uint32_t Cassandra_describe_partitioner_args::read(::apache::thrift::protocol::TProtocol* iprot) {
5492
5493 uint32_t xfer = 0;
5494 std::string fname;
5495 ::apache::thrift::protocol::TType ftype;
5496 int16_t fid;
5497
5498 xfer += iprot->readStructBegin(fname);
5499
5500 using ::apache::thrift::protocol::TProtocolException;
5501
5502
5503 while (true)
5504 {
5505 xfer += iprot->readFieldBegin(fname, ftype, fid);
5506 if (ftype == ::apache::thrift::protocol::T_STOP) {
5507 break;
5508 }
5509 switch (fid)
5510 {
5511 default:
5512 xfer += iprot->skip(ftype);
5513 break;
5514 }
5515 xfer += iprot->readFieldEnd();
5516 }
5517
5518 xfer += iprot->readStructEnd();
5519
5520 return xfer;
5521 }
5522
write(::apache::thrift::protocol::TProtocol * oprot) const5523 uint32_t Cassandra_describe_partitioner_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
5524 uint32_t xfer = 0;
5525 xfer += oprot->writeStructBegin("Cassandra_describe_partitioner_args");
5526 xfer += oprot->writeFieldStop();
5527 xfer += oprot->writeStructEnd();
5528 return xfer;
5529 }
5530
write(::apache::thrift::protocol::TProtocol * oprot) const5531 uint32_t Cassandra_describe_partitioner_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
5532 uint32_t xfer = 0;
5533 xfer += oprot->writeStructBegin("Cassandra_describe_partitioner_pargs");
5534 xfer += oprot->writeFieldStop();
5535 xfer += oprot->writeStructEnd();
5536 return xfer;
5537 }
5538
read(::apache::thrift::protocol::TProtocol * iprot)5539 uint32_t Cassandra_describe_partitioner_result::read(::apache::thrift::protocol::TProtocol* iprot) {
5540
5541 uint32_t xfer = 0;
5542 std::string fname;
5543 ::apache::thrift::protocol::TType ftype;
5544 int16_t fid;
5545
5546 xfer += iprot->readStructBegin(fname);
5547
5548 using ::apache::thrift::protocol::TProtocolException;
5549
5550
5551 while (true)
5552 {
5553 xfer += iprot->readFieldBegin(fname, ftype, fid);
5554 if (ftype == ::apache::thrift::protocol::T_STOP) {
5555 break;
5556 }
5557 switch (fid)
5558 {
5559 case 0:
5560 if (ftype == ::apache::thrift::protocol::T_STRING) {
5561 xfer += iprot->readString(this->success);
5562 this->__isset.success = true;
5563 } else {
5564 xfer += iprot->skip(ftype);
5565 }
5566 break;
5567 default:
5568 xfer += iprot->skip(ftype);
5569 break;
5570 }
5571 xfer += iprot->readFieldEnd();
5572 }
5573
5574 xfer += iprot->readStructEnd();
5575
5576 return xfer;
5577 }
5578
write(::apache::thrift::protocol::TProtocol * oprot) const5579 uint32_t Cassandra_describe_partitioner_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
5580
5581 uint32_t xfer = 0;
5582
5583 xfer += oprot->writeStructBegin("Cassandra_describe_partitioner_result");
5584
5585 if (this->__isset.success) {
5586 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
5587 xfer += oprot->writeString(this->success);
5588 xfer += oprot->writeFieldEnd();
5589 }
5590 xfer += oprot->writeFieldStop();
5591 xfer += oprot->writeStructEnd();
5592 return xfer;
5593 }
5594
read(::apache::thrift::protocol::TProtocol * iprot)5595 uint32_t Cassandra_describe_partitioner_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
5596
5597 uint32_t xfer = 0;
5598 std::string fname;
5599 ::apache::thrift::protocol::TType ftype;
5600 int16_t fid;
5601
5602 xfer += iprot->readStructBegin(fname);
5603
5604 using ::apache::thrift::protocol::TProtocolException;
5605
5606
5607 while (true)
5608 {
5609 xfer += iprot->readFieldBegin(fname, ftype, fid);
5610 if (ftype == ::apache::thrift::protocol::T_STOP) {
5611 break;
5612 }
5613 switch (fid)
5614 {
5615 case 0:
5616 if (ftype == ::apache::thrift::protocol::T_STRING) {
5617 xfer += iprot->readString((*(this->success)));
5618 this->__isset.success = true;
5619 } else {
5620 xfer += iprot->skip(ftype);
5621 }
5622 break;
5623 default:
5624 xfer += iprot->skip(ftype);
5625 break;
5626 }
5627 xfer += iprot->readFieldEnd();
5628 }
5629
5630 xfer += iprot->readStructEnd();
5631
5632 return xfer;
5633 }
5634
read(::apache::thrift::protocol::TProtocol * iprot)5635 uint32_t Cassandra_describe_snitch_args::read(::apache::thrift::protocol::TProtocol* iprot) {
5636
5637 uint32_t xfer = 0;
5638 std::string fname;
5639 ::apache::thrift::protocol::TType ftype;
5640 int16_t fid;
5641
5642 xfer += iprot->readStructBegin(fname);
5643
5644 using ::apache::thrift::protocol::TProtocolException;
5645
5646
5647 while (true)
5648 {
5649 xfer += iprot->readFieldBegin(fname, ftype, fid);
5650 if (ftype == ::apache::thrift::protocol::T_STOP) {
5651 break;
5652 }
5653 switch (fid)
5654 {
5655 default:
5656 xfer += iprot->skip(ftype);
5657 break;
5658 }
5659 xfer += iprot->readFieldEnd();
5660 }
5661
5662 xfer += iprot->readStructEnd();
5663
5664 return xfer;
5665 }
5666
write(::apache::thrift::protocol::TProtocol * oprot) const5667 uint32_t Cassandra_describe_snitch_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
5668 uint32_t xfer = 0;
5669 xfer += oprot->writeStructBegin("Cassandra_describe_snitch_args");
5670 xfer += oprot->writeFieldStop();
5671 xfer += oprot->writeStructEnd();
5672 return xfer;
5673 }
5674
write(::apache::thrift::protocol::TProtocol * oprot) const5675 uint32_t Cassandra_describe_snitch_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
5676 uint32_t xfer = 0;
5677 xfer += oprot->writeStructBegin("Cassandra_describe_snitch_pargs");
5678 xfer += oprot->writeFieldStop();
5679 xfer += oprot->writeStructEnd();
5680 return xfer;
5681 }
5682
read(::apache::thrift::protocol::TProtocol * iprot)5683 uint32_t Cassandra_describe_snitch_result::read(::apache::thrift::protocol::TProtocol* iprot) {
5684
5685 uint32_t xfer = 0;
5686 std::string fname;
5687 ::apache::thrift::protocol::TType ftype;
5688 int16_t fid;
5689
5690 xfer += iprot->readStructBegin(fname);
5691
5692 using ::apache::thrift::protocol::TProtocolException;
5693
5694
5695 while (true)
5696 {
5697 xfer += iprot->readFieldBegin(fname, ftype, fid);
5698 if (ftype == ::apache::thrift::protocol::T_STOP) {
5699 break;
5700 }
5701 switch (fid)
5702 {
5703 case 0:
5704 if (ftype == ::apache::thrift::protocol::T_STRING) {
5705 xfer += iprot->readString(this->success);
5706 this->__isset.success = true;
5707 } else {
5708 xfer += iprot->skip(ftype);
5709 }
5710 break;
5711 default:
5712 xfer += iprot->skip(ftype);
5713 break;
5714 }
5715 xfer += iprot->readFieldEnd();
5716 }
5717
5718 xfer += iprot->readStructEnd();
5719
5720 return xfer;
5721 }
5722
write(::apache::thrift::protocol::TProtocol * oprot) const5723 uint32_t Cassandra_describe_snitch_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
5724
5725 uint32_t xfer = 0;
5726
5727 xfer += oprot->writeStructBegin("Cassandra_describe_snitch_result");
5728
5729 if (this->__isset.success) {
5730 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
5731 xfer += oprot->writeString(this->success);
5732 xfer += oprot->writeFieldEnd();
5733 }
5734 xfer += oprot->writeFieldStop();
5735 xfer += oprot->writeStructEnd();
5736 return xfer;
5737 }
5738
read(::apache::thrift::protocol::TProtocol * iprot)5739 uint32_t Cassandra_describe_snitch_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
5740
5741 uint32_t xfer = 0;
5742 std::string fname;
5743 ::apache::thrift::protocol::TType ftype;
5744 int16_t fid;
5745
5746 xfer += iprot->readStructBegin(fname);
5747
5748 using ::apache::thrift::protocol::TProtocolException;
5749
5750
5751 while (true)
5752 {
5753 xfer += iprot->readFieldBegin(fname, ftype, fid);
5754 if (ftype == ::apache::thrift::protocol::T_STOP) {
5755 break;
5756 }
5757 switch (fid)
5758 {
5759 case 0:
5760 if (ftype == ::apache::thrift::protocol::T_STRING) {
5761 xfer += iprot->readString((*(this->success)));
5762 this->__isset.success = true;
5763 } else {
5764 xfer += iprot->skip(ftype);
5765 }
5766 break;
5767 default:
5768 xfer += iprot->skip(ftype);
5769 break;
5770 }
5771 xfer += iprot->readFieldEnd();
5772 }
5773
5774 xfer += iprot->readStructEnd();
5775
5776 return xfer;
5777 }
5778
read(::apache::thrift::protocol::TProtocol * iprot)5779 uint32_t Cassandra_describe_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
5780
5781 uint32_t xfer = 0;
5782 std::string fname;
5783 ::apache::thrift::protocol::TType ftype;
5784 int16_t fid;
5785
5786 xfer += iprot->readStructBegin(fname);
5787
5788 using ::apache::thrift::protocol::TProtocolException;
5789
5790 bool isset_keyspace = false;
5791
5792 while (true)
5793 {
5794 xfer += iprot->readFieldBegin(fname, ftype, fid);
5795 if (ftype == ::apache::thrift::protocol::T_STOP) {
5796 break;
5797 }
5798 switch (fid)
5799 {
5800 case 1:
5801 if (ftype == ::apache::thrift::protocol::T_STRING) {
5802 xfer += iprot->readString(this->keyspace);
5803 isset_keyspace = true;
5804 } else {
5805 xfer += iprot->skip(ftype);
5806 }
5807 break;
5808 default:
5809 xfer += iprot->skip(ftype);
5810 break;
5811 }
5812 xfer += iprot->readFieldEnd();
5813 }
5814
5815 xfer += iprot->readStructEnd();
5816
5817 if (!isset_keyspace)
5818 throw TProtocolException(TProtocolException::INVALID_DATA);
5819 return xfer;
5820 }
5821
write(::apache::thrift::protocol::TProtocol * oprot) const5822 uint32_t Cassandra_describe_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
5823 uint32_t xfer = 0;
5824 xfer += oprot->writeStructBegin("Cassandra_describe_keyspace_args");
5825 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
5826 xfer += oprot->writeString(this->keyspace);
5827 xfer += oprot->writeFieldEnd();
5828 xfer += oprot->writeFieldStop();
5829 xfer += oprot->writeStructEnd();
5830 return xfer;
5831 }
5832
write(::apache::thrift::protocol::TProtocol * oprot) const5833 uint32_t Cassandra_describe_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
5834 uint32_t xfer = 0;
5835 xfer += oprot->writeStructBegin("Cassandra_describe_keyspace_pargs");
5836 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
5837 xfer += oprot->writeString((*(this->keyspace)));
5838 xfer += oprot->writeFieldEnd();
5839 xfer += oprot->writeFieldStop();
5840 xfer += oprot->writeStructEnd();
5841 return xfer;
5842 }
5843
read(::apache::thrift::protocol::TProtocol * iprot)5844 uint32_t Cassandra_describe_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
5845
5846 uint32_t xfer = 0;
5847 std::string fname;
5848 ::apache::thrift::protocol::TType ftype;
5849 int16_t fid;
5850
5851 xfer += iprot->readStructBegin(fname);
5852
5853 using ::apache::thrift::protocol::TProtocolException;
5854
5855
5856 while (true)
5857 {
5858 xfer += iprot->readFieldBegin(fname, ftype, fid);
5859 if (ftype == ::apache::thrift::protocol::T_STOP) {
5860 break;
5861 }
5862 switch (fid)
5863 {
5864 case 0:
5865 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5866 xfer += this->success.read(iprot);
5867 this->__isset.success = true;
5868 } else {
5869 xfer += iprot->skip(ftype);
5870 }
5871 break;
5872 case 1:
5873 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5874 xfer += this->nfe.read(iprot);
5875 this->__isset.nfe = true;
5876 } else {
5877 xfer += iprot->skip(ftype);
5878 }
5879 break;
5880 case 2:
5881 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5882 xfer += this->ire.read(iprot);
5883 this->__isset.ire = true;
5884 } else {
5885 xfer += iprot->skip(ftype);
5886 }
5887 break;
5888 default:
5889 xfer += iprot->skip(ftype);
5890 break;
5891 }
5892 xfer += iprot->readFieldEnd();
5893 }
5894
5895 xfer += iprot->readStructEnd();
5896
5897 return xfer;
5898 }
5899
write(::apache::thrift::protocol::TProtocol * oprot) const5900 uint32_t Cassandra_describe_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
5901
5902 uint32_t xfer = 0;
5903
5904 xfer += oprot->writeStructBegin("Cassandra_describe_keyspace_result");
5905
5906 if (this->__isset.success) {
5907 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
5908 xfer += this->success.write(oprot);
5909 xfer += oprot->writeFieldEnd();
5910 } else if (this->__isset.nfe) {
5911 xfer += oprot->writeFieldBegin("nfe", ::apache::thrift::protocol::T_STRUCT, 1);
5912 xfer += this->nfe.write(oprot);
5913 xfer += oprot->writeFieldEnd();
5914 } else if (this->__isset.ire) {
5915 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 2);
5916 xfer += this->ire.write(oprot);
5917 xfer += oprot->writeFieldEnd();
5918 }
5919 xfer += oprot->writeFieldStop();
5920 xfer += oprot->writeStructEnd();
5921 return xfer;
5922 }
5923
read(::apache::thrift::protocol::TProtocol * iprot)5924 uint32_t Cassandra_describe_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
5925
5926 uint32_t xfer = 0;
5927 std::string fname;
5928 ::apache::thrift::protocol::TType ftype;
5929 int16_t fid;
5930
5931 xfer += iprot->readStructBegin(fname);
5932
5933 using ::apache::thrift::protocol::TProtocolException;
5934
5935
5936 while (true)
5937 {
5938 xfer += iprot->readFieldBegin(fname, ftype, fid);
5939 if (ftype == ::apache::thrift::protocol::T_STOP) {
5940 break;
5941 }
5942 switch (fid)
5943 {
5944 case 0:
5945 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5946 xfer += (*(this->success)).read(iprot);
5947 this->__isset.success = true;
5948 } else {
5949 xfer += iprot->skip(ftype);
5950 }
5951 break;
5952 case 1:
5953 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5954 xfer += this->nfe.read(iprot);
5955 this->__isset.nfe = true;
5956 } else {
5957 xfer += iprot->skip(ftype);
5958 }
5959 break;
5960 case 2:
5961 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
5962 xfer += this->ire.read(iprot);
5963 this->__isset.ire = true;
5964 } else {
5965 xfer += iprot->skip(ftype);
5966 }
5967 break;
5968 default:
5969 xfer += iprot->skip(ftype);
5970 break;
5971 }
5972 xfer += iprot->readFieldEnd();
5973 }
5974
5975 xfer += iprot->readStructEnd();
5976
5977 return xfer;
5978 }
5979
read(::apache::thrift::protocol::TProtocol * iprot)5980 uint32_t Cassandra_describe_splits_args::read(::apache::thrift::protocol::TProtocol* iprot) {
5981
5982 uint32_t xfer = 0;
5983 std::string fname;
5984 ::apache::thrift::protocol::TType ftype;
5985 int16_t fid;
5986
5987 xfer += iprot->readStructBegin(fname);
5988
5989 using ::apache::thrift::protocol::TProtocolException;
5990
5991 bool isset_cfName = false;
5992 bool isset_start_token = false;
5993 bool isset_end_token = false;
5994 bool isset_keys_per_split = false;
5995
5996 while (true)
5997 {
5998 xfer += iprot->readFieldBegin(fname, ftype, fid);
5999 if (ftype == ::apache::thrift::protocol::T_STOP) {
6000 break;
6001 }
6002 switch (fid)
6003 {
6004 case 1:
6005 if (ftype == ::apache::thrift::protocol::T_STRING) {
6006 xfer += iprot->readString(this->cfName);
6007 isset_cfName = true;
6008 } else {
6009 xfer += iprot->skip(ftype);
6010 }
6011 break;
6012 case 2:
6013 if (ftype == ::apache::thrift::protocol::T_STRING) {
6014 xfer += iprot->readString(this->start_token);
6015 isset_start_token = true;
6016 } else {
6017 xfer += iprot->skip(ftype);
6018 }
6019 break;
6020 case 3:
6021 if (ftype == ::apache::thrift::protocol::T_STRING) {
6022 xfer += iprot->readString(this->end_token);
6023 isset_end_token = true;
6024 } else {
6025 xfer += iprot->skip(ftype);
6026 }
6027 break;
6028 case 4:
6029 if (ftype == ::apache::thrift::protocol::T_I32) {
6030 xfer += iprot->readI32(this->keys_per_split);
6031 isset_keys_per_split = true;
6032 } else {
6033 xfer += iprot->skip(ftype);
6034 }
6035 break;
6036 default:
6037 xfer += iprot->skip(ftype);
6038 break;
6039 }
6040 xfer += iprot->readFieldEnd();
6041 }
6042
6043 xfer += iprot->readStructEnd();
6044
6045 if (!isset_cfName)
6046 throw TProtocolException(TProtocolException::INVALID_DATA);
6047 if (!isset_start_token)
6048 throw TProtocolException(TProtocolException::INVALID_DATA);
6049 if (!isset_end_token)
6050 throw TProtocolException(TProtocolException::INVALID_DATA);
6051 if (!isset_keys_per_split)
6052 throw TProtocolException(TProtocolException::INVALID_DATA);
6053 return xfer;
6054 }
6055
write(::apache::thrift::protocol::TProtocol * oprot) const6056 uint32_t Cassandra_describe_splits_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
6057 uint32_t xfer = 0;
6058 xfer += oprot->writeStructBegin("Cassandra_describe_splits_args");
6059 xfer += oprot->writeFieldBegin("cfName", ::apache::thrift::protocol::T_STRING, 1);
6060 xfer += oprot->writeString(this->cfName);
6061 xfer += oprot->writeFieldEnd();
6062 xfer += oprot->writeFieldBegin("start_token", ::apache::thrift::protocol::T_STRING, 2);
6063 xfer += oprot->writeString(this->start_token);
6064 xfer += oprot->writeFieldEnd();
6065 xfer += oprot->writeFieldBegin("end_token", ::apache::thrift::protocol::T_STRING, 3);
6066 xfer += oprot->writeString(this->end_token);
6067 xfer += oprot->writeFieldEnd();
6068 xfer += oprot->writeFieldBegin("keys_per_split", ::apache::thrift::protocol::T_I32, 4);
6069 xfer += oprot->writeI32(this->keys_per_split);
6070 xfer += oprot->writeFieldEnd();
6071 xfer += oprot->writeFieldStop();
6072 xfer += oprot->writeStructEnd();
6073 return xfer;
6074 }
6075
write(::apache::thrift::protocol::TProtocol * oprot) const6076 uint32_t Cassandra_describe_splits_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
6077 uint32_t xfer = 0;
6078 xfer += oprot->writeStructBegin("Cassandra_describe_splits_pargs");
6079 xfer += oprot->writeFieldBegin("cfName", ::apache::thrift::protocol::T_STRING, 1);
6080 xfer += oprot->writeString((*(this->cfName)));
6081 xfer += oprot->writeFieldEnd();
6082 xfer += oprot->writeFieldBegin("start_token", ::apache::thrift::protocol::T_STRING, 2);
6083 xfer += oprot->writeString((*(this->start_token)));
6084 xfer += oprot->writeFieldEnd();
6085 xfer += oprot->writeFieldBegin("end_token", ::apache::thrift::protocol::T_STRING, 3);
6086 xfer += oprot->writeString((*(this->end_token)));
6087 xfer += oprot->writeFieldEnd();
6088 xfer += oprot->writeFieldBegin("keys_per_split", ::apache::thrift::protocol::T_I32, 4);
6089 xfer += oprot->writeI32((*(this->keys_per_split)));
6090 xfer += oprot->writeFieldEnd();
6091 xfer += oprot->writeFieldStop();
6092 xfer += oprot->writeStructEnd();
6093 return xfer;
6094 }
6095
read(::apache::thrift::protocol::TProtocol * iprot)6096 uint32_t Cassandra_describe_splits_result::read(::apache::thrift::protocol::TProtocol* iprot) {
6097
6098 uint32_t xfer = 0;
6099 std::string fname;
6100 ::apache::thrift::protocol::TType ftype;
6101 int16_t fid;
6102
6103 xfer += iprot->readStructBegin(fname);
6104
6105 using ::apache::thrift::protocol::TProtocolException;
6106
6107
6108 while (true)
6109 {
6110 xfer += iprot->readFieldBegin(fname, ftype, fid);
6111 if (ftype == ::apache::thrift::protocol::T_STOP) {
6112 break;
6113 }
6114 switch (fid)
6115 {
6116 case 0:
6117 if (ftype == ::apache::thrift::protocol::T_LIST) {
6118 {
6119 this->success.clear();
6120 uint32_t _size349;
6121 ::apache::thrift::protocol::TType _etype352;
6122 iprot->readListBegin(_etype352, _size349);
6123 this->success.resize(_size349);
6124 uint32_t _i353;
6125 for (_i353 = 0; _i353 < _size349; ++_i353)
6126 {
6127 xfer += iprot->readString(this->success[_i353]);
6128 }
6129 iprot->readListEnd();
6130 }
6131 this->__isset.success = true;
6132 } else {
6133 xfer += iprot->skip(ftype);
6134 }
6135 break;
6136 case 1:
6137 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6138 xfer += this->ire.read(iprot);
6139 this->__isset.ire = true;
6140 } else {
6141 xfer += iprot->skip(ftype);
6142 }
6143 break;
6144 default:
6145 xfer += iprot->skip(ftype);
6146 break;
6147 }
6148 xfer += iprot->readFieldEnd();
6149 }
6150
6151 xfer += iprot->readStructEnd();
6152
6153 return xfer;
6154 }
6155
write(::apache::thrift::protocol::TProtocol * oprot) const6156 uint32_t Cassandra_describe_splits_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
6157
6158 uint32_t xfer = 0;
6159
6160 xfer += oprot->writeStructBegin("Cassandra_describe_splits_result");
6161
6162 if (this->__isset.success) {
6163 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
6164 {
6165 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
6166 std::vector<std::string> ::const_iterator _iter354;
6167 for (_iter354 = this->success.begin(); _iter354 != this->success.end(); ++_iter354)
6168 {
6169 xfer += oprot->writeString((*_iter354));
6170 }
6171 xfer += oprot->writeListEnd();
6172 }
6173 xfer += oprot->writeFieldEnd();
6174 } else if (this->__isset.ire) {
6175 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
6176 xfer += this->ire.write(oprot);
6177 xfer += oprot->writeFieldEnd();
6178 }
6179 xfer += oprot->writeFieldStop();
6180 xfer += oprot->writeStructEnd();
6181 return xfer;
6182 }
6183
read(::apache::thrift::protocol::TProtocol * iprot)6184 uint32_t Cassandra_describe_splits_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
6185
6186 uint32_t xfer = 0;
6187 std::string fname;
6188 ::apache::thrift::protocol::TType ftype;
6189 int16_t fid;
6190
6191 xfer += iprot->readStructBegin(fname);
6192
6193 using ::apache::thrift::protocol::TProtocolException;
6194
6195
6196 while (true)
6197 {
6198 xfer += iprot->readFieldBegin(fname, ftype, fid);
6199 if (ftype == ::apache::thrift::protocol::T_STOP) {
6200 break;
6201 }
6202 switch (fid)
6203 {
6204 case 0:
6205 if (ftype == ::apache::thrift::protocol::T_LIST) {
6206 {
6207 (*(this->success)).clear();
6208 uint32_t _size355;
6209 ::apache::thrift::protocol::TType _etype358;
6210 iprot->readListBegin(_etype358, _size355);
6211 (*(this->success)).resize(_size355);
6212 uint32_t _i359;
6213 for (_i359 = 0; _i359 < _size355; ++_i359)
6214 {
6215 xfer += iprot->readString((*(this->success))[_i359]);
6216 }
6217 iprot->readListEnd();
6218 }
6219 this->__isset.success = true;
6220 } else {
6221 xfer += iprot->skip(ftype);
6222 }
6223 break;
6224 case 1:
6225 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6226 xfer += this->ire.read(iprot);
6227 this->__isset.ire = true;
6228 } else {
6229 xfer += iprot->skip(ftype);
6230 }
6231 break;
6232 default:
6233 xfer += iprot->skip(ftype);
6234 break;
6235 }
6236 xfer += iprot->readFieldEnd();
6237 }
6238
6239 xfer += iprot->readStructEnd();
6240
6241 return xfer;
6242 }
6243
read(::apache::thrift::protocol::TProtocol * iprot)6244 uint32_t Cassandra_system_add_column_family_args::read(::apache::thrift::protocol::TProtocol* iprot) {
6245
6246 uint32_t xfer = 0;
6247 std::string fname;
6248 ::apache::thrift::protocol::TType ftype;
6249 int16_t fid;
6250
6251 xfer += iprot->readStructBegin(fname);
6252
6253 using ::apache::thrift::protocol::TProtocolException;
6254
6255 bool isset_cf_def = false;
6256
6257 while (true)
6258 {
6259 xfer += iprot->readFieldBegin(fname, ftype, fid);
6260 if (ftype == ::apache::thrift::protocol::T_STOP) {
6261 break;
6262 }
6263 switch (fid)
6264 {
6265 case 1:
6266 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6267 xfer += this->cf_def.read(iprot);
6268 isset_cf_def = true;
6269 } else {
6270 xfer += iprot->skip(ftype);
6271 }
6272 break;
6273 default:
6274 xfer += iprot->skip(ftype);
6275 break;
6276 }
6277 xfer += iprot->readFieldEnd();
6278 }
6279
6280 xfer += iprot->readStructEnd();
6281
6282 if (!isset_cf_def)
6283 throw TProtocolException(TProtocolException::INVALID_DATA);
6284 return xfer;
6285 }
6286
write(::apache::thrift::protocol::TProtocol * oprot) const6287 uint32_t Cassandra_system_add_column_family_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
6288 uint32_t xfer = 0;
6289 xfer += oprot->writeStructBegin("Cassandra_system_add_column_family_args");
6290 xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
6291 xfer += this->cf_def.write(oprot);
6292 xfer += oprot->writeFieldEnd();
6293 xfer += oprot->writeFieldStop();
6294 xfer += oprot->writeStructEnd();
6295 return xfer;
6296 }
6297
write(::apache::thrift::protocol::TProtocol * oprot) const6298 uint32_t Cassandra_system_add_column_family_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
6299 uint32_t xfer = 0;
6300 xfer += oprot->writeStructBegin("Cassandra_system_add_column_family_pargs");
6301 xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
6302 xfer += (*(this->cf_def)).write(oprot);
6303 xfer += oprot->writeFieldEnd();
6304 xfer += oprot->writeFieldStop();
6305 xfer += oprot->writeStructEnd();
6306 return xfer;
6307 }
6308
read(::apache::thrift::protocol::TProtocol * iprot)6309 uint32_t Cassandra_system_add_column_family_result::read(::apache::thrift::protocol::TProtocol* iprot) {
6310
6311 uint32_t xfer = 0;
6312 std::string fname;
6313 ::apache::thrift::protocol::TType ftype;
6314 int16_t fid;
6315
6316 xfer += iprot->readStructBegin(fname);
6317
6318 using ::apache::thrift::protocol::TProtocolException;
6319
6320
6321 while (true)
6322 {
6323 xfer += iprot->readFieldBegin(fname, ftype, fid);
6324 if (ftype == ::apache::thrift::protocol::T_STOP) {
6325 break;
6326 }
6327 switch (fid)
6328 {
6329 case 0:
6330 if (ftype == ::apache::thrift::protocol::T_STRING) {
6331 xfer += iprot->readString(this->success);
6332 this->__isset.success = true;
6333 } else {
6334 xfer += iprot->skip(ftype);
6335 }
6336 break;
6337 case 1:
6338 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6339 xfer += this->ire.read(iprot);
6340 this->__isset.ire = true;
6341 } else {
6342 xfer += iprot->skip(ftype);
6343 }
6344 break;
6345 case 2:
6346 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6347 xfer += this->sde.read(iprot);
6348 this->__isset.sde = true;
6349 } else {
6350 xfer += iprot->skip(ftype);
6351 }
6352 break;
6353 default:
6354 xfer += iprot->skip(ftype);
6355 break;
6356 }
6357 xfer += iprot->readFieldEnd();
6358 }
6359
6360 xfer += iprot->readStructEnd();
6361
6362 return xfer;
6363 }
6364
write(::apache::thrift::protocol::TProtocol * oprot) const6365 uint32_t Cassandra_system_add_column_family_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
6366
6367 uint32_t xfer = 0;
6368
6369 xfer += oprot->writeStructBegin("Cassandra_system_add_column_family_result");
6370
6371 if (this->__isset.success) {
6372 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
6373 xfer += oprot->writeString(this->success);
6374 xfer += oprot->writeFieldEnd();
6375 } else if (this->__isset.ire) {
6376 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
6377 xfer += this->ire.write(oprot);
6378 xfer += oprot->writeFieldEnd();
6379 } else if (this->__isset.sde) {
6380 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
6381 xfer += this->sde.write(oprot);
6382 xfer += oprot->writeFieldEnd();
6383 }
6384 xfer += oprot->writeFieldStop();
6385 xfer += oprot->writeStructEnd();
6386 return xfer;
6387 }
6388
read(::apache::thrift::protocol::TProtocol * iprot)6389 uint32_t Cassandra_system_add_column_family_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
6390
6391 uint32_t xfer = 0;
6392 std::string fname;
6393 ::apache::thrift::protocol::TType ftype;
6394 int16_t fid;
6395
6396 xfer += iprot->readStructBegin(fname);
6397
6398 using ::apache::thrift::protocol::TProtocolException;
6399
6400
6401 while (true)
6402 {
6403 xfer += iprot->readFieldBegin(fname, ftype, fid);
6404 if (ftype == ::apache::thrift::protocol::T_STOP) {
6405 break;
6406 }
6407 switch (fid)
6408 {
6409 case 0:
6410 if (ftype == ::apache::thrift::protocol::T_STRING) {
6411 xfer += iprot->readString((*(this->success)));
6412 this->__isset.success = true;
6413 } else {
6414 xfer += iprot->skip(ftype);
6415 }
6416 break;
6417 case 1:
6418 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6419 xfer += this->ire.read(iprot);
6420 this->__isset.ire = true;
6421 } else {
6422 xfer += iprot->skip(ftype);
6423 }
6424 break;
6425 case 2:
6426 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6427 xfer += this->sde.read(iprot);
6428 this->__isset.sde = true;
6429 } else {
6430 xfer += iprot->skip(ftype);
6431 }
6432 break;
6433 default:
6434 xfer += iprot->skip(ftype);
6435 break;
6436 }
6437 xfer += iprot->readFieldEnd();
6438 }
6439
6440 xfer += iprot->readStructEnd();
6441
6442 return xfer;
6443 }
6444
read(::apache::thrift::protocol::TProtocol * iprot)6445 uint32_t Cassandra_system_drop_column_family_args::read(::apache::thrift::protocol::TProtocol* iprot) {
6446
6447 uint32_t xfer = 0;
6448 std::string fname;
6449 ::apache::thrift::protocol::TType ftype;
6450 int16_t fid;
6451
6452 xfer += iprot->readStructBegin(fname);
6453
6454 using ::apache::thrift::protocol::TProtocolException;
6455
6456 bool isset_column_family = false;
6457
6458 while (true)
6459 {
6460 xfer += iprot->readFieldBegin(fname, ftype, fid);
6461 if (ftype == ::apache::thrift::protocol::T_STOP) {
6462 break;
6463 }
6464 switch (fid)
6465 {
6466 case 1:
6467 if (ftype == ::apache::thrift::protocol::T_STRING) {
6468 xfer += iprot->readString(this->column_family);
6469 isset_column_family = true;
6470 } else {
6471 xfer += iprot->skip(ftype);
6472 }
6473 break;
6474 default:
6475 xfer += iprot->skip(ftype);
6476 break;
6477 }
6478 xfer += iprot->readFieldEnd();
6479 }
6480
6481 xfer += iprot->readStructEnd();
6482
6483 if (!isset_column_family)
6484 throw TProtocolException(TProtocolException::INVALID_DATA);
6485 return xfer;
6486 }
6487
write(::apache::thrift::protocol::TProtocol * oprot) const6488 uint32_t Cassandra_system_drop_column_family_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
6489 uint32_t xfer = 0;
6490 xfer += oprot->writeStructBegin("Cassandra_system_drop_column_family_args");
6491 xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
6492 xfer += oprot->writeString(this->column_family);
6493 xfer += oprot->writeFieldEnd();
6494 xfer += oprot->writeFieldStop();
6495 xfer += oprot->writeStructEnd();
6496 return xfer;
6497 }
6498
write(::apache::thrift::protocol::TProtocol * oprot) const6499 uint32_t Cassandra_system_drop_column_family_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
6500 uint32_t xfer = 0;
6501 xfer += oprot->writeStructBegin("Cassandra_system_drop_column_family_pargs");
6502 xfer += oprot->writeFieldBegin("column_family", ::apache::thrift::protocol::T_STRING, 1);
6503 xfer += oprot->writeString((*(this->column_family)));
6504 xfer += oprot->writeFieldEnd();
6505 xfer += oprot->writeFieldStop();
6506 xfer += oprot->writeStructEnd();
6507 return xfer;
6508 }
6509
read(::apache::thrift::protocol::TProtocol * iprot)6510 uint32_t Cassandra_system_drop_column_family_result::read(::apache::thrift::protocol::TProtocol* iprot) {
6511
6512 uint32_t xfer = 0;
6513 std::string fname;
6514 ::apache::thrift::protocol::TType ftype;
6515 int16_t fid;
6516
6517 xfer += iprot->readStructBegin(fname);
6518
6519 using ::apache::thrift::protocol::TProtocolException;
6520
6521
6522 while (true)
6523 {
6524 xfer += iprot->readFieldBegin(fname, ftype, fid);
6525 if (ftype == ::apache::thrift::protocol::T_STOP) {
6526 break;
6527 }
6528 switch (fid)
6529 {
6530 case 0:
6531 if (ftype == ::apache::thrift::protocol::T_STRING) {
6532 xfer += iprot->readString(this->success);
6533 this->__isset.success = true;
6534 } else {
6535 xfer += iprot->skip(ftype);
6536 }
6537 break;
6538 case 1:
6539 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6540 xfer += this->ire.read(iprot);
6541 this->__isset.ire = true;
6542 } else {
6543 xfer += iprot->skip(ftype);
6544 }
6545 break;
6546 case 2:
6547 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6548 xfer += this->sde.read(iprot);
6549 this->__isset.sde = true;
6550 } else {
6551 xfer += iprot->skip(ftype);
6552 }
6553 break;
6554 default:
6555 xfer += iprot->skip(ftype);
6556 break;
6557 }
6558 xfer += iprot->readFieldEnd();
6559 }
6560
6561 xfer += iprot->readStructEnd();
6562
6563 return xfer;
6564 }
6565
write(::apache::thrift::protocol::TProtocol * oprot) const6566 uint32_t Cassandra_system_drop_column_family_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
6567
6568 uint32_t xfer = 0;
6569
6570 xfer += oprot->writeStructBegin("Cassandra_system_drop_column_family_result");
6571
6572 if (this->__isset.success) {
6573 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
6574 xfer += oprot->writeString(this->success);
6575 xfer += oprot->writeFieldEnd();
6576 } else if (this->__isset.ire) {
6577 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
6578 xfer += this->ire.write(oprot);
6579 xfer += oprot->writeFieldEnd();
6580 } else if (this->__isset.sde) {
6581 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
6582 xfer += this->sde.write(oprot);
6583 xfer += oprot->writeFieldEnd();
6584 }
6585 xfer += oprot->writeFieldStop();
6586 xfer += oprot->writeStructEnd();
6587 return xfer;
6588 }
6589
read(::apache::thrift::protocol::TProtocol * iprot)6590 uint32_t Cassandra_system_drop_column_family_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
6591
6592 uint32_t xfer = 0;
6593 std::string fname;
6594 ::apache::thrift::protocol::TType ftype;
6595 int16_t fid;
6596
6597 xfer += iprot->readStructBegin(fname);
6598
6599 using ::apache::thrift::protocol::TProtocolException;
6600
6601
6602 while (true)
6603 {
6604 xfer += iprot->readFieldBegin(fname, ftype, fid);
6605 if (ftype == ::apache::thrift::protocol::T_STOP) {
6606 break;
6607 }
6608 switch (fid)
6609 {
6610 case 0:
6611 if (ftype == ::apache::thrift::protocol::T_STRING) {
6612 xfer += iprot->readString((*(this->success)));
6613 this->__isset.success = true;
6614 } else {
6615 xfer += iprot->skip(ftype);
6616 }
6617 break;
6618 case 1:
6619 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6620 xfer += this->ire.read(iprot);
6621 this->__isset.ire = true;
6622 } else {
6623 xfer += iprot->skip(ftype);
6624 }
6625 break;
6626 case 2:
6627 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6628 xfer += this->sde.read(iprot);
6629 this->__isset.sde = true;
6630 } else {
6631 xfer += iprot->skip(ftype);
6632 }
6633 break;
6634 default:
6635 xfer += iprot->skip(ftype);
6636 break;
6637 }
6638 xfer += iprot->readFieldEnd();
6639 }
6640
6641 xfer += iprot->readStructEnd();
6642
6643 return xfer;
6644 }
6645
read(::apache::thrift::protocol::TProtocol * iprot)6646 uint32_t Cassandra_system_add_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
6647
6648 uint32_t xfer = 0;
6649 std::string fname;
6650 ::apache::thrift::protocol::TType ftype;
6651 int16_t fid;
6652
6653 xfer += iprot->readStructBegin(fname);
6654
6655 using ::apache::thrift::protocol::TProtocolException;
6656
6657 bool isset_ks_def = false;
6658
6659 while (true)
6660 {
6661 xfer += iprot->readFieldBegin(fname, ftype, fid);
6662 if (ftype == ::apache::thrift::protocol::T_STOP) {
6663 break;
6664 }
6665 switch (fid)
6666 {
6667 case 1:
6668 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6669 xfer += this->ks_def.read(iprot);
6670 isset_ks_def = true;
6671 } else {
6672 xfer += iprot->skip(ftype);
6673 }
6674 break;
6675 default:
6676 xfer += iprot->skip(ftype);
6677 break;
6678 }
6679 xfer += iprot->readFieldEnd();
6680 }
6681
6682 xfer += iprot->readStructEnd();
6683
6684 if (!isset_ks_def)
6685 throw TProtocolException(TProtocolException::INVALID_DATA);
6686 return xfer;
6687 }
6688
write(::apache::thrift::protocol::TProtocol * oprot) const6689 uint32_t Cassandra_system_add_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
6690 uint32_t xfer = 0;
6691 xfer += oprot->writeStructBegin("Cassandra_system_add_keyspace_args");
6692 xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
6693 xfer += this->ks_def.write(oprot);
6694 xfer += oprot->writeFieldEnd();
6695 xfer += oprot->writeFieldStop();
6696 xfer += oprot->writeStructEnd();
6697 return xfer;
6698 }
6699
write(::apache::thrift::protocol::TProtocol * oprot) const6700 uint32_t Cassandra_system_add_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
6701 uint32_t xfer = 0;
6702 xfer += oprot->writeStructBegin("Cassandra_system_add_keyspace_pargs");
6703 xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
6704 xfer += (*(this->ks_def)).write(oprot);
6705 xfer += oprot->writeFieldEnd();
6706 xfer += oprot->writeFieldStop();
6707 xfer += oprot->writeStructEnd();
6708 return xfer;
6709 }
6710
read(::apache::thrift::protocol::TProtocol * iprot)6711 uint32_t Cassandra_system_add_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
6712
6713 uint32_t xfer = 0;
6714 std::string fname;
6715 ::apache::thrift::protocol::TType ftype;
6716 int16_t fid;
6717
6718 xfer += iprot->readStructBegin(fname);
6719
6720 using ::apache::thrift::protocol::TProtocolException;
6721
6722
6723 while (true)
6724 {
6725 xfer += iprot->readFieldBegin(fname, ftype, fid);
6726 if (ftype == ::apache::thrift::protocol::T_STOP) {
6727 break;
6728 }
6729 switch (fid)
6730 {
6731 case 0:
6732 if (ftype == ::apache::thrift::protocol::T_STRING) {
6733 xfer += iprot->readString(this->success);
6734 this->__isset.success = true;
6735 } else {
6736 xfer += iprot->skip(ftype);
6737 }
6738 break;
6739 case 1:
6740 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6741 xfer += this->ire.read(iprot);
6742 this->__isset.ire = true;
6743 } else {
6744 xfer += iprot->skip(ftype);
6745 }
6746 break;
6747 case 2:
6748 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6749 xfer += this->sde.read(iprot);
6750 this->__isset.sde = true;
6751 } else {
6752 xfer += iprot->skip(ftype);
6753 }
6754 break;
6755 default:
6756 xfer += iprot->skip(ftype);
6757 break;
6758 }
6759 xfer += iprot->readFieldEnd();
6760 }
6761
6762 xfer += iprot->readStructEnd();
6763
6764 return xfer;
6765 }
6766
write(::apache::thrift::protocol::TProtocol * oprot) const6767 uint32_t Cassandra_system_add_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
6768
6769 uint32_t xfer = 0;
6770
6771 xfer += oprot->writeStructBegin("Cassandra_system_add_keyspace_result");
6772
6773 if (this->__isset.success) {
6774 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
6775 xfer += oprot->writeString(this->success);
6776 xfer += oprot->writeFieldEnd();
6777 } else if (this->__isset.ire) {
6778 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
6779 xfer += this->ire.write(oprot);
6780 xfer += oprot->writeFieldEnd();
6781 } else if (this->__isset.sde) {
6782 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
6783 xfer += this->sde.write(oprot);
6784 xfer += oprot->writeFieldEnd();
6785 }
6786 xfer += oprot->writeFieldStop();
6787 xfer += oprot->writeStructEnd();
6788 return xfer;
6789 }
6790
read(::apache::thrift::protocol::TProtocol * iprot)6791 uint32_t Cassandra_system_add_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
6792
6793 uint32_t xfer = 0;
6794 std::string fname;
6795 ::apache::thrift::protocol::TType ftype;
6796 int16_t fid;
6797
6798 xfer += iprot->readStructBegin(fname);
6799
6800 using ::apache::thrift::protocol::TProtocolException;
6801
6802
6803 while (true)
6804 {
6805 xfer += iprot->readFieldBegin(fname, ftype, fid);
6806 if (ftype == ::apache::thrift::protocol::T_STOP) {
6807 break;
6808 }
6809 switch (fid)
6810 {
6811 case 0:
6812 if (ftype == ::apache::thrift::protocol::T_STRING) {
6813 xfer += iprot->readString((*(this->success)));
6814 this->__isset.success = true;
6815 } else {
6816 xfer += iprot->skip(ftype);
6817 }
6818 break;
6819 case 1:
6820 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6821 xfer += this->ire.read(iprot);
6822 this->__isset.ire = true;
6823 } else {
6824 xfer += iprot->skip(ftype);
6825 }
6826 break;
6827 case 2:
6828 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6829 xfer += this->sde.read(iprot);
6830 this->__isset.sde = true;
6831 } else {
6832 xfer += iprot->skip(ftype);
6833 }
6834 break;
6835 default:
6836 xfer += iprot->skip(ftype);
6837 break;
6838 }
6839 xfer += iprot->readFieldEnd();
6840 }
6841
6842 xfer += iprot->readStructEnd();
6843
6844 return xfer;
6845 }
6846
read(::apache::thrift::protocol::TProtocol * iprot)6847 uint32_t Cassandra_system_drop_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
6848
6849 uint32_t xfer = 0;
6850 std::string fname;
6851 ::apache::thrift::protocol::TType ftype;
6852 int16_t fid;
6853
6854 xfer += iprot->readStructBegin(fname);
6855
6856 using ::apache::thrift::protocol::TProtocolException;
6857
6858 bool isset_keyspace = false;
6859
6860 while (true)
6861 {
6862 xfer += iprot->readFieldBegin(fname, ftype, fid);
6863 if (ftype == ::apache::thrift::protocol::T_STOP) {
6864 break;
6865 }
6866 switch (fid)
6867 {
6868 case 1:
6869 if (ftype == ::apache::thrift::protocol::T_STRING) {
6870 xfer += iprot->readString(this->keyspace);
6871 isset_keyspace = true;
6872 } else {
6873 xfer += iprot->skip(ftype);
6874 }
6875 break;
6876 default:
6877 xfer += iprot->skip(ftype);
6878 break;
6879 }
6880 xfer += iprot->readFieldEnd();
6881 }
6882
6883 xfer += iprot->readStructEnd();
6884
6885 if (!isset_keyspace)
6886 throw TProtocolException(TProtocolException::INVALID_DATA);
6887 return xfer;
6888 }
6889
write(::apache::thrift::protocol::TProtocol * oprot) const6890 uint32_t Cassandra_system_drop_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
6891 uint32_t xfer = 0;
6892 xfer += oprot->writeStructBegin("Cassandra_system_drop_keyspace_args");
6893 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
6894 xfer += oprot->writeString(this->keyspace);
6895 xfer += oprot->writeFieldEnd();
6896 xfer += oprot->writeFieldStop();
6897 xfer += oprot->writeStructEnd();
6898 return xfer;
6899 }
6900
write(::apache::thrift::protocol::TProtocol * oprot) const6901 uint32_t Cassandra_system_drop_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
6902 uint32_t xfer = 0;
6903 xfer += oprot->writeStructBegin("Cassandra_system_drop_keyspace_pargs");
6904 xfer += oprot->writeFieldBegin("keyspace", ::apache::thrift::protocol::T_STRING, 1);
6905 xfer += oprot->writeString((*(this->keyspace)));
6906 xfer += oprot->writeFieldEnd();
6907 xfer += oprot->writeFieldStop();
6908 xfer += oprot->writeStructEnd();
6909 return xfer;
6910 }
6911
read(::apache::thrift::protocol::TProtocol * iprot)6912 uint32_t Cassandra_system_drop_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
6913
6914 uint32_t xfer = 0;
6915 std::string fname;
6916 ::apache::thrift::protocol::TType ftype;
6917 int16_t fid;
6918
6919 xfer += iprot->readStructBegin(fname);
6920
6921 using ::apache::thrift::protocol::TProtocolException;
6922
6923
6924 while (true)
6925 {
6926 xfer += iprot->readFieldBegin(fname, ftype, fid);
6927 if (ftype == ::apache::thrift::protocol::T_STOP) {
6928 break;
6929 }
6930 switch (fid)
6931 {
6932 case 0:
6933 if (ftype == ::apache::thrift::protocol::T_STRING) {
6934 xfer += iprot->readString(this->success);
6935 this->__isset.success = true;
6936 } else {
6937 xfer += iprot->skip(ftype);
6938 }
6939 break;
6940 case 1:
6941 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6942 xfer += this->ire.read(iprot);
6943 this->__isset.ire = true;
6944 } else {
6945 xfer += iprot->skip(ftype);
6946 }
6947 break;
6948 case 2:
6949 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
6950 xfer += this->sde.read(iprot);
6951 this->__isset.sde = true;
6952 } else {
6953 xfer += iprot->skip(ftype);
6954 }
6955 break;
6956 default:
6957 xfer += iprot->skip(ftype);
6958 break;
6959 }
6960 xfer += iprot->readFieldEnd();
6961 }
6962
6963 xfer += iprot->readStructEnd();
6964
6965 return xfer;
6966 }
6967
write(::apache::thrift::protocol::TProtocol * oprot) const6968 uint32_t Cassandra_system_drop_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
6969
6970 uint32_t xfer = 0;
6971
6972 xfer += oprot->writeStructBegin("Cassandra_system_drop_keyspace_result");
6973
6974 if (this->__isset.success) {
6975 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
6976 xfer += oprot->writeString(this->success);
6977 xfer += oprot->writeFieldEnd();
6978 } else if (this->__isset.ire) {
6979 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
6980 xfer += this->ire.write(oprot);
6981 xfer += oprot->writeFieldEnd();
6982 } else if (this->__isset.sde) {
6983 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
6984 xfer += this->sde.write(oprot);
6985 xfer += oprot->writeFieldEnd();
6986 }
6987 xfer += oprot->writeFieldStop();
6988 xfer += oprot->writeStructEnd();
6989 return xfer;
6990 }
6991
read(::apache::thrift::protocol::TProtocol * iprot)6992 uint32_t Cassandra_system_drop_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
6993
6994 uint32_t xfer = 0;
6995 std::string fname;
6996 ::apache::thrift::protocol::TType ftype;
6997 int16_t fid;
6998
6999 xfer += iprot->readStructBegin(fname);
7000
7001 using ::apache::thrift::protocol::TProtocolException;
7002
7003
7004 while (true)
7005 {
7006 xfer += iprot->readFieldBegin(fname, ftype, fid);
7007 if (ftype == ::apache::thrift::protocol::T_STOP) {
7008 break;
7009 }
7010 switch (fid)
7011 {
7012 case 0:
7013 if (ftype == ::apache::thrift::protocol::T_STRING) {
7014 xfer += iprot->readString((*(this->success)));
7015 this->__isset.success = true;
7016 } else {
7017 xfer += iprot->skip(ftype);
7018 }
7019 break;
7020 case 1:
7021 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7022 xfer += this->ire.read(iprot);
7023 this->__isset.ire = true;
7024 } else {
7025 xfer += iprot->skip(ftype);
7026 }
7027 break;
7028 case 2:
7029 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7030 xfer += this->sde.read(iprot);
7031 this->__isset.sde = true;
7032 } else {
7033 xfer += iprot->skip(ftype);
7034 }
7035 break;
7036 default:
7037 xfer += iprot->skip(ftype);
7038 break;
7039 }
7040 xfer += iprot->readFieldEnd();
7041 }
7042
7043 xfer += iprot->readStructEnd();
7044
7045 return xfer;
7046 }
7047
read(::apache::thrift::protocol::TProtocol * iprot)7048 uint32_t Cassandra_system_update_keyspace_args::read(::apache::thrift::protocol::TProtocol* iprot) {
7049
7050 uint32_t xfer = 0;
7051 std::string fname;
7052 ::apache::thrift::protocol::TType ftype;
7053 int16_t fid;
7054
7055 xfer += iprot->readStructBegin(fname);
7056
7057 using ::apache::thrift::protocol::TProtocolException;
7058
7059 bool isset_ks_def = false;
7060
7061 while (true)
7062 {
7063 xfer += iprot->readFieldBegin(fname, ftype, fid);
7064 if (ftype == ::apache::thrift::protocol::T_STOP) {
7065 break;
7066 }
7067 switch (fid)
7068 {
7069 case 1:
7070 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7071 xfer += this->ks_def.read(iprot);
7072 isset_ks_def = true;
7073 } else {
7074 xfer += iprot->skip(ftype);
7075 }
7076 break;
7077 default:
7078 xfer += iprot->skip(ftype);
7079 break;
7080 }
7081 xfer += iprot->readFieldEnd();
7082 }
7083
7084 xfer += iprot->readStructEnd();
7085
7086 if (!isset_ks_def)
7087 throw TProtocolException(TProtocolException::INVALID_DATA);
7088 return xfer;
7089 }
7090
write(::apache::thrift::protocol::TProtocol * oprot) const7091 uint32_t Cassandra_system_update_keyspace_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
7092 uint32_t xfer = 0;
7093 xfer += oprot->writeStructBegin("Cassandra_system_update_keyspace_args");
7094 xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
7095 xfer += this->ks_def.write(oprot);
7096 xfer += oprot->writeFieldEnd();
7097 xfer += oprot->writeFieldStop();
7098 xfer += oprot->writeStructEnd();
7099 return xfer;
7100 }
7101
write(::apache::thrift::protocol::TProtocol * oprot) const7102 uint32_t Cassandra_system_update_keyspace_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
7103 uint32_t xfer = 0;
7104 xfer += oprot->writeStructBegin("Cassandra_system_update_keyspace_pargs");
7105 xfer += oprot->writeFieldBegin("ks_def", ::apache::thrift::protocol::T_STRUCT, 1);
7106 xfer += (*(this->ks_def)).write(oprot);
7107 xfer += oprot->writeFieldEnd();
7108 xfer += oprot->writeFieldStop();
7109 xfer += oprot->writeStructEnd();
7110 return xfer;
7111 }
7112
read(::apache::thrift::protocol::TProtocol * iprot)7113 uint32_t Cassandra_system_update_keyspace_result::read(::apache::thrift::protocol::TProtocol* iprot) {
7114
7115 uint32_t xfer = 0;
7116 std::string fname;
7117 ::apache::thrift::protocol::TType ftype;
7118 int16_t fid;
7119
7120 xfer += iprot->readStructBegin(fname);
7121
7122 using ::apache::thrift::protocol::TProtocolException;
7123
7124
7125 while (true)
7126 {
7127 xfer += iprot->readFieldBegin(fname, ftype, fid);
7128 if (ftype == ::apache::thrift::protocol::T_STOP) {
7129 break;
7130 }
7131 switch (fid)
7132 {
7133 case 0:
7134 if (ftype == ::apache::thrift::protocol::T_STRING) {
7135 xfer += iprot->readString(this->success);
7136 this->__isset.success = true;
7137 } else {
7138 xfer += iprot->skip(ftype);
7139 }
7140 break;
7141 case 1:
7142 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7143 xfer += this->ire.read(iprot);
7144 this->__isset.ire = true;
7145 } else {
7146 xfer += iprot->skip(ftype);
7147 }
7148 break;
7149 case 2:
7150 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7151 xfer += this->sde.read(iprot);
7152 this->__isset.sde = true;
7153 } else {
7154 xfer += iprot->skip(ftype);
7155 }
7156 break;
7157 default:
7158 xfer += iprot->skip(ftype);
7159 break;
7160 }
7161 xfer += iprot->readFieldEnd();
7162 }
7163
7164 xfer += iprot->readStructEnd();
7165
7166 return xfer;
7167 }
7168
write(::apache::thrift::protocol::TProtocol * oprot) const7169 uint32_t Cassandra_system_update_keyspace_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
7170
7171 uint32_t xfer = 0;
7172
7173 xfer += oprot->writeStructBegin("Cassandra_system_update_keyspace_result");
7174
7175 if (this->__isset.success) {
7176 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
7177 xfer += oprot->writeString(this->success);
7178 xfer += oprot->writeFieldEnd();
7179 } else if (this->__isset.ire) {
7180 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
7181 xfer += this->ire.write(oprot);
7182 xfer += oprot->writeFieldEnd();
7183 } else if (this->__isset.sde) {
7184 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
7185 xfer += this->sde.write(oprot);
7186 xfer += oprot->writeFieldEnd();
7187 }
7188 xfer += oprot->writeFieldStop();
7189 xfer += oprot->writeStructEnd();
7190 return xfer;
7191 }
7192
read(::apache::thrift::protocol::TProtocol * iprot)7193 uint32_t Cassandra_system_update_keyspace_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
7194
7195 uint32_t xfer = 0;
7196 std::string fname;
7197 ::apache::thrift::protocol::TType ftype;
7198 int16_t fid;
7199
7200 xfer += iprot->readStructBegin(fname);
7201
7202 using ::apache::thrift::protocol::TProtocolException;
7203
7204
7205 while (true)
7206 {
7207 xfer += iprot->readFieldBegin(fname, ftype, fid);
7208 if (ftype == ::apache::thrift::protocol::T_STOP) {
7209 break;
7210 }
7211 switch (fid)
7212 {
7213 case 0:
7214 if (ftype == ::apache::thrift::protocol::T_STRING) {
7215 xfer += iprot->readString((*(this->success)));
7216 this->__isset.success = true;
7217 } else {
7218 xfer += iprot->skip(ftype);
7219 }
7220 break;
7221 case 1:
7222 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7223 xfer += this->ire.read(iprot);
7224 this->__isset.ire = true;
7225 } else {
7226 xfer += iprot->skip(ftype);
7227 }
7228 break;
7229 case 2:
7230 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7231 xfer += this->sde.read(iprot);
7232 this->__isset.sde = true;
7233 } else {
7234 xfer += iprot->skip(ftype);
7235 }
7236 break;
7237 default:
7238 xfer += iprot->skip(ftype);
7239 break;
7240 }
7241 xfer += iprot->readFieldEnd();
7242 }
7243
7244 xfer += iprot->readStructEnd();
7245
7246 return xfer;
7247 }
7248
read(::apache::thrift::protocol::TProtocol * iprot)7249 uint32_t Cassandra_system_update_column_family_args::read(::apache::thrift::protocol::TProtocol* iprot) {
7250
7251 uint32_t xfer = 0;
7252 std::string fname;
7253 ::apache::thrift::protocol::TType ftype;
7254 int16_t fid;
7255
7256 xfer += iprot->readStructBegin(fname);
7257
7258 using ::apache::thrift::protocol::TProtocolException;
7259
7260 bool isset_cf_def = false;
7261
7262 while (true)
7263 {
7264 xfer += iprot->readFieldBegin(fname, ftype, fid);
7265 if (ftype == ::apache::thrift::protocol::T_STOP) {
7266 break;
7267 }
7268 switch (fid)
7269 {
7270 case 1:
7271 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7272 xfer += this->cf_def.read(iprot);
7273 isset_cf_def = true;
7274 } else {
7275 xfer += iprot->skip(ftype);
7276 }
7277 break;
7278 default:
7279 xfer += iprot->skip(ftype);
7280 break;
7281 }
7282 xfer += iprot->readFieldEnd();
7283 }
7284
7285 xfer += iprot->readStructEnd();
7286
7287 if (!isset_cf_def)
7288 throw TProtocolException(TProtocolException::INVALID_DATA);
7289 return xfer;
7290 }
7291
write(::apache::thrift::protocol::TProtocol * oprot) const7292 uint32_t Cassandra_system_update_column_family_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
7293 uint32_t xfer = 0;
7294 xfer += oprot->writeStructBegin("Cassandra_system_update_column_family_args");
7295 xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
7296 xfer += this->cf_def.write(oprot);
7297 xfer += oprot->writeFieldEnd();
7298 xfer += oprot->writeFieldStop();
7299 xfer += oprot->writeStructEnd();
7300 return xfer;
7301 }
7302
write(::apache::thrift::protocol::TProtocol * oprot) const7303 uint32_t Cassandra_system_update_column_family_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
7304 uint32_t xfer = 0;
7305 xfer += oprot->writeStructBegin("Cassandra_system_update_column_family_pargs");
7306 xfer += oprot->writeFieldBegin("cf_def", ::apache::thrift::protocol::T_STRUCT, 1);
7307 xfer += (*(this->cf_def)).write(oprot);
7308 xfer += oprot->writeFieldEnd();
7309 xfer += oprot->writeFieldStop();
7310 xfer += oprot->writeStructEnd();
7311 return xfer;
7312 }
7313
read(::apache::thrift::protocol::TProtocol * iprot)7314 uint32_t Cassandra_system_update_column_family_result::read(::apache::thrift::protocol::TProtocol* iprot) {
7315
7316 uint32_t xfer = 0;
7317 std::string fname;
7318 ::apache::thrift::protocol::TType ftype;
7319 int16_t fid;
7320
7321 xfer += iprot->readStructBegin(fname);
7322
7323 using ::apache::thrift::protocol::TProtocolException;
7324
7325
7326 while (true)
7327 {
7328 xfer += iprot->readFieldBegin(fname, ftype, fid);
7329 if (ftype == ::apache::thrift::protocol::T_STOP) {
7330 break;
7331 }
7332 switch (fid)
7333 {
7334 case 0:
7335 if (ftype == ::apache::thrift::protocol::T_STRING) {
7336 xfer += iprot->readString(this->success);
7337 this->__isset.success = true;
7338 } else {
7339 xfer += iprot->skip(ftype);
7340 }
7341 break;
7342 case 1:
7343 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7344 xfer += this->ire.read(iprot);
7345 this->__isset.ire = true;
7346 } else {
7347 xfer += iprot->skip(ftype);
7348 }
7349 break;
7350 case 2:
7351 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7352 xfer += this->sde.read(iprot);
7353 this->__isset.sde = true;
7354 } else {
7355 xfer += iprot->skip(ftype);
7356 }
7357 break;
7358 default:
7359 xfer += iprot->skip(ftype);
7360 break;
7361 }
7362 xfer += iprot->readFieldEnd();
7363 }
7364
7365 xfer += iprot->readStructEnd();
7366
7367 return xfer;
7368 }
7369
write(::apache::thrift::protocol::TProtocol * oprot) const7370 uint32_t Cassandra_system_update_column_family_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
7371
7372 uint32_t xfer = 0;
7373
7374 xfer += oprot->writeStructBegin("Cassandra_system_update_column_family_result");
7375
7376 if (this->__isset.success) {
7377 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
7378 xfer += oprot->writeString(this->success);
7379 xfer += oprot->writeFieldEnd();
7380 } else if (this->__isset.ire) {
7381 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
7382 xfer += this->ire.write(oprot);
7383 xfer += oprot->writeFieldEnd();
7384 } else if (this->__isset.sde) {
7385 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 2);
7386 xfer += this->sde.write(oprot);
7387 xfer += oprot->writeFieldEnd();
7388 }
7389 xfer += oprot->writeFieldStop();
7390 xfer += oprot->writeStructEnd();
7391 return xfer;
7392 }
7393
read(::apache::thrift::protocol::TProtocol * iprot)7394 uint32_t Cassandra_system_update_column_family_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
7395
7396 uint32_t xfer = 0;
7397 std::string fname;
7398 ::apache::thrift::protocol::TType ftype;
7399 int16_t fid;
7400
7401 xfer += iprot->readStructBegin(fname);
7402
7403 using ::apache::thrift::protocol::TProtocolException;
7404
7405
7406 while (true)
7407 {
7408 xfer += iprot->readFieldBegin(fname, ftype, fid);
7409 if (ftype == ::apache::thrift::protocol::T_STOP) {
7410 break;
7411 }
7412 switch (fid)
7413 {
7414 case 0:
7415 if (ftype == ::apache::thrift::protocol::T_STRING) {
7416 xfer += iprot->readString((*(this->success)));
7417 this->__isset.success = true;
7418 } else {
7419 xfer += iprot->skip(ftype);
7420 }
7421 break;
7422 case 1:
7423 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7424 xfer += this->ire.read(iprot);
7425 this->__isset.ire = true;
7426 } else {
7427 xfer += iprot->skip(ftype);
7428 }
7429 break;
7430 case 2:
7431 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7432 xfer += this->sde.read(iprot);
7433 this->__isset.sde = true;
7434 } else {
7435 xfer += iprot->skip(ftype);
7436 }
7437 break;
7438 default:
7439 xfer += iprot->skip(ftype);
7440 break;
7441 }
7442 xfer += iprot->readFieldEnd();
7443 }
7444
7445 xfer += iprot->readStructEnd();
7446
7447 return xfer;
7448 }
7449
read(::apache::thrift::protocol::TProtocol * iprot)7450 uint32_t Cassandra_execute_cql_query_args::read(::apache::thrift::protocol::TProtocol* iprot) {
7451
7452 uint32_t xfer = 0;
7453 std::string fname;
7454 ::apache::thrift::protocol::TType ftype;
7455 int16_t fid;
7456
7457 xfer += iprot->readStructBegin(fname);
7458
7459 using ::apache::thrift::protocol::TProtocolException;
7460
7461 bool isset_query = false;
7462 bool isset_compression = false;
7463
7464 while (true)
7465 {
7466 xfer += iprot->readFieldBegin(fname, ftype, fid);
7467 if (ftype == ::apache::thrift::protocol::T_STOP) {
7468 break;
7469 }
7470 switch (fid)
7471 {
7472 case 1:
7473 if (ftype == ::apache::thrift::protocol::T_STRING) {
7474 xfer += iprot->readBinary(this->query);
7475 isset_query = true;
7476 } else {
7477 xfer += iprot->skip(ftype);
7478 }
7479 break;
7480 case 2:
7481 if (ftype == ::apache::thrift::protocol::T_I32) {
7482 int32_t ecast360;
7483 xfer += iprot->readI32(ecast360);
7484 this->compression = (Compression::type)ecast360;
7485 isset_compression = true;
7486 } else {
7487 xfer += iprot->skip(ftype);
7488 }
7489 break;
7490 default:
7491 xfer += iprot->skip(ftype);
7492 break;
7493 }
7494 xfer += iprot->readFieldEnd();
7495 }
7496
7497 xfer += iprot->readStructEnd();
7498
7499 if (!isset_query)
7500 throw TProtocolException(TProtocolException::INVALID_DATA);
7501 if (!isset_compression)
7502 throw TProtocolException(TProtocolException::INVALID_DATA);
7503 return xfer;
7504 }
7505
write(::apache::thrift::protocol::TProtocol * oprot) const7506 uint32_t Cassandra_execute_cql_query_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
7507 uint32_t xfer = 0;
7508 xfer += oprot->writeStructBegin("Cassandra_execute_cql_query_args");
7509 xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
7510 xfer += oprot->writeBinary(this->query);
7511 xfer += oprot->writeFieldEnd();
7512 xfer += oprot->writeFieldBegin("compression", ::apache::thrift::protocol::T_I32, 2);
7513 xfer += oprot->writeI32((int32_t)this->compression);
7514 xfer += oprot->writeFieldEnd();
7515 xfer += oprot->writeFieldStop();
7516 xfer += oprot->writeStructEnd();
7517 return xfer;
7518 }
7519
write(::apache::thrift::protocol::TProtocol * oprot) const7520 uint32_t Cassandra_execute_cql_query_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
7521 uint32_t xfer = 0;
7522 xfer += oprot->writeStructBegin("Cassandra_execute_cql_query_pargs");
7523 xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
7524 xfer += oprot->writeBinary((*(this->query)));
7525 xfer += oprot->writeFieldEnd();
7526 xfer += oprot->writeFieldBegin("compression", ::apache::thrift::protocol::T_I32, 2);
7527 xfer += oprot->writeI32((int32_t)(*(this->compression)));
7528 xfer += oprot->writeFieldEnd();
7529 xfer += oprot->writeFieldStop();
7530 xfer += oprot->writeStructEnd();
7531 return xfer;
7532 }
7533
read(::apache::thrift::protocol::TProtocol * iprot)7534 uint32_t Cassandra_execute_cql_query_result::read(::apache::thrift::protocol::TProtocol* iprot) {
7535
7536 uint32_t xfer = 0;
7537 std::string fname;
7538 ::apache::thrift::protocol::TType ftype;
7539 int16_t fid;
7540
7541 xfer += iprot->readStructBegin(fname);
7542
7543 using ::apache::thrift::protocol::TProtocolException;
7544
7545
7546 while (true)
7547 {
7548 xfer += iprot->readFieldBegin(fname, ftype, fid);
7549 if (ftype == ::apache::thrift::protocol::T_STOP) {
7550 break;
7551 }
7552 switch (fid)
7553 {
7554 case 0:
7555 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7556 xfer += this->success.read(iprot);
7557 this->__isset.success = true;
7558 } else {
7559 xfer += iprot->skip(ftype);
7560 }
7561 break;
7562 case 1:
7563 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7564 xfer += this->ire.read(iprot);
7565 this->__isset.ire = true;
7566 } else {
7567 xfer += iprot->skip(ftype);
7568 }
7569 break;
7570 case 2:
7571 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7572 xfer += this->ue.read(iprot);
7573 this->__isset.ue = true;
7574 } else {
7575 xfer += iprot->skip(ftype);
7576 }
7577 break;
7578 case 3:
7579 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7580 xfer += this->te.read(iprot);
7581 this->__isset.te = true;
7582 } else {
7583 xfer += iprot->skip(ftype);
7584 }
7585 break;
7586 case 4:
7587 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7588 xfer += this->sde.read(iprot);
7589 this->__isset.sde = true;
7590 } else {
7591 xfer += iprot->skip(ftype);
7592 }
7593 break;
7594 default:
7595 xfer += iprot->skip(ftype);
7596 break;
7597 }
7598 xfer += iprot->readFieldEnd();
7599 }
7600
7601 xfer += iprot->readStructEnd();
7602
7603 return xfer;
7604 }
7605
write(::apache::thrift::protocol::TProtocol * oprot) const7606 uint32_t Cassandra_execute_cql_query_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
7607
7608 uint32_t xfer = 0;
7609
7610 xfer += oprot->writeStructBegin("Cassandra_execute_cql_query_result");
7611
7612 if (this->__isset.success) {
7613 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
7614 xfer += this->success.write(oprot);
7615 xfer += oprot->writeFieldEnd();
7616 } else if (this->__isset.ire) {
7617 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
7618 xfer += this->ire.write(oprot);
7619 xfer += oprot->writeFieldEnd();
7620 } else if (this->__isset.ue) {
7621 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
7622 xfer += this->ue.write(oprot);
7623 xfer += oprot->writeFieldEnd();
7624 } else if (this->__isset.te) {
7625 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
7626 xfer += this->te.write(oprot);
7627 xfer += oprot->writeFieldEnd();
7628 } else if (this->__isset.sde) {
7629 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 4);
7630 xfer += this->sde.write(oprot);
7631 xfer += oprot->writeFieldEnd();
7632 }
7633 xfer += oprot->writeFieldStop();
7634 xfer += oprot->writeStructEnd();
7635 return xfer;
7636 }
7637
read(::apache::thrift::protocol::TProtocol * iprot)7638 uint32_t Cassandra_execute_cql_query_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
7639
7640 uint32_t xfer = 0;
7641 std::string fname;
7642 ::apache::thrift::protocol::TType ftype;
7643 int16_t fid;
7644
7645 xfer += iprot->readStructBegin(fname);
7646
7647 using ::apache::thrift::protocol::TProtocolException;
7648
7649
7650 while (true)
7651 {
7652 xfer += iprot->readFieldBegin(fname, ftype, fid);
7653 if (ftype == ::apache::thrift::protocol::T_STOP) {
7654 break;
7655 }
7656 switch (fid)
7657 {
7658 case 0:
7659 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7660 xfer += (*(this->success)).read(iprot);
7661 this->__isset.success = true;
7662 } else {
7663 xfer += iprot->skip(ftype);
7664 }
7665 break;
7666 case 1:
7667 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7668 xfer += this->ire.read(iprot);
7669 this->__isset.ire = true;
7670 } else {
7671 xfer += iprot->skip(ftype);
7672 }
7673 break;
7674 case 2:
7675 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7676 xfer += this->ue.read(iprot);
7677 this->__isset.ue = true;
7678 } else {
7679 xfer += iprot->skip(ftype);
7680 }
7681 break;
7682 case 3:
7683 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7684 xfer += this->te.read(iprot);
7685 this->__isset.te = true;
7686 } else {
7687 xfer += iprot->skip(ftype);
7688 }
7689 break;
7690 case 4:
7691 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7692 xfer += this->sde.read(iprot);
7693 this->__isset.sde = true;
7694 } else {
7695 xfer += iprot->skip(ftype);
7696 }
7697 break;
7698 default:
7699 xfer += iprot->skip(ftype);
7700 break;
7701 }
7702 xfer += iprot->readFieldEnd();
7703 }
7704
7705 xfer += iprot->readStructEnd();
7706
7707 return xfer;
7708 }
7709
read(::apache::thrift::protocol::TProtocol * iprot)7710 uint32_t Cassandra_prepare_cql_query_args::read(::apache::thrift::protocol::TProtocol* iprot) {
7711
7712 uint32_t xfer = 0;
7713 std::string fname;
7714 ::apache::thrift::protocol::TType ftype;
7715 int16_t fid;
7716
7717 xfer += iprot->readStructBegin(fname);
7718
7719 using ::apache::thrift::protocol::TProtocolException;
7720
7721 bool isset_query = false;
7722 bool isset_compression = false;
7723
7724 while (true)
7725 {
7726 xfer += iprot->readFieldBegin(fname, ftype, fid);
7727 if (ftype == ::apache::thrift::protocol::T_STOP) {
7728 break;
7729 }
7730 switch (fid)
7731 {
7732 case 1:
7733 if (ftype == ::apache::thrift::protocol::T_STRING) {
7734 xfer += iprot->readBinary(this->query);
7735 isset_query = true;
7736 } else {
7737 xfer += iprot->skip(ftype);
7738 }
7739 break;
7740 case 2:
7741 if (ftype == ::apache::thrift::protocol::T_I32) {
7742 int32_t ecast361;
7743 xfer += iprot->readI32(ecast361);
7744 this->compression = (Compression::type)ecast361;
7745 isset_compression = true;
7746 } else {
7747 xfer += iprot->skip(ftype);
7748 }
7749 break;
7750 default:
7751 xfer += iprot->skip(ftype);
7752 break;
7753 }
7754 xfer += iprot->readFieldEnd();
7755 }
7756
7757 xfer += iprot->readStructEnd();
7758
7759 if (!isset_query)
7760 throw TProtocolException(TProtocolException::INVALID_DATA);
7761 if (!isset_compression)
7762 throw TProtocolException(TProtocolException::INVALID_DATA);
7763 return xfer;
7764 }
7765
write(::apache::thrift::protocol::TProtocol * oprot) const7766 uint32_t Cassandra_prepare_cql_query_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
7767 uint32_t xfer = 0;
7768 xfer += oprot->writeStructBegin("Cassandra_prepare_cql_query_args");
7769 xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
7770 xfer += oprot->writeBinary(this->query);
7771 xfer += oprot->writeFieldEnd();
7772 xfer += oprot->writeFieldBegin("compression", ::apache::thrift::protocol::T_I32, 2);
7773 xfer += oprot->writeI32((int32_t)this->compression);
7774 xfer += oprot->writeFieldEnd();
7775 xfer += oprot->writeFieldStop();
7776 xfer += oprot->writeStructEnd();
7777 return xfer;
7778 }
7779
write(::apache::thrift::protocol::TProtocol * oprot) const7780 uint32_t Cassandra_prepare_cql_query_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
7781 uint32_t xfer = 0;
7782 xfer += oprot->writeStructBegin("Cassandra_prepare_cql_query_pargs");
7783 xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1);
7784 xfer += oprot->writeBinary((*(this->query)));
7785 xfer += oprot->writeFieldEnd();
7786 xfer += oprot->writeFieldBegin("compression", ::apache::thrift::protocol::T_I32, 2);
7787 xfer += oprot->writeI32((int32_t)(*(this->compression)));
7788 xfer += oprot->writeFieldEnd();
7789 xfer += oprot->writeFieldStop();
7790 xfer += oprot->writeStructEnd();
7791 return xfer;
7792 }
7793
read(::apache::thrift::protocol::TProtocol * iprot)7794 uint32_t Cassandra_prepare_cql_query_result::read(::apache::thrift::protocol::TProtocol* iprot) {
7795
7796 uint32_t xfer = 0;
7797 std::string fname;
7798 ::apache::thrift::protocol::TType ftype;
7799 int16_t fid;
7800
7801 xfer += iprot->readStructBegin(fname);
7802
7803 using ::apache::thrift::protocol::TProtocolException;
7804
7805
7806 while (true)
7807 {
7808 xfer += iprot->readFieldBegin(fname, ftype, fid);
7809 if (ftype == ::apache::thrift::protocol::T_STOP) {
7810 break;
7811 }
7812 switch (fid)
7813 {
7814 case 0:
7815 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7816 xfer += this->success.read(iprot);
7817 this->__isset.success = true;
7818 } else {
7819 xfer += iprot->skip(ftype);
7820 }
7821 break;
7822 case 1:
7823 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7824 xfer += this->ire.read(iprot);
7825 this->__isset.ire = true;
7826 } else {
7827 xfer += iprot->skip(ftype);
7828 }
7829 break;
7830 default:
7831 xfer += iprot->skip(ftype);
7832 break;
7833 }
7834 xfer += iprot->readFieldEnd();
7835 }
7836
7837 xfer += iprot->readStructEnd();
7838
7839 return xfer;
7840 }
7841
write(::apache::thrift::protocol::TProtocol * oprot) const7842 uint32_t Cassandra_prepare_cql_query_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
7843
7844 uint32_t xfer = 0;
7845
7846 xfer += oprot->writeStructBegin("Cassandra_prepare_cql_query_result");
7847
7848 if (this->__isset.success) {
7849 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
7850 xfer += this->success.write(oprot);
7851 xfer += oprot->writeFieldEnd();
7852 } else if (this->__isset.ire) {
7853 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
7854 xfer += this->ire.write(oprot);
7855 xfer += oprot->writeFieldEnd();
7856 }
7857 xfer += oprot->writeFieldStop();
7858 xfer += oprot->writeStructEnd();
7859 return xfer;
7860 }
7861
read(::apache::thrift::protocol::TProtocol * iprot)7862 uint32_t Cassandra_prepare_cql_query_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
7863
7864 uint32_t xfer = 0;
7865 std::string fname;
7866 ::apache::thrift::protocol::TType ftype;
7867 int16_t fid;
7868
7869 xfer += iprot->readStructBegin(fname);
7870
7871 using ::apache::thrift::protocol::TProtocolException;
7872
7873
7874 while (true)
7875 {
7876 xfer += iprot->readFieldBegin(fname, ftype, fid);
7877 if (ftype == ::apache::thrift::protocol::T_STOP) {
7878 break;
7879 }
7880 switch (fid)
7881 {
7882 case 0:
7883 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7884 xfer += (*(this->success)).read(iprot);
7885 this->__isset.success = true;
7886 } else {
7887 xfer += iprot->skip(ftype);
7888 }
7889 break;
7890 case 1:
7891 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
7892 xfer += this->ire.read(iprot);
7893 this->__isset.ire = true;
7894 } else {
7895 xfer += iprot->skip(ftype);
7896 }
7897 break;
7898 default:
7899 xfer += iprot->skip(ftype);
7900 break;
7901 }
7902 xfer += iprot->readFieldEnd();
7903 }
7904
7905 xfer += iprot->readStructEnd();
7906
7907 return xfer;
7908 }
7909
read(::apache::thrift::protocol::TProtocol * iprot)7910 uint32_t Cassandra_execute_prepared_cql_query_args::read(::apache::thrift::protocol::TProtocol* iprot) {
7911
7912 uint32_t xfer = 0;
7913 std::string fname;
7914 ::apache::thrift::protocol::TType ftype;
7915 int16_t fid;
7916
7917 xfer += iprot->readStructBegin(fname);
7918
7919 using ::apache::thrift::protocol::TProtocolException;
7920
7921 bool isset_itemId = false;
7922 bool isset_values = false;
7923
7924 while (true)
7925 {
7926 xfer += iprot->readFieldBegin(fname, ftype, fid);
7927 if (ftype == ::apache::thrift::protocol::T_STOP) {
7928 break;
7929 }
7930 switch (fid)
7931 {
7932 case 1:
7933 if (ftype == ::apache::thrift::protocol::T_I32) {
7934 xfer += iprot->readI32(this->itemId);
7935 isset_itemId = true;
7936 } else {
7937 xfer += iprot->skip(ftype);
7938 }
7939 break;
7940 case 2:
7941 if (ftype == ::apache::thrift::protocol::T_LIST) {
7942 {
7943 this->values.clear();
7944 uint32_t _size362;
7945 ::apache::thrift::protocol::TType _etype365;
7946 iprot->readListBegin(_etype365, _size362);
7947 this->values.resize(_size362);
7948 uint32_t _i366;
7949 for (_i366 = 0; _i366 < _size362; ++_i366)
7950 {
7951 xfer += iprot->readBinary(this->values[_i366]);
7952 }
7953 iprot->readListEnd();
7954 }
7955 isset_values = true;
7956 } else {
7957 xfer += iprot->skip(ftype);
7958 }
7959 break;
7960 default:
7961 xfer += iprot->skip(ftype);
7962 break;
7963 }
7964 xfer += iprot->readFieldEnd();
7965 }
7966
7967 xfer += iprot->readStructEnd();
7968
7969 if (!isset_itemId)
7970 throw TProtocolException(TProtocolException::INVALID_DATA);
7971 if (!isset_values)
7972 throw TProtocolException(TProtocolException::INVALID_DATA);
7973 return xfer;
7974 }
7975
write(::apache::thrift::protocol::TProtocol * oprot) const7976 uint32_t Cassandra_execute_prepared_cql_query_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
7977 uint32_t xfer = 0;
7978 xfer += oprot->writeStructBegin("Cassandra_execute_prepared_cql_query_args");
7979 xfer += oprot->writeFieldBegin("itemId", ::apache::thrift::protocol::T_I32, 1);
7980 xfer += oprot->writeI32(this->itemId);
7981 xfer += oprot->writeFieldEnd();
7982 xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 2);
7983 {
7984 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->values.size()));
7985 std::vector<std::string> ::const_iterator _iter367;
7986 for (_iter367 = this->values.begin(); _iter367 != this->values.end(); ++_iter367)
7987 {
7988 xfer += oprot->writeBinary((*_iter367));
7989 }
7990 xfer += oprot->writeListEnd();
7991 }
7992 xfer += oprot->writeFieldEnd();
7993 xfer += oprot->writeFieldStop();
7994 xfer += oprot->writeStructEnd();
7995 return xfer;
7996 }
7997
write(::apache::thrift::protocol::TProtocol * oprot) const7998 uint32_t Cassandra_execute_prepared_cql_query_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
7999 uint32_t xfer = 0;
8000 xfer += oprot->writeStructBegin("Cassandra_execute_prepared_cql_query_pargs");
8001 xfer += oprot->writeFieldBegin("itemId", ::apache::thrift::protocol::T_I32, 1);
8002 xfer += oprot->writeI32((*(this->itemId)));
8003 xfer += oprot->writeFieldEnd();
8004 xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 2);
8005 {
8006 xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->values)).size()));
8007 std::vector<std::string> ::const_iterator _iter368;
8008 for (_iter368 = (*(this->values)).begin(); _iter368 != (*(this->values)).end(); ++_iter368)
8009 {
8010 xfer += oprot->writeBinary((*_iter368));
8011 }
8012 xfer += oprot->writeListEnd();
8013 }
8014 xfer += oprot->writeFieldEnd();
8015 xfer += oprot->writeFieldStop();
8016 xfer += oprot->writeStructEnd();
8017 return xfer;
8018 }
8019
read(::apache::thrift::protocol::TProtocol * iprot)8020 uint32_t Cassandra_execute_prepared_cql_query_result::read(::apache::thrift::protocol::TProtocol* iprot) {
8021
8022 uint32_t xfer = 0;
8023 std::string fname;
8024 ::apache::thrift::protocol::TType ftype;
8025 int16_t fid;
8026
8027 xfer += iprot->readStructBegin(fname);
8028
8029 using ::apache::thrift::protocol::TProtocolException;
8030
8031
8032 while (true)
8033 {
8034 xfer += iprot->readFieldBegin(fname, ftype, fid);
8035 if (ftype == ::apache::thrift::protocol::T_STOP) {
8036 break;
8037 }
8038 switch (fid)
8039 {
8040 case 0:
8041 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8042 xfer += this->success.read(iprot);
8043 this->__isset.success = true;
8044 } else {
8045 xfer += iprot->skip(ftype);
8046 }
8047 break;
8048 case 1:
8049 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8050 xfer += this->ire.read(iprot);
8051 this->__isset.ire = true;
8052 } else {
8053 xfer += iprot->skip(ftype);
8054 }
8055 break;
8056 case 2:
8057 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8058 xfer += this->ue.read(iprot);
8059 this->__isset.ue = true;
8060 } else {
8061 xfer += iprot->skip(ftype);
8062 }
8063 break;
8064 case 3:
8065 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8066 xfer += this->te.read(iprot);
8067 this->__isset.te = true;
8068 } else {
8069 xfer += iprot->skip(ftype);
8070 }
8071 break;
8072 case 4:
8073 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8074 xfer += this->sde.read(iprot);
8075 this->__isset.sde = true;
8076 } else {
8077 xfer += iprot->skip(ftype);
8078 }
8079 break;
8080 default:
8081 xfer += iprot->skip(ftype);
8082 break;
8083 }
8084 xfer += iprot->readFieldEnd();
8085 }
8086
8087 xfer += iprot->readStructEnd();
8088
8089 return xfer;
8090 }
8091
write(::apache::thrift::protocol::TProtocol * oprot) const8092 uint32_t Cassandra_execute_prepared_cql_query_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
8093
8094 uint32_t xfer = 0;
8095
8096 xfer += oprot->writeStructBegin("Cassandra_execute_prepared_cql_query_result");
8097
8098 if (this->__isset.success) {
8099 xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
8100 xfer += this->success.write(oprot);
8101 xfer += oprot->writeFieldEnd();
8102 } else if (this->__isset.ire) {
8103 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
8104 xfer += this->ire.write(oprot);
8105 xfer += oprot->writeFieldEnd();
8106 } else if (this->__isset.ue) {
8107 xfer += oprot->writeFieldBegin("ue", ::apache::thrift::protocol::T_STRUCT, 2);
8108 xfer += this->ue.write(oprot);
8109 xfer += oprot->writeFieldEnd();
8110 } else if (this->__isset.te) {
8111 xfer += oprot->writeFieldBegin("te", ::apache::thrift::protocol::T_STRUCT, 3);
8112 xfer += this->te.write(oprot);
8113 xfer += oprot->writeFieldEnd();
8114 } else if (this->__isset.sde) {
8115 xfer += oprot->writeFieldBegin("sde", ::apache::thrift::protocol::T_STRUCT, 4);
8116 xfer += this->sde.write(oprot);
8117 xfer += oprot->writeFieldEnd();
8118 }
8119 xfer += oprot->writeFieldStop();
8120 xfer += oprot->writeStructEnd();
8121 return xfer;
8122 }
8123
read(::apache::thrift::protocol::TProtocol * iprot)8124 uint32_t Cassandra_execute_prepared_cql_query_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
8125
8126 uint32_t xfer = 0;
8127 std::string fname;
8128 ::apache::thrift::protocol::TType ftype;
8129 int16_t fid;
8130
8131 xfer += iprot->readStructBegin(fname);
8132
8133 using ::apache::thrift::protocol::TProtocolException;
8134
8135
8136 while (true)
8137 {
8138 xfer += iprot->readFieldBegin(fname, ftype, fid);
8139 if (ftype == ::apache::thrift::protocol::T_STOP) {
8140 break;
8141 }
8142 switch (fid)
8143 {
8144 case 0:
8145 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8146 xfer += (*(this->success)).read(iprot);
8147 this->__isset.success = true;
8148 } else {
8149 xfer += iprot->skip(ftype);
8150 }
8151 break;
8152 case 1:
8153 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8154 xfer += this->ire.read(iprot);
8155 this->__isset.ire = true;
8156 } else {
8157 xfer += iprot->skip(ftype);
8158 }
8159 break;
8160 case 2:
8161 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8162 xfer += this->ue.read(iprot);
8163 this->__isset.ue = true;
8164 } else {
8165 xfer += iprot->skip(ftype);
8166 }
8167 break;
8168 case 3:
8169 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8170 xfer += this->te.read(iprot);
8171 this->__isset.te = true;
8172 } else {
8173 xfer += iprot->skip(ftype);
8174 }
8175 break;
8176 case 4:
8177 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8178 xfer += this->sde.read(iprot);
8179 this->__isset.sde = true;
8180 } else {
8181 xfer += iprot->skip(ftype);
8182 }
8183 break;
8184 default:
8185 xfer += iprot->skip(ftype);
8186 break;
8187 }
8188 xfer += iprot->readFieldEnd();
8189 }
8190
8191 xfer += iprot->readStructEnd();
8192
8193 return xfer;
8194 }
8195
read(::apache::thrift::protocol::TProtocol * iprot)8196 uint32_t Cassandra_set_cql_version_args::read(::apache::thrift::protocol::TProtocol* iprot) {
8197
8198 uint32_t xfer = 0;
8199 std::string fname;
8200 ::apache::thrift::protocol::TType ftype;
8201 int16_t fid;
8202
8203 xfer += iprot->readStructBegin(fname);
8204
8205 using ::apache::thrift::protocol::TProtocolException;
8206
8207 bool isset_version = false;
8208
8209 while (true)
8210 {
8211 xfer += iprot->readFieldBegin(fname, ftype, fid);
8212 if (ftype == ::apache::thrift::protocol::T_STOP) {
8213 break;
8214 }
8215 switch (fid)
8216 {
8217 case 1:
8218 if (ftype == ::apache::thrift::protocol::T_STRING) {
8219 xfer += iprot->readString(this->version);
8220 isset_version = true;
8221 } else {
8222 xfer += iprot->skip(ftype);
8223 }
8224 break;
8225 default:
8226 xfer += iprot->skip(ftype);
8227 break;
8228 }
8229 xfer += iprot->readFieldEnd();
8230 }
8231
8232 xfer += iprot->readStructEnd();
8233
8234 if (!isset_version)
8235 throw TProtocolException(TProtocolException::INVALID_DATA);
8236 return xfer;
8237 }
8238
write(::apache::thrift::protocol::TProtocol * oprot) const8239 uint32_t Cassandra_set_cql_version_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
8240 uint32_t xfer = 0;
8241 xfer += oprot->writeStructBegin("Cassandra_set_cql_version_args");
8242 xfer += oprot->writeFieldBegin("version", ::apache::thrift::protocol::T_STRING, 1);
8243 xfer += oprot->writeString(this->version);
8244 xfer += oprot->writeFieldEnd();
8245 xfer += oprot->writeFieldStop();
8246 xfer += oprot->writeStructEnd();
8247 return xfer;
8248 }
8249
write(::apache::thrift::protocol::TProtocol * oprot) const8250 uint32_t Cassandra_set_cql_version_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
8251 uint32_t xfer = 0;
8252 xfer += oprot->writeStructBegin("Cassandra_set_cql_version_pargs");
8253 xfer += oprot->writeFieldBegin("version", ::apache::thrift::protocol::T_STRING, 1);
8254 xfer += oprot->writeString((*(this->version)));
8255 xfer += oprot->writeFieldEnd();
8256 xfer += oprot->writeFieldStop();
8257 xfer += oprot->writeStructEnd();
8258 return xfer;
8259 }
8260
read(::apache::thrift::protocol::TProtocol * iprot)8261 uint32_t Cassandra_set_cql_version_result::read(::apache::thrift::protocol::TProtocol* iprot) {
8262
8263 uint32_t xfer = 0;
8264 std::string fname;
8265 ::apache::thrift::protocol::TType ftype;
8266 int16_t fid;
8267
8268 xfer += iprot->readStructBegin(fname);
8269
8270 using ::apache::thrift::protocol::TProtocolException;
8271
8272
8273 while (true)
8274 {
8275 xfer += iprot->readFieldBegin(fname, ftype, fid);
8276 if (ftype == ::apache::thrift::protocol::T_STOP) {
8277 break;
8278 }
8279 switch (fid)
8280 {
8281 case 1:
8282 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8283 xfer += this->ire.read(iprot);
8284 this->__isset.ire = true;
8285 } else {
8286 xfer += iprot->skip(ftype);
8287 }
8288 break;
8289 default:
8290 xfer += iprot->skip(ftype);
8291 break;
8292 }
8293 xfer += iprot->readFieldEnd();
8294 }
8295
8296 xfer += iprot->readStructEnd();
8297
8298 return xfer;
8299 }
8300
write(::apache::thrift::protocol::TProtocol * oprot) const8301 uint32_t Cassandra_set_cql_version_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
8302
8303 uint32_t xfer = 0;
8304
8305 xfer += oprot->writeStructBegin("Cassandra_set_cql_version_result");
8306
8307 if (this->__isset.ire) {
8308 xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1);
8309 xfer += this->ire.write(oprot);
8310 xfer += oprot->writeFieldEnd();
8311 }
8312 xfer += oprot->writeFieldStop();
8313 xfer += oprot->writeStructEnd();
8314 return xfer;
8315 }
8316
read(::apache::thrift::protocol::TProtocol * iprot)8317 uint32_t Cassandra_set_cql_version_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
8318
8319 uint32_t xfer = 0;
8320 std::string fname;
8321 ::apache::thrift::protocol::TType ftype;
8322 int16_t fid;
8323
8324 xfer += iprot->readStructBegin(fname);
8325
8326 using ::apache::thrift::protocol::TProtocolException;
8327
8328
8329 while (true)
8330 {
8331 xfer += iprot->readFieldBegin(fname, ftype, fid);
8332 if (ftype == ::apache::thrift::protocol::T_STOP) {
8333 break;
8334 }
8335 switch (fid)
8336 {
8337 case 1:
8338 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
8339 xfer += this->ire.read(iprot);
8340 this->__isset.ire = true;
8341 } else {
8342 xfer += iprot->skip(ftype);
8343 }
8344 break;
8345 default:
8346 xfer += iprot->skip(ftype);
8347 break;
8348 }
8349 xfer += iprot->readFieldEnd();
8350 }
8351
8352 xfer += iprot->readStructEnd();
8353
8354 return xfer;
8355 }
8356
login(const AuthenticationRequest & auth_request)8357 void CassandraClient::login(const AuthenticationRequest& auth_request)
8358 {
8359 send_login(auth_request);
8360 recv_login();
8361 }
8362
send_login(const AuthenticationRequest & auth_request)8363 void CassandraClient::send_login(const AuthenticationRequest& auth_request)
8364 {
8365 int32_t cseqid = 0;
8366 oprot_->writeMessageBegin("login", ::apache::thrift::protocol::T_CALL, cseqid);
8367
8368 Cassandra_login_pargs args;
8369 args.auth_request = &auth_request;
8370 args.write(oprot_);
8371
8372 oprot_->writeMessageEnd();
8373 oprot_->getTransport()->writeEnd();
8374 oprot_->getTransport()->flush();
8375 }
8376
recv_login()8377 void CassandraClient::recv_login()
8378 {
8379
8380 int32_t rseqid = 0;
8381 std::string fname;
8382 ::apache::thrift::protocol::TMessageType mtype;
8383
8384 iprot_->readMessageBegin(fname, mtype, rseqid);
8385 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8386 ::apache::thrift::TApplicationException x;
8387 x.read(iprot_);
8388 iprot_->readMessageEnd();
8389 iprot_->getTransport()->readEnd();
8390 throw x;
8391 }
8392 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8393 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8394 iprot_->readMessageEnd();
8395 iprot_->getTransport()->readEnd();
8396 }
8397 if (fname.compare("login") != 0) {
8398 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8399 iprot_->readMessageEnd();
8400 iprot_->getTransport()->readEnd();
8401 }
8402 Cassandra_login_presult result;
8403 result.read(iprot_);
8404 iprot_->readMessageEnd();
8405 iprot_->getTransport()->readEnd();
8406
8407 if (result.__isset.authnx) {
8408 throw result.authnx;
8409 }
8410 if (result.__isset.authzx) {
8411 throw result.authzx;
8412 }
8413 return;
8414 }
8415
set_keyspace(const std::string & keyspace)8416 void CassandraClient::set_keyspace(const std::string& keyspace)
8417 {
8418 send_set_keyspace(keyspace);
8419 recv_set_keyspace();
8420 }
8421
send_set_keyspace(const std::string & keyspace)8422 void CassandraClient::send_set_keyspace(const std::string& keyspace)
8423 {
8424 int32_t cseqid = 0;
8425 oprot_->writeMessageBegin("set_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
8426
8427 Cassandra_set_keyspace_pargs args;
8428 args.keyspace = &keyspace;
8429 args.write(oprot_);
8430
8431 oprot_->writeMessageEnd();
8432 oprot_->getTransport()->writeEnd();
8433 oprot_->getTransport()->flush();
8434 }
8435
recv_set_keyspace()8436 void CassandraClient::recv_set_keyspace()
8437 {
8438
8439 int32_t rseqid = 0;
8440 std::string fname;
8441 ::apache::thrift::protocol::TMessageType mtype;
8442
8443 iprot_->readMessageBegin(fname, mtype, rseqid);
8444 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8445 ::apache::thrift::TApplicationException x;
8446 x.read(iprot_);
8447 iprot_->readMessageEnd();
8448 iprot_->getTransport()->readEnd();
8449 throw x;
8450 }
8451 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8452 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8453 iprot_->readMessageEnd();
8454 iprot_->getTransport()->readEnd();
8455 }
8456 if (fname.compare("set_keyspace") != 0) {
8457 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8458 iprot_->readMessageEnd();
8459 iprot_->getTransport()->readEnd();
8460 }
8461 Cassandra_set_keyspace_presult result;
8462 result.read(iprot_);
8463 iprot_->readMessageEnd();
8464 iprot_->getTransport()->readEnd();
8465
8466 if (result.__isset.ire) {
8467 throw result.ire;
8468 }
8469 return;
8470 }
8471
get(ColumnOrSuperColumn & _return,const std::string & key,const ColumnPath & column_path,const ConsistencyLevel::type consistency_level)8472 void CassandraClient::get(ColumnOrSuperColumn& _return, const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level)
8473 {
8474 send_get(key, column_path, consistency_level);
8475 recv_get(_return);
8476 }
8477
send_get(const std::string & key,const ColumnPath & column_path,const ConsistencyLevel::type consistency_level)8478 void CassandraClient::send_get(const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level)
8479 {
8480 int32_t cseqid = 0;
8481 oprot_->writeMessageBegin("get", ::apache::thrift::protocol::T_CALL, cseqid);
8482
8483 Cassandra_get_pargs args;
8484 args.key = &key;
8485 args.column_path = &column_path;
8486 args.consistency_level = &consistency_level;
8487 args.write(oprot_);
8488
8489 oprot_->writeMessageEnd();
8490 oprot_->getTransport()->writeEnd();
8491 oprot_->getTransport()->flush();
8492 }
8493
recv_get(ColumnOrSuperColumn & _return)8494 void CassandraClient::recv_get(ColumnOrSuperColumn& _return)
8495 {
8496
8497 int32_t rseqid = 0;
8498 std::string fname;
8499 ::apache::thrift::protocol::TMessageType mtype;
8500
8501 iprot_->readMessageBegin(fname, mtype, rseqid);
8502 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8503 ::apache::thrift::TApplicationException x;
8504 x.read(iprot_);
8505 iprot_->readMessageEnd();
8506 iprot_->getTransport()->readEnd();
8507 throw x;
8508 }
8509 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8510 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8511 iprot_->readMessageEnd();
8512 iprot_->getTransport()->readEnd();
8513 }
8514 if (fname.compare("get") != 0) {
8515 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8516 iprot_->readMessageEnd();
8517 iprot_->getTransport()->readEnd();
8518 }
8519 Cassandra_get_presult result;
8520 result.success = &_return;
8521 result.read(iprot_);
8522 iprot_->readMessageEnd();
8523 iprot_->getTransport()->readEnd();
8524
8525 if (result.__isset.success) {
8526 // _return pointer has now been filled
8527 return;
8528 }
8529 if (result.__isset.ire) {
8530 throw result.ire;
8531 }
8532 if (result.__isset.nfe) {
8533 throw result.nfe;
8534 }
8535 if (result.__isset.ue) {
8536 throw result.ue;
8537 }
8538 if (result.__isset.te) {
8539 throw result.te;
8540 }
8541 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get failed: unknown result");
8542 }
8543
get_slice(std::vector<ColumnOrSuperColumn> & _return,const std::string & key,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8544 void CassandraClient::get_slice(std::vector<ColumnOrSuperColumn> & _return, const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8545 {
8546 send_get_slice(key, column_parent, predicate, consistency_level);
8547 recv_get_slice(_return);
8548 }
8549
send_get_slice(const std::string & key,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8550 void CassandraClient::send_get_slice(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8551 {
8552 int32_t cseqid = 0;
8553 oprot_->writeMessageBegin("get_slice", ::apache::thrift::protocol::T_CALL, cseqid);
8554
8555 Cassandra_get_slice_pargs args;
8556 args.key = &key;
8557 args.column_parent = &column_parent;
8558 args.predicate = &predicate;
8559 args.consistency_level = &consistency_level;
8560 args.write(oprot_);
8561
8562 oprot_->writeMessageEnd();
8563 oprot_->getTransport()->writeEnd();
8564 oprot_->getTransport()->flush();
8565 }
8566
recv_get_slice(std::vector<ColumnOrSuperColumn> & _return)8567 void CassandraClient::recv_get_slice(std::vector<ColumnOrSuperColumn> & _return)
8568 {
8569
8570 int32_t rseqid = 0;
8571 std::string fname;
8572 ::apache::thrift::protocol::TMessageType mtype;
8573
8574 iprot_->readMessageBegin(fname, mtype, rseqid);
8575 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8576 ::apache::thrift::TApplicationException x;
8577 x.read(iprot_);
8578 iprot_->readMessageEnd();
8579 iprot_->getTransport()->readEnd();
8580 throw x;
8581 }
8582 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8583 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8584 iprot_->readMessageEnd();
8585 iprot_->getTransport()->readEnd();
8586 }
8587 if (fname.compare("get_slice") != 0) {
8588 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8589 iprot_->readMessageEnd();
8590 iprot_->getTransport()->readEnd();
8591 }
8592 Cassandra_get_slice_presult result;
8593 result.success = &_return;
8594 result.read(iprot_);
8595 iprot_->readMessageEnd();
8596 iprot_->getTransport()->readEnd();
8597
8598 if (result.__isset.success) {
8599 // _return pointer has now been filled
8600 return;
8601 }
8602 if (result.__isset.ire) {
8603 throw result.ire;
8604 }
8605 if (result.__isset.ue) {
8606 throw result.ue;
8607 }
8608 if (result.__isset.te) {
8609 throw result.te;
8610 }
8611 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_slice failed: unknown result");
8612 }
8613
get_count(const std::string & key,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8614 int32_t CassandraClient::get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8615 {
8616 send_get_count(key, column_parent, predicate, consistency_level);
8617 return recv_get_count();
8618 }
8619
send_get_count(const std::string & key,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8620 void CassandraClient::send_get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8621 {
8622 int32_t cseqid = 0;
8623 oprot_->writeMessageBegin("get_count", ::apache::thrift::protocol::T_CALL, cseqid);
8624
8625 Cassandra_get_count_pargs args;
8626 args.key = &key;
8627 args.column_parent = &column_parent;
8628 args.predicate = &predicate;
8629 args.consistency_level = &consistency_level;
8630 args.write(oprot_);
8631
8632 oprot_->writeMessageEnd();
8633 oprot_->getTransport()->writeEnd();
8634 oprot_->getTransport()->flush();
8635 }
8636
recv_get_count()8637 int32_t CassandraClient::recv_get_count()
8638 {
8639
8640 int32_t rseqid = 0;
8641 std::string fname;
8642 ::apache::thrift::protocol::TMessageType mtype;
8643
8644 iprot_->readMessageBegin(fname, mtype, rseqid);
8645 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8646 ::apache::thrift::TApplicationException x;
8647 x.read(iprot_);
8648 iprot_->readMessageEnd();
8649 iprot_->getTransport()->readEnd();
8650 throw x;
8651 }
8652 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8653 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8654 iprot_->readMessageEnd();
8655 iprot_->getTransport()->readEnd();
8656 }
8657 if (fname.compare("get_count") != 0) {
8658 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8659 iprot_->readMessageEnd();
8660 iprot_->getTransport()->readEnd();
8661 }
8662 int32_t _return;
8663 Cassandra_get_count_presult result;
8664 result.success = &_return;
8665 result.read(iprot_);
8666 iprot_->readMessageEnd();
8667 iprot_->getTransport()->readEnd();
8668
8669 if (result.__isset.success) {
8670 return _return;
8671 }
8672 if (result.__isset.ire) {
8673 throw result.ire;
8674 }
8675 if (result.__isset.ue) {
8676 throw result.ue;
8677 }
8678 if (result.__isset.te) {
8679 throw result.te;
8680 }
8681 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_count failed: unknown result");
8682 }
8683
multiget_slice(std::map<std::string,std::vector<ColumnOrSuperColumn>> & _return,const std::vector<std::string> & keys,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8684 void CassandraClient::multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8685 {
8686 send_multiget_slice(keys, column_parent, predicate, consistency_level);
8687 recv_multiget_slice(_return);
8688 }
8689
send_multiget_slice(const std::vector<std::string> & keys,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8690 void CassandraClient::send_multiget_slice(const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8691 {
8692 int32_t cseqid = 0;
8693 oprot_->writeMessageBegin("multiget_slice", ::apache::thrift::protocol::T_CALL, cseqid);
8694
8695 Cassandra_multiget_slice_pargs args;
8696 args.keys = &keys;
8697 args.column_parent = &column_parent;
8698 args.predicate = &predicate;
8699 args.consistency_level = &consistency_level;
8700 args.write(oprot_);
8701
8702 oprot_->writeMessageEnd();
8703 oprot_->getTransport()->writeEnd();
8704 oprot_->getTransport()->flush();
8705 }
8706
recv_multiget_slice(std::map<std::string,std::vector<ColumnOrSuperColumn>> & _return)8707 void CassandraClient::recv_multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return)
8708 {
8709
8710 int32_t rseqid = 0;
8711 std::string fname;
8712 ::apache::thrift::protocol::TMessageType mtype;
8713
8714 iprot_->readMessageBegin(fname, mtype, rseqid);
8715 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8716 ::apache::thrift::TApplicationException x;
8717 x.read(iprot_);
8718 iprot_->readMessageEnd();
8719 iprot_->getTransport()->readEnd();
8720 throw x;
8721 }
8722 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8723 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8724 iprot_->readMessageEnd();
8725 iprot_->getTransport()->readEnd();
8726 }
8727 if (fname.compare("multiget_slice") != 0) {
8728 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8729 iprot_->readMessageEnd();
8730 iprot_->getTransport()->readEnd();
8731 }
8732 Cassandra_multiget_slice_presult result;
8733 result.success = &_return;
8734 result.read(iprot_);
8735 iprot_->readMessageEnd();
8736 iprot_->getTransport()->readEnd();
8737
8738 if (result.__isset.success) {
8739 // _return pointer has now been filled
8740 return;
8741 }
8742 if (result.__isset.ire) {
8743 throw result.ire;
8744 }
8745 if (result.__isset.ue) {
8746 throw result.ue;
8747 }
8748 if (result.__isset.te) {
8749 throw result.te;
8750 }
8751 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "multiget_slice failed: unknown result");
8752 }
8753
multiget_count(std::map<std::string,int32_t> & _return,const std::vector<std::string> & keys,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8754 void CassandraClient::multiget_count(std::map<std::string, int32_t> & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8755 {
8756 send_multiget_count(keys, column_parent, predicate, consistency_level);
8757 recv_multiget_count(_return);
8758 }
8759
send_multiget_count(const std::vector<std::string> & keys,const ColumnParent & column_parent,const SlicePredicate & predicate,const ConsistencyLevel::type consistency_level)8760 void CassandraClient::send_multiget_count(const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level)
8761 {
8762 int32_t cseqid = 0;
8763 oprot_->writeMessageBegin("multiget_count", ::apache::thrift::protocol::T_CALL, cseqid);
8764
8765 Cassandra_multiget_count_pargs args;
8766 args.keys = &keys;
8767 args.column_parent = &column_parent;
8768 args.predicate = &predicate;
8769 args.consistency_level = &consistency_level;
8770 args.write(oprot_);
8771
8772 oprot_->writeMessageEnd();
8773 oprot_->getTransport()->writeEnd();
8774 oprot_->getTransport()->flush();
8775 }
8776
recv_multiget_count(std::map<std::string,int32_t> & _return)8777 void CassandraClient::recv_multiget_count(std::map<std::string, int32_t> & _return)
8778 {
8779
8780 int32_t rseqid = 0;
8781 std::string fname;
8782 ::apache::thrift::protocol::TMessageType mtype;
8783
8784 iprot_->readMessageBegin(fname, mtype, rseqid);
8785 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8786 ::apache::thrift::TApplicationException x;
8787 x.read(iprot_);
8788 iprot_->readMessageEnd();
8789 iprot_->getTransport()->readEnd();
8790 throw x;
8791 }
8792 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8793 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8794 iprot_->readMessageEnd();
8795 iprot_->getTransport()->readEnd();
8796 }
8797 if (fname.compare("multiget_count") != 0) {
8798 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8799 iprot_->readMessageEnd();
8800 iprot_->getTransport()->readEnd();
8801 }
8802 Cassandra_multiget_count_presult result;
8803 result.success = &_return;
8804 result.read(iprot_);
8805 iprot_->readMessageEnd();
8806 iprot_->getTransport()->readEnd();
8807
8808 if (result.__isset.success) {
8809 // _return pointer has now been filled
8810 return;
8811 }
8812 if (result.__isset.ire) {
8813 throw result.ire;
8814 }
8815 if (result.__isset.ue) {
8816 throw result.ue;
8817 }
8818 if (result.__isset.te) {
8819 throw result.te;
8820 }
8821 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "multiget_count failed: unknown result");
8822 }
8823
get_range_slices(std::vector<KeySlice> & _return,const ColumnParent & column_parent,const SlicePredicate & predicate,const KeyRange & range,const ConsistencyLevel::type consistency_level)8824 void CassandraClient::get_range_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level)
8825 {
8826 send_get_range_slices(column_parent, predicate, range, consistency_level);
8827 recv_get_range_slices(_return);
8828 }
8829
send_get_range_slices(const ColumnParent & column_parent,const SlicePredicate & predicate,const KeyRange & range,const ConsistencyLevel::type consistency_level)8830 void CassandraClient::send_get_range_slices(const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level)
8831 {
8832 int32_t cseqid = 0;
8833 oprot_->writeMessageBegin("get_range_slices", ::apache::thrift::protocol::T_CALL, cseqid);
8834
8835 Cassandra_get_range_slices_pargs args;
8836 args.column_parent = &column_parent;
8837 args.predicate = &predicate;
8838 args.range = ⦥
8839 args.consistency_level = &consistency_level;
8840 args.write(oprot_);
8841
8842 oprot_->writeMessageEnd();
8843 oprot_->getTransport()->writeEnd();
8844 oprot_->getTransport()->flush();
8845 }
8846
recv_get_range_slices(std::vector<KeySlice> & _return)8847 void CassandraClient::recv_get_range_slices(std::vector<KeySlice> & _return)
8848 {
8849
8850 int32_t rseqid = 0;
8851 std::string fname;
8852 ::apache::thrift::protocol::TMessageType mtype;
8853
8854 iprot_->readMessageBegin(fname, mtype, rseqid);
8855 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8856 ::apache::thrift::TApplicationException x;
8857 x.read(iprot_);
8858 iprot_->readMessageEnd();
8859 iprot_->getTransport()->readEnd();
8860 throw x;
8861 }
8862 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8863 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8864 iprot_->readMessageEnd();
8865 iprot_->getTransport()->readEnd();
8866 }
8867 if (fname.compare("get_range_slices") != 0) {
8868 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8869 iprot_->readMessageEnd();
8870 iprot_->getTransport()->readEnd();
8871 }
8872 Cassandra_get_range_slices_presult result;
8873 result.success = &_return;
8874 result.read(iprot_);
8875 iprot_->readMessageEnd();
8876 iprot_->getTransport()->readEnd();
8877
8878 if (result.__isset.success) {
8879 // _return pointer has now been filled
8880 return;
8881 }
8882 if (result.__isset.ire) {
8883 throw result.ire;
8884 }
8885 if (result.__isset.ue) {
8886 throw result.ue;
8887 }
8888 if (result.__isset.te) {
8889 throw result.te;
8890 }
8891 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_range_slices failed: unknown result");
8892 }
8893
get_paged_slice(std::vector<KeySlice> & _return,const std::string & column_family,const KeyRange & range,const std::string & start_column,const ConsistencyLevel::type consistency_level)8894 void CassandraClient::get_paged_slice(std::vector<KeySlice> & _return, const std::string& column_family, const KeyRange& range, const std::string& start_column, const ConsistencyLevel::type consistency_level)
8895 {
8896 send_get_paged_slice(column_family, range, start_column, consistency_level);
8897 recv_get_paged_slice(_return);
8898 }
8899
send_get_paged_slice(const std::string & column_family,const KeyRange & range,const std::string & start_column,const ConsistencyLevel::type consistency_level)8900 void CassandraClient::send_get_paged_slice(const std::string& column_family, const KeyRange& range, const std::string& start_column, const ConsistencyLevel::type consistency_level)
8901 {
8902 int32_t cseqid = 0;
8903 oprot_->writeMessageBegin("get_paged_slice", ::apache::thrift::protocol::T_CALL, cseqid);
8904
8905 Cassandra_get_paged_slice_pargs args;
8906 args.column_family = &column_family;
8907 args.range = ⦥
8908 args.start_column = &start_column;
8909 args.consistency_level = &consistency_level;
8910 args.write(oprot_);
8911
8912 oprot_->writeMessageEnd();
8913 oprot_->getTransport()->writeEnd();
8914 oprot_->getTransport()->flush();
8915 }
8916
recv_get_paged_slice(std::vector<KeySlice> & _return)8917 void CassandraClient::recv_get_paged_slice(std::vector<KeySlice> & _return)
8918 {
8919
8920 int32_t rseqid = 0;
8921 std::string fname;
8922 ::apache::thrift::protocol::TMessageType mtype;
8923
8924 iprot_->readMessageBegin(fname, mtype, rseqid);
8925 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8926 ::apache::thrift::TApplicationException x;
8927 x.read(iprot_);
8928 iprot_->readMessageEnd();
8929 iprot_->getTransport()->readEnd();
8930 throw x;
8931 }
8932 if (mtype != ::apache::thrift::protocol::T_REPLY) {
8933 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8934 iprot_->readMessageEnd();
8935 iprot_->getTransport()->readEnd();
8936 }
8937 if (fname.compare("get_paged_slice") != 0) {
8938 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
8939 iprot_->readMessageEnd();
8940 iprot_->getTransport()->readEnd();
8941 }
8942 Cassandra_get_paged_slice_presult result;
8943 result.success = &_return;
8944 result.read(iprot_);
8945 iprot_->readMessageEnd();
8946 iprot_->getTransport()->readEnd();
8947
8948 if (result.__isset.success) {
8949 // _return pointer has now been filled
8950 return;
8951 }
8952 if (result.__isset.ire) {
8953 throw result.ire;
8954 }
8955 if (result.__isset.ue) {
8956 throw result.ue;
8957 }
8958 if (result.__isset.te) {
8959 throw result.te;
8960 }
8961 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_paged_slice failed: unknown result");
8962 }
8963
get_indexed_slices(std::vector<KeySlice> & _return,const ColumnParent & column_parent,const IndexClause & index_clause,const SlicePredicate & column_predicate,const ConsistencyLevel::type consistency_level)8964 void CassandraClient::get_indexed_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level)
8965 {
8966 send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level);
8967 recv_get_indexed_slices(_return);
8968 }
8969
send_get_indexed_slices(const ColumnParent & column_parent,const IndexClause & index_clause,const SlicePredicate & column_predicate,const ConsistencyLevel::type consistency_level)8970 void CassandraClient::send_get_indexed_slices(const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level)
8971 {
8972 int32_t cseqid = 0;
8973 oprot_->writeMessageBegin("get_indexed_slices", ::apache::thrift::protocol::T_CALL, cseqid);
8974
8975 Cassandra_get_indexed_slices_pargs args;
8976 args.column_parent = &column_parent;
8977 args.index_clause = &index_clause;
8978 args.column_predicate = &column_predicate;
8979 args.consistency_level = &consistency_level;
8980 args.write(oprot_);
8981
8982 oprot_->writeMessageEnd();
8983 oprot_->getTransport()->writeEnd();
8984 oprot_->getTransport()->flush();
8985 }
8986
recv_get_indexed_slices(std::vector<KeySlice> & _return)8987 void CassandraClient::recv_get_indexed_slices(std::vector<KeySlice> & _return)
8988 {
8989
8990 int32_t rseqid = 0;
8991 std::string fname;
8992 ::apache::thrift::protocol::TMessageType mtype;
8993
8994 iprot_->readMessageBegin(fname, mtype, rseqid);
8995 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
8996 ::apache::thrift::TApplicationException x;
8997 x.read(iprot_);
8998 iprot_->readMessageEnd();
8999 iprot_->getTransport()->readEnd();
9000 throw x;
9001 }
9002 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9003 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9004 iprot_->readMessageEnd();
9005 iprot_->getTransport()->readEnd();
9006 }
9007 if (fname.compare("get_indexed_slices") != 0) {
9008 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9009 iprot_->readMessageEnd();
9010 iprot_->getTransport()->readEnd();
9011 }
9012 Cassandra_get_indexed_slices_presult result;
9013 result.success = &_return;
9014 result.read(iprot_);
9015 iprot_->readMessageEnd();
9016 iprot_->getTransport()->readEnd();
9017
9018 if (result.__isset.success) {
9019 // _return pointer has now been filled
9020 return;
9021 }
9022 if (result.__isset.ire) {
9023 throw result.ire;
9024 }
9025 if (result.__isset.ue) {
9026 throw result.ue;
9027 }
9028 if (result.__isset.te) {
9029 throw result.te;
9030 }
9031 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexed_slices failed: unknown result");
9032 }
9033
insert(const std::string & key,const ColumnParent & column_parent,const Column & column,const ConsistencyLevel::type consistency_level)9034 void CassandraClient::insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level)
9035 {
9036 send_insert(key, column_parent, column, consistency_level);
9037 recv_insert();
9038 }
9039
send_insert(const std::string & key,const ColumnParent & column_parent,const Column & column,const ConsistencyLevel::type consistency_level)9040 void CassandraClient::send_insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level)
9041 {
9042 int32_t cseqid = 0;
9043 oprot_->writeMessageBegin("insert", ::apache::thrift::protocol::T_CALL, cseqid);
9044
9045 Cassandra_insert_pargs args;
9046 args.key = &key;
9047 args.column_parent = &column_parent;
9048 args.column = &column;
9049 args.consistency_level = &consistency_level;
9050 args.write(oprot_);
9051
9052 oprot_->writeMessageEnd();
9053 oprot_->getTransport()->writeEnd();
9054 oprot_->getTransport()->flush();
9055 }
9056
recv_insert()9057 void CassandraClient::recv_insert()
9058 {
9059
9060 int32_t rseqid = 0;
9061 std::string fname;
9062 ::apache::thrift::protocol::TMessageType mtype;
9063
9064 iprot_->readMessageBegin(fname, mtype, rseqid);
9065 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9066 ::apache::thrift::TApplicationException x;
9067 x.read(iprot_);
9068 iprot_->readMessageEnd();
9069 iprot_->getTransport()->readEnd();
9070 throw x;
9071 }
9072 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9073 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9074 iprot_->readMessageEnd();
9075 iprot_->getTransport()->readEnd();
9076 }
9077 if (fname.compare("insert") != 0) {
9078 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9079 iprot_->readMessageEnd();
9080 iprot_->getTransport()->readEnd();
9081 }
9082 Cassandra_insert_presult result;
9083 result.read(iprot_);
9084 iprot_->readMessageEnd();
9085 iprot_->getTransport()->readEnd();
9086
9087 if (result.__isset.ire) {
9088 throw result.ire;
9089 }
9090 if (result.__isset.ue) {
9091 throw result.ue;
9092 }
9093 if (result.__isset.te) {
9094 throw result.te;
9095 }
9096 return;
9097 }
9098
add(const std::string & key,const ColumnParent & column_parent,const CounterColumn & column,const ConsistencyLevel::type consistency_level)9099 void CassandraClient::add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level)
9100 {
9101 send_add(key, column_parent, column, consistency_level);
9102 recv_add();
9103 }
9104
send_add(const std::string & key,const ColumnParent & column_parent,const CounterColumn & column,const ConsistencyLevel::type consistency_level)9105 void CassandraClient::send_add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level)
9106 {
9107 int32_t cseqid = 0;
9108 oprot_->writeMessageBegin("add", ::apache::thrift::protocol::T_CALL, cseqid);
9109
9110 Cassandra_add_pargs args;
9111 args.key = &key;
9112 args.column_parent = &column_parent;
9113 args.column = &column;
9114 args.consistency_level = &consistency_level;
9115 args.write(oprot_);
9116
9117 oprot_->writeMessageEnd();
9118 oprot_->getTransport()->writeEnd();
9119 oprot_->getTransport()->flush();
9120 }
9121
recv_add()9122 void CassandraClient::recv_add()
9123 {
9124
9125 int32_t rseqid = 0;
9126 std::string fname;
9127 ::apache::thrift::protocol::TMessageType mtype;
9128
9129 iprot_->readMessageBegin(fname, mtype, rseqid);
9130 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9131 ::apache::thrift::TApplicationException x;
9132 x.read(iprot_);
9133 iprot_->readMessageEnd();
9134 iprot_->getTransport()->readEnd();
9135 throw x;
9136 }
9137 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9138 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9139 iprot_->readMessageEnd();
9140 iprot_->getTransport()->readEnd();
9141 }
9142 if (fname.compare("add") != 0) {
9143 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9144 iprot_->readMessageEnd();
9145 iprot_->getTransport()->readEnd();
9146 }
9147 Cassandra_add_presult result;
9148 result.read(iprot_);
9149 iprot_->readMessageEnd();
9150 iprot_->getTransport()->readEnd();
9151
9152 if (result.__isset.ire) {
9153 throw result.ire;
9154 }
9155 if (result.__isset.ue) {
9156 throw result.ue;
9157 }
9158 if (result.__isset.te) {
9159 throw result.te;
9160 }
9161 return;
9162 }
9163
remove(const std::string & key,const ColumnPath & column_path,const int64_t timestamp,const ConsistencyLevel::type consistency_level)9164 void CassandraClient::remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level)
9165 {
9166 send_remove(key, column_path, timestamp, consistency_level);
9167 recv_remove();
9168 }
9169
send_remove(const std::string & key,const ColumnPath & column_path,const int64_t timestamp,const ConsistencyLevel::type consistency_level)9170 void CassandraClient::send_remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level)
9171 {
9172 int32_t cseqid = 0;
9173 oprot_->writeMessageBegin("remove", ::apache::thrift::protocol::T_CALL, cseqid);
9174
9175 Cassandra_remove_pargs args;
9176 args.key = &key;
9177 args.column_path = &column_path;
9178 args.timestamp = ×tamp;
9179 args.consistency_level = &consistency_level;
9180 args.write(oprot_);
9181
9182 oprot_->writeMessageEnd();
9183 oprot_->getTransport()->writeEnd();
9184 oprot_->getTransport()->flush();
9185 }
9186
recv_remove()9187 void CassandraClient::recv_remove()
9188 {
9189
9190 int32_t rseqid = 0;
9191 std::string fname;
9192 ::apache::thrift::protocol::TMessageType mtype;
9193
9194 iprot_->readMessageBegin(fname, mtype, rseqid);
9195 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9196 ::apache::thrift::TApplicationException x;
9197 x.read(iprot_);
9198 iprot_->readMessageEnd();
9199 iprot_->getTransport()->readEnd();
9200 throw x;
9201 }
9202 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9203 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9204 iprot_->readMessageEnd();
9205 iprot_->getTransport()->readEnd();
9206 }
9207 if (fname.compare("remove") != 0) {
9208 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9209 iprot_->readMessageEnd();
9210 iprot_->getTransport()->readEnd();
9211 }
9212 Cassandra_remove_presult result;
9213 result.read(iprot_);
9214 iprot_->readMessageEnd();
9215 iprot_->getTransport()->readEnd();
9216
9217 if (result.__isset.ire) {
9218 throw result.ire;
9219 }
9220 if (result.__isset.ue) {
9221 throw result.ue;
9222 }
9223 if (result.__isset.te) {
9224 throw result.te;
9225 }
9226 return;
9227 }
9228
remove_counter(const std::string & key,const ColumnPath & path,const ConsistencyLevel::type consistency_level)9229 void CassandraClient::remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level)
9230 {
9231 send_remove_counter(key, path, consistency_level);
9232 recv_remove_counter();
9233 }
9234
send_remove_counter(const std::string & key,const ColumnPath & path,const ConsistencyLevel::type consistency_level)9235 void CassandraClient::send_remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level)
9236 {
9237 int32_t cseqid = 0;
9238 oprot_->writeMessageBegin("remove_counter", ::apache::thrift::protocol::T_CALL, cseqid);
9239
9240 Cassandra_remove_counter_pargs args;
9241 args.key = &key;
9242 args.path = &path;
9243 args.consistency_level = &consistency_level;
9244 args.write(oprot_);
9245
9246 oprot_->writeMessageEnd();
9247 oprot_->getTransport()->writeEnd();
9248 oprot_->getTransport()->flush();
9249 }
9250
recv_remove_counter()9251 void CassandraClient::recv_remove_counter()
9252 {
9253
9254 int32_t rseqid = 0;
9255 std::string fname;
9256 ::apache::thrift::protocol::TMessageType mtype;
9257
9258 iprot_->readMessageBegin(fname, mtype, rseqid);
9259 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9260 ::apache::thrift::TApplicationException x;
9261 x.read(iprot_);
9262 iprot_->readMessageEnd();
9263 iprot_->getTransport()->readEnd();
9264 throw x;
9265 }
9266 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9267 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9268 iprot_->readMessageEnd();
9269 iprot_->getTransport()->readEnd();
9270 }
9271 if (fname.compare("remove_counter") != 0) {
9272 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9273 iprot_->readMessageEnd();
9274 iprot_->getTransport()->readEnd();
9275 }
9276 Cassandra_remove_counter_presult result;
9277 result.read(iprot_);
9278 iprot_->readMessageEnd();
9279 iprot_->getTransport()->readEnd();
9280
9281 if (result.__isset.ire) {
9282 throw result.ire;
9283 }
9284 if (result.__isset.ue) {
9285 throw result.ue;
9286 }
9287 if (result.__isset.te) {
9288 throw result.te;
9289 }
9290 return;
9291 }
9292
batch_mutate(const std::map<std::string,std::map<std::string,std::vector<Mutation>>> & mutation_map,const ConsistencyLevel::type consistency_level)9293 void CassandraClient::batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level)
9294 {
9295 send_batch_mutate(mutation_map, consistency_level);
9296 recv_batch_mutate();
9297 }
9298
send_batch_mutate(const std::map<std::string,std::map<std::string,std::vector<Mutation>>> & mutation_map,const ConsistencyLevel::type consistency_level)9299 void CassandraClient::send_batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level)
9300 {
9301 int32_t cseqid = 0;
9302 oprot_->writeMessageBegin("batch_mutate", ::apache::thrift::protocol::T_CALL, cseqid);
9303
9304 Cassandra_batch_mutate_pargs args;
9305 args.mutation_map = &mutation_map;
9306 args.consistency_level = &consistency_level;
9307 args.write(oprot_);
9308
9309 oprot_->writeMessageEnd();
9310 oprot_->getTransport()->writeEnd();
9311 oprot_->getTransport()->flush();
9312 }
9313
recv_batch_mutate()9314 void CassandraClient::recv_batch_mutate()
9315 {
9316
9317 int32_t rseqid = 0;
9318 std::string fname;
9319 ::apache::thrift::protocol::TMessageType mtype;
9320
9321 iprot_->readMessageBegin(fname, mtype, rseqid);
9322 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9323 ::apache::thrift::TApplicationException x;
9324 x.read(iprot_);
9325 iprot_->readMessageEnd();
9326 iprot_->getTransport()->readEnd();
9327 throw x;
9328 }
9329 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9330 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9331 iprot_->readMessageEnd();
9332 iprot_->getTransport()->readEnd();
9333 }
9334 if (fname.compare("batch_mutate") != 0) {
9335 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9336 iprot_->readMessageEnd();
9337 iprot_->getTransport()->readEnd();
9338 }
9339 Cassandra_batch_mutate_presult result;
9340 result.read(iprot_);
9341 iprot_->readMessageEnd();
9342 iprot_->getTransport()->readEnd();
9343
9344 if (result.__isset.ire) {
9345 throw result.ire;
9346 }
9347 if (result.__isset.ue) {
9348 throw result.ue;
9349 }
9350 if (result.__isset.te) {
9351 throw result.te;
9352 }
9353 return;
9354 }
9355
truncate(const std::string & cfname)9356 void CassandraClient::truncate(const std::string& cfname)
9357 {
9358 send_truncate(cfname);
9359 recv_truncate();
9360 }
9361
send_truncate(const std::string & cfname)9362 void CassandraClient::send_truncate(const std::string& cfname)
9363 {
9364 int32_t cseqid = 0;
9365 oprot_->writeMessageBegin("truncate", ::apache::thrift::protocol::T_CALL, cseqid);
9366
9367 Cassandra_truncate_pargs args;
9368 args.cfname = &cfname;
9369 args.write(oprot_);
9370
9371 oprot_->writeMessageEnd();
9372 oprot_->getTransport()->writeEnd();
9373 oprot_->getTransport()->flush();
9374 }
9375
recv_truncate()9376 void CassandraClient::recv_truncate()
9377 {
9378
9379 int32_t rseqid = 0;
9380 std::string fname;
9381 ::apache::thrift::protocol::TMessageType mtype;
9382
9383 iprot_->readMessageBegin(fname, mtype, rseqid);
9384 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9385 ::apache::thrift::TApplicationException x;
9386 x.read(iprot_);
9387 iprot_->readMessageEnd();
9388 iprot_->getTransport()->readEnd();
9389 throw x;
9390 }
9391 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9392 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9393 iprot_->readMessageEnd();
9394 iprot_->getTransport()->readEnd();
9395 }
9396 if (fname.compare("truncate") != 0) {
9397 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9398 iprot_->readMessageEnd();
9399 iprot_->getTransport()->readEnd();
9400 }
9401 Cassandra_truncate_presult result;
9402 result.read(iprot_);
9403 iprot_->readMessageEnd();
9404 iprot_->getTransport()->readEnd();
9405
9406 if (result.__isset.ire) {
9407 throw result.ire;
9408 }
9409 if (result.__isset.ue) {
9410 throw result.ue;
9411 }
9412 if (result.__isset.te) {
9413 throw result.te;
9414 }
9415 return;
9416 }
9417
describe_schema_versions(std::map<std::string,std::vector<std::string>> & _return)9418 void CassandraClient::describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return)
9419 {
9420 send_describe_schema_versions();
9421 recv_describe_schema_versions(_return);
9422 }
9423
send_describe_schema_versions()9424 void CassandraClient::send_describe_schema_versions()
9425 {
9426 int32_t cseqid = 0;
9427 oprot_->writeMessageBegin("describe_schema_versions", ::apache::thrift::protocol::T_CALL, cseqid);
9428
9429 Cassandra_describe_schema_versions_pargs args;
9430 args.write(oprot_);
9431
9432 oprot_->writeMessageEnd();
9433 oprot_->getTransport()->writeEnd();
9434 oprot_->getTransport()->flush();
9435 }
9436
recv_describe_schema_versions(std::map<std::string,std::vector<std::string>> & _return)9437 void CassandraClient::recv_describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return)
9438 {
9439
9440 int32_t rseqid = 0;
9441 std::string fname;
9442 ::apache::thrift::protocol::TMessageType mtype;
9443
9444 iprot_->readMessageBegin(fname, mtype, rseqid);
9445 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9446 ::apache::thrift::TApplicationException x;
9447 x.read(iprot_);
9448 iprot_->readMessageEnd();
9449 iprot_->getTransport()->readEnd();
9450 throw x;
9451 }
9452 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9453 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9454 iprot_->readMessageEnd();
9455 iprot_->getTransport()->readEnd();
9456 }
9457 if (fname.compare("describe_schema_versions") != 0) {
9458 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9459 iprot_->readMessageEnd();
9460 iprot_->getTransport()->readEnd();
9461 }
9462 Cassandra_describe_schema_versions_presult result;
9463 result.success = &_return;
9464 result.read(iprot_);
9465 iprot_->readMessageEnd();
9466 iprot_->getTransport()->readEnd();
9467
9468 if (result.__isset.success) {
9469 // _return pointer has now been filled
9470 return;
9471 }
9472 if (result.__isset.ire) {
9473 throw result.ire;
9474 }
9475 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_schema_versions failed: unknown result");
9476 }
9477
describe_keyspaces(std::vector<KsDef> & _return)9478 void CassandraClient::describe_keyspaces(std::vector<KsDef> & _return)
9479 {
9480 send_describe_keyspaces();
9481 recv_describe_keyspaces(_return);
9482 }
9483
send_describe_keyspaces()9484 void CassandraClient::send_describe_keyspaces()
9485 {
9486 int32_t cseqid = 0;
9487 oprot_->writeMessageBegin("describe_keyspaces", ::apache::thrift::protocol::T_CALL, cseqid);
9488
9489 Cassandra_describe_keyspaces_pargs args;
9490 args.write(oprot_);
9491
9492 oprot_->writeMessageEnd();
9493 oprot_->getTransport()->writeEnd();
9494 oprot_->getTransport()->flush();
9495 }
9496
recv_describe_keyspaces(std::vector<KsDef> & _return)9497 void CassandraClient::recv_describe_keyspaces(std::vector<KsDef> & _return)
9498 {
9499
9500 int32_t rseqid = 0;
9501 std::string fname;
9502 ::apache::thrift::protocol::TMessageType mtype;
9503
9504 iprot_->readMessageBegin(fname, mtype, rseqid);
9505 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9506 ::apache::thrift::TApplicationException x;
9507 x.read(iprot_);
9508 iprot_->readMessageEnd();
9509 iprot_->getTransport()->readEnd();
9510 throw x;
9511 }
9512 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9513 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9514 iprot_->readMessageEnd();
9515 iprot_->getTransport()->readEnd();
9516 }
9517 if (fname.compare("describe_keyspaces") != 0) {
9518 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9519 iprot_->readMessageEnd();
9520 iprot_->getTransport()->readEnd();
9521 }
9522 Cassandra_describe_keyspaces_presult result;
9523 result.success = &_return;
9524 result.read(iprot_);
9525 iprot_->readMessageEnd();
9526 iprot_->getTransport()->readEnd();
9527
9528 if (result.__isset.success) {
9529 // _return pointer has now been filled
9530 return;
9531 }
9532 if (result.__isset.ire) {
9533 throw result.ire;
9534 }
9535 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_keyspaces failed: unknown result");
9536 }
9537
describe_cluster_name(std::string & _return)9538 void CassandraClient::describe_cluster_name(std::string& _return)
9539 {
9540 send_describe_cluster_name();
9541 recv_describe_cluster_name(_return);
9542 }
9543
send_describe_cluster_name()9544 void CassandraClient::send_describe_cluster_name()
9545 {
9546 int32_t cseqid = 0;
9547 oprot_->writeMessageBegin("describe_cluster_name", ::apache::thrift::protocol::T_CALL, cseqid);
9548
9549 Cassandra_describe_cluster_name_pargs args;
9550 args.write(oprot_);
9551
9552 oprot_->writeMessageEnd();
9553 oprot_->getTransport()->writeEnd();
9554 oprot_->getTransport()->flush();
9555 }
9556
recv_describe_cluster_name(std::string & _return)9557 void CassandraClient::recv_describe_cluster_name(std::string& _return)
9558 {
9559
9560 int32_t rseqid = 0;
9561 std::string fname;
9562 ::apache::thrift::protocol::TMessageType mtype;
9563
9564 iprot_->readMessageBegin(fname, mtype, rseqid);
9565 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9566 ::apache::thrift::TApplicationException x;
9567 x.read(iprot_);
9568 iprot_->readMessageEnd();
9569 iprot_->getTransport()->readEnd();
9570 throw x;
9571 }
9572 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9573 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9574 iprot_->readMessageEnd();
9575 iprot_->getTransport()->readEnd();
9576 }
9577 if (fname.compare("describe_cluster_name") != 0) {
9578 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9579 iprot_->readMessageEnd();
9580 iprot_->getTransport()->readEnd();
9581 }
9582 Cassandra_describe_cluster_name_presult result;
9583 result.success = &_return;
9584 result.read(iprot_);
9585 iprot_->readMessageEnd();
9586 iprot_->getTransport()->readEnd();
9587
9588 if (result.__isset.success) {
9589 // _return pointer has now been filled
9590 return;
9591 }
9592 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_cluster_name failed: unknown result");
9593 }
9594
describe_version(std::string & _return)9595 void CassandraClient::describe_version(std::string& _return)
9596 {
9597 send_describe_version();
9598 recv_describe_version(_return);
9599 }
9600
send_describe_version()9601 void CassandraClient::send_describe_version()
9602 {
9603 int32_t cseqid = 0;
9604 oprot_->writeMessageBegin("describe_version", ::apache::thrift::protocol::T_CALL, cseqid);
9605
9606 Cassandra_describe_version_pargs args;
9607 args.write(oprot_);
9608
9609 oprot_->writeMessageEnd();
9610 oprot_->getTransport()->writeEnd();
9611 oprot_->getTransport()->flush();
9612 }
9613
recv_describe_version(std::string & _return)9614 void CassandraClient::recv_describe_version(std::string& _return)
9615 {
9616
9617 int32_t rseqid = 0;
9618 std::string fname;
9619 ::apache::thrift::protocol::TMessageType mtype;
9620
9621 iprot_->readMessageBegin(fname, mtype, rseqid);
9622 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9623 ::apache::thrift::TApplicationException x;
9624 x.read(iprot_);
9625 iprot_->readMessageEnd();
9626 iprot_->getTransport()->readEnd();
9627 throw x;
9628 }
9629 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9630 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9631 iprot_->readMessageEnd();
9632 iprot_->getTransport()->readEnd();
9633 }
9634 if (fname.compare("describe_version") != 0) {
9635 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9636 iprot_->readMessageEnd();
9637 iprot_->getTransport()->readEnd();
9638 }
9639 Cassandra_describe_version_presult result;
9640 result.success = &_return;
9641 result.read(iprot_);
9642 iprot_->readMessageEnd();
9643 iprot_->getTransport()->readEnd();
9644
9645 if (result.__isset.success) {
9646 // _return pointer has now been filled
9647 return;
9648 }
9649 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_version failed: unknown result");
9650 }
9651
describe_ring(std::vector<TokenRange> & _return,const std::string & keyspace)9652 void CassandraClient::describe_ring(std::vector<TokenRange> & _return, const std::string& keyspace)
9653 {
9654 send_describe_ring(keyspace);
9655 recv_describe_ring(_return);
9656 }
9657
send_describe_ring(const std::string & keyspace)9658 void CassandraClient::send_describe_ring(const std::string& keyspace)
9659 {
9660 int32_t cseqid = 0;
9661 oprot_->writeMessageBegin("describe_ring", ::apache::thrift::protocol::T_CALL, cseqid);
9662
9663 Cassandra_describe_ring_pargs args;
9664 args.keyspace = &keyspace;
9665 args.write(oprot_);
9666
9667 oprot_->writeMessageEnd();
9668 oprot_->getTransport()->writeEnd();
9669 oprot_->getTransport()->flush();
9670 }
9671
recv_describe_ring(std::vector<TokenRange> & _return)9672 void CassandraClient::recv_describe_ring(std::vector<TokenRange> & _return)
9673 {
9674
9675 int32_t rseqid = 0;
9676 std::string fname;
9677 ::apache::thrift::protocol::TMessageType mtype;
9678
9679 iprot_->readMessageBegin(fname, mtype, rseqid);
9680 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9681 ::apache::thrift::TApplicationException x;
9682 x.read(iprot_);
9683 iprot_->readMessageEnd();
9684 iprot_->getTransport()->readEnd();
9685 throw x;
9686 }
9687 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9688 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9689 iprot_->readMessageEnd();
9690 iprot_->getTransport()->readEnd();
9691 }
9692 if (fname.compare("describe_ring") != 0) {
9693 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9694 iprot_->readMessageEnd();
9695 iprot_->getTransport()->readEnd();
9696 }
9697 Cassandra_describe_ring_presult result;
9698 result.success = &_return;
9699 result.read(iprot_);
9700 iprot_->readMessageEnd();
9701 iprot_->getTransport()->readEnd();
9702
9703 if (result.__isset.success) {
9704 // _return pointer has now been filled
9705 return;
9706 }
9707 if (result.__isset.ire) {
9708 throw result.ire;
9709 }
9710 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_ring failed: unknown result");
9711 }
9712
describe_token_map(std::map<std::string,std::string> & _return)9713 void CassandraClient::describe_token_map(std::map<std::string, std::string> & _return)
9714 {
9715 send_describe_token_map();
9716 recv_describe_token_map(_return);
9717 }
9718
send_describe_token_map()9719 void CassandraClient::send_describe_token_map()
9720 {
9721 int32_t cseqid = 0;
9722 oprot_->writeMessageBegin("describe_token_map", ::apache::thrift::protocol::T_CALL, cseqid);
9723
9724 Cassandra_describe_token_map_pargs args;
9725 args.write(oprot_);
9726
9727 oprot_->writeMessageEnd();
9728 oprot_->getTransport()->writeEnd();
9729 oprot_->getTransport()->flush();
9730 }
9731
recv_describe_token_map(std::map<std::string,std::string> & _return)9732 void CassandraClient::recv_describe_token_map(std::map<std::string, std::string> & _return)
9733 {
9734
9735 int32_t rseqid = 0;
9736 std::string fname;
9737 ::apache::thrift::protocol::TMessageType mtype;
9738
9739 iprot_->readMessageBegin(fname, mtype, rseqid);
9740 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9741 ::apache::thrift::TApplicationException x;
9742 x.read(iprot_);
9743 iprot_->readMessageEnd();
9744 iprot_->getTransport()->readEnd();
9745 throw x;
9746 }
9747 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9748 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9749 iprot_->readMessageEnd();
9750 iprot_->getTransport()->readEnd();
9751 }
9752 if (fname.compare("describe_token_map") != 0) {
9753 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9754 iprot_->readMessageEnd();
9755 iprot_->getTransport()->readEnd();
9756 }
9757 Cassandra_describe_token_map_presult result;
9758 result.success = &_return;
9759 result.read(iprot_);
9760 iprot_->readMessageEnd();
9761 iprot_->getTransport()->readEnd();
9762
9763 if (result.__isset.success) {
9764 // _return pointer has now been filled
9765 return;
9766 }
9767 if (result.__isset.ire) {
9768 throw result.ire;
9769 }
9770 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_token_map failed: unknown result");
9771 }
9772
describe_partitioner(std::string & _return)9773 void CassandraClient::describe_partitioner(std::string& _return)
9774 {
9775 send_describe_partitioner();
9776 recv_describe_partitioner(_return);
9777 }
9778
send_describe_partitioner()9779 void CassandraClient::send_describe_partitioner()
9780 {
9781 int32_t cseqid = 0;
9782 oprot_->writeMessageBegin("describe_partitioner", ::apache::thrift::protocol::T_CALL, cseqid);
9783
9784 Cassandra_describe_partitioner_pargs args;
9785 args.write(oprot_);
9786
9787 oprot_->writeMessageEnd();
9788 oprot_->getTransport()->writeEnd();
9789 oprot_->getTransport()->flush();
9790 }
9791
recv_describe_partitioner(std::string & _return)9792 void CassandraClient::recv_describe_partitioner(std::string& _return)
9793 {
9794
9795 int32_t rseqid = 0;
9796 std::string fname;
9797 ::apache::thrift::protocol::TMessageType mtype;
9798
9799 iprot_->readMessageBegin(fname, mtype, rseqid);
9800 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9801 ::apache::thrift::TApplicationException x;
9802 x.read(iprot_);
9803 iprot_->readMessageEnd();
9804 iprot_->getTransport()->readEnd();
9805 throw x;
9806 }
9807 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9808 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9809 iprot_->readMessageEnd();
9810 iprot_->getTransport()->readEnd();
9811 }
9812 if (fname.compare("describe_partitioner") != 0) {
9813 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9814 iprot_->readMessageEnd();
9815 iprot_->getTransport()->readEnd();
9816 }
9817 Cassandra_describe_partitioner_presult result;
9818 result.success = &_return;
9819 result.read(iprot_);
9820 iprot_->readMessageEnd();
9821 iprot_->getTransport()->readEnd();
9822
9823 if (result.__isset.success) {
9824 // _return pointer has now been filled
9825 return;
9826 }
9827 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_partitioner failed: unknown result");
9828 }
9829
describe_snitch(std::string & _return)9830 void CassandraClient::describe_snitch(std::string& _return)
9831 {
9832 send_describe_snitch();
9833 recv_describe_snitch(_return);
9834 }
9835
send_describe_snitch()9836 void CassandraClient::send_describe_snitch()
9837 {
9838 int32_t cseqid = 0;
9839 oprot_->writeMessageBegin("describe_snitch", ::apache::thrift::protocol::T_CALL, cseqid);
9840
9841 Cassandra_describe_snitch_pargs args;
9842 args.write(oprot_);
9843
9844 oprot_->writeMessageEnd();
9845 oprot_->getTransport()->writeEnd();
9846 oprot_->getTransport()->flush();
9847 }
9848
recv_describe_snitch(std::string & _return)9849 void CassandraClient::recv_describe_snitch(std::string& _return)
9850 {
9851
9852 int32_t rseqid = 0;
9853 std::string fname;
9854 ::apache::thrift::protocol::TMessageType mtype;
9855
9856 iprot_->readMessageBegin(fname, mtype, rseqid);
9857 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9858 ::apache::thrift::TApplicationException x;
9859 x.read(iprot_);
9860 iprot_->readMessageEnd();
9861 iprot_->getTransport()->readEnd();
9862 throw x;
9863 }
9864 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9865 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9866 iprot_->readMessageEnd();
9867 iprot_->getTransport()->readEnd();
9868 }
9869 if (fname.compare("describe_snitch") != 0) {
9870 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9871 iprot_->readMessageEnd();
9872 iprot_->getTransport()->readEnd();
9873 }
9874 Cassandra_describe_snitch_presult result;
9875 result.success = &_return;
9876 result.read(iprot_);
9877 iprot_->readMessageEnd();
9878 iprot_->getTransport()->readEnd();
9879
9880 if (result.__isset.success) {
9881 // _return pointer has now been filled
9882 return;
9883 }
9884 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_snitch failed: unknown result");
9885 }
9886
describe_keyspace(KsDef & _return,const std::string & keyspace)9887 void CassandraClient::describe_keyspace(KsDef& _return, const std::string& keyspace)
9888 {
9889 send_describe_keyspace(keyspace);
9890 recv_describe_keyspace(_return);
9891 }
9892
send_describe_keyspace(const std::string & keyspace)9893 void CassandraClient::send_describe_keyspace(const std::string& keyspace)
9894 {
9895 int32_t cseqid = 0;
9896 oprot_->writeMessageBegin("describe_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
9897
9898 Cassandra_describe_keyspace_pargs args;
9899 args.keyspace = &keyspace;
9900 args.write(oprot_);
9901
9902 oprot_->writeMessageEnd();
9903 oprot_->getTransport()->writeEnd();
9904 oprot_->getTransport()->flush();
9905 }
9906
recv_describe_keyspace(KsDef & _return)9907 void CassandraClient::recv_describe_keyspace(KsDef& _return)
9908 {
9909
9910 int32_t rseqid = 0;
9911 std::string fname;
9912 ::apache::thrift::protocol::TMessageType mtype;
9913
9914 iprot_->readMessageBegin(fname, mtype, rseqid);
9915 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9916 ::apache::thrift::TApplicationException x;
9917 x.read(iprot_);
9918 iprot_->readMessageEnd();
9919 iprot_->getTransport()->readEnd();
9920 throw x;
9921 }
9922 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9923 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9924 iprot_->readMessageEnd();
9925 iprot_->getTransport()->readEnd();
9926 }
9927 if (fname.compare("describe_keyspace") != 0) {
9928 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9929 iprot_->readMessageEnd();
9930 iprot_->getTransport()->readEnd();
9931 }
9932 Cassandra_describe_keyspace_presult result;
9933 result.success = &_return;
9934 result.read(iprot_);
9935 iprot_->readMessageEnd();
9936 iprot_->getTransport()->readEnd();
9937
9938 if (result.__isset.success) {
9939 // _return pointer has now been filled
9940 return;
9941 }
9942 if (result.__isset.nfe) {
9943 throw result.nfe;
9944 }
9945 if (result.__isset.ire) {
9946 throw result.ire;
9947 }
9948 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_keyspace failed: unknown result");
9949 }
9950
describe_splits(std::vector<std::string> & _return,const std::string & cfName,const std::string & start_token,const std::string & end_token,const int32_t keys_per_split)9951 void CassandraClient::describe_splits(std::vector<std::string> & _return, const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split)
9952 {
9953 send_describe_splits(cfName, start_token, end_token, keys_per_split);
9954 recv_describe_splits(_return);
9955 }
9956
send_describe_splits(const std::string & cfName,const std::string & start_token,const std::string & end_token,const int32_t keys_per_split)9957 void CassandraClient::send_describe_splits(const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split)
9958 {
9959 int32_t cseqid = 0;
9960 oprot_->writeMessageBegin("describe_splits", ::apache::thrift::protocol::T_CALL, cseqid);
9961
9962 Cassandra_describe_splits_pargs args;
9963 args.cfName = &cfName;
9964 args.start_token = &start_token;
9965 args.end_token = &end_token;
9966 args.keys_per_split = &keys_per_split;
9967 args.write(oprot_);
9968
9969 oprot_->writeMessageEnd();
9970 oprot_->getTransport()->writeEnd();
9971 oprot_->getTransport()->flush();
9972 }
9973
recv_describe_splits(std::vector<std::string> & _return)9974 void CassandraClient::recv_describe_splits(std::vector<std::string> & _return)
9975 {
9976
9977 int32_t rseqid = 0;
9978 std::string fname;
9979 ::apache::thrift::protocol::TMessageType mtype;
9980
9981 iprot_->readMessageBegin(fname, mtype, rseqid);
9982 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
9983 ::apache::thrift::TApplicationException x;
9984 x.read(iprot_);
9985 iprot_->readMessageEnd();
9986 iprot_->getTransport()->readEnd();
9987 throw x;
9988 }
9989 if (mtype != ::apache::thrift::protocol::T_REPLY) {
9990 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9991 iprot_->readMessageEnd();
9992 iprot_->getTransport()->readEnd();
9993 }
9994 if (fname.compare("describe_splits") != 0) {
9995 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
9996 iprot_->readMessageEnd();
9997 iprot_->getTransport()->readEnd();
9998 }
9999 Cassandra_describe_splits_presult result;
10000 result.success = &_return;
10001 result.read(iprot_);
10002 iprot_->readMessageEnd();
10003 iprot_->getTransport()->readEnd();
10004
10005 if (result.__isset.success) {
10006 // _return pointer has now been filled
10007 return;
10008 }
10009 if (result.__isset.ire) {
10010 throw result.ire;
10011 }
10012 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "describe_splits failed: unknown result");
10013 }
10014
system_add_column_family(std::string & _return,const CfDef & cf_def)10015 void CassandraClient::system_add_column_family(std::string& _return, const CfDef& cf_def)
10016 {
10017 send_system_add_column_family(cf_def);
10018 recv_system_add_column_family(_return);
10019 }
10020
send_system_add_column_family(const CfDef & cf_def)10021 void CassandraClient::send_system_add_column_family(const CfDef& cf_def)
10022 {
10023 int32_t cseqid = 0;
10024 oprot_->writeMessageBegin("system_add_column_family", ::apache::thrift::protocol::T_CALL, cseqid);
10025
10026 Cassandra_system_add_column_family_pargs args;
10027 args.cf_def = &cf_def;
10028 args.write(oprot_);
10029
10030 oprot_->writeMessageEnd();
10031 oprot_->getTransport()->writeEnd();
10032 oprot_->getTransport()->flush();
10033 }
10034
recv_system_add_column_family(std::string & _return)10035 void CassandraClient::recv_system_add_column_family(std::string& _return)
10036 {
10037
10038 int32_t rseqid = 0;
10039 std::string fname;
10040 ::apache::thrift::protocol::TMessageType mtype;
10041
10042 iprot_->readMessageBegin(fname, mtype, rseqid);
10043 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10044 ::apache::thrift::TApplicationException x;
10045 x.read(iprot_);
10046 iprot_->readMessageEnd();
10047 iprot_->getTransport()->readEnd();
10048 throw x;
10049 }
10050 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10051 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10052 iprot_->readMessageEnd();
10053 iprot_->getTransport()->readEnd();
10054 }
10055 if (fname.compare("system_add_column_family") != 0) {
10056 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10057 iprot_->readMessageEnd();
10058 iprot_->getTransport()->readEnd();
10059 }
10060 Cassandra_system_add_column_family_presult result;
10061 result.success = &_return;
10062 result.read(iprot_);
10063 iprot_->readMessageEnd();
10064 iprot_->getTransport()->readEnd();
10065
10066 if (result.__isset.success) {
10067 // _return pointer has now been filled
10068 return;
10069 }
10070 if (result.__isset.ire) {
10071 throw result.ire;
10072 }
10073 if (result.__isset.sde) {
10074 throw result.sde;
10075 }
10076 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_add_column_family failed: unknown result");
10077 }
10078
system_drop_column_family(std::string & _return,const std::string & column_family)10079 void CassandraClient::system_drop_column_family(std::string& _return, const std::string& column_family)
10080 {
10081 send_system_drop_column_family(column_family);
10082 recv_system_drop_column_family(_return);
10083 }
10084
send_system_drop_column_family(const std::string & column_family)10085 void CassandraClient::send_system_drop_column_family(const std::string& column_family)
10086 {
10087 int32_t cseqid = 0;
10088 oprot_->writeMessageBegin("system_drop_column_family", ::apache::thrift::protocol::T_CALL, cseqid);
10089
10090 Cassandra_system_drop_column_family_pargs args;
10091 args.column_family = &column_family;
10092 args.write(oprot_);
10093
10094 oprot_->writeMessageEnd();
10095 oprot_->getTransport()->writeEnd();
10096 oprot_->getTransport()->flush();
10097 }
10098
recv_system_drop_column_family(std::string & _return)10099 void CassandraClient::recv_system_drop_column_family(std::string& _return)
10100 {
10101
10102 int32_t rseqid = 0;
10103 std::string fname;
10104 ::apache::thrift::protocol::TMessageType mtype;
10105
10106 iprot_->readMessageBegin(fname, mtype, rseqid);
10107 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10108 ::apache::thrift::TApplicationException x;
10109 x.read(iprot_);
10110 iprot_->readMessageEnd();
10111 iprot_->getTransport()->readEnd();
10112 throw x;
10113 }
10114 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10115 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10116 iprot_->readMessageEnd();
10117 iprot_->getTransport()->readEnd();
10118 }
10119 if (fname.compare("system_drop_column_family") != 0) {
10120 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10121 iprot_->readMessageEnd();
10122 iprot_->getTransport()->readEnd();
10123 }
10124 Cassandra_system_drop_column_family_presult result;
10125 result.success = &_return;
10126 result.read(iprot_);
10127 iprot_->readMessageEnd();
10128 iprot_->getTransport()->readEnd();
10129
10130 if (result.__isset.success) {
10131 // _return pointer has now been filled
10132 return;
10133 }
10134 if (result.__isset.ire) {
10135 throw result.ire;
10136 }
10137 if (result.__isset.sde) {
10138 throw result.sde;
10139 }
10140 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_drop_column_family failed: unknown result");
10141 }
10142
system_add_keyspace(std::string & _return,const KsDef & ks_def)10143 void CassandraClient::system_add_keyspace(std::string& _return, const KsDef& ks_def)
10144 {
10145 send_system_add_keyspace(ks_def);
10146 recv_system_add_keyspace(_return);
10147 }
10148
send_system_add_keyspace(const KsDef & ks_def)10149 void CassandraClient::send_system_add_keyspace(const KsDef& ks_def)
10150 {
10151 int32_t cseqid = 0;
10152 oprot_->writeMessageBegin("system_add_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
10153
10154 Cassandra_system_add_keyspace_pargs args;
10155 args.ks_def = &ks_def;
10156 args.write(oprot_);
10157
10158 oprot_->writeMessageEnd();
10159 oprot_->getTransport()->writeEnd();
10160 oprot_->getTransport()->flush();
10161 }
10162
recv_system_add_keyspace(std::string & _return)10163 void CassandraClient::recv_system_add_keyspace(std::string& _return)
10164 {
10165
10166 int32_t rseqid = 0;
10167 std::string fname;
10168 ::apache::thrift::protocol::TMessageType mtype;
10169
10170 iprot_->readMessageBegin(fname, mtype, rseqid);
10171 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10172 ::apache::thrift::TApplicationException x;
10173 x.read(iprot_);
10174 iprot_->readMessageEnd();
10175 iprot_->getTransport()->readEnd();
10176 throw x;
10177 }
10178 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10179 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10180 iprot_->readMessageEnd();
10181 iprot_->getTransport()->readEnd();
10182 }
10183 if (fname.compare("system_add_keyspace") != 0) {
10184 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10185 iprot_->readMessageEnd();
10186 iprot_->getTransport()->readEnd();
10187 }
10188 Cassandra_system_add_keyspace_presult result;
10189 result.success = &_return;
10190 result.read(iprot_);
10191 iprot_->readMessageEnd();
10192 iprot_->getTransport()->readEnd();
10193
10194 if (result.__isset.success) {
10195 // _return pointer has now been filled
10196 return;
10197 }
10198 if (result.__isset.ire) {
10199 throw result.ire;
10200 }
10201 if (result.__isset.sde) {
10202 throw result.sde;
10203 }
10204 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_add_keyspace failed: unknown result");
10205 }
10206
system_drop_keyspace(std::string & _return,const std::string & keyspace)10207 void CassandraClient::system_drop_keyspace(std::string& _return, const std::string& keyspace)
10208 {
10209 send_system_drop_keyspace(keyspace);
10210 recv_system_drop_keyspace(_return);
10211 }
10212
send_system_drop_keyspace(const std::string & keyspace)10213 void CassandraClient::send_system_drop_keyspace(const std::string& keyspace)
10214 {
10215 int32_t cseqid = 0;
10216 oprot_->writeMessageBegin("system_drop_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
10217
10218 Cassandra_system_drop_keyspace_pargs args;
10219 args.keyspace = &keyspace;
10220 args.write(oprot_);
10221
10222 oprot_->writeMessageEnd();
10223 oprot_->getTransport()->writeEnd();
10224 oprot_->getTransport()->flush();
10225 }
10226
recv_system_drop_keyspace(std::string & _return)10227 void CassandraClient::recv_system_drop_keyspace(std::string& _return)
10228 {
10229
10230 int32_t rseqid = 0;
10231 std::string fname;
10232 ::apache::thrift::protocol::TMessageType mtype;
10233
10234 iprot_->readMessageBegin(fname, mtype, rseqid);
10235 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10236 ::apache::thrift::TApplicationException x;
10237 x.read(iprot_);
10238 iprot_->readMessageEnd();
10239 iprot_->getTransport()->readEnd();
10240 throw x;
10241 }
10242 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10243 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10244 iprot_->readMessageEnd();
10245 iprot_->getTransport()->readEnd();
10246 }
10247 if (fname.compare("system_drop_keyspace") != 0) {
10248 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10249 iprot_->readMessageEnd();
10250 iprot_->getTransport()->readEnd();
10251 }
10252 Cassandra_system_drop_keyspace_presult result;
10253 result.success = &_return;
10254 result.read(iprot_);
10255 iprot_->readMessageEnd();
10256 iprot_->getTransport()->readEnd();
10257
10258 if (result.__isset.success) {
10259 // _return pointer has now been filled
10260 return;
10261 }
10262 if (result.__isset.ire) {
10263 throw result.ire;
10264 }
10265 if (result.__isset.sde) {
10266 throw result.sde;
10267 }
10268 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_drop_keyspace failed: unknown result");
10269 }
10270
system_update_keyspace(std::string & _return,const KsDef & ks_def)10271 void CassandraClient::system_update_keyspace(std::string& _return, const KsDef& ks_def)
10272 {
10273 send_system_update_keyspace(ks_def);
10274 recv_system_update_keyspace(_return);
10275 }
10276
send_system_update_keyspace(const KsDef & ks_def)10277 void CassandraClient::send_system_update_keyspace(const KsDef& ks_def)
10278 {
10279 int32_t cseqid = 0;
10280 oprot_->writeMessageBegin("system_update_keyspace", ::apache::thrift::protocol::T_CALL, cseqid);
10281
10282 Cassandra_system_update_keyspace_pargs args;
10283 args.ks_def = &ks_def;
10284 args.write(oprot_);
10285
10286 oprot_->writeMessageEnd();
10287 oprot_->getTransport()->writeEnd();
10288 oprot_->getTransport()->flush();
10289 }
10290
recv_system_update_keyspace(std::string & _return)10291 void CassandraClient::recv_system_update_keyspace(std::string& _return)
10292 {
10293
10294 int32_t rseqid = 0;
10295 std::string fname;
10296 ::apache::thrift::protocol::TMessageType mtype;
10297
10298 iprot_->readMessageBegin(fname, mtype, rseqid);
10299 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10300 ::apache::thrift::TApplicationException x;
10301 x.read(iprot_);
10302 iprot_->readMessageEnd();
10303 iprot_->getTransport()->readEnd();
10304 throw x;
10305 }
10306 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10307 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10308 iprot_->readMessageEnd();
10309 iprot_->getTransport()->readEnd();
10310 }
10311 if (fname.compare("system_update_keyspace") != 0) {
10312 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10313 iprot_->readMessageEnd();
10314 iprot_->getTransport()->readEnd();
10315 }
10316 Cassandra_system_update_keyspace_presult result;
10317 result.success = &_return;
10318 result.read(iprot_);
10319 iprot_->readMessageEnd();
10320 iprot_->getTransport()->readEnd();
10321
10322 if (result.__isset.success) {
10323 // _return pointer has now been filled
10324 return;
10325 }
10326 if (result.__isset.ire) {
10327 throw result.ire;
10328 }
10329 if (result.__isset.sde) {
10330 throw result.sde;
10331 }
10332 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_update_keyspace failed: unknown result");
10333 }
10334
system_update_column_family(std::string & _return,const CfDef & cf_def)10335 void CassandraClient::system_update_column_family(std::string& _return, const CfDef& cf_def)
10336 {
10337 send_system_update_column_family(cf_def);
10338 recv_system_update_column_family(_return);
10339 }
10340
send_system_update_column_family(const CfDef & cf_def)10341 void CassandraClient::send_system_update_column_family(const CfDef& cf_def)
10342 {
10343 int32_t cseqid = 0;
10344 oprot_->writeMessageBegin("system_update_column_family", ::apache::thrift::protocol::T_CALL, cseqid);
10345
10346 Cassandra_system_update_column_family_pargs args;
10347 args.cf_def = &cf_def;
10348 args.write(oprot_);
10349
10350 oprot_->writeMessageEnd();
10351 oprot_->getTransport()->writeEnd();
10352 oprot_->getTransport()->flush();
10353 }
10354
recv_system_update_column_family(std::string & _return)10355 void CassandraClient::recv_system_update_column_family(std::string& _return)
10356 {
10357
10358 int32_t rseqid = 0;
10359 std::string fname;
10360 ::apache::thrift::protocol::TMessageType mtype;
10361
10362 iprot_->readMessageBegin(fname, mtype, rseqid);
10363 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10364 ::apache::thrift::TApplicationException x;
10365 x.read(iprot_);
10366 iprot_->readMessageEnd();
10367 iprot_->getTransport()->readEnd();
10368 throw x;
10369 }
10370 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10371 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10372 iprot_->readMessageEnd();
10373 iprot_->getTransport()->readEnd();
10374 }
10375 if (fname.compare("system_update_column_family") != 0) {
10376 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10377 iprot_->readMessageEnd();
10378 iprot_->getTransport()->readEnd();
10379 }
10380 Cassandra_system_update_column_family_presult result;
10381 result.success = &_return;
10382 result.read(iprot_);
10383 iprot_->readMessageEnd();
10384 iprot_->getTransport()->readEnd();
10385
10386 if (result.__isset.success) {
10387 // _return pointer has now been filled
10388 return;
10389 }
10390 if (result.__isset.ire) {
10391 throw result.ire;
10392 }
10393 if (result.__isset.sde) {
10394 throw result.sde;
10395 }
10396 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "system_update_column_family failed: unknown result");
10397 }
10398
execute_cql_query(CqlResult & _return,const std::string & query,const Compression::type compression)10399 void CassandraClient::execute_cql_query(CqlResult& _return, const std::string& query, const Compression::type compression)
10400 {
10401 send_execute_cql_query(query, compression);
10402 recv_execute_cql_query(_return);
10403 }
10404
send_execute_cql_query(const std::string & query,const Compression::type compression)10405 void CassandraClient::send_execute_cql_query(const std::string& query, const Compression::type compression)
10406 {
10407 int32_t cseqid = 0;
10408 oprot_->writeMessageBegin("execute_cql_query", ::apache::thrift::protocol::T_CALL, cseqid);
10409
10410 Cassandra_execute_cql_query_pargs args;
10411 args.query = &query;
10412 args.compression = &compression;
10413 args.write(oprot_);
10414
10415 oprot_->writeMessageEnd();
10416 oprot_->getTransport()->writeEnd();
10417 oprot_->getTransport()->flush();
10418 }
10419
recv_execute_cql_query(CqlResult & _return)10420 void CassandraClient::recv_execute_cql_query(CqlResult& _return)
10421 {
10422
10423 int32_t rseqid = 0;
10424 std::string fname;
10425 ::apache::thrift::protocol::TMessageType mtype;
10426
10427 iprot_->readMessageBegin(fname, mtype, rseqid);
10428 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10429 ::apache::thrift::TApplicationException x;
10430 x.read(iprot_);
10431 iprot_->readMessageEnd();
10432 iprot_->getTransport()->readEnd();
10433 throw x;
10434 }
10435 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10436 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10437 iprot_->readMessageEnd();
10438 iprot_->getTransport()->readEnd();
10439 }
10440 if (fname.compare("execute_cql_query") != 0) {
10441 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10442 iprot_->readMessageEnd();
10443 iprot_->getTransport()->readEnd();
10444 }
10445 Cassandra_execute_cql_query_presult result;
10446 result.success = &_return;
10447 result.read(iprot_);
10448 iprot_->readMessageEnd();
10449 iprot_->getTransport()->readEnd();
10450
10451 if (result.__isset.success) {
10452 // _return pointer has now been filled
10453 return;
10454 }
10455 if (result.__isset.ire) {
10456 throw result.ire;
10457 }
10458 if (result.__isset.ue) {
10459 throw result.ue;
10460 }
10461 if (result.__isset.te) {
10462 throw result.te;
10463 }
10464 if (result.__isset.sde) {
10465 throw result.sde;
10466 }
10467 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "execute_cql_query failed: unknown result");
10468 }
10469
prepare_cql_query(CqlPreparedResult & _return,const std::string & query,const Compression::type compression)10470 void CassandraClient::prepare_cql_query(CqlPreparedResult& _return, const std::string& query, const Compression::type compression)
10471 {
10472 send_prepare_cql_query(query, compression);
10473 recv_prepare_cql_query(_return);
10474 }
10475
send_prepare_cql_query(const std::string & query,const Compression::type compression)10476 void CassandraClient::send_prepare_cql_query(const std::string& query, const Compression::type compression)
10477 {
10478 int32_t cseqid = 0;
10479 oprot_->writeMessageBegin("prepare_cql_query", ::apache::thrift::protocol::T_CALL, cseqid);
10480
10481 Cassandra_prepare_cql_query_pargs args;
10482 args.query = &query;
10483 args.compression = &compression;
10484 args.write(oprot_);
10485
10486 oprot_->writeMessageEnd();
10487 oprot_->getTransport()->writeEnd();
10488 oprot_->getTransport()->flush();
10489 }
10490
recv_prepare_cql_query(CqlPreparedResult & _return)10491 void CassandraClient::recv_prepare_cql_query(CqlPreparedResult& _return)
10492 {
10493
10494 int32_t rseqid = 0;
10495 std::string fname;
10496 ::apache::thrift::protocol::TMessageType mtype;
10497
10498 iprot_->readMessageBegin(fname, mtype, rseqid);
10499 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10500 ::apache::thrift::TApplicationException x;
10501 x.read(iprot_);
10502 iprot_->readMessageEnd();
10503 iprot_->getTransport()->readEnd();
10504 throw x;
10505 }
10506 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10507 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10508 iprot_->readMessageEnd();
10509 iprot_->getTransport()->readEnd();
10510 }
10511 if (fname.compare("prepare_cql_query") != 0) {
10512 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10513 iprot_->readMessageEnd();
10514 iprot_->getTransport()->readEnd();
10515 }
10516 Cassandra_prepare_cql_query_presult result;
10517 result.success = &_return;
10518 result.read(iprot_);
10519 iprot_->readMessageEnd();
10520 iprot_->getTransport()->readEnd();
10521
10522 if (result.__isset.success) {
10523 // _return pointer has now been filled
10524 return;
10525 }
10526 if (result.__isset.ire) {
10527 throw result.ire;
10528 }
10529 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "prepare_cql_query failed: unknown result");
10530 }
10531
execute_prepared_cql_query(CqlResult & _return,const int32_t itemId,const std::vector<std::string> & values)10532 void CassandraClient::execute_prepared_cql_query(CqlResult& _return, const int32_t itemId, const std::vector<std::string> & values)
10533 {
10534 send_execute_prepared_cql_query(itemId, values);
10535 recv_execute_prepared_cql_query(_return);
10536 }
10537
send_execute_prepared_cql_query(const int32_t itemId,const std::vector<std::string> & values)10538 void CassandraClient::send_execute_prepared_cql_query(const int32_t itemId, const std::vector<std::string> & values)
10539 {
10540 int32_t cseqid = 0;
10541 oprot_->writeMessageBegin("execute_prepared_cql_query", ::apache::thrift::protocol::T_CALL, cseqid);
10542
10543 Cassandra_execute_prepared_cql_query_pargs args;
10544 args.itemId = &itemId;
10545 args.values = &values;
10546 args.write(oprot_);
10547
10548 oprot_->writeMessageEnd();
10549 oprot_->getTransport()->writeEnd();
10550 oprot_->getTransport()->flush();
10551 }
10552
recv_execute_prepared_cql_query(CqlResult & _return)10553 void CassandraClient::recv_execute_prepared_cql_query(CqlResult& _return)
10554 {
10555
10556 int32_t rseqid = 0;
10557 std::string fname;
10558 ::apache::thrift::protocol::TMessageType mtype;
10559
10560 iprot_->readMessageBegin(fname, mtype, rseqid);
10561 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10562 ::apache::thrift::TApplicationException x;
10563 x.read(iprot_);
10564 iprot_->readMessageEnd();
10565 iprot_->getTransport()->readEnd();
10566 throw x;
10567 }
10568 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10569 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10570 iprot_->readMessageEnd();
10571 iprot_->getTransport()->readEnd();
10572 }
10573 if (fname.compare("execute_prepared_cql_query") != 0) {
10574 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10575 iprot_->readMessageEnd();
10576 iprot_->getTransport()->readEnd();
10577 }
10578 Cassandra_execute_prepared_cql_query_presult result;
10579 result.success = &_return;
10580 result.read(iprot_);
10581 iprot_->readMessageEnd();
10582 iprot_->getTransport()->readEnd();
10583
10584 if (result.__isset.success) {
10585 // _return pointer has now been filled
10586 return;
10587 }
10588 if (result.__isset.ire) {
10589 throw result.ire;
10590 }
10591 if (result.__isset.ue) {
10592 throw result.ue;
10593 }
10594 if (result.__isset.te) {
10595 throw result.te;
10596 }
10597 if (result.__isset.sde) {
10598 throw result.sde;
10599 }
10600 throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "execute_prepared_cql_query failed: unknown result");
10601 }
10602
set_cql_version(const std::string & version)10603 void CassandraClient::set_cql_version(const std::string& version)
10604 {
10605 send_set_cql_version(version);
10606 recv_set_cql_version();
10607 }
10608
send_set_cql_version(const std::string & version)10609 void CassandraClient::send_set_cql_version(const std::string& version)
10610 {
10611 int32_t cseqid = 0;
10612 oprot_->writeMessageBegin("set_cql_version", ::apache::thrift::protocol::T_CALL, cseqid);
10613
10614 Cassandra_set_cql_version_pargs args;
10615 args.version = &version;
10616 args.write(oprot_);
10617
10618 oprot_->writeMessageEnd();
10619 oprot_->getTransport()->writeEnd();
10620 oprot_->getTransport()->flush();
10621 }
10622
recv_set_cql_version()10623 void CassandraClient::recv_set_cql_version()
10624 {
10625
10626 int32_t rseqid = 0;
10627 std::string fname;
10628 ::apache::thrift::protocol::TMessageType mtype;
10629
10630 iprot_->readMessageBegin(fname, mtype, rseqid);
10631 if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
10632 ::apache::thrift::TApplicationException x;
10633 x.read(iprot_);
10634 iprot_->readMessageEnd();
10635 iprot_->getTransport()->readEnd();
10636 throw x;
10637 }
10638 if (mtype != ::apache::thrift::protocol::T_REPLY) {
10639 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10640 iprot_->readMessageEnd();
10641 iprot_->getTransport()->readEnd();
10642 }
10643 if (fname.compare("set_cql_version") != 0) {
10644 iprot_->skip(::apache::thrift::protocol::T_STRUCT);
10645 iprot_->readMessageEnd();
10646 iprot_->getTransport()->readEnd();
10647 }
10648 Cassandra_set_cql_version_presult result;
10649 result.read(iprot_);
10650 iprot_->readMessageEnd();
10651 iprot_->getTransport()->readEnd();
10652
10653 if (result.__isset.ire) {
10654 throw result.ire;
10655 }
10656 return;
10657 }
10658
process(boost::shared_ptr<::apache::thrift::protocol::TProtocol> piprot,boost::shared_ptr<::apache::thrift::protocol::TProtocol> poprot,void * callContext)10659 bool CassandraProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext) {
10660
10661 ::apache::thrift::protocol::TProtocol* iprot = piprot.get();
10662 ::apache::thrift::protocol::TProtocol* oprot = poprot.get();
10663 std::string fname;
10664 ::apache::thrift::protocol::TMessageType mtype;
10665 int32_t seqid;
10666
10667 iprot->readMessageBegin(fname, mtype, seqid);
10668
10669 if (mtype != ::apache::thrift::protocol::T_CALL && mtype != ::apache::thrift::protocol::T_ONEWAY) {
10670 iprot->skip(::apache::thrift::protocol::T_STRUCT);
10671 iprot->readMessageEnd();
10672 iprot->getTransport()->readEnd();
10673 ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
10674 oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
10675 x.write(oprot);
10676 oprot->writeMessageEnd();
10677 oprot->getTransport()->writeEnd();
10678 oprot->getTransport()->flush();
10679 return true;
10680 }
10681
10682 return process_fn(iprot, oprot, fname, seqid, callContext);
10683 }
10684
process_fn(::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,std::string & fname,int32_t seqid,void * callContext)10685 bool CassandraProcessor::process_fn( ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext) {
10686 std::map<std::string, void (CassandraProcessor::*)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*)>::iterator pfn;
10687 pfn = processMap_.find(fname);
10688 if (pfn == processMap_.end()) {
10689 iprot->skip(::apache::thrift::protocol::T_STRUCT);
10690 iprot->readMessageEnd();
10691 iprot->getTransport()->readEnd();
10692 ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::UNKNOWN_METHOD, "Invalid method name: '"+fname+"'");
10693 oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
10694 x.write(oprot);
10695 oprot->writeMessageEnd();
10696 oprot->getTransport()->writeEnd();
10697 oprot->getTransport()->flush();
10698 return true;
10699 }
10700 (this->*(pfn->second))(seqid, iprot, oprot, callContext);
10701 return true;
10702 }
10703
process_login(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)10704 void CassandraProcessor::process_login(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
10705 {
10706 void* ctx = NULL;
10707 if (this->eventHandler_.get() != NULL) {
10708 ctx = this->eventHandler_->getContext("Cassandra.login", callContext);
10709 }
10710 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.login");
10711
10712 if (this->eventHandler_.get() != NULL) {
10713 this->eventHandler_->preRead(ctx, "Cassandra.login");
10714 }
10715
10716 Cassandra_login_args args;
10717 args.read(iprot);
10718 iprot->readMessageEnd();
10719 uint32_t bytes = iprot->getTransport()->readEnd();
10720
10721 if (this->eventHandler_.get() != NULL) {
10722 this->eventHandler_->postRead(ctx, "Cassandra.login", bytes);
10723 }
10724
10725 Cassandra_login_result result;
10726 try {
10727 iface_->login(args.auth_request);
10728 } catch (AuthenticationException &authnx) {
10729 result.authnx = authnx;
10730 result.__isset.authnx = true;
10731 } catch (AuthorizationException &authzx) {
10732 result.authzx = authzx;
10733 result.__isset.authzx = true;
10734 } catch (const std::exception& e) {
10735 if (this->eventHandler_.get() != NULL) {
10736 this->eventHandler_->handlerError(ctx, "Cassandra.login");
10737 }
10738
10739 ::apache::thrift::TApplicationException x(e.what());
10740 oprot->writeMessageBegin("login", ::apache::thrift::protocol::T_EXCEPTION, seqid);
10741 x.write(oprot);
10742 oprot->writeMessageEnd();
10743 oprot->getTransport()->writeEnd();
10744 oprot->getTransport()->flush();
10745 return;
10746 }
10747
10748 if (this->eventHandler_.get() != NULL) {
10749 this->eventHandler_->preWrite(ctx, "Cassandra.login");
10750 }
10751
10752 oprot->writeMessageBegin("login", ::apache::thrift::protocol::T_REPLY, seqid);
10753 result.write(oprot);
10754 oprot->writeMessageEnd();
10755 bytes = oprot->getTransport()->writeEnd();
10756 oprot->getTransport()->flush();
10757
10758 if (this->eventHandler_.get() != NULL) {
10759 this->eventHandler_->postWrite(ctx, "Cassandra.login", bytes);
10760 }
10761 }
10762
process_set_keyspace(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)10763 void CassandraProcessor::process_set_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
10764 {
10765 void* ctx = NULL;
10766 if (this->eventHandler_.get() != NULL) {
10767 ctx = this->eventHandler_->getContext("Cassandra.set_keyspace", callContext);
10768 }
10769 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.set_keyspace");
10770
10771 if (this->eventHandler_.get() != NULL) {
10772 this->eventHandler_->preRead(ctx, "Cassandra.set_keyspace");
10773 }
10774
10775 Cassandra_set_keyspace_args args;
10776 args.read(iprot);
10777 iprot->readMessageEnd();
10778 uint32_t bytes = iprot->getTransport()->readEnd();
10779
10780 if (this->eventHandler_.get() != NULL) {
10781 this->eventHandler_->postRead(ctx, "Cassandra.set_keyspace", bytes);
10782 }
10783
10784 Cassandra_set_keyspace_result result;
10785 try {
10786 iface_->set_keyspace(args.keyspace);
10787 } catch (InvalidRequestException &ire) {
10788 result.ire = ire;
10789 result.__isset.ire = true;
10790 } catch (const std::exception& e) {
10791 if (this->eventHandler_.get() != NULL) {
10792 this->eventHandler_->handlerError(ctx, "Cassandra.set_keyspace");
10793 }
10794
10795 ::apache::thrift::TApplicationException x(e.what());
10796 oprot->writeMessageBegin("set_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
10797 x.write(oprot);
10798 oprot->writeMessageEnd();
10799 oprot->getTransport()->writeEnd();
10800 oprot->getTransport()->flush();
10801 return;
10802 }
10803
10804 if (this->eventHandler_.get() != NULL) {
10805 this->eventHandler_->preWrite(ctx, "Cassandra.set_keyspace");
10806 }
10807
10808 oprot->writeMessageBegin("set_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
10809 result.write(oprot);
10810 oprot->writeMessageEnd();
10811 bytes = oprot->getTransport()->writeEnd();
10812 oprot->getTransport()->flush();
10813
10814 if (this->eventHandler_.get() != NULL) {
10815 this->eventHandler_->postWrite(ctx, "Cassandra.set_keyspace", bytes);
10816 }
10817 }
10818
process_get(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)10819 void CassandraProcessor::process_get(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
10820 {
10821 void* ctx = NULL;
10822 if (this->eventHandler_.get() != NULL) {
10823 ctx = this->eventHandler_->getContext("Cassandra.get", callContext);
10824 }
10825 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.get");
10826
10827 if (this->eventHandler_.get() != NULL) {
10828 this->eventHandler_->preRead(ctx, "Cassandra.get");
10829 }
10830
10831 Cassandra_get_args args;
10832 args.read(iprot);
10833 iprot->readMessageEnd();
10834 uint32_t bytes = iprot->getTransport()->readEnd();
10835
10836 if (this->eventHandler_.get() != NULL) {
10837 this->eventHandler_->postRead(ctx, "Cassandra.get", bytes);
10838 }
10839
10840 Cassandra_get_result result;
10841 try {
10842 iface_->get(result.success, args.key, args.column_path, args.consistency_level);
10843 result.__isset.success = true;
10844 } catch (InvalidRequestException &ire) {
10845 result.ire = ire;
10846 result.__isset.ire = true;
10847 } catch (NotFoundException &nfe) {
10848 result.nfe = nfe;
10849 result.__isset.nfe = true;
10850 } catch (UnavailableException &ue) {
10851 result.ue = ue;
10852 result.__isset.ue = true;
10853 } catch (TimedOutException &te) {
10854 result.te = te;
10855 result.__isset.te = true;
10856 } catch (const std::exception& e) {
10857 if (this->eventHandler_.get() != NULL) {
10858 this->eventHandler_->handlerError(ctx, "Cassandra.get");
10859 }
10860
10861 ::apache::thrift::TApplicationException x(e.what());
10862 oprot->writeMessageBegin("get", ::apache::thrift::protocol::T_EXCEPTION, seqid);
10863 x.write(oprot);
10864 oprot->writeMessageEnd();
10865 oprot->getTransport()->writeEnd();
10866 oprot->getTransport()->flush();
10867 return;
10868 }
10869
10870 if (this->eventHandler_.get() != NULL) {
10871 this->eventHandler_->preWrite(ctx, "Cassandra.get");
10872 }
10873
10874 oprot->writeMessageBegin("get", ::apache::thrift::protocol::T_REPLY, seqid);
10875 result.write(oprot);
10876 oprot->writeMessageEnd();
10877 bytes = oprot->getTransport()->writeEnd();
10878 oprot->getTransport()->flush();
10879
10880 if (this->eventHandler_.get() != NULL) {
10881 this->eventHandler_->postWrite(ctx, "Cassandra.get", bytes);
10882 }
10883 }
10884
process_get_slice(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)10885 void CassandraProcessor::process_get_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
10886 {
10887 void* ctx = NULL;
10888 if (this->eventHandler_.get() != NULL) {
10889 ctx = this->eventHandler_->getContext("Cassandra.get_slice", callContext);
10890 }
10891 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.get_slice");
10892
10893 if (this->eventHandler_.get() != NULL) {
10894 this->eventHandler_->preRead(ctx, "Cassandra.get_slice");
10895 }
10896
10897 Cassandra_get_slice_args args;
10898 args.read(iprot);
10899 iprot->readMessageEnd();
10900 uint32_t bytes = iprot->getTransport()->readEnd();
10901
10902 if (this->eventHandler_.get() != NULL) {
10903 this->eventHandler_->postRead(ctx, "Cassandra.get_slice", bytes);
10904 }
10905
10906 Cassandra_get_slice_result result;
10907 try {
10908 iface_->get_slice(result.success, args.key, args.column_parent, args.predicate, args.consistency_level);
10909 result.__isset.success = true;
10910 } catch (InvalidRequestException &ire) {
10911 result.ire = ire;
10912 result.__isset.ire = true;
10913 } catch (UnavailableException &ue) {
10914 result.ue = ue;
10915 result.__isset.ue = true;
10916 } catch (TimedOutException &te) {
10917 result.te = te;
10918 result.__isset.te = true;
10919 } catch (const std::exception& e) {
10920 if (this->eventHandler_.get() != NULL) {
10921 this->eventHandler_->handlerError(ctx, "Cassandra.get_slice");
10922 }
10923
10924 ::apache::thrift::TApplicationException x(e.what());
10925 oprot->writeMessageBegin("get_slice", ::apache::thrift::protocol::T_EXCEPTION, seqid);
10926 x.write(oprot);
10927 oprot->writeMessageEnd();
10928 oprot->getTransport()->writeEnd();
10929 oprot->getTransport()->flush();
10930 return;
10931 }
10932
10933 if (this->eventHandler_.get() != NULL) {
10934 this->eventHandler_->preWrite(ctx, "Cassandra.get_slice");
10935 }
10936
10937 oprot->writeMessageBegin("get_slice", ::apache::thrift::protocol::T_REPLY, seqid);
10938 result.write(oprot);
10939 oprot->writeMessageEnd();
10940 bytes = oprot->getTransport()->writeEnd();
10941 oprot->getTransport()->flush();
10942
10943 if (this->eventHandler_.get() != NULL) {
10944 this->eventHandler_->postWrite(ctx, "Cassandra.get_slice", bytes);
10945 }
10946 }
10947
process_get_count(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)10948 void CassandraProcessor::process_get_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
10949 {
10950 void* ctx = NULL;
10951 if (this->eventHandler_.get() != NULL) {
10952 ctx = this->eventHandler_->getContext("Cassandra.get_count", callContext);
10953 }
10954 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.get_count");
10955
10956 if (this->eventHandler_.get() != NULL) {
10957 this->eventHandler_->preRead(ctx, "Cassandra.get_count");
10958 }
10959
10960 Cassandra_get_count_args args;
10961 args.read(iprot);
10962 iprot->readMessageEnd();
10963 uint32_t bytes = iprot->getTransport()->readEnd();
10964
10965 if (this->eventHandler_.get() != NULL) {
10966 this->eventHandler_->postRead(ctx, "Cassandra.get_count", bytes);
10967 }
10968
10969 Cassandra_get_count_result result;
10970 try {
10971 result.success = iface_->get_count(args.key, args.column_parent, args.predicate, args.consistency_level);
10972 result.__isset.success = true;
10973 } catch (InvalidRequestException &ire) {
10974 result.ire = ire;
10975 result.__isset.ire = true;
10976 } catch (UnavailableException &ue) {
10977 result.ue = ue;
10978 result.__isset.ue = true;
10979 } catch (TimedOutException &te) {
10980 result.te = te;
10981 result.__isset.te = true;
10982 } catch (const std::exception& e) {
10983 if (this->eventHandler_.get() != NULL) {
10984 this->eventHandler_->handlerError(ctx, "Cassandra.get_count");
10985 }
10986
10987 ::apache::thrift::TApplicationException x(e.what());
10988 oprot->writeMessageBegin("get_count", ::apache::thrift::protocol::T_EXCEPTION, seqid);
10989 x.write(oprot);
10990 oprot->writeMessageEnd();
10991 oprot->getTransport()->writeEnd();
10992 oprot->getTransport()->flush();
10993 return;
10994 }
10995
10996 if (this->eventHandler_.get() != NULL) {
10997 this->eventHandler_->preWrite(ctx, "Cassandra.get_count");
10998 }
10999
11000 oprot->writeMessageBegin("get_count", ::apache::thrift::protocol::T_REPLY, seqid);
11001 result.write(oprot);
11002 oprot->writeMessageEnd();
11003 bytes = oprot->getTransport()->writeEnd();
11004 oprot->getTransport()->flush();
11005
11006 if (this->eventHandler_.get() != NULL) {
11007 this->eventHandler_->postWrite(ctx, "Cassandra.get_count", bytes);
11008 }
11009 }
11010
process_multiget_slice(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11011 void CassandraProcessor::process_multiget_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11012 {
11013 void* ctx = NULL;
11014 if (this->eventHandler_.get() != NULL) {
11015 ctx = this->eventHandler_->getContext("Cassandra.multiget_slice", callContext);
11016 }
11017 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.multiget_slice");
11018
11019 if (this->eventHandler_.get() != NULL) {
11020 this->eventHandler_->preRead(ctx, "Cassandra.multiget_slice");
11021 }
11022
11023 Cassandra_multiget_slice_args args;
11024 args.read(iprot);
11025 iprot->readMessageEnd();
11026 uint32_t bytes = iprot->getTransport()->readEnd();
11027
11028 if (this->eventHandler_.get() != NULL) {
11029 this->eventHandler_->postRead(ctx, "Cassandra.multiget_slice", bytes);
11030 }
11031
11032 Cassandra_multiget_slice_result result;
11033 try {
11034 iface_->multiget_slice(result.success, args.keys, args.column_parent, args.predicate, args.consistency_level);
11035 result.__isset.success = true;
11036 } catch (InvalidRequestException &ire) {
11037 result.ire = ire;
11038 result.__isset.ire = true;
11039 } catch (UnavailableException &ue) {
11040 result.ue = ue;
11041 result.__isset.ue = true;
11042 } catch (TimedOutException &te) {
11043 result.te = te;
11044 result.__isset.te = true;
11045 } catch (const std::exception& e) {
11046 if (this->eventHandler_.get() != NULL) {
11047 this->eventHandler_->handlerError(ctx, "Cassandra.multiget_slice");
11048 }
11049
11050 ::apache::thrift::TApplicationException x(e.what());
11051 oprot->writeMessageBegin("multiget_slice", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11052 x.write(oprot);
11053 oprot->writeMessageEnd();
11054 oprot->getTransport()->writeEnd();
11055 oprot->getTransport()->flush();
11056 return;
11057 }
11058
11059 if (this->eventHandler_.get() != NULL) {
11060 this->eventHandler_->preWrite(ctx, "Cassandra.multiget_slice");
11061 }
11062
11063 oprot->writeMessageBegin("multiget_slice", ::apache::thrift::protocol::T_REPLY, seqid);
11064 result.write(oprot);
11065 oprot->writeMessageEnd();
11066 bytes = oprot->getTransport()->writeEnd();
11067 oprot->getTransport()->flush();
11068
11069 if (this->eventHandler_.get() != NULL) {
11070 this->eventHandler_->postWrite(ctx, "Cassandra.multiget_slice", bytes);
11071 }
11072 }
11073
process_multiget_count(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11074 void CassandraProcessor::process_multiget_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11075 {
11076 void* ctx = NULL;
11077 if (this->eventHandler_.get() != NULL) {
11078 ctx = this->eventHandler_->getContext("Cassandra.multiget_count", callContext);
11079 }
11080 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.multiget_count");
11081
11082 if (this->eventHandler_.get() != NULL) {
11083 this->eventHandler_->preRead(ctx, "Cassandra.multiget_count");
11084 }
11085
11086 Cassandra_multiget_count_args args;
11087 args.read(iprot);
11088 iprot->readMessageEnd();
11089 uint32_t bytes = iprot->getTransport()->readEnd();
11090
11091 if (this->eventHandler_.get() != NULL) {
11092 this->eventHandler_->postRead(ctx, "Cassandra.multiget_count", bytes);
11093 }
11094
11095 Cassandra_multiget_count_result result;
11096 try {
11097 iface_->multiget_count(result.success, args.keys, args.column_parent, args.predicate, args.consistency_level);
11098 result.__isset.success = true;
11099 } catch (InvalidRequestException &ire) {
11100 result.ire = ire;
11101 result.__isset.ire = true;
11102 } catch (UnavailableException &ue) {
11103 result.ue = ue;
11104 result.__isset.ue = true;
11105 } catch (TimedOutException &te) {
11106 result.te = te;
11107 result.__isset.te = true;
11108 } catch (const std::exception& e) {
11109 if (this->eventHandler_.get() != NULL) {
11110 this->eventHandler_->handlerError(ctx, "Cassandra.multiget_count");
11111 }
11112
11113 ::apache::thrift::TApplicationException x(e.what());
11114 oprot->writeMessageBegin("multiget_count", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11115 x.write(oprot);
11116 oprot->writeMessageEnd();
11117 oprot->getTransport()->writeEnd();
11118 oprot->getTransport()->flush();
11119 return;
11120 }
11121
11122 if (this->eventHandler_.get() != NULL) {
11123 this->eventHandler_->preWrite(ctx, "Cassandra.multiget_count");
11124 }
11125
11126 oprot->writeMessageBegin("multiget_count", ::apache::thrift::protocol::T_REPLY, seqid);
11127 result.write(oprot);
11128 oprot->writeMessageEnd();
11129 bytes = oprot->getTransport()->writeEnd();
11130 oprot->getTransport()->flush();
11131
11132 if (this->eventHandler_.get() != NULL) {
11133 this->eventHandler_->postWrite(ctx, "Cassandra.multiget_count", bytes);
11134 }
11135 }
11136
process_get_range_slices(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11137 void CassandraProcessor::process_get_range_slices(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11138 {
11139 void* ctx = NULL;
11140 if (this->eventHandler_.get() != NULL) {
11141 ctx = this->eventHandler_->getContext("Cassandra.get_range_slices", callContext);
11142 }
11143 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.get_range_slices");
11144
11145 if (this->eventHandler_.get() != NULL) {
11146 this->eventHandler_->preRead(ctx, "Cassandra.get_range_slices");
11147 }
11148
11149 Cassandra_get_range_slices_args args;
11150 args.read(iprot);
11151 iprot->readMessageEnd();
11152 uint32_t bytes = iprot->getTransport()->readEnd();
11153
11154 if (this->eventHandler_.get() != NULL) {
11155 this->eventHandler_->postRead(ctx, "Cassandra.get_range_slices", bytes);
11156 }
11157
11158 Cassandra_get_range_slices_result result;
11159 try {
11160 iface_->get_range_slices(result.success, args.column_parent, args.predicate, args.range, args.consistency_level);
11161 result.__isset.success = true;
11162 } catch (InvalidRequestException &ire) {
11163 result.ire = ire;
11164 result.__isset.ire = true;
11165 } catch (UnavailableException &ue) {
11166 result.ue = ue;
11167 result.__isset.ue = true;
11168 } catch (TimedOutException &te) {
11169 result.te = te;
11170 result.__isset.te = true;
11171 } catch (const std::exception& e) {
11172 if (this->eventHandler_.get() != NULL) {
11173 this->eventHandler_->handlerError(ctx, "Cassandra.get_range_slices");
11174 }
11175
11176 ::apache::thrift::TApplicationException x(e.what());
11177 oprot->writeMessageBegin("get_range_slices", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11178 x.write(oprot);
11179 oprot->writeMessageEnd();
11180 oprot->getTransport()->writeEnd();
11181 oprot->getTransport()->flush();
11182 return;
11183 }
11184
11185 if (this->eventHandler_.get() != NULL) {
11186 this->eventHandler_->preWrite(ctx, "Cassandra.get_range_slices");
11187 }
11188
11189 oprot->writeMessageBegin("get_range_slices", ::apache::thrift::protocol::T_REPLY, seqid);
11190 result.write(oprot);
11191 oprot->writeMessageEnd();
11192 bytes = oprot->getTransport()->writeEnd();
11193 oprot->getTransport()->flush();
11194
11195 if (this->eventHandler_.get() != NULL) {
11196 this->eventHandler_->postWrite(ctx, "Cassandra.get_range_slices", bytes);
11197 }
11198 }
11199
process_get_paged_slice(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11200 void CassandraProcessor::process_get_paged_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11201 {
11202 void* ctx = NULL;
11203 if (this->eventHandler_.get() != NULL) {
11204 ctx = this->eventHandler_->getContext("Cassandra.get_paged_slice", callContext);
11205 }
11206 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.get_paged_slice");
11207
11208 if (this->eventHandler_.get() != NULL) {
11209 this->eventHandler_->preRead(ctx, "Cassandra.get_paged_slice");
11210 }
11211
11212 Cassandra_get_paged_slice_args args;
11213 args.read(iprot);
11214 iprot->readMessageEnd();
11215 uint32_t bytes = iprot->getTransport()->readEnd();
11216
11217 if (this->eventHandler_.get() != NULL) {
11218 this->eventHandler_->postRead(ctx, "Cassandra.get_paged_slice", bytes);
11219 }
11220
11221 Cassandra_get_paged_slice_result result;
11222 try {
11223 iface_->get_paged_slice(result.success, args.column_family, args.range, args.start_column, args.consistency_level);
11224 result.__isset.success = true;
11225 } catch (InvalidRequestException &ire) {
11226 result.ire = ire;
11227 result.__isset.ire = true;
11228 } catch (UnavailableException &ue) {
11229 result.ue = ue;
11230 result.__isset.ue = true;
11231 } catch (TimedOutException &te) {
11232 result.te = te;
11233 result.__isset.te = true;
11234 } catch (const std::exception& e) {
11235 if (this->eventHandler_.get() != NULL) {
11236 this->eventHandler_->handlerError(ctx, "Cassandra.get_paged_slice");
11237 }
11238
11239 ::apache::thrift::TApplicationException x(e.what());
11240 oprot->writeMessageBegin("get_paged_slice", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11241 x.write(oprot);
11242 oprot->writeMessageEnd();
11243 oprot->getTransport()->writeEnd();
11244 oprot->getTransport()->flush();
11245 return;
11246 }
11247
11248 if (this->eventHandler_.get() != NULL) {
11249 this->eventHandler_->preWrite(ctx, "Cassandra.get_paged_slice");
11250 }
11251
11252 oprot->writeMessageBegin("get_paged_slice", ::apache::thrift::protocol::T_REPLY, seqid);
11253 result.write(oprot);
11254 oprot->writeMessageEnd();
11255 bytes = oprot->getTransport()->writeEnd();
11256 oprot->getTransport()->flush();
11257
11258 if (this->eventHandler_.get() != NULL) {
11259 this->eventHandler_->postWrite(ctx, "Cassandra.get_paged_slice", bytes);
11260 }
11261 }
11262
process_get_indexed_slices(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11263 void CassandraProcessor::process_get_indexed_slices(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11264 {
11265 void* ctx = NULL;
11266 if (this->eventHandler_.get() != NULL) {
11267 ctx = this->eventHandler_->getContext("Cassandra.get_indexed_slices", callContext);
11268 }
11269 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.get_indexed_slices");
11270
11271 if (this->eventHandler_.get() != NULL) {
11272 this->eventHandler_->preRead(ctx, "Cassandra.get_indexed_slices");
11273 }
11274
11275 Cassandra_get_indexed_slices_args args;
11276 args.read(iprot);
11277 iprot->readMessageEnd();
11278 uint32_t bytes = iprot->getTransport()->readEnd();
11279
11280 if (this->eventHandler_.get() != NULL) {
11281 this->eventHandler_->postRead(ctx, "Cassandra.get_indexed_slices", bytes);
11282 }
11283
11284 Cassandra_get_indexed_slices_result result;
11285 try {
11286 iface_->get_indexed_slices(result.success, args.column_parent, args.index_clause, args.column_predicate, args.consistency_level);
11287 result.__isset.success = true;
11288 } catch (InvalidRequestException &ire) {
11289 result.ire = ire;
11290 result.__isset.ire = true;
11291 } catch (UnavailableException &ue) {
11292 result.ue = ue;
11293 result.__isset.ue = true;
11294 } catch (TimedOutException &te) {
11295 result.te = te;
11296 result.__isset.te = true;
11297 } catch (const std::exception& e) {
11298 if (this->eventHandler_.get() != NULL) {
11299 this->eventHandler_->handlerError(ctx, "Cassandra.get_indexed_slices");
11300 }
11301
11302 ::apache::thrift::TApplicationException x(e.what());
11303 oprot->writeMessageBegin("get_indexed_slices", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11304 x.write(oprot);
11305 oprot->writeMessageEnd();
11306 oprot->getTransport()->writeEnd();
11307 oprot->getTransport()->flush();
11308 return;
11309 }
11310
11311 if (this->eventHandler_.get() != NULL) {
11312 this->eventHandler_->preWrite(ctx, "Cassandra.get_indexed_slices");
11313 }
11314
11315 oprot->writeMessageBegin("get_indexed_slices", ::apache::thrift::protocol::T_REPLY, seqid);
11316 result.write(oprot);
11317 oprot->writeMessageEnd();
11318 bytes = oprot->getTransport()->writeEnd();
11319 oprot->getTransport()->flush();
11320
11321 if (this->eventHandler_.get() != NULL) {
11322 this->eventHandler_->postWrite(ctx, "Cassandra.get_indexed_slices", bytes);
11323 }
11324 }
11325
process_insert(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11326 void CassandraProcessor::process_insert(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11327 {
11328 void* ctx = NULL;
11329 if (this->eventHandler_.get() != NULL) {
11330 ctx = this->eventHandler_->getContext("Cassandra.insert", callContext);
11331 }
11332 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.insert");
11333
11334 if (this->eventHandler_.get() != NULL) {
11335 this->eventHandler_->preRead(ctx, "Cassandra.insert");
11336 }
11337
11338 Cassandra_insert_args args;
11339 args.read(iprot);
11340 iprot->readMessageEnd();
11341 uint32_t bytes = iprot->getTransport()->readEnd();
11342
11343 if (this->eventHandler_.get() != NULL) {
11344 this->eventHandler_->postRead(ctx, "Cassandra.insert", bytes);
11345 }
11346
11347 Cassandra_insert_result result;
11348 try {
11349 iface_->insert(args.key, args.column_parent, args.column, args.consistency_level);
11350 } catch (InvalidRequestException &ire) {
11351 result.ire = ire;
11352 result.__isset.ire = true;
11353 } catch (UnavailableException &ue) {
11354 result.ue = ue;
11355 result.__isset.ue = true;
11356 } catch (TimedOutException &te) {
11357 result.te = te;
11358 result.__isset.te = true;
11359 } catch (const std::exception& e) {
11360 if (this->eventHandler_.get() != NULL) {
11361 this->eventHandler_->handlerError(ctx, "Cassandra.insert");
11362 }
11363
11364 ::apache::thrift::TApplicationException x(e.what());
11365 oprot->writeMessageBegin("insert", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11366 x.write(oprot);
11367 oprot->writeMessageEnd();
11368 oprot->getTransport()->writeEnd();
11369 oprot->getTransport()->flush();
11370 return;
11371 }
11372
11373 if (this->eventHandler_.get() != NULL) {
11374 this->eventHandler_->preWrite(ctx, "Cassandra.insert");
11375 }
11376
11377 oprot->writeMessageBegin("insert", ::apache::thrift::protocol::T_REPLY, seqid);
11378 result.write(oprot);
11379 oprot->writeMessageEnd();
11380 bytes = oprot->getTransport()->writeEnd();
11381 oprot->getTransport()->flush();
11382
11383 if (this->eventHandler_.get() != NULL) {
11384 this->eventHandler_->postWrite(ctx, "Cassandra.insert", bytes);
11385 }
11386 }
11387
process_add(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11388 void CassandraProcessor::process_add(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11389 {
11390 void* ctx = NULL;
11391 if (this->eventHandler_.get() != NULL) {
11392 ctx = this->eventHandler_->getContext("Cassandra.add", callContext);
11393 }
11394 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.add");
11395
11396 if (this->eventHandler_.get() != NULL) {
11397 this->eventHandler_->preRead(ctx, "Cassandra.add");
11398 }
11399
11400 Cassandra_add_args args;
11401 args.read(iprot);
11402 iprot->readMessageEnd();
11403 uint32_t bytes = iprot->getTransport()->readEnd();
11404
11405 if (this->eventHandler_.get() != NULL) {
11406 this->eventHandler_->postRead(ctx, "Cassandra.add", bytes);
11407 }
11408
11409 Cassandra_add_result result;
11410 try {
11411 iface_->add(args.key, args.column_parent, args.column, args.consistency_level);
11412 } catch (InvalidRequestException &ire) {
11413 result.ire = ire;
11414 result.__isset.ire = true;
11415 } catch (UnavailableException &ue) {
11416 result.ue = ue;
11417 result.__isset.ue = true;
11418 } catch (TimedOutException &te) {
11419 result.te = te;
11420 result.__isset.te = true;
11421 } catch (const std::exception& e) {
11422 if (this->eventHandler_.get() != NULL) {
11423 this->eventHandler_->handlerError(ctx, "Cassandra.add");
11424 }
11425
11426 ::apache::thrift::TApplicationException x(e.what());
11427 oprot->writeMessageBegin("add", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11428 x.write(oprot);
11429 oprot->writeMessageEnd();
11430 oprot->getTransport()->writeEnd();
11431 oprot->getTransport()->flush();
11432 return;
11433 }
11434
11435 if (this->eventHandler_.get() != NULL) {
11436 this->eventHandler_->preWrite(ctx, "Cassandra.add");
11437 }
11438
11439 oprot->writeMessageBegin("add", ::apache::thrift::protocol::T_REPLY, seqid);
11440 result.write(oprot);
11441 oprot->writeMessageEnd();
11442 bytes = oprot->getTransport()->writeEnd();
11443 oprot->getTransport()->flush();
11444
11445 if (this->eventHandler_.get() != NULL) {
11446 this->eventHandler_->postWrite(ctx, "Cassandra.add", bytes);
11447 }
11448 }
11449
process_remove(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11450 void CassandraProcessor::process_remove(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11451 {
11452 void* ctx = NULL;
11453 if (this->eventHandler_.get() != NULL) {
11454 ctx = this->eventHandler_->getContext("Cassandra.remove", callContext);
11455 }
11456 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.remove");
11457
11458 if (this->eventHandler_.get() != NULL) {
11459 this->eventHandler_->preRead(ctx, "Cassandra.remove");
11460 }
11461
11462 Cassandra_remove_args args;
11463 args.read(iprot);
11464 iprot->readMessageEnd();
11465 uint32_t bytes = iprot->getTransport()->readEnd();
11466
11467 if (this->eventHandler_.get() != NULL) {
11468 this->eventHandler_->postRead(ctx, "Cassandra.remove", bytes);
11469 }
11470
11471 Cassandra_remove_result result;
11472 try {
11473 iface_->remove(args.key, args.column_path, args.timestamp, args.consistency_level);
11474 } catch (InvalidRequestException &ire) {
11475 result.ire = ire;
11476 result.__isset.ire = true;
11477 } catch (UnavailableException &ue) {
11478 result.ue = ue;
11479 result.__isset.ue = true;
11480 } catch (TimedOutException &te) {
11481 result.te = te;
11482 result.__isset.te = true;
11483 } catch (const std::exception& e) {
11484 if (this->eventHandler_.get() != NULL) {
11485 this->eventHandler_->handlerError(ctx, "Cassandra.remove");
11486 }
11487
11488 ::apache::thrift::TApplicationException x(e.what());
11489 oprot->writeMessageBegin("remove", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11490 x.write(oprot);
11491 oprot->writeMessageEnd();
11492 oprot->getTransport()->writeEnd();
11493 oprot->getTransport()->flush();
11494 return;
11495 }
11496
11497 if (this->eventHandler_.get() != NULL) {
11498 this->eventHandler_->preWrite(ctx, "Cassandra.remove");
11499 }
11500
11501 oprot->writeMessageBegin("remove", ::apache::thrift::protocol::T_REPLY, seqid);
11502 result.write(oprot);
11503 oprot->writeMessageEnd();
11504 bytes = oprot->getTransport()->writeEnd();
11505 oprot->getTransport()->flush();
11506
11507 if (this->eventHandler_.get() != NULL) {
11508 this->eventHandler_->postWrite(ctx, "Cassandra.remove", bytes);
11509 }
11510 }
11511
process_remove_counter(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11512 void CassandraProcessor::process_remove_counter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11513 {
11514 void* ctx = NULL;
11515 if (this->eventHandler_.get() != NULL) {
11516 ctx = this->eventHandler_->getContext("Cassandra.remove_counter", callContext);
11517 }
11518 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.remove_counter");
11519
11520 if (this->eventHandler_.get() != NULL) {
11521 this->eventHandler_->preRead(ctx, "Cassandra.remove_counter");
11522 }
11523
11524 Cassandra_remove_counter_args args;
11525 args.read(iprot);
11526 iprot->readMessageEnd();
11527 uint32_t bytes = iprot->getTransport()->readEnd();
11528
11529 if (this->eventHandler_.get() != NULL) {
11530 this->eventHandler_->postRead(ctx, "Cassandra.remove_counter", bytes);
11531 }
11532
11533 Cassandra_remove_counter_result result;
11534 try {
11535 iface_->remove_counter(args.key, args.path, args.consistency_level);
11536 } catch (InvalidRequestException &ire) {
11537 result.ire = ire;
11538 result.__isset.ire = true;
11539 } catch (UnavailableException &ue) {
11540 result.ue = ue;
11541 result.__isset.ue = true;
11542 } catch (TimedOutException &te) {
11543 result.te = te;
11544 result.__isset.te = true;
11545 } catch (const std::exception& e) {
11546 if (this->eventHandler_.get() != NULL) {
11547 this->eventHandler_->handlerError(ctx, "Cassandra.remove_counter");
11548 }
11549
11550 ::apache::thrift::TApplicationException x(e.what());
11551 oprot->writeMessageBegin("remove_counter", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11552 x.write(oprot);
11553 oprot->writeMessageEnd();
11554 oprot->getTransport()->writeEnd();
11555 oprot->getTransport()->flush();
11556 return;
11557 }
11558
11559 if (this->eventHandler_.get() != NULL) {
11560 this->eventHandler_->preWrite(ctx, "Cassandra.remove_counter");
11561 }
11562
11563 oprot->writeMessageBegin("remove_counter", ::apache::thrift::protocol::T_REPLY, seqid);
11564 result.write(oprot);
11565 oprot->writeMessageEnd();
11566 bytes = oprot->getTransport()->writeEnd();
11567 oprot->getTransport()->flush();
11568
11569 if (this->eventHandler_.get() != NULL) {
11570 this->eventHandler_->postWrite(ctx, "Cassandra.remove_counter", bytes);
11571 }
11572 }
11573
process_batch_mutate(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11574 void CassandraProcessor::process_batch_mutate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11575 {
11576 void* ctx = NULL;
11577 if (this->eventHandler_.get() != NULL) {
11578 ctx = this->eventHandler_->getContext("Cassandra.batch_mutate", callContext);
11579 }
11580 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.batch_mutate");
11581
11582 if (this->eventHandler_.get() != NULL) {
11583 this->eventHandler_->preRead(ctx, "Cassandra.batch_mutate");
11584 }
11585
11586 Cassandra_batch_mutate_args args;
11587 args.read(iprot);
11588 iprot->readMessageEnd();
11589 uint32_t bytes = iprot->getTransport()->readEnd();
11590
11591 if (this->eventHandler_.get() != NULL) {
11592 this->eventHandler_->postRead(ctx, "Cassandra.batch_mutate", bytes);
11593 }
11594
11595 Cassandra_batch_mutate_result result;
11596 try {
11597 iface_->batch_mutate(args.mutation_map, args.consistency_level);
11598 } catch (InvalidRequestException &ire) {
11599 result.ire = ire;
11600 result.__isset.ire = true;
11601 } catch (UnavailableException &ue) {
11602 result.ue = ue;
11603 result.__isset.ue = true;
11604 } catch (TimedOutException &te) {
11605 result.te = te;
11606 result.__isset.te = true;
11607 } catch (const std::exception& e) {
11608 if (this->eventHandler_.get() != NULL) {
11609 this->eventHandler_->handlerError(ctx, "Cassandra.batch_mutate");
11610 }
11611
11612 ::apache::thrift::TApplicationException x(e.what());
11613 oprot->writeMessageBegin("batch_mutate", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11614 x.write(oprot);
11615 oprot->writeMessageEnd();
11616 oprot->getTransport()->writeEnd();
11617 oprot->getTransport()->flush();
11618 return;
11619 }
11620
11621 if (this->eventHandler_.get() != NULL) {
11622 this->eventHandler_->preWrite(ctx, "Cassandra.batch_mutate");
11623 }
11624
11625 oprot->writeMessageBegin("batch_mutate", ::apache::thrift::protocol::T_REPLY, seqid);
11626 result.write(oprot);
11627 oprot->writeMessageEnd();
11628 bytes = oprot->getTransport()->writeEnd();
11629 oprot->getTransport()->flush();
11630
11631 if (this->eventHandler_.get() != NULL) {
11632 this->eventHandler_->postWrite(ctx, "Cassandra.batch_mutate", bytes);
11633 }
11634 }
11635
process_truncate(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11636 void CassandraProcessor::process_truncate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11637 {
11638 void* ctx = NULL;
11639 if (this->eventHandler_.get() != NULL) {
11640 ctx = this->eventHandler_->getContext("Cassandra.truncate", callContext);
11641 }
11642 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.truncate");
11643
11644 if (this->eventHandler_.get() != NULL) {
11645 this->eventHandler_->preRead(ctx, "Cassandra.truncate");
11646 }
11647
11648 Cassandra_truncate_args args;
11649 args.read(iprot);
11650 iprot->readMessageEnd();
11651 uint32_t bytes = iprot->getTransport()->readEnd();
11652
11653 if (this->eventHandler_.get() != NULL) {
11654 this->eventHandler_->postRead(ctx, "Cassandra.truncate", bytes);
11655 }
11656
11657 Cassandra_truncate_result result;
11658 try {
11659 iface_->truncate(args.cfname);
11660 } catch (InvalidRequestException &ire) {
11661 result.ire = ire;
11662 result.__isset.ire = true;
11663 } catch (UnavailableException &ue) {
11664 result.ue = ue;
11665 result.__isset.ue = true;
11666 } catch (TimedOutException &te) {
11667 result.te = te;
11668 result.__isset.te = true;
11669 } catch (const std::exception& e) {
11670 if (this->eventHandler_.get() != NULL) {
11671 this->eventHandler_->handlerError(ctx, "Cassandra.truncate");
11672 }
11673
11674 ::apache::thrift::TApplicationException x(e.what());
11675 oprot->writeMessageBegin("truncate", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11676 x.write(oprot);
11677 oprot->writeMessageEnd();
11678 oprot->getTransport()->writeEnd();
11679 oprot->getTransport()->flush();
11680 return;
11681 }
11682
11683 if (this->eventHandler_.get() != NULL) {
11684 this->eventHandler_->preWrite(ctx, "Cassandra.truncate");
11685 }
11686
11687 oprot->writeMessageBegin("truncate", ::apache::thrift::protocol::T_REPLY, seqid);
11688 result.write(oprot);
11689 oprot->writeMessageEnd();
11690 bytes = oprot->getTransport()->writeEnd();
11691 oprot->getTransport()->flush();
11692
11693 if (this->eventHandler_.get() != NULL) {
11694 this->eventHandler_->postWrite(ctx, "Cassandra.truncate", bytes);
11695 }
11696 }
11697
process_describe_schema_versions(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11698 void CassandraProcessor::process_describe_schema_versions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11699 {
11700 void* ctx = NULL;
11701 if (this->eventHandler_.get() != NULL) {
11702 ctx = this->eventHandler_->getContext("Cassandra.describe_schema_versions", callContext);
11703 }
11704 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_schema_versions");
11705
11706 if (this->eventHandler_.get() != NULL) {
11707 this->eventHandler_->preRead(ctx, "Cassandra.describe_schema_versions");
11708 }
11709
11710 Cassandra_describe_schema_versions_args args;
11711 args.read(iprot);
11712 iprot->readMessageEnd();
11713 uint32_t bytes = iprot->getTransport()->readEnd();
11714
11715 if (this->eventHandler_.get() != NULL) {
11716 this->eventHandler_->postRead(ctx, "Cassandra.describe_schema_versions", bytes);
11717 }
11718
11719 Cassandra_describe_schema_versions_result result;
11720 try {
11721 iface_->describe_schema_versions(result.success);
11722 result.__isset.success = true;
11723 } catch (InvalidRequestException &ire) {
11724 result.ire = ire;
11725 result.__isset.ire = true;
11726 } catch (const std::exception& e) {
11727 if (this->eventHandler_.get() != NULL) {
11728 this->eventHandler_->handlerError(ctx, "Cassandra.describe_schema_versions");
11729 }
11730
11731 ::apache::thrift::TApplicationException x(e.what());
11732 oprot->writeMessageBegin("describe_schema_versions", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11733 x.write(oprot);
11734 oprot->writeMessageEnd();
11735 oprot->getTransport()->writeEnd();
11736 oprot->getTransport()->flush();
11737 return;
11738 }
11739
11740 if (this->eventHandler_.get() != NULL) {
11741 this->eventHandler_->preWrite(ctx, "Cassandra.describe_schema_versions");
11742 }
11743
11744 oprot->writeMessageBegin("describe_schema_versions", ::apache::thrift::protocol::T_REPLY, seqid);
11745 result.write(oprot);
11746 oprot->writeMessageEnd();
11747 bytes = oprot->getTransport()->writeEnd();
11748 oprot->getTransport()->flush();
11749
11750 if (this->eventHandler_.get() != NULL) {
11751 this->eventHandler_->postWrite(ctx, "Cassandra.describe_schema_versions", bytes);
11752 }
11753 }
11754
process_describe_keyspaces(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11755 void CassandraProcessor::process_describe_keyspaces(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11756 {
11757 void* ctx = NULL;
11758 if (this->eventHandler_.get() != NULL) {
11759 ctx = this->eventHandler_->getContext("Cassandra.describe_keyspaces", callContext);
11760 }
11761 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_keyspaces");
11762
11763 if (this->eventHandler_.get() != NULL) {
11764 this->eventHandler_->preRead(ctx, "Cassandra.describe_keyspaces");
11765 }
11766
11767 Cassandra_describe_keyspaces_args args;
11768 args.read(iprot);
11769 iprot->readMessageEnd();
11770 uint32_t bytes = iprot->getTransport()->readEnd();
11771
11772 if (this->eventHandler_.get() != NULL) {
11773 this->eventHandler_->postRead(ctx, "Cassandra.describe_keyspaces", bytes);
11774 }
11775
11776 Cassandra_describe_keyspaces_result result;
11777 try {
11778 iface_->describe_keyspaces(result.success);
11779 result.__isset.success = true;
11780 } catch (InvalidRequestException &ire) {
11781 result.ire = ire;
11782 result.__isset.ire = true;
11783 } catch (const std::exception& e) {
11784 if (this->eventHandler_.get() != NULL) {
11785 this->eventHandler_->handlerError(ctx, "Cassandra.describe_keyspaces");
11786 }
11787
11788 ::apache::thrift::TApplicationException x(e.what());
11789 oprot->writeMessageBegin("describe_keyspaces", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11790 x.write(oprot);
11791 oprot->writeMessageEnd();
11792 oprot->getTransport()->writeEnd();
11793 oprot->getTransport()->flush();
11794 return;
11795 }
11796
11797 if (this->eventHandler_.get() != NULL) {
11798 this->eventHandler_->preWrite(ctx, "Cassandra.describe_keyspaces");
11799 }
11800
11801 oprot->writeMessageBegin("describe_keyspaces", ::apache::thrift::protocol::T_REPLY, seqid);
11802 result.write(oprot);
11803 oprot->writeMessageEnd();
11804 bytes = oprot->getTransport()->writeEnd();
11805 oprot->getTransport()->flush();
11806
11807 if (this->eventHandler_.get() != NULL) {
11808 this->eventHandler_->postWrite(ctx, "Cassandra.describe_keyspaces", bytes);
11809 }
11810 }
11811
process_describe_cluster_name(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11812 void CassandraProcessor::process_describe_cluster_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11813 {
11814 void* ctx = NULL;
11815 if (this->eventHandler_.get() != NULL) {
11816 ctx = this->eventHandler_->getContext("Cassandra.describe_cluster_name", callContext);
11817 }
11818 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_cluster_name");
11819
11820 if (this->eventHandler_.get() != NULL) {
11821 this->eventHandler_->preRead(ctx, "Cassandra.describe_cluster_name");
11822 }
11823
11824 Cassandra_describe_cluster_name_args args;
11825 args.read(iprot);
11826 iprot->readMessageEnd();
11827 uint32_t bytes = iprot->getTransport()->readEnd();
11828
11829 if (this->eventHandler_.get() != NULL) {
11830 this->eventHandler_->postRead(ctx, "Cassandra.describe_cluster_name", bytes);
11831 }
11832
11833 Cassandra_describe_cluster_name_result result;
11834 try {
11835 iface_->describe_cluster_name(result.success);
11836 result.__isset.success = true;
11837 } catch (const std::exception& e) {
11838 if (this->eventHandler_.get() != NULL) {
11839 this->eventHandler_->handlerError(ctx, "Cassandra.describe_cluster_name");
11840 }
11841
11842 ::apache::thrift::TApplicationException x(e.what());
11843 oprot->writeMessageBegin("describe_cluster_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11844 x.write(oprot);
11845 oprot->writeMessageEnd();
11846 oprot->getTransport()->writeEnd();
11847 oprot->getTransport()->flush();
11848 return;
11849 }
11850
11851 if (this->eventHandler_.get() != NULL) {
11852 this->eventHandler_->preWrite(ctx, "Cassandra.describe_cluster_name");
11853 }
11854
11855 oprot->writeMessageBegin("describe_cluster_name", ::apache::thrift::protocol::T_REPLY, seqid);
11856 result.write(oprot);
11857 oprot->writeMessageEnd();
11858 bytes = oprot->getTransport()->writeEnd();
11859 oprot->getTransport()->flush();
11860
11861 if (this->eventHandler_.get() != NULL) {
11862 this->eventHandler_->postWrite(ctx, "Cassandra.describe_cluster_name", bytes);
11863 }
11864 }
11865
process_describe_version(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11866 void CassandraProcessor::process_describe_version(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11867 {
11868 void* ctx = NULL;
11869 if (this->eventHandler_.get() != NULL) {
11870 ctx = this->eventHandler_->getContext("Cassandra.describe_version", callContext);
11871 }
11872 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_version");
11873
11874 if (this->eventHandler_.get() != NULL) {
11875 this->eventHandler_->preRead(ctx, "Cassandra.describe_version");
11876 }
11877
11878 Cassandra_describe_version_args args;
11879 args.read(iprot);
11880 iprot->readMessageEnd();
11881 uint32_t bytes = iprot->getTransport()->readEnd();
11882
11883 if (this->eventHandler_.get() != NULL) {
11884 this->eventHandler_->postRead(ctx, "Cassandra.describe_version", bytes);
11885 }
11886
11887 Cassandra_describe_version_result result;
11888 try {
11889 iface_->describe_version(result.success);
11890 result.__isset.success = true;
11891 } catch (const std::exception& e) {
11892 if (this->eventHandler_.get() != NULL) {
11893 this->eventHandler_->handlerError(ctx, "Cassandra.describe_version");
11894 }
11895
11896 ::apache::thrift::TApplicationException x(e.what());
11897 oprot->writeMessageBegin("describe_version", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11898 x.write(oprot);
11899 oprot->writeMessageEnd();
11900 oprot->getTransport()->writeEnd();
11901 oprot->getTransport()->flush();
11902 return;
11903 }
11904
11905 if (this->eventHandler_.get() != NULL) {
11906 this->eventHandler_->preWrite(ctx, "Cassandra.describe_version");
11907 }
11908
11909 oprot->writeMessageBegin("describe_version", ::apache::thrift::protocol::T_REPLY, seqid);
11910 result.write(oprot);
11911 oprot->writeMessageEnd();
11912 bytes = oprot->getTransport()->writeEnd();
11913 oprot->getTransport()->flush();
11914
11915 if (this->eventHandler_.get() != NULL) {
11916 this->eventHandler_->postWrite(ctx, "Cassandra.describe_version", bytes);
11917 }
11918 }
11919
process_describe_ring(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11920 void CassandraProcessor::process_describe_ring(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11921 {
11922 void* ctx = NULL;
11923 if (this->eventHandler_.get() != NULL) {
11924 ctx = this->eventHandler_->getContext("Cassandra.describe_ring", callContext);
11925 }
11926 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_ring");
11927
11928 if (this->eventHandler_.get() != NULL) {
11929 this->eventHandler_->preRead(ctx, "Cassandra.describe_ring");
11930 }
11931
11932 Cassandra_describe_ring_args args;
11933 args.read(iprot);
11934 iprot->readMessageEnd();
11935 uint32_t bytes = iprot->getTransport()->readEnd();
11936
11937 if (this->eventHandler_.get() != NULL) {
11938 this->eventHandler_->postRead(ctx, "Cassandra.describe_ring", bytes);
11939 }
11940
11941 Cassandra_describe_ring_result result;
11942 try {
11943 iface_->describe_ring(result.success, args.keyspace);
11944 result.__isset.success = true;
11945 } catch (InvalidRequestException &ire) {
11946 result.ire = ire;
11947 result.__isset.ire = true;
11948 } catch (const std::exception& e) {
11949 if (this->eventHandler_.get() != NULL) {
11950 this->eventHandler_->handlerError(ctx, "Cassandra.describe_ring");
11951 }
11952
11953 ::apache::thrift::TApplicationException x(e.what());
11954 oprot->writeMessageBegin("describe_ring", ::apache::thrift::protocol::T_EXCEPTION, seqid);
11955 x.write(oprot);
11956 oprot->writeMessageEnd();
11957 oprot->getTransport()->writeEnd();
11958 oprot->getTransport()->flush();
11959 return;
11960 }
11961
11962 if (this->eventHandler_.get() != NULL) {
11963 this->eventHandler_->preWrite(ctx, "Cassandra.describe_ring");
11964 }
11965
11966 oprot->writeMessageBegin("describe_ring", ::apache::thrift::protocol::T_REPLY, seqid);
11967 result.write(oprot);
11968 oprot->writeMessageEnd();
11969 bytes = oprot->getTransport()->writeEnd();
11970 oprot->getTransport()->flush();
11971
11972 if (this->eventHandler_.get() != NULL) {
11973 this->eventHandler_->postWrite(ctx, "Cassandra.describe_ring", bytes);
11974 }
11975 }
11976
process_describe_token_map(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)11977 void CassandraProcessor::process_describe_token_map(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
11978 {
11979 void* ctx = NULL;
11980 if (this->eventHandler_.get() != NULL) {
11981 ctx = this->eventHandler_->getContext("Cassandra.describe_token_map", callContext);
11982 }
11983 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_token_map");
11984
11985 if (this->eventHandler_.get() != NULL) {
11986 this->eventHandler_->preRead(ctx, "Cassandra.describe_token_map");
11987 }
11988
11989 Cassandra_describe_token_map_args args;
11990 args.read(iprot);
11991 iprot->readMessageEnd();
11992 uint32_t bytes = iprot->getTransport()->readEnd();
11993
11994 if (this->eventHandler_.get() != NULL) {
11995 this->eventHandler_->postRead(ctx, "Cassandra.describe_token_map", bytes);
11996 }
11997
11998 Cassandra_describe_token_map_result result;
11999 try {
12000 iface_->describe_token_map(result.success);
12001 result.__isset.success = true;
12002 } catch (InvalidRequestException &ire) {
12003 result.ire = ire;
12004 result.__isset.ire = true;
12005 } catch (const std::exception& e) {
12006 if (this->eventHandler_.get() != NULL) {
12007 this->eventHandler_->handlerError(ctx, "Cassandra.describe_token_map");
12008 }
12009
12010 ::apache::thrift::TApplicationException x(e.what());
12011 oprot->writeMessageBegin("describe_token_map", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12012 x.write(oprot);
12013 oprot->writeMessageEnd();
12014 oprot->getTransport()->writeEnd();
12015 oprot->getTransport()->flush();
12016 return;
12017 }
12018
12019 if (this->eventHandler_.get() != NULL) {
12020 this->eventHandler_->preWrite(ctx, "Cassandra.describe_token_map");
12021 }
12022
12023 oprot->writeMessageBegin("describe_token_map", ::apache::thrift::protocol::T_REPLY, seqid);
12024 result.write(oprot);
12025 oprot->writeMessageEnd();
12026 bytes = oprot->getTransport()->writeEnd();
12027 oprot->getTransport()->flush();
12028
12029 if (this->eventHandler_.get() != NULL) {
12030 this->eventHandler_->postWrite(ctx, "Cassandra.describe_token_map", bytes);
12031 }
12032 }
12033
process_describe_partitioner(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12034 void CassandraProcessor::process_describe_partitioner(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12035 {
12036 void* ctx = NULL;
12037 if (this->eventHandler_.get() != NULL) {
12038 ctx = this->eventHandler_->getContext("Cassandra.describe_partitioner", callContext);
12039 }
12040 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_partitioner");
12041
12042 if (this->eventHandler_.get() != NULL) {
12043 this->eventHandler_->preRead(ctx, "Cassandra.describe_partitioner");
12044 }
12045
12046 Cassandra_describe_partitioner_args args;
12047 args.read(iprot);
12048 iprot->readMessageEnd();
12049 uint32_t bytes = iprot->getTransport()->readEnd();
12050
12051 if (this->eventHandler_.get() != NULL) {
12052 this->eventHandler_->postRead(ctx, "Cassandra.describe_partitioner", bytes);
12053 }
12054
12055 Cassandra_describe_partitioner_result result;
12056 try {
12057 iface_->describe_partitioner(result.success);
12058 result.__isset.success = true;
12059 } catch (const std::exception& e) {
12060 if (this->eventHandler_.get() != NULL) {
12061 this->eventHandler_->handlerError(ctx, "Cassandra.describe_partitioner");
12062 }
12063
12064 ::apache::thrift::TApplicationException x(e.what());
12065 oprot->writeMessageBegin("describe_partitioner", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12066 x.write(oprot);
12067 oprot->writeMessageEnd();
12068 oprot->getTransport()->writeEnd();
12069 oprot->getTransport()->flush();
12070 return;
12071 }
12072
12073 if (this->eventHandler_.get() != NULL) {
12074 this->eventHandler_->preWrite(ctx, "Cassandra.describe_partitioner");
12075 }
12076
12077 oprot->writeMessageBegin("describe_partitioner", ::apache::thrift::protocol::T_REPLY, seqid);
12078 result.write(oprot);
12079 oprot->writeMessageEnd();
12080 bytes = oprot->getTransport()->writeEnd();
12081 oprot->getTransport()->flush();
12082
12083 if (this->eventHandler_.get() != NULL) {
12084 this->eventHandler_->postWrite(ctx, "Cassandra.describe_partitioner", bytes);
12085 }
12086 }
12087
process_describe_snitch(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12088 void CassandraProcessor::process_describe_snitch(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12089 {
12090 void* ctx = NULL;
12091 if (this->eventHandler_.get() != NULL) {
12092 ctx = this->eventHandler_->getContext("Cassandra.describe_snitch", callContext);
12093 }
12094 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_snitch");
12095
12096 if (this->eventHandler_.get() != NULL) {
12097 this->eventHandler_->preRead(ctx, "Cassandra.describe_snitch");
12098 }
12099
12100 Cassandra_describe_snitch_args args;
12101 args.read(iprot);
12102 iprot->readMessageEnd();
12103 uint32_t bytes = iprot->getTransport()->readEnd();
12104
12105 if (this->eventHandler_.get() != NULL) {
12106 this->eventHandler_->postRead(ctx, "Cassandra.describe_snitch", bytes);
12107 }
12108
12109 Cassandra_describe_snitch_result result;
12110 try {
12111 iface_->describe_snitch(result.success);
12112 result.__isset.success = true;
12113 } catch (const std::exception& e) {
12114 if (this->eventHandler_.get() != NULL) {
12115 this->eventHandler_->handlerError(ctx, "Cassandra.describe_snitch");
12116 }
12117
12118 ::apache::thrift::TApplicationException x(e.what());
12119 oprot->writeMessageBegin("describe_snitch", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12120 x.write(oprot);
12121 oprot->writeMessageEnd();
12122 oprot->getTransport()->writeEnd();
12123 oprot->getTransport()->flush();
12124 return;
12125 }
12126
12127 if (this->eventHandler_.get() != NULL) {
12128 this->eventHandler_->preWrite(ctx, "Cassandra.describe_snitch");
12129 }
12130
12131 oprot->writeMessageBegin("describe_snitch", ::apache::thrift::protocol::T_REPLY, seqid);
12132 result.write(oprot);
12133 oprot->writeMessageEnd();
12134 bytes = oprot->getTransport()->writeEnd();
12135 oprot->getTransport()->flush();
12136
12137 if (this->eventHandler_.get() != NULL) {
12138 this->eventHandler_->postWrite(ctx, "Cassandra.describe_snitch", bytes);
12139 }
12140 }
12141
process_describe_keyspace(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12142 void CassandraProcessor::process_describe_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12143 {
12144 void* ctx = NULL;
12145 if (this->eventHandler_.get() != NULL) {
12146 ctx = this->eventHandler_->getContext("Cassandra.describe_keyspace", callContext);
12147 }
12148 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_keyspace");
12149
12150 if (this->eventHandler_.get() != NULL) {
12151 this->eventHandler_->preRead(ctx, "Cassandra.describe_keyspace");
12152 }
12153
12154 Cassandra_describe_keyspace_args args;
12155 args.read(iprot);
12156 iprot->readMessageEnd();
12157 uint32_t bytes = iprot->getTransport()->readEnd();
12158
12159 if (this->eventHandler_.get() != NULL) {
12160 this->eventHandler_->postRead(ctx, "Cassandra.describe_keyspace", bytes);
12161 }
12162
12163 Cassandra_describe_keyspace_result result;
12164 try {
12165 iface_->describe_keyspace(result.success, args.keyspace);
12166 result.__isset.success = true;
12167 } catch (NotFoundException &nfe) {
12168 result.nfe = nfe;
12169 result.__isset.nfe = true;
12170 } catch (InvalidRequestException &ire) {
12171 result.ire = ire;
12172 result.__isset.ire = true;
12173 } catch (const std::exception& e) {
12174 if (this->eventHandler_.get() != NULL) {
12175 this->eventHandler_->handlerError(ctx, "Cassandra.describe_keyspace");
12176 }
12177
12178 ::apache::thrift::TApplicationException x(e.what());
12179 oprot->writeMessageBegin("describe_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12180 x.write(oprot);
12181 oprot->writeMessageEnd();
12182 oprot->getTransport()->writeEnd();
12183 oprot->getTransport()->flush();
12184 return;
12185 }
12186
12187 if (this->eventHandler_.get() != NULL) {
12188 this->eventHandler_->preWrite(ctx, "Cassandra.describe_keyspace");
12189 }
12190
12191 oprot->writeMessageBegin("describe_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
12192 result.write(oprot);
12193 oprot->writeMessageEnd();
12194 bytes = oprot->getTransport()->writeEnd();
12195 oprot->getTransport()->flush();
12196
12197 if (this->eventHandler_.get() != NULL) {
12198 this->eventHandler_->postWrite(ctx, "Cassandra.describe_keyspace", bytes);
12199 }
12200 }
12201
process_describe_splits(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12202 void CassandraProcessor::process_describe_splits(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12203 {
12204 void* ctx = NULL;
12205 if (this->eventHandler_.get() != NULL) {
12206 ctx = this->eventHandler_->getContext("Cassandra.describe_splits", callContext);
12207 }
12208 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.describe_splits");
12209
12210 if (this->eventHandler_.get() != NULL) {
12211 this->eventHandler_->preRead(ctx, "Cassandra.describe_splits");
12212 }
12213
12214 Cassandra_describe_splits_args args;
12215 args.read(iprot);
12216 iprot->readMessageEnd();
12217 uint32_t bytes = iprot->getTransport()->readEnd();
12218
12219 if (this->eventHandler_.get() != NULL) {
12220 this->eventHandler_->postRead(ctx, "Cassandra.describe_splits", bytes);
12221 }
12222
12223 Cassandra_describe_splits_result result;
12224 try {
12225 iface_->describe_splits(result.success, args.cfName, args.start_token, args.end_token, args.keys_per_split);
12226 result.__isset.success = true;
12227 } catch (InvalidRequestException &ire) {
12228 result.ire = ire;
12229 result.__isset.ire = true;
12230 } catch (const std::exception& e) {
12231 if (this->eventHandler_.get() != NULL) {
12232 this->eventHandler_->handlerError(ctx, "Cassandra.describe_splits");
12233 }
12234
12235 ::apache::thrift::TApplicationException x(e.what());
12236 oprot->writeMessageBegin("describe_splits", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12237 x.write(oprot);
12238 oprot->writeMessageEnd();
12239 oprot->getTransport()->writeEnd();
12240 oprot->getTransport()->flush();
12241 return;
12242 }
12243
12244 if (this->eventHandler_.get() != NULL) {
12245 this->eventHandler_->preWrite(ctx, "Cassandra.describe_splits");
12246 }
12247
12248 oprot->writeMessageBegin("describe_splits", ::apache::thrift::protocol::T_REPLY, seqid);
12249 result.write(oprot);
12250 oprot->writeMessageEnd();
12251 bytes = oprot->getTransport()->writeEnd();
12252 oprot->getTransport()->flush();
12253
12254 if (this->eventHandler_.get() != NULL) {
12255 this->eventHandler_->postWrite(ctx, "Cassandra.describe_splits", bytes);
12256 }
12257 }
12258
process_system_add_column_family(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12259 void CassandraProcessor::process_system_add_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12260 {
12261 void* ctx = NULL;
12262 if (this->eventHandler_.get() != NULL) {
12263 ctx = this->eventHandler_->getContext("Cassandra.system_add_column_family", callContext);
12264 }
12265 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.system_add_column_family");
12266
12267 if (this->eventHandler_.get() != NULL) {
12268 this->eventHandler_->preRead(ctx, "Cassandra.system_add_column_family");
12269 }
12270
12271 Cassandra_system_add_column_family_args args;
12272 args.read(iprot);
12273 iprot->readMessageEnd();
12274 uint32_t bytes = iprot->getTransport()->readEnd();
12275
12276 if (this->eventHandler_.get() != NULL) {
12277 this->eventHandler_->postRead(ctx, "Cassandra.system_add_column_family", bytes);
12278 }
12279
12280 Cassandra_system_add_column_family_result result;
12281 try {
12282 iface_->system_add_column_family(result.success, args.cf_def);
12283 result.__isset.success = true;
12284 } catch (InvalidRequestException &ire) {
12285 result.ire = ire;
12286 result.__isset.ire = true;
12287 } catch (SchemaDisagreementException &sde) {
12288 result.sde = sde;
12289 result.__isset.sde = true;
12290 } catch (const std::exception& e) {
12291 if (this->eventHandler_.get() != NULL) {
12292 this->eventHandler_->handlerError(ctx, "Cassandra.system_add_column_family");
12293 }
12294
12295 ::apache::thrift::TApplicationException x(e.what());
12296 oprot->writeMessageBegin("system_add_column_family", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12297 x.write(oprot);
12298 oprot->writeMessageEnd();
12299 oprot->getTransport()->writeEnd();
12300 oprot->getTransport()->flush();
12301 return;
12302 }
12303
12304 if (this->eventHandler_.get() != NULL) {
12305 this->eventHandler_->preWrite(ctx, "Cassandra.system_add_column_family");
12306 }
12307
12308 oprot->writeMessageBegin("system_add_column_family", ::apache::thrift::protocol::T_REPLY, seqid);
12309 result.write(oprot);
12310 oprot->writeMessageEnd();
12311 bytes = oprot->getTransport()->writeEnd();
12312 oprot->getTransport()->flush();
12313
12314 if (this->eventHandler_.get() != NULL) {
12315 this->eventHandler_->postWrite(ctx, "Cassandra.system_add_column_family", bytes);
12316 }
12317 }
12318
process_system_drop_column_family(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12319 void CassandraProcessor::process_system_drop_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12320 {
12321 void* ctx = NULL;
12322 if (this->eventHandler_.get() != NULL) {
12323 ctx = this->eventHandler_->getContext("Cassandra.system_drop_column_family", callContext);
12324 }
12325 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.system_drop_column_family");
12326
12327 if (this->eventHandler_.get() != NULL) {
12328 this->eventHandler_->preRead(ctx, "Cassandra.system_drop_column_family");
12329 }
12330
12331 Cassandra_system_drop_column_family_args args;
12332 args.read(iprot);
12333 iprot->readMessageEnd();
12334 uint32_t bytes = iprot->getTransport()->readEnd();
12335
12336 if (this->eventHandler_.get() != NULL) {
12337 this->eventHandler_->postRead(ctx, "Cassandra.system_drop_column_family", bytes);
12338 }
12339
12340 Cassandra_system_drop_column_family_result result;
12341 try {
12342 iface_->system_drop_column_family(result.success, args.column_family);
12343 result.__isset.success = true;
12344 } catch (InvalidRequestException &ire) {
12345 result.ire = ire;
12346 result.__isset.ire = true;
12347 } catch (SchemaDisagreementException &sde) {
12348 result.sde = sde;
12349 result.__isset.sde = true;
12350 } catch (const std::exception& e) {
12351 if (this->eventHandler_.get() != NULL) {
12352 this->eventHandler_->handlerError(ctx, "Cassandra.system_drop_column_family");
12353 }
12354
12355 ::apache::thrift::TApplicationException x(e.what());
12356 oprot->writeMessageBegin("system_drop_column_family", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12357 x.write(oprot);
12358 oprot->writeMessageEnd();
12359 oprot->getTransport()->writeEnd();
12360 oprot->getTransport()->flush();
12361 return;
12362 }
12363
12364 if (this->eventHandler_.get() != NULL) {
12365 this->eventHandler_->preWrite(ctx, "Cassandra.system_drop_column_family");
12366 }
12367
12368 oprot->writeMessageBegin("system_drop_column_family", ::apache::thrift::protocol::T_REPLY, seqid);
12369 result.write(oprot);
12370 oprot->writeMessageEnd();
12371 bytes = oprot->getTransport()->writeEnd();
12372 oprot->getTransport()->flush();
12373
12374 if (this->eventHandler_.get() != NULL) {
12375 this->eventHandler_->postWrite(ctx, "Cassandra.system_drop_column_family", bytes);
12376 }
12377 }
12378
process_system_add_keyspace(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12379 void CassandraProcessor::process_system_add_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12380 {
12381 void* ctx = NULL;
12382 if (this->eventHandler_.get() != NULL) {
12383 ctx = this->eventHandler_->getContext("Cassandra.system_add_keyspace", callContext);
12384 }
12385 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.system_add_keyspace");
12386
12387 if (this->eventHandler_.get() != NULL) {
12388 this->eventHandler_->preRead(ctx, "Cassandra.system_add_keyspace");
12389 }
12390
12391 Cassandra_system_add_keyspace_args args;
12392 args.read(iprot);
12393 iprot->readMessageEnd();
12394 uint32_t bytes = iprot->getTransport()->readEnd();
12395
12396 if (this->eventHandler_.get() != NULL) {
12397 this->eventHandler_->postRead(ctx, "Cassandra.system_add_keyspace", bytes);
12398 }
12399
12400 Cassandra_system_add_keyspace_result result;
12401 try {
12402 iface_->system_add_keyspace(result.success, args.ks_def);
12403 result.__isset.success = true;
12404 } catch (InvalidRequestException &ire) {
12405 result.ire = ire;
12406 result.__isset.ire = true;
12407 } catch (SchemaDisagreementException &sde) {
12408 result.sde = sde;
12409 result.__isset.sde = true;
12410 } catch (const std::exception& e) {
12411 if (this->eventHandler_.get() != NULL) {
12412 this->eventHandler_->handlerError(ctx, "Cassandra.system_add_keyspace");
12413 }
12414
12415 ::apache::thrift::TApplicationException x(e.what());
12416 oprot->writeMessageBegin("system_add_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12417 x.write(oprot);
12418 oprot->writeMessageEnd();
12419 oprot->getTransport()->writeEnd();
12420 oprot->getTransport()->flush();
12421 return;
12422 }
12423
12424 if (this->eventHandler_.get() != NULL) {
12425 this->eventHandler_->preWrite(ctx, "Cassandra.system_add_keyspace");
12426 }
12427
12428 oprot->writeMessageBegin("system_add_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
12429 result.write(oprot);
12430 oprot->writeMessageEnd();
12431 bytes = oprot->getTransport()->writeEnd();
12432 oprot->getTransport()->flush();
12433
12434 if (this->eventHandler_.get() != NULL) {
12435 this->eventHandler_->postWrite(ctx, "Cassandra.system_add_keyspace", bytes);
12436 }
12437 }
12438
process_system_drop_keyspace(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12439 void CassandraProcessor::process_system_drop_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12440 {
12441 void* ctx = NULL;
12442 if (this->eventHandler_.get() != NULL) {
12443 ctx = this->eventHandler_->getContext("Cassandra.system_drop_keyspace", callContext);
12444 }
12445 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.system_drop_keyspace");
12446
12447 if (this->eventHandler_.get() != NULL) {
12448 this->eventHandler_->preRead(ctx, "Cassandra.system_drop_keyspace");
12449 }
12450
12451 Cassandra_system_drop_keyspace_args args;
12452 args.read(iprot);
12453 iprot->readMessageEnd();
12454 uint32_t bytes = iprot->getTransport()->readEnd();
12455
12456 if (this->eventHandler_.get() != NULL) {
12457 this->eventHandler_->postRead(ctx, "Cassandra.system_drop_keyspace", bytes);
12458 }
12459
12460 Cassandra_system_drop_keyspace_result result;
12461 try {
12462 iface_->system_drop_keyspace(result.success, args.keyspace);
12463 result.__isset.success = true;
12464 } catch (InvalidRequestException &ire) {
12465 result.ire = ire;
12466 result.__isset.ire = true;
12467 } catch (SchemaDisagreementException &sde) {
12468 result.sde = sde;
12469 result.__isset.sde = true;
12470 } catch (const std::exception& e) {
12471 if (this->eventHandler_.get() != NULL) {
12472 this->eventHandler_->handlerError(ctx, "Cassandra.system_drop_keyspace");
12473 }
12474
12475 ::apache::thrift::TApplicationException x(e.what());
12476 oprot->writeMessageBegin("system_drop_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12477 x.write(oprot);
12478 oprot->writeMessageEnd();
12479 oprot->getTransport()->writeEnd();
12480 oprot->getTransport()->flush();
12481 return;
12482 }
12483
12484 if (this->eventHandler_.get() != NULL) {
12485 this->eventHandler_->preWrite(ctx, "Cassandra.system_drop_keyspace");
12486 }
12487
12488 oprot->writeMessageBegin("system_drop_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
12489 result.write(oprot);
12490 oprot->writeMessageEnd();
12491 bytes = oprot->getTransport()->writeEnd();
12492 oprot->getTransport()->flush();
12493
12494 if (this->eventHandler_.get() != NULL) {
12495 this->eventHandler_->postWrite(ctx, "Cassandra.system_drop_keyspace", bytes);
12496 }
12497 }
12498
process_system_update_keyspace(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12499 void CassandraProcessor::process_system_update_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12500 {
12501 void* ctx = NULL;
12502 if (this->eventHandler_.get() != NULL) {
12503 ctx = this->eventHandler_->getContext("Cassandra.system_update_keyspace", callContext);
12504 }
12505 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.system_update_keyspace");
12506
12507 if (this->eventHandler_.get() != NULL) {
12508 this->eventHandler_->preRead(ctx, "Cassandra.system_update_keyspace");
12509 }
12510
12511 Cassandra_system_update_keyspace_args args;
12512 args.read(iprot);
12513 iprot->readMessageEnd();
12514 uint32_t bytes = iprot->getTransport()->readEnd();
12515
12516 if (this->eventHandler_.get() != NULL) {
12517 this->eventHandler_->postRead(ctx, "Cassandra.system_update_keyspace", bytes);
12518 }
12519
12520 Cassandra_system_update_keyspace_result result;
12521 try {
12522 iface_->system_update_keyspace(result.success, args.ks_def);
12523 result.__isset.success = true;
12524 } catch (InvalidRequestException &ire) {
12525 result.ire = ire;
12526 result.__isset.ire = true;
12527 } catch (SchemaDisagreementException &sde) {
12528 result.sde = sde;
12529 result.__isset.sde = true;
12530 } catch (const std::exception& e) {
12531 if (this->eventHandler_.get() != NULL) {
12532 this->eventHandler_->handlerError(ctx, "Cassandra.system_update_keyspace");
12533 }
12534
12535 ::apache::thrift::TApplicationException x(e.what());
12536 oprot->writeMessageBegin("system_update_keyspace", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12537 x.write(oprot);
12538 oprot->writeMessageEnd();
12539 oprot->getTransport()->writeEnd();
12540 oprot->getTransport()->flush();
12541 return;
12542 }
12543
12544 if (this->eventHandler_.get() != NULL) {
12545 this->eventHandler_->preWrite(ctx, "Cassandra.system_update_keyspace");
12546 }
12547
12548 oprot->writeMessageBegin("system_update_keyspace", ::apache::thrift::protocol::T_REPLY, seqid);
12549 result.write(oprot);
12550 oprot->writeMessageEnd();
12551 bytes = oprot->getTransport()->writeEnd();
12552 oprot->getTransport()->flush();
12553
12554 if (this->eventHandler_.get() != NULL) {
12555 this->eventHandler_->postWrite(ctx, "Cassandra.system_update_keyspace", bytes);
12556 }
12557 }
12558
process_system_update_column_family(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12559 void CassandraProcessor::process_system_update_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12560 {
12561 void* ctx = NULL;
12562 if (this->eventHandler_.get() != NULL) {
12563 ctx = this->eventHandler_->getContext("Cassandra.system_update_column_family", callContext);
12564 }
12565 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.system_update_column_family");
12566
12567 if (this->eventHandler_.get() != NULL) {
12568 this->eventHandler_->preRead(ctx, "Cassandra.system_update_column_family");
12569 }
12570
12571 Cassandra_system_update_column_family_args args;
12572 args.read(iprot);
12573 iprot->readMessageEnd();
12574 uint32_t bytes = iprot->getTransport()->readEnd();
12575
12576 if (this->eventHandler_.get() != NULL) {
12577 this->eventHandler_->postRead(ctx, "Cassandra.system_update_column_family", bytes);
12578 }
12579
12580 Cassandra_system_update_column_family_result result;
12581 try {
12582 iface_->system_update_column_family(result.success, args.cf_def);
12583 result.__isset.success = true;
12584 } catch (InvalidRequestException &ire) {
12585 result.ire = ire;
12586 result.__isset.ire = true;
12587 } catch (SchemaDisagreementException &sde) {
12588 result.sde = sde;
12589 result.__isset.sde = true;
12590 } catch (const std::exception& e) {
12591 if (this->eventHandler_.get() != NULL) {
12592 this->eventHandler_->handlerError(ctx, "Cassandra.system_update_column_family");
12593 }
12594
12595 ::apache::thrift::TApplicationException x(e.what());
12596 oprot->writeMessageBegin("system_update_column_family", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12597 x.write(oprot);
12598 oprot->writeMessageEnd();
12599 oprot->getTransport()->writeEnd();
12600 oprot->getTransport()->flush();
12601 return;
12602 }
12603
12604 if (this->eventHandler_.get() != NULL) {
12605 this->eventHandler_->preWrite(ctx, "Cassandra.system_update_column_family");
12606 }
12607
12608 oprot->writeMessageBegin("system_update_column_family", ::apache::thrift::protocol::T_REPLY, seqid);
12609 result.write(oprot);
12610 oprot->writeMessageEnd();
12611 bytes = oprot->getTransport()->writeEnd();
12612 oprot->getTransport()->flush();
12613
12614 if (this->eventHandler_.get() != NULL) {
12615 this->eventHandler_->postWrite(ctx, "Cassandra.system_update_column_family", bytes);
12616 }
12617 }
12618
process_execute_cql_query(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12619 void CassandraProcessor::process_execute_cql_query(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12620 {
12621 void* ctx = NULL;
12622 if (this->eventHandler_.get() != NULL) {
12623 ctx = this->eventHandler_->getContext("Cassandra.execute_cql_query", callContext);
12624 }
12625 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.execute_cql_query");
12626
12627 if (this->eventHandler_.get() != NULL) {
12628 this->eventHandler_->preRead(ctx, "Cassandra.execute_cql_query");
12629 }
12630
12631 Cassandra_execute_cql_query_args args;
12632 args.read(iprot);
12633 iprot->readMessageEnd();
12634 uint32_t bytes = iprot->getTransport()->readEnd();
12635
12636 if (this->eventHandler_.get() != NULL) {
12637 this->eventHandler_->postRead(ctx, "Cassandra.execute_cql_query", bytes);
12638 }
12639
12640 Cassandra_execute_cql_query_result result;
12641 try {
12642 iface_->execute_cql_query(result.success, args.query, args.compression);
12643 result.__isset.success = true;
12644 } catch (InvalidRequestException &ire) {
12645 result.ire = ire;
12646 result.__isset.ire = true;
12647 } catch (UnavailableException &ue) {
12648 result.ue = ue;
12649 result.__isset.ue = true;
12650 } catch (TimedOutException &te) {
12651 result.te = te;
12652 result.__isset.te = true;
12653 } catch (SchemaDisagreementException &sde) {
12654 result.sde = sde;
12655 result.__isset.sde = true;
12656 } catch (const std::exception& e) {
12657 if (this->eventHandler_.get() != NULL) {
12658 this->eventHandler_->handlerError(ctx, "Cassandra.execute_cql_query");
12659 }
12660
12661 ::apache::thrift::TApplicationException x(e.what());
12662 oprot->writeMessageBegin("execute_cql_query", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12663 x.write(oprot);
12664 oprot->writeMessageEnd();
12665 oprot->getTransport()->writeEnd();
12666 oprot->getTransport()->flush();
12667 return;
12668 }
12669
12670 if (this->eventHandler_.get() != NULL) {
12671 this->eventHandler_->preWrite(ctx, "Cassandra.execute_cql_query");
12672 }
12673
12674 oprot->writeMessageBegin("execute_cql_query", ::apache::thrift::protocol::T_REPLY, seqid);
12675 result.write(oprot);
12676 oprot->writeMessageEnd();
12677 bytes = oprot->getTransport()->writeEnd();
12678 oprot->getTransport()->flush();
12679
12680 if (this->eventHandler_.get() != NULL) {
12681 this->eventHandler_->postWrite(ctx, "Cassandra.execute_cql_query", bytes);
12682 }
12683 }
12684
process_prepare_cql_query(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12685 void CassandraProcessor::process_prepare_cql_query(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12686 {
12687 void* ctx = NULL;
12688 if (this->eventHandler_.get() != NULL) {
12689 ctx = this->eventHandler_->getContext("Cassandra.prepare_cql_query", callContext);
12690 }
12691 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.prepare_cql_query");
12692
12693 if (this->eventHandler_.get() != NULL) {
12694 this->eventHandler_->preRead(ctx, "Cassandra.prepare_cql_query");
12695 }
12696
12697 Cassandra_prepare_cql_query_args args;
12698 args.read(iprot);
12699 iprot->readMessageEnd();
12700 uint32_t bytes = iprot->getTransport()->readEnd();
12701
12702 if (this->eventHandler_.get() != NULL) {
12703 this->eventHandler_->postRead(ctx, "Cassandra.prepare_cql_query", bytes);
12704 }
12705
12706 Cassandra_prepare_cql_query_result result;
12707 try {
12708 iface_->prepare_cql_query(result.success, args.query, args.compression);
12709 result.__isset.success = true;
12710 } catch (InvalidRequestException &ire) {
12711 result.ire = ire;
12712 result.__isset.ire = true;
12713 } catch (const std::exception& e) {
12714 if (this->eventHandler_.get() != NULL) {
12715 this->eventHandler_->handlerError(ctx, "Cassandra.prepare_cql_query");
12716 }
12717
12718 ::apache::thrift::TApplicationException x(e.what());
12719 oprot->writeMessageBegin("prepare_cql_query", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12720 x.write(oprot);
12721 oprot->writeMessageEnd();
12722 oprot->getTransport()->writeEnd();
12723 oprot->getTransport()->flush();
12724 return;
12725 }
12726
12727 if (this->eventHandler_.get() != NULL) {
12728 this->eventHandler_->preWrite(ctx, "Cassandra.prepare_cql_query");
12729 }
12730
12731 oprot->writeMessageBegin("prepare_cql_query", ::apache::thrift::protocol::T_REPLY, seqid);
12732 result.write(oprot);
12733 oprot->writeMessageEnd();
12734 bytes = oprot->getTransport()->writeEnd();
12735 oprot->getTransport()->flush();
12736
12737 if (this->eventHandler_.get() != NULL) {
12738 this->eventHandler_->postWrite(ctx, "Cassandra.prepare_cql_query", bytes);
12739 }
12740 }
12741
process_execute_prepared_cql_query(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12742 void CassandraProcessor::process_execute_prepared_cql_query(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12743 {
12744 void* ctx = NULL;
12745 if (this->eventHandler_.get() != NULL) {
12746 ctx = this->eventHandler_->getContext("Cassandra.execute_prepared_cql_query", callContext);
12747 }
12748 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.execute_prepared_cql_query");
12749
12750 if (this->eventHandler_.get() != NULL) {
12751 this->eventHandler_->preRead(ctx, "Cassandra.execute_prepared_cql_query");
12752 }
12753
12754 Cassandra_execute_prepared_cql_query_args args;
12755 args.read(iprot);
12756 iprot->readMessageEnd();
12757 uint32_t bytes = iprot->getTransport()->readEnd();
12758
12759 if (this->eventHandler_.get() != NULL) {
12760 this->eventHandler_->postRead(ctx, "Cassandra.execute_prepared_cql_query", bytes);
12761 }
12762
12763 Cassandra_execute_prepared_cql_query_result result;
12764 try {
12765 iface_->execute_prepared_cql_query(result.success, args.itemId, args.values);
12766 result.__isset.success = true;
12767 } catch (InvalidRequestException &ire) {
12768 result.ire = ire;
12769 result.__isset.ire = true;
12770 } catch (UnavailableException &ue) {
12771 result.ue = ue;
12772 result.__isset.ue = true;
12773 } catch (TimedOutException &te) {
12774 result.te = te;
12775 result.__isset.te = true;
12776 } catch (SchemaDisagreementException &sde) {
12777 result.sde = sde;
12778 result.__isset.sde = true;
12779 } catch (const std::exception& e) {
12780 if (this->eventHandler_.get() != NULL) {
12781 this->eventHandler_->handlerError(ctx, "Cassandra.execute_prepared_cql_query");
12782 }
12783
12784 ::apache::thrift::TApplicationException x(e.what());
12785 oprot->writeMessageBegin("execute_prepared_cql_query", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12786 x.write(oprot);
12787 oprot->writeMessageEnd();
12788 oprot->getTransport()->writeEnd();
12789 oprot->getTransport()->flush();
12790 return;
12791 }
12792
12793 if (this->eventHandler_.get() != NULL) {
12794 this->eventHandler_->preWrite(ctx, "Cassandra.execute_prepared_cql_query");
12795 }
12796
12797 oprot->writeMessageBegin("execute_prepared_cql_query", ::apache::thrift::protocol::T_REPLY, seqid);
12798 result.write(oprot);
12799 oprot->writeMessageEnd();
12800 bytes = oprot->getTransport()->writeEnd();
12801 oprot->getTransport()->flush();
12802
12803 if (this->eventHandler_.get() != NULL) {
12804 this->eventHandler_->postWrite(ctx, "Cassandra.execute_prepared_cql_query", bytes);
12805 }
12806 }
12807
process_set_cql_version(int32_t seqid,::apache::thrift::protocol::TProtocol * iprot,::apache::thrift::protocol::TProtocol * oprot,void * callContext)12808 void CassandraProcessor::process_set_cql_version(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext)
12809 {
12810 void* ctx = NULL;
12811 if (this->eventHandler_.get() != NULL) {
12812 ctx = this->eventHandler_->getContext("Cassandra.set_cql_version", callContext);
12813 }
12814 ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Cassandra.set_cql_version");
12815
12816 if (this->eventHandler_.get() != NULL) {
12817 this->eventHandler_->preRead(ctx, "Cassandra.set_cql_version");
12818 }
12819
12820 Cassandra_set_cql_version_args args;
12821 args.read(iprot);
12822 iprot->readMessageEnd();
12823 uint32_t bytes = iprot->getTransport()->readEnd();
12824
12825 if (this->eventHandler_.get() != NULL) {
12826 this->eventHandler_->postRead(ctx, "Cassandra.set_cql_version", bytes);
12827 }
12828
12829 Cassandra_set_cql_version_result result;
12830 try {
12831 iface_->set_cql_version(args.version);
12832 } catch (InvalidRequestException &ire) {
12833 result.ire = ire;
12834 result.__isset.ire = true;
12835 } catch (const std::exception& e) {
12836 if (this->eventHandler_.get() != NULL) {
12837 this->eventHandler_->handlerError(ctx, "Cassandra.set_cql_version");
12838 }
12839
12840 ::apache::thrift::TApplicationException x(e.what());
12841 oprot->writeMessageBegin("set_cql_version", ::apache::thrift::protocol::T_EXCEPTION, seqid);
12842 x.write(oprot);
12843 oprot->writeMessageEnd();
12844 oprot->getTransport()->writeEnd();
12845 oprot->getTransport()->flush();
12846 return;
12847 }
12848
12849 if (this->eventHandler_.get() != NULL) {
12850 this->eventHandler_->preWrite(ctx, "Cassandra.set_cql_version");
12851 }
12852
12853 oprot->writeMessageBegin("set_cql_version", ::apache::thrift::protocol::T_REPLY, seqid);
12854 result.write(oprot);
12855 oprot->writeMessageEnd();
12856 bytes = oprot->getTransport()->writeEnd();
12857 oprot->getTransport()->flush();
12858
12859 if (this->eventHandler_.get() != NULL) {
12860 this->eventHandler_->postWrite(ctx, "Cassandra.set_cql_version", bytes);
12861 }
12862 }
12863
getProcessor(const::apache::thrift::TConnectionInfo & connInfo)12864 ::boost::shared_ptr< ::apache::thrift::TProcessor > CassandraProcessorFactory::getProcessor(const ::apache::thrift::TConnectionInfo& connInfo) {
12865 ::apache::thrift::ReleaseHandler< CassandraIfFactory > cleanup(handlerFactory_);
12866 ::boost::shared_ptr< CassandraIf > handler(handlerFactory_->getHandler(connInfo), cleanup);
12867 ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new CassandraProcessor(handler));
12868 return processor;
12869 }
12870 }}} // namespace
12871
12872