swcdb 0.5.6.0 → 0.5.7.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_types.rb +87 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7df9512e492f7461d410227c943e42693e7d9602558a6e6c675c659c3a15b84c
|
4
|
+
data.tar.gz: 271e443a637b8c97b885ef01074e26bd55c4890135ff1f5db2d6e9c876857525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a65d021556c13b491a0f63fe23951a271c342775be3830e3e118421f31c847a96c710e6d47afe5efd13a61e88623e390899bc227eadbd60429b5ec6fe4bd2c4
|
7
|
+
data.tar.gz: edbfecae99807b77e9d8e9d235615f79a0eebf94a938cfd16ff78b64e7e10379f6d77ea308fdd44875bc4cd6661fb3ad89012fca2664858741925e200518ac38
|
@@ -131,6 +131,15 @@ 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
|
@@ -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.
|
4
|
+
version: 0.5.7.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:
|
11
|
+
date: 2022-01-23 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.
|
19
|
+
version: 0.15.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.
|
26
|
+
version: 0.15.0
|
27
27
|
description: The SWC-DB Ruby module 'swcdb'
|
28
28
|
email: kashirin.alex@gmail.com
|
29
29
|
executables: []
|