swcdb 0.5.9.0 → 0.5.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.16.0)
2
+ # Autogenerated by Thrift Compiler (0.17.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -112,8 +112,12 @@ module Swcdb
112
112
  FOSBS = 17
113
113
  # [ <- ] : -fosupset [fosps] (eq/full ordered superset)
114
114
  FOSPS = 18
115
- VALUE_MAP = {0 => "NONE", 1 => "PF", 2 => "GT", 3 => "GE", 4 => "EQ", 5 => "LE", 6 => "LT", 7 => "NE", 8 => "RE", 9 => "VGT", 10 => "VGE", 11 => "VLE", 12 => "VLT", 13 => "SBS", 14 => "SPS", 15 => "POSBS", 16 => "POSPS", 17 => "FOSBS", 18 => "FOSPS"}
116
- VALID_VALUES = Set.new([NONE, PF, GT, GE, EQ, LE, LT, NE, RE, VGT, VGE, VLE, VLT, SBS, SPS, POSBS, POSPS, FOSBS, FOSPS]).freeze
115
+ # [ :< ] : -fip (fraction include prior)
116
+ FIP = 19
117
+ # [ : ] : -fi (fraction include)
118
+ FI = 20
119
+ VALUE_MAP = {0 => "NONE", 1 => "PF", 2 => "GT", 3 => "GE", 4 => "EQ", 5 => "LE", 6 => "LT", 7 => "NE", 8 => "RE", 9 => "VGT", 10 => "VGE", 11 => "VLE", 12 => "VLT", 13 => "SBS", 14 => "SPS", 15 => "POSBS", 16 => "POSPS", 17 => "FOSBS", 18 => "FOSPS", 19 => "FIP", 20 => "FI"}
120
+ VALID_VALUES = Set.new([NONE, PF, GT, GE, EQ, LE, LT, NE, RE, VGT, VGE, VLE, VLT, SBS, SPS, POSBS, POSPS, FOSBS, FOSPS, FIP, FI]).freeze
117
121
  end
118
122
 
119
123
  module SpecFlagsOpt
@@ -131,15 +135,6 @@ module Swcdb
131
135
  VALID_VALUES = Set.new([NONE, LIMIT_BY_KEYS, OFFSET_BY_KEYS, ONLY_KEYS, ONLY_DELETES]).freeze
132
136
  end
133
137
 
134
- module SpecIntervalOptions
135
- # Update Bit Option
136
- UPDATING = 4
137
- # Delete Bit Option
138
- DELETING = 8
139
- VALUE_MAP = {4 => "UPDATING", 8 => "DELETING"}
140
- VALID_VALUES = Set.new([UPDATING, DELETING]).freeze
141
- end
142
-
143
138
  module UpdateOP
144
139
  # The OP supported by column-types: PLAIN, SERIAL, COUNTER. Replaces with the update value (_default as well if other OP not supported by the col-type_)
145
140
  REPLACE = 0
@@ -157,6 +152,15 @@ module Swcdb
157
152
  VALID_VALUES = Set.new([REPLACE, APPEND, PREPEND, INSERT, OVERWRITE, SERIAL]).freeze
158
153
  end
159
154
 
155
+ module SpecIntervalOptions
156
+ # Update Bit Option
157
+ UPDATING = 4
158
+ # Delete Bit Option
159
+ DELETING = 8
160
+ VALUE_MAP = {4 => "UPDATING", 8 => "DELETING"}
161
+ VALID_VALUES = Set.new([UPDATING, DELETING]).freeze
162
+ end
163
+
160
164
  module Flag
161
165
  # Unknown/Undefined
162
166
  NONE = 0
@@ -200,7 +204,7 @@ module Swcdb
200
204
  BY_UNIQUE = 6
201
205
  # Supported by field-types: LIST_BYTES, LIST_INT64. The field value items have CTRL_VALUE_SET/DEL OP and Comparator
202
206
  BY_COND = 7
203
- # Supported by field-types: LIST_BYTES, LIST_INT64. The field value is with Postion & OP in items
207
+ # Supported by field-types: LIST_BYTES, LIST_INT64. The field value is with Postion and OP in items
204
208
  BY_INDEX = 8
205
209
  VALUE_MAP = {0 => "REPLACE", 1 => "APPEND", 2 => "PREPEND", 3 => "INSERT", 4 => "OVERWRITE", 5 => "ERASE", 6 => "BY_UNIQUE", 7 => "BY_COND", 8 => "BY_INDEX"}
206
210
  VALID_VALUES = Set.new([REPLACE, APPEND, PREPEND, INSERT, OVERWRITE, ERASE, BY_UNIQUE, BY_COND, BY_INDEX]).freeze
@@ -233,23 +237,13 @@ module Swcdb
233
237
 
234
238
  class SpecFlags; end
235
239
 
236
- class SpecFraction; end
237
-
238
- class SpecTimestamp; end
239
-
240
- class SpecKeyInterval; end
241
-
242
- class SpecValue; end
243
-
244
240
  class SpecUpdateOP; end
245
241
 
246
- class SpecIntervalUpdate; end
247
-
248
- class SpecIntervalUpdateSerial; end
242
+ class SpecIntervalUpdatePlain; end
249
243
 
250
- class SpecInterval; end
244
+ class SpecIntervalUpdateCounter; end
251
245
 
252
- class SpecColumn; end
246
+ class SpecIntervalUpdateSerial; end
253
247
 
254
248
  class SpecValueSerial_INT64; end
255
249
 
@@ -265,15 +259,35 @@ module Swcdb
265
259
 
266
260
  class SpecValueSerialField; end
267
261
 
262
+ class SpecValuePlain; end
263
+
264
+ class SpecValueCounter; end
265
+
268
266
  class SpecValueSerial; end
269
267
 
268
+ class SpecFraction; end
269
+
270
+ class SpecTimestamp; end
271
+
272
+ class SpecKeyInterval; end
273
+
274
+ class SpecIntervalPlain; end
275
+
276
+ class SpecIntervalCounter; end
277
+
270
278
  class SpecIntervalSerial; end
271
279
 
280
+ class SpecColumnPlain; end
281
+
282
+ class SpecColumnCounter; end
283
+
272
284
  class SpecColumnSerial; end
273
285
 
274
286
  class SpecScan; end
275
287
 
276
- class UCell; end
288
+ class UCellPlain; end
289
+
290
+ class UCellCounter; end
277
291
 
278
292
  class CellValueSerial; end
279
293
 
@@ -291,25 +305,33 @@ module Swcdb
291
305
 
292
306
  class UCellSerial; end
293
307
 
294
- class Cell; end
308
+ class CellPlain; end
309
+
310
+ class CellCounter; end
295
311
 
296
312
  class CellSerial; end
297
313
 
298
314
  class Cells; end
299
315
 
300
- class CCell; end
316
+ class CCellPlain; end
317
+
318
+ class CCellCounter; end
301
319
 
302
320
  class CCellSerial; end
303
321
 
304
- class ColCells; end
322
+ class CCells; end
323
+
324
+ class KCellPlain; end
305
325
 
306
- class KCell; end
326
+ class KCellCounter; end
307
327
 
308
328
  class KCellSerial; end
309
329
 
310
330
  class KCells; end
311
331
 
312
- class FCell; end
332
+ class FCellPlain; end
333
+
334
+ class FCellCounter; end
313
335
 
314
336
  class FCellSerial; end
315
337
 
@@ -544,99 +566,6 @@ module Swcdb
544
566
  ::Thrift::Struct.generate_accessors self
545
567
  end
546
568
 
547
- # The Fraction Specifications
548
- class SpecFraction
549
- include ::Thrift::Struct, ::Thrift::Struct_Union
550
- COMP = 1
551
- F = 2
552
-
553
- FIELDS = {
554
- # Logical comparator to Apply
555
- COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
556
- # The binary(bytes) to match against a fraction of a Cell-Key
557
- F => {:type => ::Thrift::Types::STRING, :name => 'f', :binary => true}
558
- }
559
-
560
- def struct_fields; FIELDS; end
561
-
562
- def validate
563
- unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
564
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
565
- end
566
- end
567
-
568
- ::Thrift::Struct.generate_accessors self
569
- end
570
-
571
- # The Timestamp Specifications
572
- class SpecTimestamp
573
- include ::Thrift::Struct, ::Thrift::Struct_Union
574
- COMP = 1
575
- TS = 2
576
-
577
- FIELDS = {
578
- # Logical comparator to Apply
579
- COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
580
- # The timestamp in nanoseconds to match against the Cell timestamp/version (not the revision)
581
- TS => {:type => ::Thrift::Types::I64, :name => 'ts'}
582
- }
583
-
584
- def struct_fields; FIELDS; end
585
-
586
- def validate
587
- unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
588
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
589
- end
590
- end
591
-
592
- ::Thrift::Struct.generate_accessors self
593
- end
594
-
595
- # The Key Interval Specifications
596
- class SpecKeyInterval
597
- include ::Thrift::Struct, ::Thrift::Struct_Union
598
- START = 1
599
- FINISH = 2
600
-
601
- FIELDS = {
602
- # The Key Start Spec, the start of cells-interval key match
603
- START => {:type => ::Thrift::Types::LIST, :name => 'start', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}},
604
- # The Key Finish Spec, the finish of cells-interval key match
605
- FINISH => {:type => ::Thrift::Types::LIST, :name => 'finish', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}}
606
- }
607
-
608
- def struct_fields; FIELDS; end
609
-
610
- def validate
611
- end
612
-
613
- ::Thrift::Struct.generate_accessors self
614
- end
615
-
616
- # The Value Specifications, option to use with Extended Logical Comparators
617
- class SpecValue
618
- include ::Thrift::Struct, ::Thrift::Struct_Union
619
- COMP = 1
620
- V = 2
621
-
622
- FIELDS = {
623
- # Logical comparator to Apply
624
- COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
625
- # The binary(bytes) to match against the Cell value
626
- V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
627
- }
628
-
629
- def struct_fields; FIELDS; end
630
-
631
- def validate
632
- unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
633
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
634
- end
635
- end
636
-
637
- ::Thrift::Struct.generate_accessors self
638
- end
639
-
640
569
  class SpecUpdateOP
641
570
  include ::Thrift::Struct, ::Thrift::Struct_Union
642
571
  OP = 1
@@ -660,8 +589,8 @@ module Swcdb
660
589
  ::Thrift::Struct.generate_accessors self
661
590
  end
662
591
 
663
- # The Value specs for an Updating Interval of 'updating' in SpecInterval
664
- class SpecIntervalUpdate
592
+ # The Value specs for an Updating Interval of 'updating' in SpecIntervalPlain
593
+ class SpecIntervalUpdatePlain
665
594
  include ::Thrift::Struct, ::Thrift::Struct_Union
666
595
  V = 1
667
596
  TS = 2
@@ -669,7 +598,7 @@ module Swcdb
669
598
  UPDATE_OP = 4
670
599
 
671
600
  FIELDS = {
672
- # The value for the updated cell
601
+ # The bytes value for the updated cell
673
602
  V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true},
674
603
  # The timestamp for the updated cell NULL: MIN_INT64+1, AUTO:MIN_INT64+2 (or not-set)
675
604
  TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
@@ -690,6 +619,33 @@ module Swcdb
690
619
  ::Thrift::Struct.generate_accessors self
691
620
  end
692
621
 
622
+ # The Value specs for an Updating Interval of 'updating' in SpecIntervalCounter
623
+ class SpecIntervalUpdateCounter
624
+ include ::Thrift::Struct, ::Thrift::Struct_Union
625
+ V = 1
626
+ OP = 2
627
+ TS = 3
628
+ UPDATE_OP = 4
629
+
630
+ FIELDS = {
631
+ # The int64 value for the updated cell
632
+ V => {:type => ::Thrift::Types::I64, :name => 'v'},
633
+ # The Opration pf Counter, available: COUNTER_OP_EQUAL
634
+ OP => {:type => ::Thrift::Types::I64, :name => 'op', :default => 0},
635
+ # The timestamp for the updated cell NULL: MIN_INT64+1, AUTO:MIN_INT64+2 (or not-set)
636
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
637
+ # Optionally the operaton of value update
638
+ UPDATE_OP => {:type => ::Thrift::Types::STRUCT, :name => 'update_op', :class => ::Swcdb::Thrift::Gen::SpecUpdateOP, :optional => true}
639
+ }
640
+
641
+ def struct_fields; FIELDS; end
642
+
643
+ def validate
644
+ end
645
+
646
+ ::Thrift::Struct.generate_accessors self
647
+ end
648
+
693
649
  # The Value specs for an Updating Interval of 'updating' in SpecIntervalSerial
694
650
  class SpecIntervalUpdateSerial
695
651
  include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -723,78 +679,6 @@ module Swcdb
723
679
  ::Thrift::Struct.generate_accessors self
724
680
  end
725
681
 
726
- # The Cells Interval Specifications with interval-scope Flags
727
- class SpecInterval
728
- include ::Thrift::Struct, ::Thrift::Struct_Union
729
- RANGE_BEGIN = 1
730
- RANGE_END = 2
731
- OFFSET_KEY = 3
732
- OFFSET_REV = 4
733
- KEY_INTERVALS = 5
734
- VALUES = 6
735
- TS_START = 7
736
- TS_FINISH = 8
737
- FLAGS = 9
738
- OPTIONS = 10
739
- UPDATING = 11
740
-
741
- FIELDS = {
742
- # Begin of Ranges evaluation with this Key inclusive
743
- RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
744
- # End of Ranges evaluation with this Key inclusive
745
- RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
746
- # Offset Cell Key of a Scan, select cells from this key inclusive
747
- OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
748
- # Offset Cell Timestamp of a Scan, select cells after this timestamp
749
- OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
750
- # The Key Intervals
751
- KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
752
- # The Cell Value Specifications, cell-value match
753
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValue}},
754
- # The Timestamp Start Spec, the start of cells-interval timestamp match
755
- TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
756
- # The Timestamp Finish Spec, the finish of cells-interval timestamp match
757
- TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
758
- # The Interval Flags Specification
759
- FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true},
760
- # The Interval Options Specification
761
- OPTIONS => {:type => ::Thrift::Types::I32, :name => 'options', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::SpecIntervalOptions},
762
- # The Value spec of an Updating Interval
763
- UPDATING => {:type => ::Thrift::Types::STRUCT, :name => 'updating', :class => ::Swcdb::Thrift::Gen::SpecIntervalUpdate, :optional => true}
764
- }
765
-
766
- def struct_fields; FIELDS; end
767
-
768
- def validate
769
- unless @options.nil? || ::Swcdb::Thrift::Gen::SpecIntervalOptions::VALID_VALUES.include?(@options)
770
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field options!')
771
- end
772
- end
773
-
774
- ::Thrift::Struct.generate_accessors self
775
- end
776
-
777
- # The Column Specifications, the Cells-Intervals(SpecInterval/s) specification for a column
778
- class SpecColumn
779
- include ::Thrift::Struct, ::Thrift::Struct_Union
780
- CID = 1
781
- INTERVALS = 2
782
-
783
- FIELDS = {
784
- # The Column ID
785
- CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
786
- # The Cells Interval in a list-container
787
- INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecInterval}}
788
- }
789
-
790
- def struct_fields; FIELDS; end
791
-
792
- def validate
793
- end
794
-
795
- ::Thrift::Struct.generate_accessors self
796
- end
797
-
798
682
  # The Specifications of INT64 Serial Value Field
799
683
  class SpecValueSerial_INT64
800
684
  include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -974,17 +858,17 @@ module Swcdb
974
858
  ::Thrift::Struct.generate_accessors self
975
859
  end
976
860
 
977
- # The Serial Value Specifications
978
- class SpecValueSerial
861
+ # The Plain Value Specifications, option to use with Extended Logical Comparators
862
+ class SpecValuePlain
979
863
  include ::Thrift::Struct, ::Thrift::Struct_Union
980
864
  COMP = 1
981
- FIELDS = 2
865
+ V = 2
982
866
 
983
867
  FIELDS = {
984
868
  # Logical comparator to Apply
985
869
  COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
986
- # The Serial Value Specifications to match against the SERIAL Cell value fields
987
- FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerialField}}
870
+ # The binary(bytes) to match against the Cell value
871
+ V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
988
872
  }
989
873
 
990
874
  def struct_fields; FIELDS; end
@@ -998,35 +882,254 @@ module Swcdb
998
882
  ::Thrift::Struct.generate_accessors self
999
883
  end
1000
884
 
1001
- # The Serial Value Cells Interval Specifications with interval-scope Flags
1002
- class SpecIntervalSerial
885
+ # The Counter Value Specifications, option to use with Extended Logical Comparators
886
+ class SpecValueCounter
1003
887
  include ::Thrift::Struct, ::Thrift::Struct_Union
1004
- RANGE_BEGIN = 1
1005
- RANGE_END = 2
1006
- OFFSET_KEY = 3
1007
- OFFSET_REV = 4
1008
- KEY_INTERVALS = 5
1009
- VALUES = 6
1010
- TS_START = 7
1011
- TS_FINISH = 8
1012
- FLAGS = 9
1013
- OPTIONS = 10
1014
- UPDATING = 11
888
+ COMP = 1
889
+ V = 2
1015
890
 
1016
891
  FIELDS = {
1017
- # Begin of Ranges evaluation with this Key inclusive
1018
- RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1019
- # End of Ranges evaluation with this Key inclusive
1020
- RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1021
- # Offset Cell Key of a Scan, select cells from this key inclusive
1022
- OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1023
- # Offset Cell Timestamp of a Scan, select cells after this timestamp
1024
- OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
1025
- # The Key Intervals
1026
- KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
1027
- # The Serial Cell Value Specifications, cell-value fields match
1028
- VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerial}},
1029
- # The Timestamp Start Spec, the start of cells-interval timestamp match
892
+ # Logical comparator to Apply
893
+ COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
894
+ # The int64 to match against the Cell value
895
+ V => {:type => ::Thrift::Types::I64, :name => 'v'}
896
+ }
897
+
898
+ def struct_fields; FIELDS; end
899
+
900
+ def validate
901
+ unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
902
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
903
+ end
904
+ end
905
+
906
+ ::Thrift::Struct.generate_accessors self
907
+ end
908
+
909
+ # The Serial Value Specifications
910
+ class SpecValueSerial
911
+ include ::Thrift::Struct, ::Thrift::Struct_Union
912
+ COMP = 1
913
+ FIELDS = 2
914
+
915
+ FIELDS = {
916
+ # Logical comparator to Apply
917
+ COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
918
+ # The Serial Value Specifications to match against the SERIAL Cell value fields
919
+ FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerialField}}
920
+ }
921
+
922
+ def struct_fields; FIELDS; end
923
+
924
+ def validate
925
+ unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
926
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
927
+ end
928
+ end
929
+
930
+ ::Thrift::Struct.generate_accessors self
931
+ end
932
+
933
+ # The Fraction Specifications
934
+ class SpecFraction
935
+ include ::Thrift::Struct, ::Thrift::Struct_Union
936
+ COMP = 1
937
+ F = 2
938
+
939
+ FIELDS = {
940
+ # Logical comparator to Apply
941
+ COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
942
+ # The binary(bytes) to match against a fraction of a Cell-Key
943
+ F => {:type => ::Thrift::Types::STRING, :name => 'f', :binary => true}
944
+ }
945
+
946
+ def struct_fields; FIELDS; end
947
+
948
+ def validate
949
+ unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
950
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
951
+ end
952
+ end
953
+
954
+ ::Thrift::Struct.generate_accessors self
955
+ end
956
+
957
+ # The Timestamp Specifications
958
+ class SpecTimestamp
959
+ include ::Thrift::Struct, ::Thrift::Struct_Union
960
+ COMP = 1
961
+ TS = 2
962
+
963
+ FIELDS = {
964
+ # Logical comparator to Apply
965
+ COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
966
+ # The timestamp in nanoseconds to match against the Cell timestamp/version (not the revision)
967
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts'}
968
+ }
969
+
970
+ def struct_fields; FIELDS; end
971
+
972
+ def validate
973
+ unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
974
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
975
+ end
976
+ end
977
+
978
+ ::Thrift::Struct.generate_accessors self
979
+ end
980
+
981
+ # The Key Interval Specifications
982
+ class SpecKeyInterval
983
+ include ::Thrift::Struct, ::Thrift::Struct_Union
984
+ START = 1
985
+ FINISH = 2
986
+
987
+ FIELDS = {
988
+ # The Key Start Spec, the start of cells-interval key match
989
+ START => {:type => ::Thrift::Types::LIST, :name => 'start', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}},
990
+ # The Key Finish Spec, the finish of cells-interval key match
991
+ FINISH => {:type => ::Thrift::Types::LIST, :name => 'finish', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}}
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
+ # The Cells Interval Plain type Specifications with interval-scope Flags
1003
+ class SpecIntervalPlain
1004
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1005
+ RANGE_BEGIN = 1
1006
+ RANGE_END = 2
1007
+ OFFSET_KEY = 3
1008
+ OFFSET_REV = 4
1009
+ KEY_INTERVALS = 5
1010
+ VALUES = 6
1011
+ TS_START = 7
1012
+ TS_FINISH = 8
1013
+ FLAGS = 9
1014
+ OPTIONS = 10
1015
+ UPDATING = 11
1016
+
1017
+ FIELDS = {
1018
+ # Begin of Ranges evaluation with this Key inclusive
1019
+ RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1020
+ # End of Ranges evaluation with this Key inclusive
1021
+ RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1022
+ # Offset Cell Key of a Scan, select cells from this key inclusive
1023
+ OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1024
+ # Offset Cell Timestamp of a Scan, select cells after this timestamp
1025
+ OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
1026
+ # The Key Intervals
1027
+ KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
1028
+ # The Cell Value Specifications, cell-value match for plain type
1029
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValuePlain}},
1030
+ # The Timestamp Start Spec, the start of cells-interval timestamp match
1031
+ TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
1032
+ # The Timestamp Finish Spec, the finish of cells-interval timestamp match
1033
+ TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
1034
+ # The Interval Flags Specification
1035
+ FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true},
1036
+ # The Interval Options Specification
1037
+ OPTIONS => {:type => ::Thrift::Types::I32, :name => 'options', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::SpecIntervalOptions},
1038
+ # The Value spec of an Updating Interval
1039
+ UPDATING => {:type => ::Thrift::Types::STRUCT, :name => 'updating', :class => ::Swcdb::Thrift::Gen::SpecIntervalUpdatePlain, :optional => true}
1040
+ }
1041
+
1042
+ def struct_fields; FIELDS; end
1043
+
1044
+ def validate
1045
+ unless @options.nil? || ::Swcdb::Thrift::Gen::SpecIntervalOptions::VALID_VALUES.include?(@options)
1046
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field options!')
1047
+ end
1048
+ end
1049
+
1050
+ ::Thrift::Struct.generate_accessors self
1051
+ end
1052
+
1053
+ # The Cells Interval Counter type Specifications with interval-scope Flags
1054
+ class SpecIntervalCounter
1055
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1056
+ RANGE_BEGIN = 1
1057
+ RANGE_END = 2
1058
+ OFFSET_KEY = 3
1059
+ OFFSET_REV = 4
1060
+ KEY_INTERVALS = 5
1061
+ VALUES = 6
1062
+ TS_START = 7
1063
+ TS_FINISH = 8
1064
+ FLAGS = 9
1065
+ OPTIONS = 10
1066
+ UPDATING = 11
1067
+
1068
+ FIELDS = {
1069
+ # Begin of Ranges evaluation with this Key inclusive
1070
+ RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1071
+ # End of Ranges evaluation with this Key inclusive
1072
+ RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1073
+ # Offset Cell Key of a Scan, select cells from this key inclusive
1074
+ OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1075
+ # Offset Cell Timestamp of a Scan, select cells after this timestamp
1076
+ OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
1077
+ # The Key Intervals
1078
+ KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
1079
+ # The Cell Value Specifications, cell-value match for counter type
1080
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueCounter}},
1081
+ # The Timestamp Start Spec, the start of cells-interval timestamp match
1082
+ TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
1083
+ # The Timestamp Finish Spec, the finish of cells-interval timestamp match
1084
+ TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
1085
+ # The Interval Flags Specification
1086
+ FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true},
1087
+ # The Interval Options Specification
1088
+ OPTIONS => {:type => ::Thrift::Types::I32, :name => 'options', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::SpecIntervalOptions},
1089
+ # The Value spec of an Updating Interval
1090
+ UPDATING => {:type => ::Thrift::Types::STRUCT, :name => 'updating', :class => ::Swcdb::Thrift::Gen::SpecIntervalUpdateCounter, :optional => true}
1091
+ }
1092
+
1093
+ def struct_fields; FIELDS; end
1094
+
1095
+ def validate
1096
+ unless @options.nil? || ::Swcdb::Thrift::Gen::SpecIntervalOptions::VALID_VALUES.include?(@options)
1097
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field options!')
1098
+ end
1099
+ end
1100
+
1101
+ ::Thrift::Struct.generate_accessors self
1102
+ end
1103
+
1104
+ # The Cells Interval Serial type Specifications with interval-scope Flags
1105
+ class SpecIntervalSerial
1106
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1107
+ RANGE_BEGIN = 1
1108
+ RANGE_END = 2
1109
+ OFFSET_KEY = 3
1110
+ OFFSET_REV = 4
1111
+ KEY_INTERVALS = 5
1112
+ VALUES = 6
1113
+ TS_START = 7
1114
+ TS_FINISH = 8
1115
+ FLAGS = 9
1116
+ OPTIONS = 10
1117
+ UPDATING = 11
1118
+
1119
+ FIELDS = {
1120
+ # Begin of Ranges evaluation with this Key inclusive
1121
+ RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1122
+ # End of Ranges evaluation with this Key inclusive
1123
+ RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1124
+ # Offset Cell Key of a Scan, select cells from this key inclusive
1125
+ OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1126
+ # Offset Cell Timestamp of a Scan, select cells after this timestamp
1127
+ OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
1128
+ # The Key Intervals
1129
+ KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
1130
+ # The Serial Cell Value Specifications, cell-value fields match
1131
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerial}},
1132
+ # The Timestamp Start Spec, the start of cells-interval timestamp match
1030
1133
  TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
1031
1134
  # The Timestamp Finish Spec, the finish of cells-interval timestamp match
1032
1135
  TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
@@ -1049,7 +1152,49 @@ module Swcdb
1049
1152
  ::Thrift::Struct.generate_accessors self
1050
1153
  end
1051
1154
 
1052
- # The Column Specifications, the Cells-Intervals(SpecInterval/s) specification for a SERIAL Type Column
1155
+ # The Column Specifications, the Cells-Intervals(SpecIntervalPlain/s) specification for a PLAIN Type column
1156
+ class SpecColumnPlain
1157
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1158
+ CID = 1
1159
+ INTERVALS = 2
1160
+
1161
+ FIELDS = {
1162
+ # The Column ID
1163
+ CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
1164
+ # The Cells Interval in a list-container
1165
+ INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecIntervalPlain}}
1166
+ }
1167
+
1168
+ def struct_fields; FIELDS; end
1169
+
1170
+ def validate
1171
+ end
1172
+
1173
+ ::Thrift::Struct.generate_accessors self
1174
+ end
1175
+
1176
+ # The Column Specifications, the Cells-Intervals(SpecIntervalCounter/s) specification for a COUNTER Type column
1177
+ class SpecColumnCounter
1178
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1179
+ CID = 1
1180
+ INTERVALS = 2
1181
+
1182
+ FIELDS = {
1183
+ # The Column ID
1184
+ CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
1185
+ # The Cells Interval in a list-container
1186
+ INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecIntervalCounter}}
1187
+ }
1188
+
1189
+ def struct_fields; FIELDS; end
1190
+
1191
+ def validate
1192
+ end
1193
+
1194
+ ::Thrift::Struct.generate_accessors self
1195
+ end
1196
+
1197
+ # The Column Specifications, the Cells-Intervals(SpecIntervalSerial/s) specification for a SERIAL Type Column
1053
1198
  class SpecColumnSerial
1054
1199
  include ::Thrift::Struct, ::Thrift::Struct_Union
1055
1200
  CID = 1
@@ -1073,13 +1218,16 @@ module Swcdb
1073
1218
  # The Scan Specifications, the Columns-Intervals(SpecColumn/s) with global-scope Flags
1074
1219
  class SpecScan
1075
1220
  include ::Thrift::Struct, ::Thrift::Struct_Union
1076
- COLUMNS = 1
1077
- COLUMNS_SERIAL = 2
1078
- FLAGS = 3
1221
+ COLUMNS_PLAIN = 1
1222
+ COLUMNS_COUNTER = 2
1223
+ COLUMNS_SERIAL = 3
1224
+ FLAGS = 4
1079
1225
 
1080
1226
  FIELDS = {
1081
- # The Column Intervals(SpecColumn) in a list-container
1082
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumn}},
1227
+ # The Plain Column Intervals(SpecColumnPlain) in a list-container
1228
+ COLUMNS_PLAIN => {:type => ::Thrift::Types::LIST, :name => 'columns_plain', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumnPlain}},
1229
+ # The Counter Column Intervals(SpecColumnCounter) in a list-container
1230
+ COLUMNS_COUNTER => {:type => ::Thrift::Types::LIST, :name => 'columns_counter', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumnCounter}},
1083
1231
  # The Serial Column Intervals(SpecColumnSerial) in a list-container
1084
1232
  COLUMNS_SERIAL => {:type => ::Thrift::Types::LIST, :name => 'columns_serial', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumnSerial}},
1085
1233
  # The Global Flags Specification
@@ -1094,8 +1242,8 @@ module Swcdb
1094
1242
  ::Thrift::Struct.generate_accessors self
1095
1243
  end
1096
1244
 
1097
- # The Cell data for using with Update
1098
- class UCell
1245
+ # The Cell data for using with Update of PLAIN Column Type
1246
+ class UCellPlain
1099
1247
  include ::Thrift::Struct, ::Thrift::Struct_Union
1100
1248
  F = 1
1101
1249
  K = 2
@@ -1133,6 +1281,42 @@ module Swcdb
1133
1281
  ::Thrift::Struct.generate_accessors self
1134
1282
  end
1135
1283
 
1284
+ # The Cell data for using with Update of COUNTER Column Type
1285
+ class UCellCounter
1286
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1287
+ F = 1
1288
+ K = 2
1289
+ TS = 3
1290
+ TS_DESC = 4
1291
+ OP = 5
1292
+ V = 6
1293
+
1294
+ FIELDS = {
1295
+ # The Cell Flag
1296
+ F => {:type => ::Thrift::Types::I32, :name => 'f', :enum_class => ::Swcdb::Thrift::Gen::Flag},
1297
+ # The Cell Key
1298
+ K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1299
+ # The Cell Timestamp in nanoseconds
1300
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
1301
+ # The Cell Version is in timestamp descending
1302
+ TS_DESC => {:type => ::Thrift::Types::BOOL, :name => 'ts_desc', :optional => true},
1303
+ # The Cell Counter Operation
1304
+ OP => {:type => ::Thrift::Types::BYTE, :name => 'op', :default => 0},
1305
+ # The Cell Counter Value
1306
+ V => {:type => ::Thrift::Types::I64, :name => 'v', :default => 0}
1307
+ }
1308
+
1309
+ def struct_fields; FIELDS; end
1310
+
1311
+ def validate
1312
+ unless @f.nil? || ::Swcdb::Thrift::Gen::Flag::VALID_VALUES.include?(@f)
1313
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field f!')
1314
+ end
1315
+ end
1316
+
1317
+ ::Thrift::Struct.generate_accessors self
1318
+ end
1319
+
1136
1320
  # The Serial Value Cell field
1137
1321
  class CellValueSerial
1138
1322
  include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -1152,13 +1336,13 @@ module Swcdb
1152
1336
  # The DOUBLE type field
1153
1337
  V_DOUBLE => {:type => ::Thrift::Types::DOUBLE, :name => 'v_double', :optional => true},
1154
1338
  # The BYTES type field
1155
- V_BYTES => {:type => ::Thrift::Types::STRING, :name => 'v_bytes', :binary => true},
1339
+ V_BYTES => {:type => ::Thrift::Types::STRING, :name => 'v_bytes', :binary => true, :optional => true},
1156
1340
  # The Cell KEY type field
1157
- V_KEY => {:type => ::Thrift::Types::LIST, :name => 'v_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1341
+ V_KEY => {:type => ::Thrift::Types::LIST, :name => 'v_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true},
1158
1342
  # The LIST INT64 type field
1159
- V_LI => {:type => ::Thrift::Types::LIST, :name => 'v_li', :element => {:type => ::Thrift::Types::I64}},
1343
+ V_LI => {:type => ::Thrift::Types::LIST, :name => 'v_li', :element => {:type => ::Thrift::Types::I64}, :optional => true},
1160
1344
  # The LIST BYTES type field
1161
- V_LB => {:type => ::Thrift::Types::LIST, :name => 'v_lb', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1345
+ V_LB => {:type => ::Thrift::Types::LIST, :name => 'v_lb', :element => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true}
1162
1346
  }
1163
1347
 
1164
1348
  def struct_fields; FIELDS; end
@@ -1335,7 +1519,7 @@ module Swcdb
1335
1519
  # The BYTES type update-field
1336
1520
  V_BYTES => {:type => ::Thrift::Types::STRUCT, :name => 'v_bytes', :class => ::Swcdb::Thrift::Gen::FU_BYTES, :optional => true},
1337
1521
  # The Cell KEY type update-field
1338
- V_KEY => {:type => ::Thrift::Types::LIST, :name => 'v_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1522
+ V_KEY => {:type => ::Thrift::Types::LIST, :name => 'v_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}, :optional => true},
1339
1523
  # The LIST INT64 type update-field
1340
1524
  V_LI => {:type => ::Thrift::Types::STRUCT, :name => 'v_li', :class => ::Swcdb::Thrift::Gen::FU_LI, :optional => true},
1341
1525
  # The LIST BYTES type update-field
@@ -1390,7 +1574,7 @@ module Swcdb
1390
1574
  end
1391
1575
 
1392
1576
  # The Cell for results list of scan
1393
- class Cell
1577
+ class CellPlain
1394
1578
  include ::Thrift::Struct, ::Thrift::Struct_Union
1395
1579
  C = 1
1396
1580
  K = 2
@@ -1416,6 +1600,36 @@ module Swcdb
1416
1600
  ::Thrift::Struct.generate_accessors self
1417
1601
  end
1418
1602
 
1603
+ # The Counter Cell for results list of scan
1604
+ class CellCounter
1605
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1606
+ C = 1
1607
+ K = 2
1608
+ TS = 3
1609
+ V = 4
1610
+ EQ = 5
1611
+
1612
+ FIELDS = {
1613
+ # The Column Name
1614
+ C => {:type => ::Thrift::Types::STRING, :name => 'c'},
1615
+ # The Cell Key
1616
+ K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1617
+ # The Cell Timestamp
1618
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
1619
+ # The Cell Counter Value
1620
+ V => {:type => ::Thrift::Types::I64, :name => 'v'},
1621
+ # The Counter EQ since ts
1622
+ EQ => {:type => ::Thrift::Types::I64, :name => 'eq', :optional => true}
1623
+ }
1624
+
1625
+ def struct_fields; FIELDS; end
1626
+
1627
+ def validate
1628
+ end
1629
+
1630
+ ::Thrift::Struct.generate_accessors self
1631
+ end
1632
+
1419
1633
  # The Serial Cell for results list of scan
1420
1634
  class CellSerial
1421
1635
  include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -1446,12 +1660,15 @@ module Swcdb
1446
1660
  # The Cells for results list of scan
1447
1661
  class Cells
1448
1662
  include ::Thrift::Struct, ::Thrift::Struct_Union
1449
- CELLS = 1
1450
- SERIAL_CELLS = 2
1663
+ PLAIN_CELLS = 1
1664
+ COUNTER_CELLS = 2
1665
+ SERIAL_CELLS = 3
1451
1666
 
1452
1667
  FIELDS = {
1453
1668
  # The Cells, defined as Cell items in a list-container
1454
- CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::Cell}},
1669
+ PLAIN_CELLS => {:type => ::Thrift::Types::LIST, :name => 'plain_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellPlain}},
1670
+ # The Cells, defined as Cell items in a list-container
1671
+ COUNTER_CELLS => {:type => ::Thrift::Types::LIST, :name => 'counter_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellCounter}},
1455
1672
  # The Serial Cells, defined as CellSerial items in a list-container
1456
1673
  SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellSerial}}
1457
1674
  }
@@ -1464,8 +1681,8 @@ module Swcdb
1464
1681
  ::Thrift::Struct.generate_accessors self
1465
1682
  end
1466
1683
 
1467
- # The Column Cell for results on Columns of scan
1468
- class CCell
1684
+ # The Plain column type Cell for results on Columns of scan
1685
+ class CCellPlain
1469
1686
  include ::Thrift::Struct, ::Thrift::Struct_Union
1470
1687
  K = 1
1471
1688
  TS = 2
@@ -1488,7 +1705,34 @@ module Swcdb
1488
1705
  ::Thrift::Struct.generate_accessors self
1489
1706
  end
1490
1707
 
1491
- # The Column Serial Cell for results on Columns of scan
1708
+ # The Counter column type Cell for results on Columns of scan
1709
+ class CCellCounter
1710
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1711
+ K = 1
1712
+ TS = 2
1713
+ V = 3
1714
+ EQ = 4
1715
+
1716
+ FIELDS = {
1717
+ # The Cell Key
1718
+ K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1719
+ # The Cell Timestamp
1720
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
1721
+ # The Cell Counter Value
1722
+ V => {:type => ::Thrift::Types::I64, :name => 'v'},
1723
+ # The Counter EQ since ts
1724
+ EQ => {:type => ::Thrift::Types::I64, :name => 'eq', :optional => true}
1725
+ }
1726
+
1727
+ def struct_fields; FIELDS; end
1728
+
1729
+ def validate
1730
+ end
1731
+
1732
+ ::Thrift::Struct.generate_accessors self
1733
+ end
1734
+
1735
+ # The Serial column type Cell for results on Columns of scan
1492
1736
  class CCellSerial
1493
1737
  include ::Thrift::Struct, ::Thrift::Struct_Union
1494
1738
  K = 1
@@ -1513,15 +1757,18 @@ module Swcdb
1513
1757
  end
1514
1758
 
1515
1759
  # The Column Cells for results on Columns of scan
1516
- class ColCells
1760
+ class CCells
1517
1761
  include ::Thrift::Struct, ::Thrift::Struct_Union
1518
- CELLS = 1
1519
- SERIAL_CELLS = 2
1762
+ PLAIN_CELLS = 1
1763
+ COUNTER_CELLS = 2
1764
+ SERIAL_CELLS = 3
1520
1765
 
1521
1766
  FIELDS = {
1522
- # The Cells, defined as CCell items in a list-container
1523
- CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCell}},
1524
- # The Serial Cells, defined as CCellSerial items in a list-container
1767
+ # The Plain type Cells, defined as CCellPlain items in a list-container
1768
+ PLAIN_CELLS => {:type => ::Thrift::Types::LIST, :name => 'plain_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCellPlain}},
1769
+ # The Counter type Cells, defined as CCellCounter items in a list-container
1770
+ COUNTER_CELLS => {:type => ::Thrift::Types::LIST, :name => 'counter_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCellCounter}},
1771
+ # The Serial type Cells, defined as CCellSerial items in a list-container
1525
1772
  SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCellSerial}}
1526
1773
  }
1527
1774
 
@@ -1533,8 +1780,8 @@ module Swcdb
1533
1780
  ::Thrift::Struct.generate_accessors self
1534
1781
  end
1535
1782
 
1536
- # The Key Cell for results on Key of scan
1537
- class KCell
1783
+ # The Plain column type Key Cell for results on Key of scan
1784
+ class KCellPlain
1538
1785
  include ::Thrift::Struct, ::Thrift::Struct_Union
1539
1786
  C = 1
1540
1787
  TS = 2
@@ -1557,7 +1804,34 @@ module Swcdb
1557
1804
  ::Thrift::Struct.generate_accessors self
1558
1805
  end
1559
1806
 
1560
- # The Key Serial Cell for results on Key of scan
1807
+ # The Counter column type Key Cell for results on Key of scan
1808
+ class KCellCounter
1809
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1810
+ C = 1
1811
+ TS = 2
1812
+ V = 3
1813
+ EQ = 4
1814
+
1815
+ FIELDS = {
1816
+ # The Column Name
1817
+ C => {:type => ::Thrift::Types::STRING, :name => 'c'},
1818
+ # The Cell Timestamp
1819
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
1820
+ # The Cell Counter Value
1821
+ V => {:type => ::Thrift::Types::I64, :name => 'v'},
1822
+ # The Counter EQ since ts
1823
+ EQ => {:type => ::Thrift::Types::I64, :name => 'eq', :optional => true}
1824
+ }
1825
+
1826
+ def struct_fields; FIELDS; end
1827
+
1828
+ def validate
1829
+ end
1830
+
1831
+ ::Thrift::Struct.generate_accessors self
1832
+ end
1833
+
1834
+ # The Serial column type Key Cell for results on Key of scan
1561
1835
  class KCellSerial
1562
1836
  include ::Thrift::Struct, ::Thrift::Struct_Union
1563
1837
  C = 1
@@ -1585,15 +1859,18 @@ module Swcdb
1585
1859
  class KCells
1586
1860
  include ::Thrift::Struct, ::Thrift::Struct_Union
1587
1861
  K = 1
1588
- CELLS = 2
1589
- SERIAL_CELLS = 3
1862
+ PLAIN_CELLS = 2
1863
+ COUNTER_CELLS = 3
1864
+ SERIAL_CELLS = 4
1590
1865
 
1591
1866
  FIELDS = {
1592
1867
  # The Cell Key
1593
1868
  K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1594
- # The Key's Cells, defined as KCell items in a list-container
1595
- CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCell}},
1596
- # The Key's Serial Cells, defined as KCellSerial items in a list-container
1869
+ # The Plain type Key Cells, defined as KCellPlain items in a list-container
1870
+ PLAIN_CELLS => {:type => ::Thrift::Types::LIST, :name => 'plain_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCellPlain}},
1871
+ # The Counter type Key Cells, defined as KCellCounter items in a list-container
1872
+ COUNTER_CELLS => {:type => ::Thrift::Types::LIST, :name => 'counter_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCellCounter}},
1873
+ # The Serial type Key Cells, defined as KCellSerial items in a list-container
1597
1874
  SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCellSerial}}
1598
1875
  }
1599
1876
 
@@ -1605,8 +1882,8 @@ module Swcdb
1605
1882
  ::Thrift::Struct.generate_accessors self
1606
1883
  end
1607
1884
 
1608
- # The Fraction Cell for results on Fraction of scan
1609
- class FCell
1885
+ # The Plain column type Fraction Cell for results on Fraction of scan
1886
+ class FCellPlain
1610
1887
  include ::Thrift::Struct, ::Thrift::Struct_Union
1611
1888
  C = 1
1612
1889
  TS = 2
@@ -1629,7 +1906,34 @@ module Swcdb
1629
1906
  ::Thrift::Struct.generate_accessors self
1630
1907
  end
1631
1908
 
1632
- # The Fraction Serial Cell for results on Fraction of scan
1909
+ # The Counter column type Fraction Cell for results on Fraction of scan
1910
+ class FCellCounter
1911
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1912
+ C = 1
1913
+ TS = 2
1914
+ V = 3
1915
+ EQ = 4
1916
+
1917
+ FIELDS = {
1918
+ # The Column Name
1919
+ C => {:type => ::Thrift::Types::STRING, :name => 'c'},
1920
+ # The Cell Timestamp
1921
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
1922
+ # The Cell Counter Value
1923
+ V => {:type => ::Thrift::Types::I64, :name => 'v'},
1924
+ # The Counter EQ since ts
1925
+ EQ => {:type => ::Thrift::Types::I64, :name => 'eq', :optional => true}
1926
+ }
1927
+
1928
+ def struct_fields; FIELDS; end
1929
+
1930
+ def validate
1931
+ end
1932
+
1933
+ ::Thrift::Struct.generate_accessors self
1934
+ end
1935
+
1936
+ # The Serial column type Fraction Cell for results on Fraction of scan
1633
1937
  class FCellSerial
1634
1938
  include ::Thrift::Struct, ::Thrift::Struct_Union
1635
1939
  C = 1
@@ -1657,14 +1961,17 @@ module Swcdb
1657
1961
  class FCells
1658
1962
  include ::Thrift::Struct, ::Thrift::Struct_Union
1659
1963
  F = 1
1660
- CELLS = 2
1661
- SERIAL_CELLS = 3
1964
+ PLAIN_CELLS = 2
1965
+ COUNTER_CELLS = 3
1966
+ SERIAL_CELLS = 4
1662
1967
 
1663
1968
  FIELDS = {
1664
1969
  # The Fraction Container for the Next Fractions Tree, defined as FCells items in a map-container by current Fraction bytes
1665
1970
  F => {:type => ::Thrift::Types::MAP, :name => 'f', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCells}},
1666
- # The current Fraction's Cells, defined as FCell items in a list-container
1667
- CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCell}},
1971
+ # The current Fraction's Cells, defined as FCellPlain items in a list-container
1972
+ PLAIN_CELLS => {:type => ::Thrift::Types::LIST, :name => 'plain_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCellPlain}},
1973
+ # The current Fraction's Cells, defined as FCellCounter items in a list-container
1974
+ COUNTER_CELLS => {:type => ::Thrift::Types::LIST, :name => 'counter_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCellCounter}},
1668
1975
  # The current Fraction's Serial Cells, defined as FCellSerial items in a list-container
1669
1976
  SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCellSerial}}
1670
1977
  }
@@ -1688,8 +1995,8 @@ module Swcdb
1688
1995
  FIELDS = {
1689
1996
  # The Cells in a list, defined as Cell items in a list-container
1690
1997
  CELLS => {:type => ::Thrift::Types::STRUCT, :name => 'cells', :class => ::Swcdb::Thrift::Gen::Cells},
1691
- # The Columns Cells in a map-container, defined as ColCells items by Column Name
1692
- CCELLS => {:type => ::Thrift::Types::MAP, :name => 'ccells', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::ColCells}},
1998
+ # The Columns Cells in a map-container, defined as cCells items by Column Name
1999
+ CCELLS => {:type => ::Thrift::Types::MAP, :name => 'ccells', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCells}},
1693
2000
  # The Keys Cells in a list, defined as kCells items in a list-container
1694
2001
  KCELLS => {:type => ::Thrift::Types::LIST, :name => 'kcells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCells}},
1695
2002
  # The Fraction Cells in struct FCells