swcdb 0.5.10.0 → 0.5.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25616d077a484765ee804a22f367ebde951f1c2ab5548a9bae4a7618ea860092
4
- data.tar.gz: e920057fc1dc9a712d506c5c42f03f1f36f65074436d48cde3b61e6a2c8a9f68
3
+ metadata.gz: c67a1b6b15852cf893c6cc9185508b2bc6fe2d9c9f0a1b679825be979511ae16
4
+ data.tar.gz: 6a8b6ac0bb8e5b2bbe458ad2f11c71b3c0a88b1bc4e6c551937482c6e71e3ba9
5
5
  SHA512:
6
- metadata.gz: 809705f9a5d47f4f398ff264bda1d157698e86459e09fe63311fac24fee608a70cd74b899f0cf3e33af26fab827cbcc7e1d0fd614121af31073f491870947954
7
- data.tar.gz: ef93b99268f6fa697014de9e1bc6bc1c639babda3aad9824efe13a00b56c4e37071da9e2e1945d34bbba7570d6c66268782d3c6710ee21e5b68c7ba7235608d4
6
+ metadata.gz: 2d0ddc012bc17aa87e41c170be8acef14e538351088f780809e9679e8f212c4f7a04943db8d6d0034791a79bd3535d9f17b4cac499268145de7a90a25ad6d93c
7
+ data.tar.gz: 8c88ecd216057ece5eaaee65dc355f1dadabc6af5e113f057074dbfb196a5c3ada4d6eab90d2e9f5e5dcbd1b1ae0f56aa2475e5d9369ee7b0784cbff993db2a0
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.17.0)
2
+ # Autogenerated by Thrift Compiler (0.18.1)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -24,6 +24,11 @@ module Swcdb
24
24
  end
25
25
 
26
26
  def recv_sql_mng_column()
27
+ fname, mtype, rseqid = receive_message_begin()
28
+ handle_exception(mtype)
29
+ if reply_seqid(rseqid)==false
30
+ raise "seqid reply faild"
31
+ end
27
32
  result = receive_message(Sql_mng_column_result)
28
33
  raise result.e unless result.e.nil?
29
34
  return
@@ -39,6 +44,11 @@ module Swcdb
39
44
  end
40
45
 
41
46
  def recv_sql_list_columns()
47
+ fname, mtype, rseqid = receive_message_begin()
48
+ handle_exception(mtype)
49
+ if reply_seqid(rseqid)==false
50
+ raise "seqid reply faild"
51
+ end
42
52
  result = receive_message(Sql_list_columns_result)
43
53
  return result.success unless result.success.nil?
44
54
  raise result.e unless result.e.nil?
@@ -55,12 +65,80 @@ module Swcdb
55
65
  end
56
66
 
57
67
  def recv_sql_compact_columns()
68
+ fname, mtype, rseqid = receive_message_begin()
69
+ handle_exception(mtype)
70
+ if reply_seqid(rseqid)==false
71
+ raise "seqid reply faild"
72
+ end
58
73
  result = receive_message(Sql_compact_columns_result)
59
74
  return result.success unless result.success.nil?
60
75
  raise result.e unless result.e.nil?
61
76
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_compact_columns failed: unknown result')
62
77
  end
63
78
 
79
+ def sql_select_plain(sql)
80
+ send_sql_select_plain(sql)
81
+ return recv_sql_select_plain()
82
+ end
83
+
84
+ def send_sql_select_plain(sql)
85
+ send_message('sql_select_plain', Sql_select_plain_args, :sql => sql)
86
+ end
87
+
88
+ def recv_sql_select_plain()
89
+ fname, mtype, rseqid = receive_message_begin()
90
+ handle_exception(mtype)
91
+ if reply_seqid(rseqid)==false
92
+ raise "seqid reply faild"
93
+ end
94
+ result = receive_message(Sql_select_plain_result)
95
+ return result.success unless result.success.nil?
96
+ raise result.e unless result.e.nil?
97
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_select_plain failed: unknown result')
98
+ end
99
+
100
+ def sql_select_counter(sql)
101
+ send_sql_select_counter(sql)
102
+ return recv_sql_select_counter()
103
+ end
104
+
105
+ def send_sql_select_counter(sql)
106
+ send_message('sql_select_counter', Sql_select_counter_args, :sql => sql)
107
+ end
108
+
109
+ def recv_sql_select_counter()
110
+ fname, mtype, rseqid = receive_message_begin()
111
+ handle_exception(mtype)
112
+ if reply_seqid(rseqid)==false
113
+ raise "seqid reply faild"
114
+ end
115
+ result = receive_message(Sql_select_counter_result)
116
+ return result.success unless result.success.nil?
117
+ raise result.e unless result.e.nil?
118
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_select_counter failed: unknown result')
119
+ end
120
+
121
+ def sql_select_serial(sql)
122
+ send_sql_select_serial(sql)
123
+ return recv_sql_select_serial()
124
+ end
125
+
126
+ def send_sql_select_serial(sql)
127
+ send_message('sql_select_serial', Sql_select_serial_args, :sql => sql)
128
+ end
129
+
130
+ def recv_sql_select_serial()
131
+ fname, mtype, rseqid = receive_message_begin()
132
+ handle_exception(mtype)
133
+ if reply_seqid(rseqid)==false
134
+ raise "seqid reply faild"
135
+ end
136
+ result = receive_message(Sql_select_serial_result)
137
+ return result.success unless result.success.nil?
138
+ raise result.e unless result.e.nil?
139
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'sql_select_serial failed: unknown result')
140
+ end
141
+
64
142
  def sql_select(sql)
65
143
  send_sql_select(sql)
66
144
  return recv_sql_select()
@@ -71,6 +149,11 @@ module Swcdb
71
149
  end
72
150
 
73
151
  def recv_sql_select()
152
+ fname, mtype, rseqid = receive_message_begin()
153
+ handle_exception(mtype)
154
+ if reply_seqid(rseqid)==false
155
+ raise "seqid reply faild"
156
+ end
74
157
  result = receive_message(Sql_select_result)
75
158
  return result.success unless result.success.nil?
76
159
  raise result.e unless result.e.nil?
@@ -87,6 +170,11 @@ module Swcdb
87
170
  end
88
171
 
89
172
  def recv_sql_select_rslt_on_column()
173
+ fname, mtype, rseqid = receive_message_begin()
174
+ handle_exception(mtype)
175
+ if reply_seqid(rseqid)==false
176
+ raise "seqid reply faild"
177
+ end
90
178
  result = receive_message(Sql_select_rslt_on_column_result)
91
179
  return result.success unless result.success.nil?
92
180
  raise result.e unless result.e.nil?
@@ -103,6 +191,11 @@ module Swcdb
103
191
  end
104
192
 
105
193
  def recv_sql_select_rslt_on_key()
194
+ fname, mtype, rseqid = receive_message_begin()
195
+ handle_exception(mtype)
196
+ if reply_seqid(rseqid)==false
197
+ raise "seqid reply faild"
198
+ end
106
199
  result = receive_message(Sql_select_rslt_on_key_result)
107
200
  return result.success unless result.success.nil?
108
201
  raise result.e unless result.e.nil?
@@ -119,6 +212,11 @@ module Swcdb
119
212
  end
120
213
 
121
214
  def recv_sql_select_rslt_on_fraction()
215
+ fname, mtype, rseqid = receive_message_begin()
216
+ handle_exception(mtype)
217
+ if reply_seqid(rseqid)==false
218
+ raise "seqid reply faild"
219
+ end
122
220
  result = receive_message(Sql_select_rslt_on_fraction_result)
123
221
  return result.success unless result.success.nil?
124
222
  raise result.e unless result.e.nil?
@@ -135,6 +233,11 @@ module Swcdb
135
233
  end
136
234
 
137
235
  def recv_sql_query()
236
+ fname, mtype, rseqid = receive_message_begin()
237
+ handle_exception(mtype)
238
+ if reply_seqid(rseqid)==false
239
+ raise "seqid reply faild"
240
+ end
138
241
  result = receive_message(Sql_query_result)
139
242
  return result.success unless result.success.nil?
140
243
  raise result.e unless result.e.nil?
@@ -151,6 +254,11 @@ module Swcdb
151
254
  end
152
255
 
153
256
  def recv_sql_update()
257
+ fname, mtype, rseqid = receive_message_begin()
258
+ handle_exception(mtype)
259
+ if reply_seqid(rseqid)==false
260
+ raise "seqid reply faild"
261
+ end
154
262
  result = receive_message(Sql_update_result)
155
263
  raise result.e unless result.e.nil?
156
264
  return
@@ -166,6 +274,11 @@ module Swcdb
166
274
  end
167
275
 
168
276
  def recv_exec_sql()
277
+ fname, mtype, rseqid = receive_message_begin()
278
+ handle_exception(mtype)
279
+ if reply_seqid(rseqid)==false
280
+ raise "seqid reply faild"
281
+ end
169
282
  result = receive_message(Exec_sql_result)
170
283
  return result.success unless result.success.nil?
171
284
  raise result.e unless result.e.nil?
@@ -182,6 +295,11 @@ module Swcdb
182
295
  end
183
296
 
184
297
  def recv_updater_create()
298
+ fname, mtype, rseqid = receive_message_begin()
299
+ handle_exception(mtype)
300
+ if reply_seqid(rseqid)==false
301
+ raise "seqid reply faild"
302
+ end
185
303
  result = receive_message(Updater_create_result)
186
304
  return result.success unless result.success.nil?
187
305
  raise result.e unless result.e.nil?
@@ -198,22 +316,52 @@ module Swcdb
198
316
  end
199
317
 
200
318
  def recv_updater_close()
319
+ fname, mtype, rseqid = receive_message_begin()
320
+ handle_exception(mtype)
321
+ if reply_seqid(rseqid)==false
322
+ raise "seqid reply faild"
323
+ end
201
324
  result = receive_message(Updater_close_result)
202
325
  raise result.e unless result.e.nil?
203
326
  return
204
327
  end
205
328
 
206
- def update(cells, updater_id)
207
- send_update(cells, updater_id)
208
- recv_update()
329
+ def update_plain(cells, updater_id)
330
+ send_update_plain(cells, updater_id)
331
+ recv_update_plain()
332
+ end
333
+
334
+ def send_update_plain(cells, updater_id)
335
+ send_message('update_plain', Update_plain_args, :cells => cells, :updater_id => updater_id)
336
+ end
337
+
338
+ def recv_update_plain()
339
+ fname, mtype, rseqid = receive_message_begin()
340
+ handle_exception(mtype)
341
+ if reply_seqid(rseqid)==false
342
+ raise "seqid reply faild"
343
+ end
344
+ result = receive_message(Update_plain_result)
345
+ raise result.e unless result.e.nil?
346
+ return
347
+ end
348
+
349
+ def update_counter(cells, updater_id)
350
+ send_update_counter(cells, updater_id)
351
+ recv_update_counter()
209
352
  end
210
353
 
211
- def send_update(cells, updater_id)
212
- send_message('update', Update_args, :cells => cells, :updater_id => updater_id)
354
+ def send_update_counter(cells, updater_id)
355
+ send_message('update_counter', Update_counter_args, :cells => cells, :updater_id => updater_id)
213
356
  end
214
357
 
215
- def recv_update()
216
- result = receive_message(Update_result)
358
+ def recv_update_counter()
359
+ fname, mtype, rseqid = receive_message_begin()
360
+ handle_exception(mtype)
361
+ if reply_seqid(rseqid)==false
362
+ raise "seqid reply faild"
363
+ end
364
+ result = receive_message(Update_counter_result)
217
365
  raise result.e unless result.e.nil?
218
366
  return
219
367
  end
@@ -228,21 +376,31 @@ module Swcdb
228
376
  end
229
377
 
230
378
  def recv_update_serial()
379
+ fname, mtype, rseqid = receive_message_begin()
380
+ handle_exception(mtype)
381
+ if reply_seqid(rseqid)==false
382
+ raise "seqid reply faild"
383
+ end
231
384
  result = receive_message(Update_serial_result)
232
385
  raise result.e unless result.e.nil?
233
386
  return
234
387
  end
235
388
 
236
- def update_by_types(plain, serial, updater_id)
237
- send_update_by_types(plain, serial, updater_id)
389
+ def update_by_types(plain, counter, serial, updater_id)
390
+ send_update_by_types(plain, counter, serial, updater_id)
238
391
  recv_update_by_types()
239
392
  end
240
393
 
241
- def send_update_by_types(plain, serial, updater_id)
242
- send_message('update_by_types', Update_by_types_args, :plain => plain, :serial => serial, :updater_id => updater_id)
394
+ def send_update_by_types(plain, counter, serial, updater_id)
395
+ send_message('update_by_types', Update_by_types_args, :plain => plain, :counter => counter, :serial => serial, :updater_id => updater_id)
243
396
  end
244
397
 
245
398
  def recv_update_by_types()
399
+ fname, mtype, rseqid = receive_message_begin()
400
+ handle_exception(mtype)
401
+ if reply_seqid(rseqid)==false
402
+ raise "seqid reply faild"
403
+ end
246
404
  result = receive_message(Update_by_types_result)
247
405
  raise result.e unless result.e.nil?
248
406
  return
@@ -258,6 +416,11 @@ module Swcdb
258
416
  end
259
417
 
260
418
  def recv_mng_column()
419
+ fname, mtype, rseqid = receive_message_begin()
420
+ handle_exception(mtype)
421
+ if reply_seqid(rseqid)==false
422
+ raise "seqid reply faild"
423
+ end
261
424
  result = receive_message(Mng_column_result)
262
425
  raise result.e unless result.e.nil?
263
426
  return
@@ -273,6 +436,11 @@ module Swcdb
273
436
  end
274
437
 
275
438
  def recv_list_columns()
439
+ fname, mtype, rseqid = receive_message_begin()
440
+ handle_exception(mtype)
441
+ if reply_seqid(rseqid)==false
442
+ raise "seqid reply faild"
443
+ end
276
444
  result = receive_message(List_columns_result)
277
445
  return result.success unless result.success.nil?
278
446
  raise result.e unless result.e.nil?
@@ -289,6 +457,11 @@ module Swcdb
289
457
  end
290
458
 
291
459
  def recv_compact_columns()
460
+ fname, mtype, rseqid = receive_message_begin()
461
+ handle_exception(mtype)
462
+ if reply_seqid(rseqid)==false
463
+ raise "seqid reply faild"
464
+ end
292
465
  result = receive_message(Compact_columns_result)
293
466
  return result.success unless result.success.nil?
294
467
  raise result.e unless result.e.nil?
@@ -305,6 +478,11 @@ module Swcdb
305
478
  end
306
479
 
307
480
  def recv_scan()
481
+ fname, mtype, rseqid = receive_message_begin()
482
+ handle_exception(mtype)
483
+ if reply_seqid(rseqid)==false
484
+ raise "seqid reply faild"
485
+ end
308
486
  result = receive_message(Scan_result)
309
487
  return result.success unless result.success.nil?
310
488
  raise result.e unless result.e.nil?
@@ -321,6 +499,11 @@ module Swcdb
321
499
  end
322
500
 
323
501
  def recv_scan_rslt_on_column()
502
+ fname, mtype, rseqid = receive_message_begin()
503
+ handle_exception(mtype)
504
+ if reply_seqid(rseqid)==false
505
+ raise "seqid reply faild"
506
+ end
324
507
  result = receive_message(Scan_rslt_on_column_result)
325
508
  return result.success unless result.success.nil?
326
509
  raise result.e unless result.e.nil?
@@ -337,6 +520,11 @@ module Swcdb
337
520
  end
338
521
 
339
522
  def recv_scan_rslt_on_key()
523
+ fname, mtype, rseqid = receive_message_begin()
524
+ handle_exception(mtype)
525
+ if reply_seqid(rseqid)==false
526
+ raise "seqid reply faild"
527
+ end
340
528
  result = receive_message(Scan_rslt_on_key_result)
341
529
  return result.success unless result.success.nil?
342
530
  raise result.e unless result.e.nil?
@@ -353,6 +541,11 @@ module Swcdb
353
541
  end
354
542
 
355
543
  def recv_scan_rslt_on_fraction()
544
+ fname, mtype, rseqid = receive_message_begin()
545
+ handle_exception(mtype)
546
+ if reply_seqid(rseqid)==false
547
+ raise "seqid reply faild"
548
+ end
356
549
  result = receive_message(Scan_rslt_on_fraction_result)
357
550
  return result.success unless result.success.nil?
358
551
  raise result.e unless result.e.nil?
@@ -369,6 +562,11 @@ module Swcdb
369
562
  end
370
563
 
371
564
  def recv_scan_rslt_on()
565
+ fname, mtype, rseqid = receive_message_begin()
566
+ handle_exception(mtype)
567
+ if reply_seqid(rseqid)==false
568
+ raise "seqid reply faild"
569
+ end
372
570
  result = receive_message(Scan_rslt_on_result)
373
571
  return result.success unless result.success.nil?
374
572
  raise result.e unless result.e.nil?
@@ -413,6 +611,39 @@ module Swcdb
413
611
  write_result(result, oprot, 'sql_compact_columns', seqid)
414
612
  end
415
613
 
614
+ def process_sql_select_plain(seqid, iprot, oprot)
615
+ args = read_args(iprot, Sql_select_plain_args)
616
+ result = Sql_select_plain_result.new()
617
+ begin
618
+ result.success = @handler.sql_select_plain(args.sql)
619
+ rescue ::Swcdb::Thrift::Gen::Exception => e
620
+ result.e = e
621
+ end
622
+ write_result(result, oprot, 'sql_select_plain', seqid)
623
+ end
624
+
625
+ def process_sql_select_counter(seqid, iprot, oprot)
626
+ args = read_args(iprot, Sql_select_counter_args)
627
+ result = Sql_select_counter_result.new()
628
+ begin
629
+ result.success = @handler.sql_select_counter(args.sql)
630
+ rescue ::Swcdb::Thrift::Gen::Exception => e
631
+ result.e = e
632
+ end
633
+ write_result(result, oprot, 'sql_select_counter', seqid)
634
+ end
635
+
636
+ def process_sql_select_serial(seqid, iprot, oprot)
637
+ args = read_args(iprot, Sql_select_serial_args)
638
+ result = Sql_select_serial_result.new()
639
+ begin
640
+ result.success = @handler.sql_select_serial(args.sql)
641
+ rescue ::Swcdb::Thrift::Gen::Exception => e
642
+ result.e = e
643
+ end
644
+ write_result(result, oprot, 'sql_select_serial', seqid)
645
+ end
646
+
416
647
  def process_sql_select(seqid, iprot, oprot)
417
648
  args = read_args(iprot, Sql_select_args)
418
649
  result = Sql_select_result.new()
@@ -512,15 +743,26 @@ module Swcdb
512
743
  write_result(result, oprot, 'updater_close', seqid)
513
744
  end
514
745
 
515
- def process_update(seqid, iprot, oprot)
516
- args = read_args(iprot, Update_args)
517
- result = Update_result.new()
746
+ def process_update_plain(seqid, iprot, oprot)
747
+ args = read_args(iprot, Update_plain_args)
748
+ result = Update_plain_result.new()
518
749
  begin
519
- @handler.update(args.cells, args.updater_id)
750
+ @handler.update_plain(args.cells, args.updater_id)
520
751
  rescue ::Swcdb::Thrift::Gen::Exception => e
521
752
  result.e = e
522
753
  end
523
- write_result(result, oprot, 'update', seqid)
754
+ write_result(result, oprot, 'update_plain', seqid)
755
+ end
756
+
757
+ def process_update_counter(seqid, iprot, oprot)
758
+ args = read_args(iprot, Update_counter_args)
759
+ result = Update_counter_result.new()
760
+ begin
761
+ @handler.update_counter(args.cells, args.updater_id)
762
+ rescue ::Swcdb::Thrift::Gen::Exception => e
763
+ result.e = e
764
+ end
765
+ write_result(result, oprot, 'update_counter', seqid)
524
766
  end
525
767
 
526
768
  def process_update_serial(seqid, iprot, oprot)
@@ -538,7 +780,7 @@ module Swcdb
538
780
  args = read_args(iprot, Update_by_types_args)
539
781
  result = Update_by_types_result.new()
540
782
  begin
541
- @handler.update_by_types(args.plain, args.serial, args.updater_id)
783
+ @handler.update_by_types(args.plain, args.counter, args.serial, args.updater_id)
542
784
  rescue ::Swcdb::Thrift::Gen::Exception => e
543
785
  result.e = e
544
786
  end
@@ -740,6 +982,111 @@ module Swcdb
740
982
  ::Thrift::Struct.generate_accessors self
741
983
  end
742
984
 
985
+ class Sql_select_plain_args
986
+ include ::Thrift::Struct, ::Thrift::Struct_Union
987
+ SQL = 1
988
+
989
+ FIELDS = {
990
+ # The SQL string to Execute
991
+ SQL => {:type => ::Thrift::Types::STRING, :name => 'sql'}
992
+ }
993
+
994
+ def struct_fields; FIELDS; end
995
+
996
+ def validate
997
+ end
998
+
999
+ ::Thrift::Struct.generate_accessors self
1000
+ end
1001
+
1002
+ class Sql_select_plain_result
1003
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1004
+ SUCCESS = 0
1005
+ E = 1
1006
+
1007
+ FIELDS = {
1008
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellPlain}},
1009
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
1010
+ }
1011
+
1012
+ def struct_fields; FIELDS; end
1013
+
1014
+ def validate
1015
+ end
1016
+
1017
+ ::Thrift::Struct.generate_accessors self
1018
+ end
1019
+
1020
+ class Sql_select_counter_args
1021
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1022
+ SQL = 1
1023
+
1024
+ FIELDS = {
1025
+ # The SQL string to Execute
1026
+ SQL => {:type => ::Thrift::Types::STRING, :name => 'sql'}
1027
+ }
1028
+
1029
+ def struct_fields; FIELDS; end
1030
+
1031
+ def validate
1032
+ end
1033
+
1034
+ ::Thrift::Struct.generate_accessors self
1035
+ end
1036
+
1037
+ class Sql_select_counter_result
1038
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1039
+ SUCCESS = 0
1040
+ E = 1
1041
+
1042
+ FIELDS = {
1043
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellCounter}},
1044
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
1045
+ }
1046
+
1047
+ def struct_fields; FIELDS; end
1048
+
1049
+ def validate
1050
+ end
1051
+
1052
+ ::Thrift::Struct.generate_accessors self
1053
+ end
1054
+
1055
+ class Sql_select_serial_args
1056
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1057
+ SQL = 1
1058
+
1059
+ FIELDS = {
1060
+ # The SQL string to Execute
1061
+ SQL => {:type => ::Thrift::Types::STRING, :name => 'sql'}
1062
+ }
1063
+
1064
+ def struct_fields; FIELDS; end
1065
+
1066
+ def validate
1067
+ end
1068
+
1069
+ ::Thrift::Struct.generate_accessors self
1070
+ end
1071
+
1072
+ class Sql_select_serial_result
1073
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1074
+ SUCCESS = 0
1075
+ E = 1
1076
+
1077
+ FIELDS = {
1078
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellSerial}},
1079
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
1080
+ }
1081
+
1082
+ def struct_fields; FIELDS; end
1083
+
1084
+ def validate
1085
+ end
1086
+
1087
+ ::Thrift::Struct.generate_accessors self
1088
+ end
1089
+
743
1090
  class Sql_select_args
744
1091
  include ::Thrift::Struct, ::Thrift::Struct_Union
745
1092
  SQL = 1
@@ -798,7 +1145,7 @@ module Swcdb
798
1145
  E = 1
799
1146
 
800
1147
  FIELDS = {
801
- SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::ColCells}},
1148
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCells}},
802
1149
  E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
803
1150
  }
804
1151
 
@@ -1060,14 +1407,50 @@ module Swcdb
1060
1407
  ::Thrift::Struct.generate_accessors self
1061
1408
  end
1062
1409
 
1063
- class Update_args
1410
+ class Update_plain_args
1064
1411
  include ::Thrift::Struct, ::Thrift::Struct_Union
1065
1412
  CELLS = 1
1066
1413
  UPDATER_ID = 2
1067
1414
 
1068
1415
  FIELDS = {
1069
1416
  # The Cells to update
1070
- CELLS => {:type => ::Thrift::Types::MAP, :name => 'cells', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCell}}},
1417
+ CELLS => {:type => ::Thrift::Types::MAP, :name => 'cells', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCellPlain}}},
1418
+ # The Updater ID to use for write
1419
+ UPDATER_ID => {:type => ::Thrift::Types::I64, :name => 'updater_id', :default => 0}
1420
+ }
1421
+
1422
+ def struct_fields; FIELDS; end
1423
+
1424
+ def validate
1425
+ end
1426
+
1427
+ ::Thrift::Struct.generate_accessors self
1428
+ end
1429
+
1430
+ class Update_plain_result
1431
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1432
+ E = 1
1433
+
1434
+ FIELDS = {
1435
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
1436
+ }
1437
+
1438
+ def struct_fields; FIELDS; end
1439
+
1440
+ def validate
1441
+ end
1442
+
1443
+ ::Thrift::Struct.generate_accessors self
1444
+ end
1445
+
1446
+ class Update_counter_args
1447
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1448
+ CELLS = 1
1449
+ UPDATER_ID = 2
1450
+
1451
+ FIELDS = {
1452
+ # The Counter Cells to update
1453
+ CELLS => {:type => ::Thrift::Types::MAP, :name => 'cells', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCellCounter}}},
1071
1454
  # The Updater ID to use for write
1072
1455
  UPDATER_ID => {:type => ::Thrift::Types::I64, :name => 'updater_id', :default => 0}
1073
1456
  }
@@ -1080,7 +1463,7 @@ module Swcdb
1080
1463
  ::Thrift::Struct.generate_accessors self
1081
1464
  end
1082
1465
 
1083
- class Update_result
1466
+ class Update_counter_result
1084
1467
  include ::Thrift::Struct, ::Thrift::Struct_Union
1085
1468
  E = 1
1086
1469
 
@@ -1135,12 +1518,15 @@ module Swcdb
1135
1518
  class Update_by_types_args
1136
1519
  include ::Thrift::Struct, ::Thrift::Struct_Union
1137
1520
  PLAIN = 1
1138
- SERIAL = 2
1139
- UPDATER_ID = 3
1521
+ COUNTER = 2
1522
+ SERIAL = 3
1523
+ UPDATER_ID = 4
1140
1524
 
1141
1525
  FIELDS = {
1142
1526
  # The PLAIN Cells to update
1143
- PLAIN => {:type => ::Thrift::Types::MAP, :name => 'plain', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCell}}},
1527
+ PLAIN => {:type => ::Thrift::Types::MAP, :name => 'plain', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCellPlain}}},
1528
+ # The COUNTER Cells to update
1529
+ COUNTER => {:type => ::Thrift::Types::MAP, :name => 'counter', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCellCounter}}},
1144
1530
  # The SERIAL Cells to update
1145
1531
  SERIAL => {:type => ::Thrift::Types::MAP, :name => 'serial', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::UCellSerial}}},
1146
1532
  # The Updater ID to use for write
@@ -1338,7 +1724,7 @@ module Swcdb
1338
1724
  E = 1
1339
1725
 
1340
1726
  FIELDS = {
1341
- SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::ColCells}},
1727
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCells}},
1342
1728
  E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Swcdb::Thrift::Gen::Exception}
1343
1729
  }
1344
1730