swcdb 0.5.10.0 → 0.5.11.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 +4 -4
- data/lib/swcdb/thrift/gen/service.rb +276 -25
- data/lib/swcdb/thrift/gen/service_constants.rb +2 -0
- data/lib/swcdb/thrift/gen/service_types.rb +573 -270
- metadata +2 -2
@@ -135,15 +135,6 @@ module Swcdb
|
|
135
135
|
VALID_VALUES = Set.new([NONE, LIMIT_BY_KEYS, OFFSET_BY_KEYS, ONLY_KEYS, ONLY_DELETES]).freeze
|
136
136
|
end
|
137
137
|
|
138
|
-
module SpecIntervalOptions
|
139
|
-
# Update Bit Option
|
140
|
-
UPDATING = 4
|
141
|
-
# Delete Bit Option
|
142
|
-
DELETING = 8
|
143
|
-
VALUE_MAP = {4 => "UPDATING", 8 => "DELETING"}
|
144
|
-
VALID_VALUES = Set.new([UPDATING, DELETING]).freeze
|
145
|
-
end
|
146
|
-
|
147
138
|
module UpdateOP
|
148
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_)
|
149
140
|
REPLACE = 0
|
@@ -161,6 +152,15 @@ module Swcdb
|
|
161
152
|
VALID_VALUES = Set.new([REPLACE, APPEND, PREPEND, INSERT, OVERWRITE, SERIAL]).freeze
|
162
153
|
end
|
163
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
|
+
|
164
164
|
module Flag
|
165
165
|
# Unknown/Undefined
|
166
166
|
NONE = 0
|
@@ -237,23 +237,13 @@ module Swcdb
|
|
237
237
|
|
238
238
|
class SpecFlags; end
|
239
239
|
|
240
|
-
class SpecFraction; end
|
241
|
-
|
242
|
-
class SpecTimestamp; end
|
243
|
-
|
244
|
-
class SpecKeyInterval; end
|
245
|
-
|
246
|
-
class SpecValue; end
|
247
|
-
|
248
240
|
class SpecUpdateOP; end
|
249
241
|
|
250
|
-
class
|
251
|
-
|
252
|
-
class SpecIntervalUpdateSerial; end
|
242
|
+
class SpecIntervalUpdatePlain; end
|
253
243
|
|
254
|
-
class
|
244
|
+
class SpecIntervalUpdateCounter; end
|
255
245
|
|
256
|
-
class
|
246
|
+
class SpecIntervalUpdateSerial; end
|
257
247
|
|
258
248
|
class SpecValueSerial_INT64; end
|
259
249
|
|
@@ -269,15 +259,35 @@ module Swcdb
|
|
269
259
|
|
270
260
|
class SpecValueSerialField; end
|
271
261
|
|
262
|
+
class SpecValuePlain; end
|
263
|
+
|
264
|
+
class SpecValueCounter; end
|
265
|
+
|
272
266
|
class SpecValueSerial; end
|
273
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
|
+
|
274
278
|
class SpecIntervalSerial; end
|
275
279
|
|
280
|
+
class SpecColumnPlain; end
|
281
|
+
|
282
|
+
class SpecColumnCounter; end
|
283
|
+
|
276
284
|
class SpecColumnSerial; end
|
277
285
|
|
278
286
|
class SpecScan; end
|
279
287
|
|
280
|
-
class
|
288
|
+
class UCellPlain; end
|
289
|
+
|
290
|
+
class UCellCounter; end
|
281
291
|
|
282
292
|
class CellValueSerial; end
|
283
293
|
|
@@ -295,25 +305,33 @@ module Swcdb
|
|
295
305
|
|
296
306
|
class UCellSerial; end
|
297
307
|
|
298
|
-
class
|
308
|
+
class CellPlain; end
|
309
|
+
|
310
|
+
class CellCounter; end
|
299
311
|
|
300
312
|
class CellSerial; end
|
301
313
|
|
302
314
|
class Cells; end
|
303
315
|
|
304
|
-
class
|
316
|
+
class CCellPlain; end
|
317
|
+
|
318
|
+
class CCellCounter; end
|
305
319
|
|
306
320
|
class CCellSerial; end
|
307
321
|
|
308
|
-
class
|
322
|
+
class CCells; end
|
323
|
+
|
324
|
+
class KCellPlain; end
|
309
325
|
|
310
|
-
class
|
326
|
+
class KCellCounter; end
|
311
327
|
|
312
328
|
class KCellSerial; end
|
313
329
|
|
314
330
|
class KCells; end
|
315
331
|
|
316
|
-
class
|
332
|
+
class FCellPlain; end
|
333
|
+
|
334
|
+
class FCellCounter; end
|
317
335
|
|
318
336
|
class FCellSerial; end
|
319
337
|
|
@@ -548,99 +566,6 @@ module Swcdb
|
|
548
566
|
::Thrift::Struct.generate_accessors self
|
549
567
|
end
|
550
568
|
|
551
|
-
# The Fraction Specifications
|
552
|
-
class SpecFraction
|
553
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
554
|
-
COMP = 1
|
555
|
-
F = 2
|
556
|
-
|
557
|
-
FIELDS = {
|
558
|
-
# Logical comparator to Apply
|
559
|
-
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
560
|
-
# The binary(bytes) to match against a fraction of a Cell-Key
|
561
|
-
F => {:type => ::Thrift::Types::STRING, :name => 'f', :binary => true}
|
562
|
-
}
|
563
|
-
|
564
|
-
def struct_fields; FIELDS; end
|
565
|
-
|
566
|
-
def validate
|
567
|
-
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
568
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
569
|
-
end
|
570
|
-
end
|
571
|
-
|
572
|
-
::Thrift::Struct.generate_accessors self
|
573
|
-
end
|
574
|
-
|
575
|
-
# The Timestamp Specifications
|
576
|
-
class SpecTimestamp
|
577
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
578
|
-
COMP = 1
|
579
|
-
TS = 2
|
580
|
-
|
581
|
-
FIELDS = {
|
582
|
-
# Logical comparator to Apply
|
583
|
-
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
584
|
-
# The timestamp in nanoseconds to match against the Cell timestamp/version (not the revision)
|
585
|
-
TS => {:type => ::Thrift::Types::I64, :name => 'ts'}
|
586
|
-
}
|
587
|
-
|
588
|
-
def struct_fields; FIELDS; end
|
589
|
-
|
590
|
-
def validate
|
591
|
-
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
592
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
593
|
-
end
|
594
|
-
end
|
595
|
-
|
596
|
-
::Thrift::Struct.generate_accessors self
|
597
|
-
end
|
598
|
-
|
599
|
-
# The Key Interval Specifications
|
600
|
-
class SpecKeyInterval
|
601
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
602
|
-
START = 1
|
603
|
-
FINISH = 2
|
604
|
-
|
605
|
-
FIELDS = {
|
606
|
-
# The Key Start Spec, the start of cells-interval key match
|
607
|
-
START => {:type => ::Thrift::Types::LIST, :name => 'start', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}},
|
608
|
-
# The Key Finish Spec, the finish of cells-interval key match
|
609
|
-
FINISH => {:type => ::Thrift::Types::LIST, :name => 'finish', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}}
|
610
|
-
}
|
611
|
-
|
612
|
-
def struct_fields; FIELDS; end
|
613
|
-
|
614
|
-
def validate
|
615
|
-
end
|
616
|
-
|
617
|
-
::Thrift::Struct.generate_accessors self
|
618
|
-
end
|
619
|
-
|
620
|
-
# The Value Specifications, option to use with Extended Logical Comparators
|
621
|
-
class SpecValue
|
622
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
623
|
-
COMP = 1
|
624
|
-
V = 2
|
625
|
-
|
626
|
-
FIELDS = {
|
627
|
-
# Logical comparator to Apply
|
628
|
-
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
629
|
-
# The binary(bytes) to match against the Cell value
|
630
|
-
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
631
|
-
}
|
632
|
-
|
633
|
-
def struct_fields; FIELDS; end
|
634
|
-
|
635
|
-
def validate
|
636
|
-
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
637
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
638
|
-
end
|
639
|
-
end
|
640
|
-
|
641
|
-
::Thrift::Struct.generate_accessors self
|
642
|
-
end
|
643
|
-
|
644
569
|
class SpecUpdateOP
|
645
570
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
646
571
|
OP = 1
|
@@ -664,8 +589,8 @@ module Swcdb
|
|
664
589
|
::Thrift::Struct.generate_accessors self
|
665
590
|
end
|
666
591
|
|
667
|
-
# The Value specs for an Updating Interval of 'updating' in
|
668
|
-
class
|
592
|
+
# The Value specs for an Updating Interval of 'updating' in SpecIntervalPlain
|
593
|
+
class SpecIntervalUpdatePlain
|
669
594
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
670
595
|
V = 1
|
671
596
|
TS = 2
|
@@ -673,7 +598,7 @@ module Swcdb
|
|
673
598
|
UPDATE_OP = 4
|
674
599
|
|
675
600
|
FIELDS = {
|
676
|
-
# The value for the updated cell
|
601
|
+
# The bytes value for the updated cell
|
677
602
|
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true},
|
678
603
|
# The timestamp for the updated cell NULL: MIN_INT64+1, AUTO:MIN_INT64+2 (or not-set)
|
679
604
|
TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
|
@@ -694,6 +619,33 @@ module Swcdb
|
|
694
619
|
::Thrift::Struct.generate_accessors self
|
695
620
|
end
|
696
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
|
+
|
697
649
|
# The Value specs for an Updating Interval of 'updating' in SpecIntervalSerial
|
698
650
|
class SpecIntervalUpdateSerial
|
699
651
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -727,78 +679,6 @@ module Swcdb
|
|
727
679
|
::Thrift::Struct.generate_accessors self
|
728
680
|
end
|
729
681
|
|
730
|
-
# The Cells Interval Specifications with interval-scope Flags
|
731
|
-
class SpecInterval
|
732
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
733
|
-
RANGE_BEGIN = 1
|
734
|
-
RANGE_END = 2
|
735
|
-
OFFSET_KEY = 3
|
736
|
-
OFFSET_REV = 4
|
737
|
-
KEY_INTERVALS = 5
|
738
|
-
VALUES = 6
|
739
|
-
TS_START = 7
|
740
|
-
TS_FINISH = 8
|
741
|
-
FLAGS = 9
|
742
|
-
OPTIONS = 10
|
743
|
-
UPDATING = 11
|
744
|
-
|
745
|
-
FIELDS = {
|
746
|
-
# Begin of Ranges evaluation with this Key inclusive
|
747
|
-
RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
748
|
-
# End of Ranges evaluation with this Key inclusive
|
749
|
-
RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
750
|
-
# Offset Cell Key of a Scan, select cells from this key inclusive
|
751
|
-
OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
752
|
-
# Offset Cell Timestamp of a Scan, select cells after this timestamp
|
753
|
-
OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
|
754
|
-
# The Key Intervals
|
755
|
-
KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
|
756
|
-
# The Cell Value Specifications, cell-value match
|
757
|
-
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValue}},
|
758
|
-
# The Timestamp Start Spec, the start of cells-interval timestamp match
|
759
|
-
TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
760
|
-
# The Timestamp Finish Spec, the finish of cells-interval timestamp match
|
761
|
-
TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
762
|
-
# The Interval Flags Specification
|
763
|
-
FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true},
|
764
|
-
# The Interval Options Specification
|
765
|
-
OPTIONS => {:type => ::Thrift::Types::I32, :name => 'options', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::SpecIntervalOptions},
|
766
|
-
# The Value spec of an Updating Interval
|
767
|
-
UPDATING => {:type => ::Thrift::Types::STRUCT, :name => 'updating', :class => ::Swcdb::Thrift::Gen::SpecIntervalUpdate, :optional => true}
|
768
|
-
}
|
769
|
-
|
770
|
-
def struct_fields; FIELDS; end
|
771
|
-
|
772
|
-
def validate
|
773
|
-
unless @options.nil? || ::Swcdb::Thrift::Gen::SpecIntervalOptions::VALID_VALUES.include?(@options)
|
774
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field options!')
|
775
|
-
end
|
776
|
-
end
|
777
|
-
|
778
|
-
::Thrift::Struct.generate_accessors self
|
779
|
-
end
|
780
|
-
|
781
|
-
# The Column Specifications, the Cells-Intervals(SpecInterval/s) specification for a column
|
782
|
-
class SpecColumn
|
783
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
784
|
-
CID = 1
|
785
|
-
INTERVALS = 2
|
786
|
-
|
787
|
-
FIELDS = {
|
788
|
-
# The Column ID
|
789
|
-
CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
|
790
|
-
# The Cells Interval in a list-container
|
791
|
-
INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecInterval}}
|
792
|
-
}
|
793
|
-
|
794
|
-
def struct_fields; FIELDS; end
|
795
|
-
|
796
|
-
def validate
|
797
|
-
end
|
798
|
-
|
799
|
-
::Thrift::Struct.generate_accessors self
|
800
|
-
end
|
801
|
-
|
802
682
|
# The Specifications of INT64 Serial Value Field
|
803
683
|
class SpecValueSerial_INT64
|
804
684
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -978,17 +858,17 @@ module Swcdb
|
|
978
858
|
::Thrift::Struct.generate_accessors self
|
979
859
|
end
|
980
860
|
|
981
|
-
# The
|
982
|
-
class
|
861
|
+
# The Plain Value Specifications, option to use with Extended Logical Comparators
|
862
|
+
class SpecValuePlain
|
983
863
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
984
864
|
COMP = 1
|
985
|
-
|
865
|
+
V = 2
|
986
866
|
|
987
867
|
FIELDS = {
|
988
868
|
# Logical comparator to Apply
|
989
869
|
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
990
|
-
# The
|
991
|
-
|
870
|
+
# The binary(bytes) to match against the Cell value
|
871
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
992
872
|
}
|
993
873
|
|
994
874
|
def struct_fields; FIELDS; end
|
@@ -1002,35 +882,254 @@ module Swcdb
|
|
1002
882
|
::Thrift::Struct.generate_accessors self
|
1003
883
|
end
|
1004
884
|
|
1005
|
-
# The
|
1006
|
-
class
|
885
|
+
# The Counter Value Specifications, option to use with Extended Logical Comparators
|
886
|
+
class SpecValueCounter
|
1007
887
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1008
|
-
|
1009
|
-
|
1010
|
-
OFFSET_KEY = 3
|
1011
|
-
OFFSET_REV = 4
|
1012
|
-
KEY_INTERVALS = 5
|
1013
|
-
VALUES = 6
|
1014
|
-
TS_START = 7
|
1015
|
-
TS_FINISH = 8
|
1016
|
-
FLAGS = 9
|
1017
|
-
OPTIONS = 10
|
1018
|
-
UPDATING = 11
|
888
|
+
COMP = 1
|
889
|
+
V = 2
|
1019
890
|
|
1020
891
|
FIELDS = {
|
1021
|
-
#
|
1022
|
-
|
1023
|
-
#
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
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
|
1034
1133
|
TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
1035
1134
|
# The Timestamp Finish Spec, the finish of cells-interval timestamp match
|
1036
1135
|
TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
@@ -1053,7 +1152,49 @@ module Swcdb
|
|
1053
1152
|
::Thrift::Struct.generate_accessors self
|
1054
1153
|
end
|
1055
1154
|
|
1056
|
-
# The Column Specifications, the Cells-Intervals(
|
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
|
1057
1198
|
class SpecColumnSerial
|
1058
1199
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1059
1200
|
CID = 1
|
@@ -1077,13 +1218,16 @@ module Swcdb
|
|
1077
1218
|
# The Scan Specifications, the Columns-Intervals(SpecColumn/s) with global-scope Flags
|
1078
1219
|
class SpecScan
|
1079
1220
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1221
|
+
COLUMNS_PLAIN = 1
|
1222
|
+
COLUMNS_COUNTER = 2
|
1223
|
+
COLUMNS_SERIAL = 3
|
1224
|
+
FLAGS = 4
|
1083
1225
|
|
1084
1226
|
FIELDS = {
|
1085
|
-
# The Column Intervals(
|
1086
|
-
|
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}},
|
1087
1231
|
# The Serial Column Intervals(SpecColumnSerial) in a list-container
|
1088
1232
|
COLUMNS_SERIAL => {:type => ::Thrift::Types::LIST, :name => 'columns_serial', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumnSerial}},
|
1089
1233
|
# The Global Flags Specification
|
@@ -1098,8 +1242,8 @@ module Swcdb
|
|
1098
1242
|
::Thrift::Struct.generate_accessors self
|
1099
1243
|
end
|
1100
1244
|
|
1101
|
-
# The Cell data for using with Update
|
1102
|
-
class
|
1245
|
+
# The Cell data for using with Update of PLAIN Column Type
|
1246
|
+
class UCellPlain
|
1103
1247
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1104
1248
|
F = 1
|
1105
1249
|
K = 2
|
@@ -1137,6 +1281,42 @@ module Swcdb
|
|
1137
1281
|
::Thrift::Struct.generate_accessors self
|
1138
1282
|
end
|
1139
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
|
+
|
1140
1320
|
# The Serial Value Cell field
|
1141
1321
|
class CellValueSerial
|
1142
1322
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -1156,13 +1336,13 @@ module Swcdb
|
|
1156
1336
|
# The DOUBLE type field
|
1157
1337
|
V_DOUBLE => {:type => ::Thrift::Types::DOUBLE, :name => 'v_double', :optional => true},
|
1158
1338
|
# The BYTES type field
|
1159
|
-
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},
|
1160
1340
|
# The Cell KEY type field
|
1161
|
-
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},
|
1162
1342
|
# The LIST INT64 type field
|
1163
|
-
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},
|
1164
1344
|
# The LIST BYTES type field
|
1165
|
-
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}
|
1166
1346
|
}
|
1167
1347
|
|
1168
1348
|
def struct_fields; FIELDS; end
|
@@ -1339,7 +1519,7 @@ module Swcdb
|
|
1339
1519
|
# The BYTES type update-field
|
1340
1520
|
V_BYTES => {:type => ::Thrift::Types::STRUCT, :name => 'v_bytes', :class => ::Swcdb::Thrift::Gen::FU_BYTES, :optional => true},
|
1341
1521
|
# The Cell KEY type update-field
|
1342
|
-
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},
|
1343
1523
|
# The LIST INT64 type update-field
|
1344
1524
|
V_LI => {:type => ::Thrift::Types::STRUCT, :name => 'v_li', :class => ::Swcdb::Thrift::Gen::FU_LI, :optional => true},
|
1345
1525
|
# The LIST BYTES type update-field
|
@@ -1394,7 +1574,7 @@ module Swcdb
|
|
1394
1574
|
end
|
1395
1575
|
|
1396
1576
|
# The Cell for results list of scan
|
1397
|
-
class
|
1577
|
+
class CellPlain
|
1398
1578
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1399
1579
|
C = 1
|
1400
1580
|
K = 2
|
@@ -1420,6 +1600,36 @@ module Swcdb
|
|
1420
1600
|
::Thrift::Struct.generate_accessors self
|
1421
1601
|
end
|
1422
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
|
+
|
1423
1633
|
# The Serial Cell for results list of scan
|
1424
1634
|
class CellSerial
|
1425
1635
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -1450,12 +1660,15 @@ module Swcdb
|
|
1450
1660
|
# The Cells for results list of scan
|
1451
1661
|
class Cells
|
1452
1662
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1453
|
-
|
1454
|
-
|
1663
|
+
PLAIN_CELLS = 1
|
1664
|
+
COUNTER_CELLS = 2
|
1665
|
+
SERIAL_CELLS = 3
|
1455
1666
|
|
1456
1667
|
FIELDS = {
|
1457
1668
|
# The Cells, defined as Cell items in a list-container
|
1458
|
-
|
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}},
|
1459
1672
|
# The Serial Cells, defined as CellSerial items in a list-container
|
1460
1673
|
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellSerial}}
|
1461
1674
|
}
|
@@ -1468,8 +1681,8 @@ module Swcdb
|
|
1468
1681
|
::Thrift::Struct.generate_accessors self
|
1469
1682
|
end
|
1470
1683
|
|
1471
|
-
# The
|
1472
|
-
class
|
1684
|
+
# The Plain column type Cell for results on Columns of scan
|
1685
|
+
class CCellPlain
|
1473
1686
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1474
1687
|
K = 1
|
1475
1688
|
TS = 2
|
@@ -1492,7 +1705,34 @@ module Swcdb
|
|
1492
1705
|
::Thrift::Struct.generate_accessors self
|
1493
1706
|
end
|
1494
1707
|
|
1495
|
-
# The
|
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
|
1496
1736
|
class CCellSerial
|
1497
1737
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1498
1738
|
K = 1
|
@@ -1517,15 +1757,18 @@ module Swcdb
|
|
1517
1757
|
end
|
1518
1758
|
|
1519
1759
|
# The Column Cells for results on Columns of scan
|
1520
|
-
class
|
1760
|
+
class CCells
|
1521
1761
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1522
|
-
|
1523
|
-
|
1762
|
+
PLAIN_CELLS = 1
|
1763
|
+
COUNTER_CELLS = 2
|
1764
|
+
SERIAL_CELLS = 3
|
1524
1765
|
|
1525
1766
|
FIELDS = {
|
1526
|
-
# The Cells, defined as
|
1527
|
-
|
1528
|
-
# The
|
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
|
1529
1772
|
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCellSerial}}
|
1530
1773
|
}
|
1531
1774
|
|
@@ -1537,8 +1780,8 @@ module Swcdb
|
|
1537
1780
|
::Thrift::Struct.generate_accessors self
|
1538
1781
|
end
|
1539
1782
|
|
1540
|
-
# The Key Cell for results on Key of scan
|
1541
|
-
class
|
1783
|
+
# The Plain column type Key Cell for results on Key of scan
|
1784
|
+
class KCellPlain
|
1542
1785
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1543
1786
|
C = 1
|
1544
1787
|
TS = 2
|
@@ -1561,7 +1804,34 @@ module Swcdb
|
|
1561
1804
|
::Thrift::Struct.generate_accessors self
|
1562
1805
|
end
|
1563
1806
|
|
1564
|
-
# The Key
|
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
|
1565
1835
|
class KCellSerial
|
1566
1836
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1567
1837
|
C = 1
|
@@ -1589,15 +1859,18 @@ module Swcdb
|
|
1589
1859
|
class KCells
|
1590
1860
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1591
1861
|
K = 1
|
1592
|
-
|
1593
|
-
|
1862
|
+
PLAIN_CELLS = 2
|
1863
|
+
COUNTER_CELLS = 3
|
1864
|
+
SERIAL_CELLS = 4
|
1594
1865
|
|
1595
1866
|
FIELDS = {
|
1596
1867
|
# The Cell Key
|
1597
1868
|
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1598
|
-
# The Key
|
1599
|
-
|
1600
|
-
# The Key
|
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
|
1601
1874
|
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCellSerial}}
|
1602
1875
|
}
|
1603
1876
|
|
@@ -1609,8 +1882,8 @@ module Swcdb
|
|
1609
1882
|
::Thrift::Struct.generate_accessors self
|
1610
1883
|
end
|
1611
1884
|
|
1612
|
-
# The Fraction Cell for results on Fraction of scan
|
1613
|
-
class
|
1885
|
+
# The Plain column type Fraction Cell for results on Fraction of scan
|
1886
|
+
class FCellPlain
|
1614
1887
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1615
1888
|
C = 1
|
1616
1889
|
TS = 2
|
@@ -1633,7 +1906,34 @@ module Swcdb
|
|
1633
1906
|
::Thrift::Struct.generate_accessors self
|
1634
1907
|
end
|
1635
1908
|
|
1636
|
-
# The Fraction
|
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
|
1637
1937
|
class FCellSerial
|
1638
1938
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1639
1939
|
C = 1
|
@@ -1661,14 +1961,17 @@ module Swcdb
|
|
1661
1961
|
class FCells
|
1662
1962
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1663
1963
|
F = 1
|
1664
|
-
|
1665
|
-
|
1964
|
+
PLAIN_CELLS = 2
|
1965
|
+
COUNTER_CELLS = 3
|
1966
|
+
SERIAL_CELLS = 4
|
1666
1967
|
|
1667
1968
|
FIELDS = {
|
1668
1969
|
# The Fraction Container for the Next Fractions Tree, defined as FCells items in a map-container by current Fraction bytes
|
1669
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}},
|
1670
|
-
# The current Fraction's Cells, defined as
|
1671
|
-
|
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}},
|
1672
1975
|
# The current Fraction's Serial Cells, defined as FCellSerial items in a list-container
|
1673
1976
|
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCellSerial}}
|
1674
1977
|
}
|
@@ -1692,8 +1995,8 @@ module Swcdb
|
|
1692
1995
|
FIELDS = {
|
1693
1996
|
# The Cells in a list, defined as Cell items in a list-container
|
1694
1997
|
CELLS => {:type => ::Thrift::Types::STRUCT, :name => 'cells', :class => ::Swcdb::Thrift::Gen::Cells},
|
1695
|
-
# The Columns Cells in a map-container, defined as
|
1696
|
-
CCELLS => {:type => ::Thrift::Types::MAP, :name => 'ccells', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::
|
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}},
|
1697
2000
|
# The Keys Cells in a list, defined as kCells items in a list-container
|
1698
2001
|
KCELLS => {:type => ::Thrift::Types::LIST, :name => 'kcells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCells}},
|
1699
2002
|
# The Fraction Cells in struct FCells
|