-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTHBaseService.h
More file actions
3011 lines (2291 loc) · 92.2 KB
/
THBaseService.h
File metadata and controls
3011 lines (2291 loc) · 92.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#ifndef THBaseService_H
#define THBaseService_H
#include <thrift/TDispatchProcessor.h>
#include <thrift/async/TConcurrentClientSyncInfo.h>
#include "hbase_types.h"
namespace apache { namespace hadoop { namespace hbase { namespace thrift2 {
#ifdef _WIN32
#pragma warning( push )
#pragma warning (disable : 4250 ) //inheriting methods via dominance
#endif
class THBaseServiceIf {
public:
virtual ~THBaseServiceIf() {}
/**
* Test for the existence of columns in the table, as specified in the TGet.
*
* @return true if the specified TGet matches one or more keys, false if not
*
* @param table the table to check on
*
* @param tget the TGet to check for
*/
virtual bool exists(const std::string& table, const TGet& tget) = 0;
/**
* Method for getting data from a row.
*
* If the row cannot be found an empty Result is returned.
* This can be checked by the empty field of the TResult
*
* @return the result
*
* @param table the table to get from
*
* @param tget the TGet to fetch
*/
virtual void get(TResult& _return, const std::string& table, const TGet& tget) = 0;
/**
* Method for getting multiple rows.
*
* If a row cannot be found there will be a null
* value in the result list for that TGet at the
* same position.
*
* So the Results are in the same order as the TGets.
*
* @param table the table to get from
*
* @param tgets a list of TGets to fetch, the Result list
* will have the Results at corresponding positions
* or null if there was an error
*/
virtual void getMultiple(std::vector<TResult> & _return, const std::string& table, const std::vector<TGet> & tgets) = 0;
/**
* Commit a TPut to a table.
*
* @param table the table to put data in
*
* @param tput the TPut to put
*/
virtual void put(const std::string& table, const TPut& tput) = 0;
/**
* Atomically checks if a row/family/qualifier value matches the expected
* value. If it does, it adds the TPut.
*
* @return true if the new put was executed, false otherwise
*
* @param table to check in and put to
*
* @param row row to check
*
* @param family column family to check
*
* @param qualifier column qualifier to check
*
* @param value the expected value, if not provided the
* check is for the non-existence of the
* column in question
*
* @param tput the TPut to put if the check succeeds
*/
virtual bool checkAndPut(const std::string& table, const std::string& row, const std::string& family, const std::string& qualifier, const std::string& value, const TPut& tput) = 0;
/**
* Commit a List of Puts to the table.
*
* @param table the table to put data in
*
* @param tputs a list of TPuts to commit
*/
virtual void putMultiple(const std::string& table, const std::vector<TPut> & tputs) = 0;
/**
* Deletes as specified by the TDelete.
*
* Note: "delete" is a reserved keyword and cannot be used in Thrift
* thus the inconsistent naming scheme from the other functions.
*
* @param table the table to delete from
*
* @param tdelete the TDelete to delete
*/
virtual void deleteSingle(const std::string& table, const TDelete& tdelete) = 0;
/**
* Bulk commit a List of TDeletes to the table.
*
* Throws a TIOError if any of the deletes fail.
*
* Always returns an empty list for backwards compatibility.
*
* @param table the table to delete from
*
* @param tdeletes list of TDeletes to delete
*/
virtual void deleteMultiple(std::vector<TDelete> & _return, const std::string& table, const std::vector<TDelete> & tdeletes) = 0;
/**
* Atomically checks if a row/family/qualifier value matches the expected
* value. If it does, it adds the delete.
*
* @return true if the new delete was executed, false otherwise
*
* @param table to check in and delete from
*
* @param row row to check
*
* @param family column family to check
*
* @param qualifier column qualifier to check
*
* @param value the expected value, if not provided the
* check is for the non-existence of the
* column in question
*
* @param tdelete the TDelete to execute if the check succeeds
*/
virtual bool checkAndDelete(const std::string& table, const std::string& row, const std::string& family, const std::string& qualifier, const std::string& value, const TDelete& tdelete) = 0;
virtual void increment(TResult& _return, const std::string& table, const TIncrement& tincrement) = 0;
virtual void append(TResult& _return, const std::string& table, const TAppend& tappend) = 0;
/**
* Get a Scanner for the provided TScan object.
*
* @return Scanner Id to be used with other scanner procedures
*
* @param table the table to get the Scanner for
*
* @param tscan the scan object to get a Scanner for
*/
virtual int32_t openScanner(const std::string& table, const TScan& tscan) = 0;
/**
* Grabs multiple rows from a Scanner.
*
* @return Between zero and numRows TResults
*
* @param scannerId the Id of the Scanner to return rows from. This is an Id returned from the openScanner function.
*
* @param numRows number of rows to return
*/
virtual void getScannerRows(std::vector<TResult> & _return, const int32_t scannerId, const int32_t numRows) = 0;
/**
* Closes the scanner. Should be called to free server side resources timely.
* Typically close once the scanner is not needed anymore, i.e. after looping
* over it to get all the required rows.
*
* @param scannerId the Id of the Scanner to close *
*/
virtual void closeScanner(const int32_t scannerId) = 0;
/**
* mutateRow performs multiple mutations atomically on a single row.
*
* @param table table to apply the mutations
*
* @param trowMutations mutations to apply
*/
virtual void mutateRow(const std::string& table, const TRowMutations& trowMutations) = 0;
/**
* Get results for the provided TScan object.
* This helper function opens a scanner, get the results and close the scanner.
*
* @return between zero and numRows TResults
*
* @param table the table to get the Scanner for
*
* @param tscan the scan object to get a Scanner for
*
* @param numRows number of rows to return
*/
virtual void getScannerResults(std::vector<TResult> & _return, const std::string& table, const TScan& tscan, const int32_t numRows) = 0;
/**
* Given a table and a row get the location of the region that
* would contain the given row key.
*
* reload = true means the cache will be cleared and the location
* will be fetched from meta.
*
* @param table
* @param row
* @param reload
*/
virtual void getRegionLocation(THRegionLocation& _return, const std::string& table, const std::string& row, const bool reload) = 0;
/**
* Get all of the region locations for a given table.
*
*
* @param table
*/
virtual void getAllRegionLocations(std::vector<THRegionLocation> & _return, const std::string& table) = 0;
/**
* Atomically checks if a row/family/qualifier value matches the expected
* value. If it does, it mutates the row.
*
* @return true if the row was mutated, false otherwise
*
* @param table to check in and delete from
*
* @param row row to check
*
* @param family column family to check
*
* @param qualifier column qualifier to check
*
* @param compareOp comparison to make on the value
*
* @param value the expected value to be compared against, if not provided the
* check is for the non-existence of the column in question
*
* @param rowMutations row mutations to execute if the value matches
*/
virtual bool checkAndMutate(const std::string& table, const std::string& row, const std::string& family, const std::string& qualifier, const TCompareOp::type compareOp, const std::string& value, const TRowMutations& rowMutations) = 0;
};
class THBaseServiceIfFactory {
public:
typedef THBaseServiceIf Handler;
virtual ~THBaseServiceIfFactory() {}
virtual THBaseServiceIf* getHandler(const ::apache::thrift::TConnectionInfo& connInfo) = 0;
virtual void releaseHandler(THBaseServiceIf* /* handler */) = 0;
};
class THBaseServiceIfSingletonFactory : virtual public THBaseServiceIfFactory {
public:
THBaseServiceIfSingletonFactory(const boost::shared_ptr<THBaseServiceIf>& iface) : iface_(iface) {}
virtual ~THBaseServiceIfSingletonFactory() {}
virtual THBaseServiceIf* getHandler(const ::apache::thrift::TConnectionInfo&) {
return iface_.get();
}
virtual void releaseHandler(THBaseServiceIf* /* handler */) {}
protected:
boost::shared_ptr<THBaseServiceIf> iface_;
};
class THBaseServiceNull : virtual public THBaseServiceIf {
public:
virtual ~THBaseServiceNull() {}
bool exists(const std::string& /* table */, const TGet& /* tget */) {
bool _return = false;
return _return;
}
void get(TResult& /* _return */, const std::string& /* table */, const TGet& /* tget */) {
return;
}
void getMultiple(std::vector<TResult> & /* _return */, const std::string& /* table */, const std::vector<TGet> & /* tgets */) {
return;
}
void put(const std::string& /* table */, const TPut& /* tput */) {
return;
}
bool checkAndPut(const std::string& /* table */, const std::string& /* row */, const std::string& /* family */, const std::string& /* qualifier */, const std::string& /* value */, const TPut& /* tput */) {
bool _return = false;
return _return;
}
void putMultiple(const std::string& /* table */, const std::vector<TPut> & /* tputs */) {
return;
}
void deleteSingle(const std::string& /* table */, const TDelete& /* tdelete */) {
return;
}
void deleteMultiple(std::vector<TDelete> & /* _return */, const std::string& /* table */, const std::vector<TDelete> & /* tdeletes */) {
return;
}
bool checkAndDelete(const std::string& /* table */, const std::string& /* row */, const std::string& /* family */, const std::string& /* qualifier */, const std::string& /* value */, const TDelete& /* tdelete */) {
bool _return = false;
return _return;
}
void increment(TResult& /* _return */, const std::string& /* table */, const TIncrement& /* tincrement */) {
return;
}
void append(TResult& /* _return */, const std::string& /* table */, const TAppend& /* tappend */) {
return;
}
int32_t openScanner(const std::string& /* table */, const TScan& /* tscan */) {
int32_t _return = 0;
return _return;
}
void getScannerRows(std::vector<TResult> & /* _return */, const int32_t /* scannerId */, const int32_t /* numRows */) {
return;
}
void closeScanner(const int32_t /* scannerId */) {
return;
}
void mutateRow(const std::string& /* table */, const TRowMutations& /* trowMutations */) {
return;
}
void getScannerResults(std::vector<TResult> & /* _return */, const std::string& /* table */, const TScan& /* tscan */, const int32_t /* numRows */) {
return;
}
void getRegionLocation(THRegionLocation& /* _return */, const std::string& /* table */, const std::string& /* row */, const bool /* reload */) {
return;
}
void getAllRegionLocations(std::vector<THRegionLocation> & /* _return */, const std::string& /* table */) {
return;
}
bool checkAndMutate(const std::string& /* table */, const std::string& /* row */, const std::string& /* family */, const std::string& /* qualifier */, const TCompareOp::type /* compareOp */, const std::string& /* value */, const TRowMutations& /* rowMutations */) {
bool _return = false;
return _return;
}
};
class THBaseService_exists_args {
public:
THBaseService_exists_args(const THBaseService_exists_args&);
THBaseService_exists_args& operator=(const THBaseService_exists_args&);
THBaseService_exists_args() : table() {
}
virtual ~THBaseService_exists_args() throw();
std::string table;
TGet tget;
void __set_table(const std::string& val);
void __set_tget(const TGet& val);
bool operator == (const THBaseService_exists_args & rhs) const
{
if (!(table == rhs.table))
return false;
if (!(tget == rhs.tget))
return false;
return true;
}
bool operator != (const THBaseService_exists_args &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_exists_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class THBaseService_exists_pargs {
public:
virtual ~THBaseService_exists_pargs() throw();
const std::string* table;
const TGet* tget;
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_exists_result__isset {
_THBaseService_exists_result__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_exists_result__isset;
class THBaseService_exists_result {
public:
THBaseService_exists_result(const THBaseService_exists_result&);
THBaseService_exists_result& operator=(const THBaseService_exists_result&);
THBaseService_exists_result() : success(0) {
}
virtual ~THBaseService_exists_result() throw();
bool success;
TIOError io;
_THBaseService_exists_result__isset __isset;
void __set_success(const bool val);
void __set_io(const TIOError& val);
bool operator == (const THBaseService_exists_result & rhs) const
{
if (!(success == rhs.success))
return false;
if (!(io == rhs.io))
return false;
return true;
}
bool operator != (const THBaseService_exists_result &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_exists_result & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_exists_presult__isset {
_THBaseService_exists_presult__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_exists_presult__isset;
class THBaseService_exists_presult {
public:
virtual ~THBaseService_exists_presult() throw();
bool* success;
TIOError io;
_THBaseService_exists_presult__isset __isset;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
};
class THBaseService_get_args {
public:
THBaseService_get_args(const THBaseService_get_args&);
THBaseService_get_args& operator=(const THBaseService_get_args&);
THBaseService_get_args() : table() {
}
virtual ~THBaseService_get_args() throw();
std::string table;
TGet tget;
void __set_table(const std::string& val);
void __set_tget(const TGet& val);
bool operator == (const THBaseService_get_args & rhs) const
{
if (!(table == rhs.table))
return false;
if (!(tget == rhs.tget))
return false;
return true;
}
bool operator != (const THBaseService_get_args &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_get_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class THBaseService_get_pargs {
public:
virtual ~THBaseService_get_pargs() throw();
const std::string* table;
const TGet* tget;
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_get_result__isset {
_THBaseService_get_result__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_get_result__isset;
class THBaseService_get_result {
public:
THBaseService_get_result(const THBaseService_get_result&);
THBaseService_get_result& operator=(const THBaseService_get_result&);
THBaseService_get_result() {
}
virtual ~THBaseService_get_result() throw();
TResult success;
TIOError io;
_THBaseService_get_result__isset __isset;
void __set_success(const TResult& val);
void __set_io(const TIOError& val);
bool operator == (const THBaseService_get_result & rhs) const
{
if (!(success == rhs.success))
return false;
if (!(io == rhs.io))
return false;
return true;
}
bool operator != (const THBaseService_get_result &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_get_result & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_get_presult__isset {
_THBaseService_get_presult__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_get_presult__isset;
class THBaseService_get_presult {
public:
virtual ~THBaseService_get_presult() throw();
TResult* success;
TIOError io;
_THBaseService_get_presult__isset __isset;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
};
class THBaseService_getMultiple_args {
public:
THBaseService_getMultiple_args(const THBaseService_getMultiple_args&);
THBaseService_getMultiple_args& operator=(const THBaseService_getMultiple_args&);
THBaseService_getMultiple_args() : table() {
}
virtual ~THBaseService_getMultiple_args() throw();
std::string table;
std::vector<TGet> tgets;
void __set_table(const std::string& val);
void __set_tgets(const std::vector<TGet> & val);
bool operator == (const THBaseService_getMultiple_args & rhs) const
{
if (!(table == rhs.table))
return false;
if (!(tgets == rhs.tgets))
return false;
return true;
}
bool operator != (const THBaseService_getMultiple_args &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_getMultiple_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class THBaseService_getMultiple_pargs {
public:
virtual ~THBaseService_getMultiple_pargs() throw();
const std::string* table;
const std::vector<TGet> * tgets;
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_getMultiple_result__isset {
_THBaseService_getMultiple_result__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_getMultiple_result__isset;
class THBaseService_getMultiple_result {
public:
THBaseService_getMultiple_result(const THBaseService_getMultiple_result&);
THBaseService_getMultiple_result& operator=(const THBaseService_getMultiple_result&);
THBaseService_getMultiple_result() {
}
virtual ~THBaseService_getMultiple_result() throw();
std::vector<TResult> success;
TIOError io;
_THBaseService_getMultiple_result__isset __isset;
void __set_success(const std::vector<TResult> & val);
void __set_io(const TIOError& val);
bool operator == (const THBaseService_getMultiple_result & rhs) const
{
if (!(success == rhs.success))
return false;
if (!(io == rhs.io))
return false;
return true;
}
bool operator != (const THBaseService_getMultiple_result &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_getMultiple_result & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_getMultiple_presult__isset {
_THBaseService_getMultiple_presult__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_getMultiple_presult__isset;
class THBaseService_getMultiple_presult {
public:
virtual ~THBaseService_getMultiple_presult() throw();
std::vector<TResult> * success;
TIOError io;
_THBaseService_getMultiple_presult__isset __isset;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
};
class THBaseService_put_args {
public:
THBaseService_put_args(const THBaseService_put_args&);
THBaseService_put_args& operator=(const THBaseService_put_args&);
THBaseService_put_args() : table() {
}
virtual ~THBaseService_put_args() throw();
std::string table;
TPut tput;
void __set_table(const std::string& val);
void __set_tput(const TPut& val);
bool operator == (const THBaseService_put_args & rhs) const
{
if (!(table == rhs.table))
return false;
if (!(tput == rhs.tput))
return false;
return true;
}
bool operator != (const THBaseService_put_args &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_put_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class THBaseService_put_pargs {
public:
virtual ~THBaseService_put_pargs() throw();
const std::string* table;
const TPut* tput;
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_put_result__isset {
_THBaseService_put_result__isset() : io(false) {}
bool io :1;
} _THBaseService_put_result__isset;
class THBaseService_put_result {
public:
THBaseService_put_result(const THBaseService_put_result&);
THBaseService_put_result& operator=(const THBaseService_put_result&);
THBaseService_put_result() {
}
virtual ~THBaseService_put_result() throw();
TIOError io;
_THBaseService_put_result__isset __isset;
void __set_io(const TIOError& val);
bool operator == (const THBaseService_put_result & rhs) const
{
if (!(io == rhs.io))
return false;
return true;
}
bool operator != (const THBaseService_put_result &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_put_result & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_put_presult__isset {
_THBaseService_put_presult__isset() : io(false) {}
bool io :1;
} _THBaseService_put_presult__isset;
class THBaseService_put_presult {
public:
virtual ~THBaseService_put_presult() throw();
TIOError io;
_THBaseService_put_presult__isset __isset;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
};
typedef struct _THBaseService_checkAndPut_args__isset {
_THBaseService_checkAndPut_args__isset() : value(false) {}
bool value :1;
} _THBaseService_checkAndPut_args__isset;
class THBaseService_checkAndPut_args {
public:
THBaseService_checkAndPut_args(const THBaseService_checkAndPut_args&);
THBaseService_checkAndPut_args& operator=(const THBaseService_checkAndPut_args&);
THBaseService_checkAndPut_args() : table(), row(), family(), qualifier(), value() {
}
virtual ~THBaseService_checkAndPut_args() throw();
std::string table;
std::string row;
std::string family;
std::string qualifier;
std::string value;
TPut tput;
_THBaseService_checkAndPut_args__isset __isset;
void __set_table(const std::string& val);
void __set_row(const std::string& val);
void __set_family(const std::string& val);
void __set_qualifier(const std::string& val);
void __set_value(const std::string& val);
void __set_tput(const TPut& val);
bool operator == (const THBaseService_checkAndPut_args & rhs) const
{
if (!(table == rhs.table))
return false;
if (!(row == rhs.row))
return false;
if (!(family == rhs.family))
return false;
if (!(qualifier == rhs.qualifier))
return false;
if (!(value == rhs.value))
return false;
if (!(tput == rhs.tput))
return false;
return true;
}
bool operator != (const THBaseService_checkAndPut_args &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_checkAndPut_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class THBaseService_checkAndPut_pargs {
public:
virtual ~THBaseService_checkAndPut_pargs() throw();
const std::string* table;
const std::string* row;
const std::string* family;
const std::string* qualifier;
const std::string* value;
const TPut* tput;
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_checkAndPut_result__isset {
_THBaseService_checkAndPut_result__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_checkAndPut_result__isset;
class THBaseService_checkAndPut_result {
public:
THBaseService_checkAndPut_result(const THBaseService_checkAndPut_result&);
THBaseService_checkAndPut_result& operator=(const THBaseService_checkAndPut_result&);
THBaseService_checkAndPut_result() : success(0) {
}
virtual ~THBaseService_checkAndPut_result() throw();
bool success;
TIOError io;
_THBaseService_checkAndPut_result__isset __isset;
void __set_success(const bool val);
void __set_io(const TIOError& val);
bool operator == (const THBaseService_checkAndPut_result & rhs) const
{
if (!(success == rhs.success))
return false;
if (!(io == rhs.io))
return false;
return true;
}
bool operator != (const THBaseService_checkAndPut_result &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_checkAndPut_result & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_checkAndPut_presult__isset {
_THBaseService_checkAndPut_presult__isset() : success(false), io(false) {}
bool success :1;
bool io :1;
} _THBaseService_checkAndPut_presult__isset;
class THBaseService_checkAndPut_presult {
public:
virtual ~THBaseService_checkAndPut_presult() throw();
bool* success;
TIOError io;
_THBaseService_checkAndPut_presult__isset __isset;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
};
class THBaseService_putMultiple_args {
public:
THBaseService_putMultiple_args(const THBaseService_putMultiple_args&);
THBaseService_putMultiple_args& operator=(const THBaseService_putMultiple_args&);
THBaseService_putMultiple_args() : table() {
}
virtual ~THBaseService_putMultiple_args() throw();
std::string table;
std::vector<TPut> tputs;
void __set_table(const std::string& val);
void __set_tputs(const std::vector<TPut> & val);
bool operator == (const THBaseService_putMultiple_args & rhs) const
{
if (!(table == rhs.table))
return false;
if (!(tputs == rhs.tputs))
return false;
return true;
}
bool operator != (const THBaseService_putMultiple_args &rhs) const {
return !(*this == rhs);
}
bool operator < (const THBaseService_putMultiple_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
class THBaseService_putMultiple_pargs {
public:
virtual ~THBaseService_putMultiple_pargs() throw();
const std::string* table;
const std::vector<TPut> * tputs;
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
};
typedef struct _THBaseService_putMultiple_result__isset {
_THBaseService_putMultiple_result__isset() : io(false) {}
bool io :1;
} _THBaseService_putMultiple_result__isset;
class THBaseService_putMultiple_result {
public:
THBaseService_putMultiple_result(const THBaseService_putMultiple_result&);
THBaseService_putMultiple_result& operator=(const THBaseService_putMultiple_result&);
THBaseService_putMultiple_result() {
}
virtual ~THBaseService_putMultiple_result() throw();
TIOError io;
_THBaseService_putMultiple_result__isset __isset;
void __set_io(const TIOError& val);
bool operator == (const THBaseService_putMultiple_result & rhs) const
{
if (!(io == rhs.io))
return false;