swcdb 0.5.5.0 → 0.5.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed995e7c92c010c4fec30856935c4977ee27a7cb163810b8cfce213f17f8c129
4
- data.tar.gz: 8e00390f74a52624d1c1d254fe8788e3bd7189c76f428af97c73bd08da9c8732
3
+ metadata.gz: 3ac0f51b3821b37093237ed4602a8279a344f7035c36ca849b4ee230870c7a19
4
+ data.tar.gz: 6ff502f0083ce9fe1cb8556ec96b8b9e44b61c90e0f27781e84a01200d1a3eb6
5
5
  SHA512:
6
- metadata.gz: 4f223c722d24efc672a56cadcacd12cc28e80db0fa4c70f27dfcdd34ae513a8a737475017f50e745e4c0ba89e3a336953916ff5cd9b4dbc2043813b4b5ca375b
7
- data.tar.gz: 685412a2a4e391165d45680e4f8b151632b1a6dd549bd962c9542f0ea3c7c1f287bd5b6aa16f48d7c353af69a0aaae03dd33cfc338bbd4d4c71e8fa2eb645841
6
+ metadata.gz: ceef39f9135846677708d412b89e4e2f063d3fade4b0c2db9c053197be91b3f979146fa0efdf27485efbb309739a9dfaf2181f3859ceb1f1cbd1e9f6d75eeed5
7
+ data.tar.gz: 2253d6ef65d1b6e4485eaf5cd92c3ab2a9911fe592a917fb218c6d485e1c5c930cfb409a2e8f79a40b7a232200954a567b7d3640a23255619036cbd9e1601f2c
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.15.0)
2
+ # Autogenerated by Thrift Compiler (0.16.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.15.0)
2
+ # Autogenerated by Thrift Compiler (0.16.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.15.0)
2
+ # Autogenerated by Thrift Compiler (0.16.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -66,11 +66,11 @@ module Swcdb
66
66
  # Create Column Function
67
67
  CREATE = 3
68
68
  # Delete Column Function
69
- DELETE = 5
69
+ REMOVE = 5
70
70
  # Modify Column Function
71
71
  MODIFY = 7
72
- VALUE_MAP = {3 => "CREATE", 5 => "DELETE", 7 => "MODIFY"}
73
- VALID_VALUES = Set.new([CREATE, DELETE, MODIFY]).freeze
72
+ VALUE_MAP = {3 => "CREATE", 5 => "REMOVE", 7 => "MODIFY"}
73
+ VALID_VALUES = Set.new([CREATE, REMOVE, MODIFY]).freeze
74
74
  end
75
75
 
76
76
  module Comp
@@ -131,17 +131,26 @@ module Swcdb
131
131
  VALID_VALUES = Set.new([NONE, LIMIT_BY_KEYS, OFFSET_BY_KEYS, ONLY_KEYS, ONLY_DELETES]).freeze
132
132
  end
133
133
 
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
+
134
143
  module Flag
135
144
  # Unknown/Undefined
136
145
  NONE = 0
137
146
  # The Cell is an insert
138
147
  INSERT = 1
139
- # The Cell is a delete
140
- DELETE = 2
141
- # The Cell is a delete-version
142
- DELETE_VERSION = 3
143
- VALUE_MAP = {0 => "NONE", 1 => "INSERT", 2 => "DELETE", 3 => "DELETE_VERSION"}
144
- VALID_VALUES = Set.new([NONE, INSERT, DELETE, DELETE_VERSION]).freeze
148
+ # The Cell is a delete versions lower-equal
149
+ DELETE_LE = 2
150
+ # The Cell is a delete version equal
151
+ DELETE_EQ = 3
152
+ VALUE_MAP = {0 => "NONE", 1 => "INSERT", 2 => "DELETE_LE", 3 => "DELETE_EQ"}
153
+ VALID_VALUES = Set.new([NONE, INSERT, DELETE_LE, DELETE_EQ]).freeze
145
154
  end
146
155
 
147
156
  module CellsResult
@@ -179,6 +188,10 @@ module Swcdb
179
188
 
180
189
  class SpecValue; end
181
190
 
191
+ class SpecIntervalUpdate; end
192
+
193
+ class SpecIntervalUpdateSerial; end
194
+
182
195
  class SpecInterval; end
183
196
 
184
197
  class SpecColumn; end
@@ -557,6 +570,60 @@ module Swcdb
557
570
  ::Thrift::Struct.generate_accessors self
558
571
  end
559
572
 
573
+ # The Value specs for an Updating Interval of 'updating' in SpecInterval
574
+ class SpecIntervalUpdate
575
+ include ::Thrift::Struct, ::Thrift::Struct_Union
576
+ V = 1
577
+ TS = 2
578
+ ENCODER = 3
579
+
580
+ FIELDS = {
581
+ # The value for the updated cell
582
+ V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true},
583
+ # The timestamp for the updated cell NULL: MIN_INT64+1, AUTO:MIN_INT64+2 (or not-set)
584
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
585
+ # Optionally the Cell Value Encoding Type: ZLIB/SNAPPY/ZSTD
586
+ ENCODER => {:type => ::Thrift::Types::I32, :name => 'encoder', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::EncodingType}
587
+ }
588
+
589
+ def struct_fields; FIELDS; end
590
+
591
+ def validate
592
+ unless @encoder.nil? || ::Swcdb::Thrift::Gen::EncodingType::VALID_VALUES.include?(@encoder)
593
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field encoder!')
594
+ end
595
+ end
596
+
597
+ ::Thrift::Struct.generate_accessors self
598
+ end
599
+
600
+ # The Value specs for an Updating Interval of 'updating' in SpecIntervalSerial
601
+ class SpecIntervalUpdateSerial
602
+ include ::Thrift::Struct, ::Thrift::Struct_Union
603
+ TS = 1
604
+ V = 2
605
+ ENCODER = 3
606
+
607
+ FIELDS = {
608
+ # The timestamp for the updated cell NULL: MIN_INT64-1, AUTO:MIN_INT64-1
609
+ TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
610
+ # The value for the updated cell
611
+ V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellValueSerial}},
612
+ # Optionally the Cell Value Encoding Type: ZLIB/SNAPPY/ZSTD
613
+ ENCODER => {:type => ::Thrift::Types::I32, :name => 'encoder', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::EncodingType}
614
+ }
615
+
616
+ def struct_fields; FIELDS; end
617
+
618
+ def validate
619
+ unless @encoder.nil? || ::Swcdb::Thrift::Gen::EncodingType::VALID_VALUES.include?(@encoder)
620
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field encoder!')
621
+ end
622
+ end
623
+
624
+ ::Thrift::Struct.generate_accessors self
625
+ end
626
+
560
627
  # The Cells Interval Specifications with interval-scope Flags
561
628
  class SpecInterval
562
629
  include ::Thrift::Struct, ::Thrift::Struct_Union
@@ -569,6 +636,8 @@ module Swcdb
569
636
  TS_START = 7
570
637
  TS_FINISH = 8
571
638
  FLAGS = 9
639
+ OPTIONS = 10
640
+ UPDATING = 11
572
641
 
573
642
  FIELDS = {
574
643
  # Begin of Ranges evaluation with this Key inclusive
@@ -588,12 +657,19 @@ module Swcdb
588
657
  # The Timestamp Finish Spec, the finish of cells-interval timestamp match
589
658
  TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
590
659
  # The Interval Flags Specification
591
- FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true}
660
+ FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true},
661
+ # The Interval Options Specification
662
+ OPTIONS => {:type => ::Thrift::Types::I32, :name => 'options', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::SpecIntervalOptions},
663
+ # The Value spec of an Updating Interval
664
+ UPDATING => {:type => ::Thrift::Types::STRUCT, :name => 'updating', :class => ::Swcdb::Thrift::Gen::SpecIntervalUpdate, :optional => true}
592
665
  }
593
666
 
594
667
  def struct_fields; FIELDS; end
595
668
 
596
669
  def validate
670
+ unless @options.nil? || ::Swcdb::Thrift::Gen::SpecIntervalOptions::VALID_VALUES.include?(@options)
671
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field options!')
672
+ end
597
673
  end
598
674
 
599
675
  ::Thrift::Struct.generate_accessors self
@@ -835,6 +911,8 @@ module Swcdb
835
911
  TS_START = 7
836
912
  TS_FINISH = 8
837
913
  FLAGS = 9
914
+ OPTIONS = 10
915
+ UPDATING = 11
838
916
 
839
917
  FIELDS = {
840
918
  # Begin of Ranges evaluation with this Key inclusive
@@ -854,12 +932,19 @@ module Swcdb
854
932
  # The Timestamp Finish Spec, the finish of cells-interval timestamp match
855
933
  TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
856
934
  # The Interval Flags Specification
857
- FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true}
935
+ FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true},
936
+ # The Interval Options Specification
937
+ OPTIONS => {:type => ::Thrift::Types::I32, :name => 'options', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::SpecIntervalOptions},
938
+ # The Serial-Value spec of an Updating Interval
939
+ UPDATING => {:type => ::Thrift::Types::STRUCT, :name => 'updating', :class => ::Swcdb::Thrift::Gen::SpecIntervalUpdateSerial, :optional => true}
858
940
  }
859
941
 
860
942
  def struct_fields; FIELDS; end
861
943
 
862
944
  def validate
945
+ unless @options.nil? || ::Swcdb::Thrift::Gen::SpecIntervalOptions::VALID_VALUES.include?(@options)
946
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field options!')
947
+ end
863
948
  end
864
949
 
865
950
  ::Thrift::Struct.generate_accessors self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5.0
4
+ version: 0.5.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kashirin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-21 00:00:00.000000000 Z
11
+ date: 2022-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thrift
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.2
19
+ version: 0.16.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.14.2
26
+ version: 0.16.0
27
27
  description: The SWC-DB Ruby module 'swcdb'
28
28
  email: kashirin.alex@gmail.com
29
29
  executables: []