swcdb 0.5.4.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 +7 -0
- data/README.md +14 -0
- data/lib/swcdb/thrift/client.rb +58 -0
- data/lib/swcdb/thrift/gen/service.rb +1404 -0
- data/lib/swcdb/thrift/gen/service_constants.rb +15 -0
- data/lib/swcdb/thrift/gen/service_types.rb +1389 -0
- metadata +67 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.14.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'swcdb/thrift/gen/service_types'
|
9
|
+
|
10
|
+
module Swcdb
|
11
|
+
module Thrift
|
12
|
+
module Gen
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,1389 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.14.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module Swcdb
|
10
|
+
module Thrift
|
11
|
+
module Gen
|
12
|
+
module KeySeq
|
13
|
+
# Unknown/Unrecognized Type
|
14
|
+
UNKNOWN = 0
|
15
|
+
# The Lexical Key Order Sequence
|
16
|
+
LEXIC = 1
|
17
|
+
# The Volumetric Key Order Sequence
|
18
|
+
VOLUME = 2
|
19
|
+
# The by Fractions Count on Lexical Key Order Sequence
|
20
|
+
FC_LEXIC = 3
|
21
|
+
# The by Fractions Count on Volumetric Key Order Sequence
|
22
|
+
FC_VOLUME = 4
|
23
|
+
VALUE_MAP = {0 => "UNKNOWN", 1 => "LEXIC", 2 => "VOLUME", 3 => "FC_LEXIC", 4 => "FC_VOLUME"}
|
24
|
+
VALID_VALUES = Set.new([UNKNOWN, LEXIC, VOLUME, FC_LEXIC, FC_VOLUME]).freeze
|
25
|
+
end
|
26
|
+
|
27
|
+
module ColumnType
|
28
|
+
# Unknown/Unrecognized Type
|
29
|
+
UNKNOWN = 0
|
30
|
+
# A Plain Column Value
|
31
|
+
PLAIN = 1
|
32
|
+
# A Counter Column Value with integrity of signed-64bit
|
33
|
+
COUNTER_I64 = 2
|
34
|
+
# A Counter Column Value with integrity of signed-32bit
|
35
|
+
COUNTER_I32 = 3
|
36
|
+
# A Counter Column Value with integrity of signed-16bit
|
37
|
+
COUNTER_I16 = 4
|
38
|
+
# A Counter Column Value with integrity of signed-8bit
|
39
|
+
COUNTER_I8 = 5
|
40
|
+
# A Serial Column Value
|
41
|
+
SERIAL = 6
|
42
|
+
# Not used - experimental
|
43
|
+
CELL_DEFINED = 15
|
44
|
+
VALUE_MAP = {0 => "UNKNOWN", 1 => "PLAIN", 2 => "COUNTER_I64", 3 => "COUNTER_I32", 4 => "COUNTER_I16", 5 => "COUNTER_I8", 6 => "SERIAL", 15 => "CELL_DEFINED"}
|
45
|
+
VALID_VALUES = Set.new([UNKNOWN, PLAIN, COUNTER_I64, COUNTER_I32, COUNTER_I16, COUNTER_I8, SERIAL, CELL_DEFINED]).freeze
|
46
|
+
end
|
47
|
+
|
48
|
+
module EncodingType
|
49
|
+
# Encoding by Ranger DEFAULT configurations
|
50
|
+
DEFAULT = 0
|
51
|
+
# No Encoding
|
52
|
+
PLAIN = 1
|
53
|
+
# Encode with zlib
|
54
|
+
ZLIB = 2
|
55
|
+
# Encode with snappy
|
56
|
+
SNAPPY = 3
|
57
|
+
# Encode with zstandard
|
58
|
+
ZSTD = 4
|
59
|
+
# Unrecognized Type
|
60
|
+
UNKNOWN = 255
|
61
|
+
VALUE_MAP = {0 => "DEFAULT", 1 => "PLAIN", 2 => "ZLIB", 3 => "SNAPPY", 4 => "ZSTD", 255 => "UNKNOWN"}
|
62
|
+
VALID_VALUES = Set.new([DEFAULT, PLAIN, ZLIB, SNAPPY, ZSTD, UNKNOWN]).freeze
|
63
|
+
end
|
64
|
+
|
65
|
+
module SchemaFunc
|
66
|
+
# Create Column Function
|
67
|
+
CREATE = 3
|
68
|
+
# Delete Column Function
|
69
|
+
DELETE = 5
|
70
|
+
# Modify Column Function
|
71
|
+
MODIFY = 7
|
72
|
+
VALUE_MAP = {3 => "CREATE", 5 => "DELETE", 7 => "MODIFY"}
|
73
|
+
VALID_VALUES = Set.new([CREATE, DELETE, MODIFY]).freeze
|
74
|
+
end
|
75
|
+
|
76
|
+
module Comp
|
77
|
+
# [ ] : none (no comparison applied)
|
78
|
+
NONE = 0
|
79
|
+
# [ =^ ] : -pf [prefix] (starts-with)
|
80
|
+
PF = 1
|
81
|
+
# [ > ] : -gt (greater-than)
|
82
|
+
GT = 2
|
83
|
+
# [ >= ] : -ge (greater-equal)
|
84
|
+
GE = 3
|
85
|
+
# [ = ] : -eq (equal)
|
86
|
+
EQ = 4
|
87
|
+
# [ <= ] : -le (lower-equal)
|
88
|
+
LE = 5
|
89
|
+
# [ < ] : -lt (lower-than)
|
90
|
+
LT = 6
|
91
|
+
# [ != ] : -ne (not-equal)
|
92
|
+
NE = 7
|
93
|
+
# [ re ] : -re [r,regexp] (regular-expression)
|
94
|
+
RE = 8
|
95
|
+
# [ v> ] : -vgt (vol greater-than)
|
96
|
+
VGT = 9
|
97
|
+
# [ v>= ] : -vge (vol greater-equal)
|
98
|
+
VGE = 10
|
99
|
+
# [ v<= ] : -vle (vol lower-equal)
|
100
|
+
VLE = 11
|
101
|
+
# [ v< ] : -vlt (vol lower-than)
|
102
|
+
VLT = 12
|
103
|
+
# [ %> ] : -subset [sbs] (subset)
|
104
|
+
SBS = 13
|
105
|
+
# [ <% ] : -supset [sps] (superset)
|
106
|
+
SPS = 14
|
107
|
+
# [ ~> ] : -posubset [posbs] (eq/part ordered subset)
|
108
|
+
POSBS = 15
|
109
|
+
# [ <~ ] : -posupset [posps] (eq/part ordered superset)
|
110
|
+
POSPS = 16
|
111
|
+
# [ -> ] : -fosubset [fosbs] (eq/full ordered subset)
|
112
|
+
FOSBS = 17
|
113
|
+
# [ <- ] : -fosupset [fosps] (eq/full ordered superset)
|
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
|
117
|
+
end
|
118
|
+
|
119
|
+
module SpecFlagsOpt
|
120
|
+
# No Flag Applied
|
121
|
+
NONE = 0
|
122
|
+
# Cells Limit by Keys
|
123
|
+
LIMIT_BY_KEYS = 1
|
124
|
+
# Cells Offset by Keys
|
125
|
+
OFFSET_BY_KEYS = 4
|
126
|
+
# Select Cells Only Keys without Value data
|
127
|
+
ONLY_KEYS = 8
|
128
|
+
# Select Cells Only with DELETE(cell-flag)
|
129
|
+
ONLY_DELETES = 10
|
130
|
+
VALUE_MAP = {0 => "NONE", 1 => "LIMIT_BY_KEYS", 4 => "OFFSET_BY_KEYS", 8 => "ONLY_KEYS", 10 => "ONLY_DELETES"}
|
131
|
+
VALID_VALUES = Set.new([NONE, LIMIT_BY_KEYS, OFFSET_BY_KEYS, ONLY_KEYS, ONLY_DELETES]).freeze
|
132
|
+
end
|
133
|
+
|
134
|
+
module Flag
|
135
|
+
# Unknown/Undefined
|
136
|
+
NONE = 0
|
137
|
+
# The Cell is an insert
|
138
|
+
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
|
145
|
+
end
|
146
|
+
|
147
|
+
module CellsResult
|
148
|
+
# Correspond to result on Cells (Cells in list)
|
149
|
+
IN_LIST = 0
|
150
|
+
# Correspond to result on CCells (Columns Cells)
|
151
|
+
ON_COLUMN = 1
|
152
|
+
# Correspond to result on KCells (Keys Cells)
|
153
|
+
ON_KEY = 2
|
154
|
+
# Correspond to result on FCells (Fraction Cells)
|
155
|
+
ON_FRACTION = 3
|
156
|
+
VALUE_MAP = {0 => "IN_LIST", 1 => "ON_COLUMN", 2 => "ON_KEY", 3 => "ON_FRACTION"}
|
157
|
+
VALID_VALUES = Set.new([IN_LIST, ON_COLUMN, ON_KEY, ON_FRACTION]).freeze
|
158
|
+
end
|
159
|
+
|
160
|
+
class Exception < ::Thrift::Exception; end
|
161
|
+
|
162
|
+
class Schema; end
|
163
|
+
|
164
|
+
class SchemaPattern; end
|
165
|
+
|
166
|
+
class SchemaTagsPatterns; end
|
167
|
+
|
168
|
+
class SchemaPatterns; end
|
169
|
+
|
170
|
+
class SpecSchemas; end
|
171
|
+
|
172
|
+
class SpecFlags; end
|
173
|
+
|
174
|
+
class SpecFraction; end
|
175
|
+
|
176
|
+
class SpecTimestamp; end
|
177
|
+
|
178
|
+
class SpecKeyInterval; end
|
179
|
+
|
180
|
+
class SpecValue; end
|
181
|
+
|
182
|
+
class SpecInterval; end
|
183
|
+
|
184
|
+
class SpecColumn; end
|
185
|
+
|
186
|
+
class SpecValueSerial_INT64; end
|
187
|
+
|
188
|
+
class SpecValueSerial_DOUBLE; end
|
189
|
+
|
190
|
+
class SpecValueSerial_BYTES; end
|
191
|
+
|
192
|
+
class SpecValueSerial_KEY; end
|
193
|
+
|
194
|
+
class SpecValueSerial_LI; end
|
195
|
+
|
196
|
+
class SpecValueSerial_LB; end
|
197
|
+
|
198
|
+
class SpecValueSerialField; end
|
199
|
+
|
200
|
+
class SpecValueSerial; end
|
201
|
+
|
202
|
+
class SpecIntervalSerial; end
|
203
|
+
|
204
|
+
class SpecColumnSerial; end
|
205
|
+
|
206
|
+
class SpecScan; end
|
207
|
+
|
208
|
+
class UCell; end
|
209
|
+
|
210
|
+
class CellValueSerial; end
|
211
|
+
|
212
|
+
class UCellSerial; end
|
213
|
+
|
214
|
+
class Cell; end
|
215
|
+
|
216
|
+
class CellSerial; end
|
217
|
+
|
218
|
+
class Cells; end
|
219
|
+
|
220
|
+
class CCell; end
|
221
|
+
|
222
|
+
class CCellSerial; end
|
223
|
+
|
224
|
+
class ColCells; end
|
225
|
+
|
226
|
+
class KCell; end
|
227
|
+
|
228
|
+
class KCellSerial; end
|
229
|
+
|
230
|
+
class KCells; end
|
231
|
+
|
232
|
+
class FCell; end
|
233
|
+
|
234
|
+
class FCellSerial; end
|
235
|
+
|
236
|
+
class FCells; end
|
237
|
+
|
238
|
+
class CellsGroup; end
|
239
|
+
|
240
|
+
class CompactResult; end
|
241
|
+
|
242
|
+
class Result; end
|
243
|
+
|
244
|
+
# The SWC::Thrift::Exception a base for any Exceptions
|
245
|
+
# both for the Thrift-Protocol and SWC-DB Errors.
|
246
|
+
class Exception < ::Thrift::Exception
|
247
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
248
|
+
CODE = 1
|
249
|
+
MESSAGE = 2
|
250
|
+
|
251
|
+
FIELDS = {
|
252
|
+
# The corresponding Thrift-Procotol or SWC-DB Error Code
|
253
|
+
CODE => {:type => ::Thrift::Types::I32, :name => 'code'},
|
254
|
+
# The message describing the error code
|
255
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
256
|
+
}
|
257
|
+
|
258
|
+
def struct_fields; FIELDS; end
|
259
|
+
|
260
|
+
def validate
|
261
|
+
end
|
262
|
+
|
263
|
+
::Thrift::Struct.generate_accessors self
|
264
|
+
end
|
265
|
+
|
266
|
+
# The Schema Definition
|
267
|
+
class Schema
|
268
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
269
|
+
CID = 1
|
270
|
+
COL_NAME = 2
|
271
|
+
COL_TAGS = 3
|
272
|
+
COL_SEQ = 4
|
273
|
+
COL_TYPE = 5
|
274
|
+
CELL_VERSIONS = 6
|
275
|
+
CELL_TTL = 7
|
276
|
+
BLK_ENCODING = 8
|
277
|
+
BLK_SIZE = 9
|
278
|
+
BLK_CELLS = 10
|
279
|
+
CS_REPLICATION = 11
|
280
|
+
CS_SIZE = 12
|
281
|
+
CS_MAX = 13
|
282
|
+
LOG_ROLLOUT_RATIO = 14
|
283
|
+
LOG_COMPACT_COINTERVALING = 15
|
284
|
+
LOG_FRAGMENT_PRELOAD = 16
|
285
|
+
COMPACT_PERCENT = 17
|
286
|
+
REVISION = 18
|
287
|
+
|
288
|
+
FIELDS = {
|
289
|
+
# Column ID
|
290
|
+
CID => {:type => ::Thrift::Types::I64, :name => 'cid', :optional => true},
|
291
|
+
# Column Name
|
292
|
+
COL_NAME => {:type => ::Thrift::Types::STRING, :name => 'col_name', :optional => true},
|
293
|
+
# Column Tags
|
294
|
+
COL_TAGS => {:type => ::Thrift::Types::LIST, :name => 'col_tags', :element => {:type => ::Thrift::Types::STRING}},
|
295
|
+
# Column Key Sequence
|
296
|
+
COL_SEQ => {:type => ::Thrift::Types::I32, :name => 'col_seq', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::KeySeq},
|
297
|
+
# Column Type
|
298
|
+
COL_TYPE => {:type => ::Thrift::Types::I32, :name => 'col_type', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::ColumnType},
|
299
|
+
# Cell Versions
|
300
|
+
CELL_VERSIONS => {:type => ::Thrift::Types::I32, :name => 'cell_versions', :optional => true},
|
301
|
+
# Cell Time to Live
|
302
|
+
CELL_TTL => {:type => ::Thrift::Types::I32, :name => 'cell_ttl', :optional => true},
|
303
|
+
# Block Encoding
|
304
|
+
BLK_ENCODING => {:type => ::Thrift::Types::I32, :name => 'blk_encoding', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::EncodingType},
|
305
|
+
# Block Size in Bytes
|
306
|
+
BLK_SIZE => {:type => ::Thrift::Types::I32, :name => 'blk_size', :optional => true},
|
307
|
+
# Number of Cells in Block
|
308
|
+
BLK_CELLS => {:type => ::Thrift::Types::I32, :name => 'blk_cells', :optional => true},
|
309
|
+
# CellStore file Replication
|
310
|
+
CS_REPLICATION => {:type => ::Thrift::Types::BYTE, :name => 'cs_replication', :optional => true},
|
311
|
+
# CellStore Size in Bytes
|
312
|
+
CS_SIZE => {:type => ::Thrift::Types::I32, :name => 'cs_size', :optional => true},
|
313
|
+
# Max CellStores in a Range
|
314
|
+
CS_MAX => {:type => ::Thrift::Types::BYTE, :name => 'cs_max', :optional => true},
|
315
|
+
# Write Fragment File on ratio reached
|
316
|
+
LOG_ROLLOUT_RATIO => {:type => ::Thrift::Types::BYTE, :name => 'log_rollout_ratio', :optional => true},
|
317
|
+
# Min. Cointervaling Fragments for Compaction
|
318
|
+
LOG_COMPACT_COINTERVALING => {:type => ::Thrift::Types::BYTE, :name => 'log_compact_cointervaling', :optional => true},
|
319
|
+
# Number of Fragment to Preload
|
320
|
+
LOG_FRAGMENT_PRELOAD => {:type => ::Thrift::Types::BYTE, :name => 'log_fragment_preload', :optional => true},
|
321
|
+
# Compact at percent reach
|
322
|
+
COMPACT_PERCENT => {:type => ::Thrift::Types::BYTE, :name => 'compact_percent', :optional => true},
|
323
|
+
# Schema's revision/id
|
324
|
+
REVISION => {:type => ::Thrift::Types::I64, :name => 'revision', :optional => true}
|
325
|
+
}
|
326
|
+
|
327
|
+
def struct_fields; FIELDS; end
|
328
|
+
|
329
|
+
def validate
|
330
|
+
unless @col_seq.nil? || ::Swcdb::Thrift::Gen::KeySeq::VALID_VALUES.include?(@col_seq)
|
331
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field col_seq!')
|
332
|
+
end
|
333
|
+
unless @col_type.nil? || ::Swcdb::Thrift::Gen::ColumnType::VALID_VALUES.include?(@col_type)
|
334
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field col_type!')
|
335
|
+
end
|
336
|
+
unless @blk_encoding.nil? || ::Swcdb::Thrift::Gen::EncodingType::VALID_VALUES.include?(@blk_encoding)
|
337
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field blk_encoding!')
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
::Thrift::Struct.generate_accessors self
|
342
|
+
end
|
343
|
+
|
344
|
+
# The Schema matching Pattern
|
345
|
+
class SchemaPattern
|
346
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
347
|
+
COMP = 1
|
348
|
+
VALUE = 2
|
349
|
+
|
350
|
+
FIELDS = {
|
351
|
+
# Logical comparator to Apply
|
352
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
353
|
+
# The patern value to match against
|
354
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
|
355
|
+
}
|
356
|
+
|
357
|
+
def struct_fields; FIELDS; end
|
358
|
+
|
359
|
+
def validate
|
360
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
361
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
::Thrift::Struct.generate_accessors self
|
366
|
+
end
|
367
|
+
|
368
|
+
# The Schema Tags patterns for the SchemaPatterns
|
369
|
+
class SchemaTagsPatterns
|
370
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
371
|
+
COMP = 1
|
372
|
+
VALUES = 2
|
373
|
+
|
374
|
+
FIELDS = {
|
375
|
+
# Logical comparator to Apply, unsupported PF, RE and Vol. kind
|
376
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
377
|
+
# The tags patterns to match against schema's column tags
|
378
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SchemaPattern}}
|
379
|
+
}
|
380
|
+
|
381
|
+
def struct_fields; FIELDS; end
|
382
|
+
|
383
|
+
def validate
|
384
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
385
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
::Thrift::Struct.generate_accessors self
|
390
|
+
end
|
391
|
+
|
392
|
+
# The Schema Patterns for the SpecSchemas
|
393
|
+
class SchemaPatterns
|
394
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
395
|
+
NAMES = 1
|
396
|
+
TAGS = 2
|
397
|
+
|
398
|
+
FIELDS = {
|
399
|
+
# The Schema patterns for selecting by Column Name
|
400
|
+
NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SchemaPattern}},
|
401
|
+
# The Schema patterns for selecting by Column Tags
|
402
|
+
TAGS => {:type => ::Thrift::Types::STRUCT, :name => 'tags', :class => ::Swcdb::Thrift::Gen::SchemaTagsPatterns}
|
403
|
+
}
|
404
|
+
|
405
|
+
def struct_fields; FIELDS; end
|
406
|
+
|
407
|
+
def validate
|
408
|
+
end
|
409
|
+
|
410
|
+
::Thrift::Struct.generate_accessors self
|
411
|
+
end
|
412
|
+
|
413
|
+
# The Specs for Schemas for using with list_columns or compact_columns
|
414
|
+
class SpecSchemas
|
415
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
416
|
+
CIDS = 1
|
417
|
+
NAMES = 2
|
418
|
+
PATTERNS = 3
|
419
|
+
|
420
|
+
FIELDS = {
|
421
|
+
# The Column IDs
|
422
|
+
CIDS => {:type => ::Thrift::Types::LIST, :name => 'cids', :element => {:type => ::Thrift::Types::I64}},
|
423
|
+
# The Column Names
|
424
|
+
NAMES => {:type => ::Thrift::Types::LIST, :name => 'names', :element => {:type => ::Thrift::Types::STRING}},
|
425
|
+
# The Schema's selector patterns
|
426
|
+
PATTERNS => {:type => ::Thrift::Types::STRUCT, :name => 'patterns', :class => ::Swcdb::Thrift::Gen::SchemaPatterns}
|
427
|
+
}
|
428
|
+
|
429
|
+
def struct_fields; FIELDS; end
|
430
|
+
|
431
|
+
def validate
|
432
|
+
end
|
433
|
+
|
434
|
+
::Thrift::Struct.generate_accessors self
|
435
|
+
end
|
436
|
+
|
437
|
+
# The Scan Specifications Flags
|
438
|
+
class SpecFlags
|
439
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
440
|
+
LIMIT = 1
|
441
|
+
OFFSET = 2
|
442
|
+
MAX_VERSIONS = 3
|
443
|
+
MAX_BUFFER = 4
|
444
|
+
OPTIONS = 5
|
445
|
+
|
446
|
+
FIELDS = {
|
447
|
+
# Limit to this number of cells
|
448
|
+
LIMIT => {:type => ::Thrift::Types::I64, :name => 'limit', :optional => true},
|
449
|
+
# Scan from this number of cells Offset on matching Cell-Interval
|
450
|
+
OFFSET => {:type => ::Thrift::Types::I64, :name => 'offset', :optional => true},
|
451
|
+
# Select only this number of Versions of a given Cell-Key
|
452
|
+
MAX_VERSIONS => {:type => ::Thrift::Types::I32, :name => 'max_versions', :optional => true},
|
453
|
+
# return results with reach of this Buffer size in bytes
|
454
|
+
MAX_BUFFER => {:type => ::Thrift::Types::I32, :name => 'max_buffer', :optional => true},
|
455
|
+
# The options bit by SpecFlagsOpt
|
456
|
+
OPTIONS => {:type => ::Thrift::Types::BYTE, :name => 'options', :optional => true}
|
457
|
+
}
|
458
|
+
|
459
|
+
def struct_fields; FIELDS; end
|
460
|
+
|
461
|
+
def validate
|
462
|
+
end
|
463
|
+
|
464
|
+
::Thrift::Struct.generate_accessors self
|
465
|
+
end
|
466
|
+
|
467
|
+
# The Fraction Specifications
|
468
|
+
class SpecFraction
|
469
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
470
|
+
COMP = 1
|
471
|
+
F = 2
|
472
|
+
|
473
|
+
FIELDS = {
|
474
|
+
# Logical comparator to Apply
|
475
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
476
|
+
# The binary(bytes) to match against a fraction of a Cell-Key
|
477
|
+
F => {:type => ::Thrift::Types::STRING, :name => 'f', :binary => true}
|
478
|
+
}
|
479
|
+
|
480
|
+
def struct_fields; FIELDS; end
|
481
|
+
|
482
|
+
def validate
|
483
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
484
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
485
|
+
end
|
486
|
+
end
|
487
|
+
|
488
|
+
::Thrift::Struct.generate_accessors self
|
489
|
+
end
|
490
|
+
|
491
|
+
# The Timestamp Specifications
|
492
|
+
class SpecTimestamp
|
493
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
494
|
+
COMP = 1
|
495
|
+
TS = 2
|
496
|
+
|
497
|
+
FIELDS = {
|
498
|
+
# Logical comparator to Apply
|
499
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
500
|
+
# The timestamp in nanoseconds to match against the Cell timestamp/version (not the revision)
|
501
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'}
|
502
|
+
}
|
503
|
+
|
504
|
+
def struct_fields; FIELDS; end
|
505
|
+
|
506
|
+
def validate
|
507
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
508
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
509
|
+
end
|
510
|
+
end
|
511
|
+
|
512
|
+
::Thrift::Struct.generate_accessors self
|
513
|
+
end
|
514
|
+
|
515
|
+
# The Key Interval Specifications
|
516
|
+
class SpecKeyInterval
|
517
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
518
|
+
START = 1
|
519
|
+
FINISH = 2
|
520
|
+
|
521
|
+
FIELDS = {
|
522
|
+
# The Key Start Spec, the start of cells-interval key match
|
523
|
+
START => {:type => ::Thrift::Types::LIST, :name => 'start', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}},
|
524
|
+
# The Key Finish Spec, the finish of cells-interval key match
|
525
|
+
FINISH => {:type => ::Thrift::Types::LIST, :name => 'finish', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}}
|
526
|
+
}
|
527
|
+
|
528
|
+
def struct_fields; FIELDS; end
|
529
|
+
|
530
|
+
def validate
|
531
|
+
end
|
532
|
+
|
533
|
+
::Thrift::Struct.generate_accessors self
|
534
|
+
end
|
535
|
+
|
536
|
+
# The Value Specifications, option to use with Extended Logical Comparators
|
537
|
+
class SpecValue
|
538
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
539
|
+
COMP = 1
|
540
|
+
V = 2
|
541
|
+
|
542
|
+
FIELDS = {
|
543
|
+
# Logical comparator to Apply
|
544
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
545
|
+
# The binary(bytes) to match against the Cell value
|
546
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
547
|
+
}
|
548
|
+
|
549
|
+
def struct_fields; FIELDS; end
|
550
|
+
|
551
|
+
def validate
|
552
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
553
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
557
|
+
::Thrift::Struct.generate_accessors self
|
558
|
+
end
|
559
|
+
|
560
|
+
# The Cells Interval Specifications with interval-scope Flags
|
561
|
+
class SpecInterval
|
562
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
563
|
+
RANGE_BEGIN = 1
|
564
|
+
RANGE_END = 2
|
565
|
+
OFFSET_KEY = 3
|
566
|
+
OFFSET_REV = 4
|
567
|
+
KEY_INTERVALS = 5
|
568
|
+
VALUES = 6
|
569
|
+
TS_START = 7
|
570
|
+
TS_FINISH = 8
|
571
|
+
FLAGS = 9
|
572
|
+
|
573
|
+
FIELDS = {
|
574
|
+
# Begin of Ranges evaluation with this Key inclusive
|
575
|
+
RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
576
|
+
# End of Ranges evaluation with this Key inclusive
|
577
|
+
RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
578
|
+
# Offset Cell Key of a Scan, select cells from this key inclusive
|
579
|
+
OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
580
|
+
# Offset Cell Timestamp of a Scan, select cells after this timestamp
|
581
|
+
OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
|
582
|
+
# The Key Intervals
|
583
|
+
KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
|
584
|
+
# The Cell Value Specifications, cell-value match
|
585
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValue}},
|
586
|
+
# The Timestamp Start Spec, the start of cells-interval timestamp match
|
587
|
+
TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
588
|
+
# The Timestamp Finish Spec, the finish of cells-interval timestamp match
|
589
|
+
TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
590
|
+
# The Interval Flags Specification
|
591
|
+
FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true}
|
592
|
+
}
|
593
|
+
|
594
|
+
def struct_fields; FIELDS; end
|
595
|
+
|
596
|
+
def validate
|
597
|
+
end
|
598
|
+
|
599
|
+
::Thrift::Struct.generate_accessors self
|
600
|
+
end
|
601
|
+
|
602
|
+
# The Column Specifications, the Cells-Intervals(SpecInterval/s) specification for a column
|
603
|
+
class SpecColumn
|
604
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
605
|
+
CID = 1
|
606
|
+
INTERVALS = 2
|
607
|
+
|
608
|
+
FIELDS = {
|
609
|
+
# The Column ID
|
610
|
+
CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
|
611
|
+
# The Cells Interval in a list-container
|
612
|
+
INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecInterval}}
|
613
|
+
}
|
614
|
+
|
615
|
+
def struct_fields; FIELDS; end
|
616
|
+
|
617
|
+
def validate
|
618
|
+
end
|
619
|
+
|
620
|
+
::Thrift::Struct.generate_accessors self
|
621
|
+
end
|
622
|
+
|
623
|
+
# The Specifications of INT64 Serial Value Field
|
624
|
+
class SpecValueSerial_INT64
|
625
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
626
|
+
COMP = 1
|
627
|
+
V = 2
|
628
|
+
|
629
|
+
FIELDS = {
|
630
|
+
# Logical comparator to Apply
|
631
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
632
|
+
# The int64 to match against the value field
|
633
|
+
V => {:type => ::Thrift::Types::I64, :name => 'v'}
|
634
|
+
}
|
635
|
+
|
636
|
+
def struct_fields; FIELDS; end
|
637
|
+
|
638
|
+
def validate
|
639
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
640
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
::Thrift::Struct.generate_accessors self
|
645
|
+
end
|
646
|
+
|
647
|
+
# The Specifications of DOUBLE Serial Value Field
|
648
|
+
class SpecValueSerial_DOUBLE
|
649
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
650
|
+
COMP = 1
|
651
|
+
V = 2
|
652
|
+
|
653
|
+
FIELDS = {
|
654
|
+
# Logical comparator to Apply
|
655
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
656
|
+
# The double to match against the value field
|
657
|
+
V => {:type => ::Thrift::Types::DOUBLE, :name => 'v'}
|
658
|
+
}
|
659
|
+
|
660
|
+
def struct_fields; FIELDS; end
|
661
|
+
|
662
|
+
def validate
|
663
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
664
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
665
|
+
end
|
666
|
+
end
|
667
|
+
|
668
|
+
::Thrift::Struct.generate_accessors self
|
669
|
+
end
|
670
|
+
|
671
|
+
# The Specifications of BYTES Serial Value Field
|
672
|
+
class SpecValueSerial_BYTES
|
673
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
674
|
+
COMP = 1
|
675
|
+
V = 2
|
676
|
+
|
677
|
+
FIELDS = {
|
678
|
+
# Logical comparator to Apply
|
679
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
680
|
+
# The binary(bytes) to match against the value field
|
681
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
682
|
+
}
|
683
|
+
|
684
|
+
def struct_fields; FIELDS; end
|
685
|
+
|
686
|
+
def validate
|
687
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
688
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
692
|
+
::Thrift::Struct.generate_accessors self
|
693
|
+
end
|
694
|
+
|
695
|
+
# The Specifications of KEY Serial Value Field
|
696
|
+
class SpecValueSerial_KEY
|
697
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
698
|
+
SEQ = 1
|
699
|
+
V = 2
|
700
|
+
|
701
|
+
FIELDS = {
|
702
|
+
# The Key Sequence to use
|
703
|
+
SEQ => {:type => ::Thrift::Types::I32, :name => 'seq', :enum_class => ::Swcdb::Thrift::Gen::KeySeq},
|
704
|
+
# The Specification of the Key to match against the value field
|
705
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecFraction}}
|
706
|
+
}
|
707
|
+
|
708
|
+
def struct_fields; FIELDS; end
|
709
|
+
|
710
|
+
def validate
|
711
|
+
unless @seq.nil? || ::Swcdb::Thrift::Gen::KeySeq::VALID_VALUES.include?(@seq)
|
712
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field seq!')
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
::Thrift::Struct.generate_accessors self
|
717
|
+
end
|
718
|
+
|
719
|
+
# The Specifications of LIST_INT64(LI) Serial Value Field
|
720
|
+
class SpecValueSerial_LI
|
721
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
722
|
+
COMP = 1
|
723
|
+
V = 2
|
724
|
+
|
725
|
+
FIELDS = {
|
726
|
+
# Logical comparator to Apply
|
727
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
728
|
+
# The List of Int64 to match against the value field
|
729
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerial_INT64}}
|
730
|
+
}
|
731
|
+
|
732
|
+
def struct_fields; FIELDS; end
|
733
|
+
|
734
|
+
def validate
|
735
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
736
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
::Thrift::Struct.generate_accessors self
|
741
|
+
end
|
742
|
+
|
743
|
+
# The Specifications of LIST_BYTES(LB) Serial Value Field
|
744
|
+
class SpecValueSerial_LB
|
745
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
746
|
+
COMP = 1
|
747
|
+
V = 2
|
748
|
+
|
749
|
+
FIELDS = {
|
750
|
+
# Logical comparator to Apply
|
751
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
752
|
+
# The List of Bytes to match against the value field
|
753
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerial_BYTES}}
|
754
|
+
}
|
755
|
+
|
756
|
+
def struct_fields; FIELDS; end
|
757
|
+
|
758
|
+
def validate
|
759
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
760
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
::Thrift::Struct.generate_accessors self
|
765
|
+
end
|
766
|
+
|
767
|
+
class SpecValueSerialField
|
768
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
769
|
+
FIELD_ID = 1
|
770
|
+
SPEC_INT64 = 2
|
771
|
+
SPEC_DOUBLE = 3
|
772
|
+
SPEC_BYTES = 4
|
773
|
+
SPEC_KEY = 5
|
774
|
+
SPEC_LI = 6
|
775
|
+
SPEC_LB = 7
|
776
|
+
|
777
|
+
FIELDS = {
|
778
|
+
# The Field Id of the Value Field
|
779
|
+
FIELD_ID => {:type => ::Thrift::Types::I32, :name => 'field_id'},
|
780
|
+
# The specifications of Int64 for the field
|
781
|
+
SPEC_INT64 => {:type => ::Thrift::Types::STRUCT, :name => 'spec_int64', :class => ::Swcdb::Thrift::Gen::SpecValueSerial_INT64, :optional => true},
|
782
|
+
# The specifications of Double for the field
|
783
|
+
SPEC_DOUBLE => {:type => ::Thrift::Types::STRUCT, :name => 'spec_double', :class => ::Swcdb::Thrift::Gen::SpecValueSerial_DOUBLE, :optional => true},
|
784
|
+
# The specifications of Bytes for the field
|
785
|
+
SPEC_BYTES => {:type => ::Thrift::Types::STRUCT, :name => 'spec_bytes', :class => ::Swcdb::Thrift::Gen::SpecValueSerial_BYTES},
|
786
|
+
# The specifications of Cell-Key for the field
|
787
|
+
SPEC_KEY => {:type => ::Thrift::Types::STRUCT, :name => 'spec_key', :class => ::Swcdb::Thrift::Gen::SpecValueSerial_KEY},
|
788
|
+
# The specifications of List Int64 for the field
|
789
|
+
SPEC_LI => {:type => ::Thrift::Types::STRUCT, :name => 'spec_li', :class => ::Swcdb::Thrift::Gen::SpecValueSerial_LI},
|
790
|
+
# The specifications of List Bytes for the field
|
791
|
+
SPEC_LB => {:type => ::Thrift::Types::STRUCT, :name => 'spec_lb', :class => ::Swcdb::Thrift::Gen::SpecValueSerial_LB}
|
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
|
+
# The Serial Value Specifications
|
803
|
+
class SpecValueSerial
|
804
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
805
|
+
COMP = 1
|
806
|
+
FIELDS = 2
|
807
|
+
|
808
|
+
FIELDS = {
|
809
|
+
# Logical comparator to Apply
|
810
|
+
COMP => {:type => ::Thrift::Types::I32, :name => 'comp', :enum_class => ::Swcdb::Thrift::Gen::Comp},
|
811
|
+
# The Serial Value Specifications to match against the SERIAL Cell value fields
|
812
|
+
FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerialField}}
|
813
|
+
}
|
814
|
+
|
815
|
+
def struct_fields; FIELDS; end
|
816
|
+
|
817
|
+
def validate
|
818
|
+
unless @comp.nil? || ::Swcdb::Thrift::Gen::Comp::VALID_VALUES.include?(@comp)
|
819
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field comp!')
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
823
|
+
::Thrift::Struct.generate_accessors self
|
824
|
+
end
|
825
|
+
|
826
|
+
# The Serial Value Cells Interval Specifications with interval-scope Flags
|
827
|
+
class SpecIntervalSerial
|
828
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
829
|
+
RANGE_BEGIN = 1
|
830
|
+
RANGE_END = 2
|
831
|
+
OFFSET_KEY = 3
|
832
|
+
OFFSET_REV = 4
|
833
|
+
KEY_INTERVALS = 5
|
834
|
+
VALUES = 6
|
835
|
+
TS_START = 7
|
836
|
+
TS_FINISH = 8
|
837
|
+
FLAGS = 9
|
838
|
+
|
839
|
+
FIELDS = {
|
840
|
+
# Begin of Ranges evaluation with this Key inclusive
|
841
|
+
RANGE_BEGIN => {:type => ::Thrift::Types::LIST, :name => 'range_begin', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
842
|
+
# End of Ranges evaluation with this Key inclusive
|
843
|
+
RANGE_END => {:type => ::Thrift::Types::LIST, :name => 'range_end', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
844
|
+
# Offset Cell Key of a Scan, select cells from this key inclusive
|
845
|
+
OFFSET_KEY => {:type => ::Thrift::Types::LIST, :name => 'offset_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
846
|
+
# Offset Cell Timestamp of a Scan, select cells after this timestamp
|
847
|
+
OFFSET_REV => {:type => ::Thrift::Types::I64, :name => 'offset_rev', :optional => true},
|
848
|
+
# The Key Intervals
|
849
|
+
KEY_INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'key_intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecKeyInterval}},
|
850
|
+
# The Serial Cell Value Specifications, cell-value fields match
|
851
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecValueSerial}},
|
852
|
+
# The Timestamp Start Spec, the start of cells-interval timestamp match
|
853
|
+
TS_START => {:type => ::Thrift::Types::STRUCT, :name => 'ts_start', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
854
|
+
# The Timestamp Finish Spec, the finish of cells-interval timestamp match
|
855
|
+
TS_FINISH => {:type => ::Thrift::Types::STRUCT, :name => 'ts_finish', :class => ::Swcdb::Thrift::Gen::SpecTimestamp, :optional => true},
|
856
|
+
# The Interval Flags Specification
|
857
|
+
FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true}
|
858
|
+
}
|
859
|
+
|
860
|
+
def struct_fields; FIELDS; end
|
861
|
+
|
862
|
+
def validate
|
863
|
+
end
|
864
|
+
|
865
|
+
::Thrift::Struct.generate_accessors self
|
866
|
+
end
|
867
|
+
|
868
|
+
# The Column Specifications, the Cells-Intervals(SpecInterval/s) specification for a SERIAL Type Column
|
869
|
+
class SpecColumnSerial
|
870
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
871
|
+
CID = 1
|
872
|
+
INTERVALS = 2
|
873
|
+
|
874
|
+
FIELDS = {
|
875
|
+
# The Column ID
|
876
|
+
CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
|
877
|
+
# The Serial Cells Interval in a list-container
|
878
|
+
INTERVALS => {:type => ::Thrift::Types::LIST, :name => 'intervals', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecIntervalSerial}}
|
879
|
+
}
|
880
|
+
|
881
|
+
def struct_fields; FIELDS; end
|
882
|
+
|
883
|
+
def validate
|
884
|
+
end
|
885
|
+
|
886
|
+
::Thrift::Struct.generate_accessors self
|
887
|
+
end
|
888
|
+
|
889
|
+
# The Scan Specifications, the Columns-Intervals(SpecColumn/s) with global-scope Flags
|
890
|
+
class SpecScan
|
891
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
892
|
+
COLUMNS = 1
|
893
|
+
COLUMNS_SERIAL = 2
|
894
|
+
FLAGS = 3
|
895
|
+
|
896
|
+
FIELDS = {
|
897
|
+
# The Column Intervals(SpecColumn) in a list-container
|
898
|
+
COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumn}},
|
899
|
+
# The Serial Column Intervals(SpecColumnSerial) in a list-container
|
900
|
+
COLUMNS_SERIAL => {:type => ::Thrift::Types::LIST, :name => 'columns_serial', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::SpecColumnSerial}},
|
901
|
+
# The Global Flags Specification
|
902
|
+
FLAGS => {:type => ::Thrift::Types::STRUCT, :name => 'flags', :class => ::Swcdb::Thrift::Gen::SpecFlags, :optional => true}
|
903
|
+
}
|
904
|
+
|
905
|
+
def struct_fields; FIELDS; end
|
906
|
+
|
907
|
+
def validate
|
908
|
+
end
|
909
|
+
|
910
|
+
::Thrift::Struct.generate_accessors self
|
911
|
+
end
|
912
|
+
|
913
|
+
# The Cell data for using with Update
|
914
|
+
class UCell
|
915
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
916
|
+
F = 1
|
917
|
+
K = 2
|
918
|
+
TS = 3
|
919
|
+
TS_DESC = 4
|
920
|
+
V = 5
|
921
|
+
ENCODER = 6
|
922
|
+
|
923
|
+
FIELDS = {
|
924
|
+
# The Cell Flag
|
925
|
+
F => {:type => ::Thrift::Types::I32, :name => 'f', :enum_class => ::Swcdb::Thrift::Gen::Flag},
|
926
|
+
# The Cell Key
|
927
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
928
|
+
# The Cell Timestamp in nanoseconds
|
929
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
|
930
|
+
# The Cell Version is in timestamp descending
|
931
|
+
TS_DESC => {:type => ::Thrift::Types::BOOL, :name => 'ts_desc', :optional => true},
|
932
|
+
# The Cell Value
|
933
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true},
|
934
|
+
# Optionally the Cell Value Encoding Type: ZLIB/SNAPPY/ZSTD
|
935
|
+
ENCODER => {:type => ::Thrift::Types::I32, :name => 'encoder', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::EncodingType}
|
936
|
+
}
|
937
|
+
|
938
|
+
def struct_fields; FIELDS; end
|
939
|
+
|
940
|
+
def validate
|
941
|
+
unless @f.nil? || ::Swcdb::Thrift::Gen::Flag::VALID_VALUES.include?(@f)
|
942
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field f!')
|
943
|
+
end
|
944
|
+
unless @encoder.nil? || ::Swcdb::Thrift::Gen::EncodingType::VALID_VALUES.include?(@encoder)
|
945
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field encoder!')
|
946
|
+
end
|
947
|
+
end
|
948
|
+
|
949
|
+
::Thrift::Struct.generate_accessors self
|
950
|
+
end
|
951
|
+
|
952
|
+
# The Serial Value Cell field
|
953
|
+
class CellValueSerial
|
954
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
955
|
+
FIELD_ID = 1
|
956
|
+
V_INT64 = 2
|
957
|
+
V_DOUBLE = 3
|
958
|
+
V_BYTES = 4
|
959
|
+
V_KEY = 5
|
960
|
+
V_LI = 6
|
961
|
+
V_LB = 7
|
962
|
+
|
963
|
+
FIELDS = {
|
964
|
+
# The Field ID, a single ID can have any/all the field types
|
965
|
+
FIELD_ID => {:type => ::Thrift::Types::I32, :name => 'field_id'},
|
966
|
+
# The INT64 type field
|
967
|
+
V_INT64 => {:type => ::Thrift::Types::I64, :name => 'v_int64', :optional => true},
|
968
|
+
# The DOUBLE type field
|
969
|
+
V_DOUBLE => {:type => ::Thrift::Types::DOUBLE, :name => 'v_double', :optional => true},
|
970
|
+
# The BYTES type field
|
971
|
+
V_BYTES => {:type => ::Thrift::Types::STRING, :name => 'v_bytes', :binary => true},
|
972
|
+
# The Cell KEY type field
|
973
|
+
V_KEY => {:type => ::Thrift::Types::LIST, :name => 'v_key', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
974
|
+
# The LIST INT64 type field
|
975
|
+
V_LI => {:type => ::Thrift::Types::LIST, :name => 'v_li', :element => {:type => ::Thrift::Types::I64}},
|
976
|
+
# The LIST BYTES type field
|
977
|
+
V_LB => {:type => ::Thrift::Types::LIST, :name => 'v_lb', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
|
978
|
+
}
|
979
|
+
|
980
|
+
def struct_fields; FIELDS; end
|
981
|
+
|
982
|
+
def validate
|
983
|
+
end
|
984
|
+
|
985
|
+
::Thrift::Struct.generate_accessors self
|
986
|
+
end
|
987
|
+
|
988
|
+
# The Cell data for using with Update of SERIAL Column Type
|
989
|
+
class UCellSerial
|
990
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
991
|
+
F = 1
|
992
|
+
K = 2
|
993
|
+
TS = 3
|
994
|
+
TS_DESC = 4
|
995
|
+
V = 5
|
996
|
+
ENCODER = 6
|
997
|
+
|
998
|
+
FIELDS = {
|
999
|
+
# The Cell Flag
|
1000
|
+
F => {:type => ::Thrift::Types::I32, :name => 'f', :enum_class => ::Swcdb::Thrift::Gen::Flag},
|
1001
|
+
# The Cell Key
|
1002
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1003
|
+
# The Cell Timestamp in nanoseconds
|
1004
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts', :optional => true},
|
1005
|
+
# The Cell Version is in timestamp descending
|
1006
|
+
TS_DESC => {:type => ::Thrift::Types::BOOL, :name => 'ts_desc', :optional => true},
|
1007
|
+
# The Serial Cell Value fields
|
1008
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellValueSerial}},
|
1009
|
+
# Optionally the Cell Value Encoding Type: ZLIB/SNAPPY/ZSTD
|
1010
|
+
ENCODER => {:type => ::Thrift::Types::I32, :name => 'encoder', :optional => true, :enum_class => ::Swcdb::Thrift::Gen::EncodingType}
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
def struct_fields; FIELDS; end
|
1014
|
+
|
1015
|
+
def validate
|
1016
|
+
unless @f.nil? || ::Swcdb::Thrift::Gen::Flag::VALID_VALUES.include?(@f)
|
1017
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field f!')
|
1018
|
+
end
|
1019
|
+
unless @encoder.nil? || ::Swcdb::Thrift::Gen::EncodingType::VALID_VALUES.include?(@encoder)
|
1020
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field encoder!')
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
::Thrift::Struct.generate_accessors self
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# The Cell for results list of scan
|
1028
|
+
class Cell
|
1029
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1030
|
+
C = 1
|
1031
|
+
K = 2
|
1032
|
+
TS = 3
|
1033
|
+
V = 4
|
1034
|
+
|
1035
|
+
FIELDS = {
|
1036
|
+
# The Column Name
|
1037
|
+
C => {:type => ::Thrift::Types::STRING, :name => 'c'},
|
1038
|
+
# The Cell Key
|
1039
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1040
|
+
# The Cell Timestamp
|
1041
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1042
|
+
# The Cell Value
|
1043
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
def struct_fields; FIELDS; end
|
1047
|
+
|
1048
|
+
def validate
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
::Thrift::Struct.generate_accessors self
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# The Serial Cell for results list of scan
|
1055
|
+
class CellSerial
|
1056
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1057
|
+
C = 1
|
1058
|
+
K = 2
|
1059
|
+
TS = 3
|
1060
|
+
V = 4
|
1061
|
+
|
1062
|
+
FIELDS = {
|
1063
|
+
# The Column Name
|
1064
|
+
C => {:type => ::Thrift::Types::STRING, :name => 'c'},
|
1065
|
+
# The Cell Key
|
1066
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1067
|
+
# The Cell Timestamp
|
1068
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1069
|
+
# The Cell Serial Value
|
1070
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellValueSerial}}
|
1071
|
+
}
|
1072
|
+
|
1073
|
+
def struct_fields; FIELDS; end
|
1074
|
+
|
1075
|
+
def validate
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
::Thrift::Struct.generate_accessors self
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# The Cells for results list of scan
|
1082
|
+
class Cells
|
1083
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1084
|
+
CELLS = 1
|
1085
|
+
SERIAL_CELLS = 2
|
1086
|
+
|
1087
|
+
FIELDS = {
|
1088
|
+
# The Cells, defined as Cell items in a list-container
|
1089
|
+
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::Cell}},
|
1090
|
+
# The Serial Cells, defined as CellSerial items in a list-container
|
1091
|
+
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellSerial}}
|
1092
|
+
}
|
1093
|
+
|
1094
|
+
def struct_fields; FIELDS; end
|
1095
|
+
|
1096
|
+
def validate
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
::Thrift::Struct.generate_accessors self
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
# The Column Cell for results on Columns of scan
|
1103
|
+
class CCell
|
1104
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1105
|
+
K = 1
|
1106
|
+
TS = 2
|
1107
|
+
V = 3
|
1108
|
+
|
1109
|
+
FIELDS = {
|
1110
|
+
# The Cell Key
|
1111
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1112
|
+
# The Cell Timestamp
|
1113
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1114
|
+
# The Cell Value
|
1115
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
def struct_fields; FIELDS; end
|
1119
|
+
|
1120
|
+
def validate
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
::Thrift::Struct.generate_accessors self
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# The Column Serial Cell for results on Columns of scan
|
1127
|
+
class CCellSerial
|
1128
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1129
|
+
K = 1
|
1130
|
+
TS = 2
|
1131
|
+
V = 3
|
1132
|
+
|
1133
|
+
FIELDS = {
|
1134
|
+
# The Cell Key
|
1135
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1136
|
+
# The Cell Timestamp
|
1137
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1138
|
+
# The Cell Serial Value
|
1139
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellValueSerial}}
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
def struct_fields; FIELDS; end
|
1143
|
+
|
1144
|
+
def validate
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
::Thrift::Struct.generate_accessors self
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# The Column Cells for results on Columns of scan
|
1151
|
+
class ColCells
|
1152
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1153
|
+
CELLS = 1
|
1154
|
+
SERIAL_CELLS = 2
|
1155
|
+
|
1156
|
+
FIELDS = {
|
1157
|
+
# The Cells, defined as CCell items in a list-container
|
1158
|
+
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCell}},
|
1159
|
+
# The Serial Cells, defined as CCellSerial items in a list-container
|
1160
|
+
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CCellSerial}}
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
def struct_fields; FIELDS; end
|
1164
|
+
|
1165
|
+
def validate
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
::Thrift::Struct.generate_accessors self
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
# The Key Cell for results on Key of scan
|
1172
|
+
class KCell
|
1173
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1174
|
+
C = 1
|
1175
|
+
TS = 2
|
1176
|
+
V = 3
|
1177
|
+
|
1178
|
+
FIELDS = {
|
1179
|
+
# The Column Name
|
1180
|
+
C => {:type => ::Thrift::Types::STRING, :name => 'c'},
|
1181
|
+
# The Cell Timestamp
|
1182
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1183
|
+
# The Cell Value
|
1184
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
1185
|
+
}
|
1186
|
+
|
1187
|
+
def struct_fields; FIELDS; end
|
1188
|
+
|
1189
|
+
def validate
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
::Thrift::Struct.generate_accessors self
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# The Key Serial Cell for results on Key of scan
|
1196
|
+
class KCellSerial
|
1197
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1198
|
+
C = 1
|
1199
|
+
TS = 2
|
1200
|
+
V = 3
|
1201
|
+
|
1202
|
+
FIELDS = {
|
1203
|
+
# The Column Name
|
1204
|
+
C => {:type => ::Thrift::Types::STRING, :name => 'c'},
|
1205
|
+
# The Cell Timestamp
|
1206
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1207
|
+
# The Cell Serial Value
|
1208
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellValueSerial}}
|
1209
|
+
}
|
1210
|
+
|
1211
|
+
def struct_fields; FIELDS; end
|
1212
|
+
|
1213
|
+
def validate
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
::Thrift::Struct.generate_accessors self
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
# The Key Cells for results on Key of scan
|
1220
|
+
class KCells
|
1221
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1222
|
+
K = 1
|
1223
|
+
CELLS = 2
|
1224
|
+
SERIAL_CELLS = 3
|
1225
|
+
|
1226
|
+
FIELDS = {
|
1227
|
+
# The Cell Key
|
1228
|
+
K => {:type => ::Thrift::Types::LIST, :name => 'k', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1229
|
+
# The Key's Cells, defined as KCell items in a list-container
|
1230
|
+
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCell}},
|
1231
|
+
# The Key's Serial Cells, defined as KCellSerial items in a list-container
|
1232
|
+
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCellSerial}}
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
def struct_fields; FIELDS; end
|
1236
|
+
|
1237
|
+
def validate
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
::Thrift::Struct.generate_accessors self
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# The Fraction Cell for results on Fraction of scan
|
1244
|
+
class FCell
|
1245
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1246
|
+
C = 1
|
1247
|
+
TS = 2
|
1248
|
+
V = 3
|
1249
|
+
|
1250
|
+
FIELDS = {
|
1251
|
+
# The Column Name
|
1252
|
+
C => {:type => ::Thrift::Types::STRING, :name => 'c'},
|
1253
|
+
# The Cell Timestamp
|
1254
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1255
|
+
# The Cell Value
|
1256
|
+
V => {:type => ::Thrift::Types::STRING, :name => 'v', :binary => true}
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
def struct_fields; FIELDS; end
|
1260
|
+
|
1261
|
+
def validate
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
::Thrift::Struct.generate_accessors self
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
# The Fraction Serial Cell for results on Fraction of scan
|
1268
|
+
class FCellSerial
|
1269
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1270
|
+
C = 1
|
1271
|
+
TS = 2
|
1272
|
+
V = 3
|
1273
|
+
|
1274
|
+
FIELDS = {
|
1275
|
+
# The Column Name
|
1276
|
+
C => {:type => ::Thrift::Types::STRING, :name => 'c'},
|
1277
|
+
# The Cell Timestamp
|
1278
|
+
TS => {:type => ::Thrift::Types::I64, :name => 'ts'},
|
1279
|
+
# The Cell Serial Value
|
1280
|
+
V => {:type => ::Thrift::Types::LIST, :name => 'v', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CellValueSerial}}
|
1281
|
+
}
|
1282
|
+
|
1283
|
+
def struct_fields; FIELDS; end
|
1284
|
+
|
1285
|
+
def validate
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
::Thrift::Struct.generate_accessors self
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# The Fraction Cells for results on Fraction of scan
|
1292
|
+
class FCells
|
1293
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1294
|
+
F = 1
|
1295
|
+
CELLS = 2
|
1296
|
+
SERIAL_CELLS = 3
|
1297
|
+
|
1298
|
+
FIELDS = {
|
1299
|
+
# The Fraction Container for the Next Fractions Tree, defined as FCells items in a map-container by current Fraction bytes
|
1300
|
+
F => {:type => ::Thrift::Types::MAP, :name => 'f', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCells}},
|
1301
|
+
# The current Fraction's Cells, defined as FCell items in a list-container
|
1302
|
+
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCell}},
|
1303
|
+
# The current Fraction's Serial Cells, defined as FCellSerial items in a list-container
|
1304
|
+
SERIAL_CELLS => {:type => ::Thrift::Types::LIST, :name => 'serial_cells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::FCellSerial}}
|
1305
|
+
}
|
1306
|
+
|
1307
|
+
def struct_fields; FIELDS; end
|
1308
|
+
|
1309
|
+
def validate
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
::Thrift::Struct.generate_accessors self
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
# A Grouped Cells result for results of scan, determined by the request's CellsResult enum
|
1316
|
+
class CellsGroup
|
1317
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1318
|
+
CELLS = 1
|
1319
|
+
CCELLS = 2
|
1320
|
+
KCELLS = 3
|
1321
|
+
FCELLS = 4
|
1322
|
+
|
1323
|
+
FIELDS = {
|
1324
|
+
# The Cells in a list, defined as Cell items in a list-container
|
1325
|
+
CELLS => {:type => ::Thrift::Types::STRUCT, :name => 'cells', :class => ::Swcdb::Thrift::Gen::Cells},
|
1326
|
+
# The Columns Cells in a map-container, defined as ColCells items by Column Name
|
1327
|
+
CCELLS => {:type => ::Thrift::Types::MAP, :name => 'ccells', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::ColCells}},
|
1328
|
+
# The Keys Cells in a list, defined as kCells items in a list-container
|
1329
|
+
KCELLS => {:type => ::Thrift::Types::LIST, :name => 'kcells', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::KCells}},
|
1330
|
+
# The Fraction Cells in struct FCells
|
1331
|
+
FCELLS => {:type => ::Thrift::Types::STRUCT, :name => 'fcells', :class => ::Swcdb::Thrift::Gen::FCells}
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
def struct_fields; FIELDS; end
|
1335
|
+
|
1336
|
+
def validate
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
::Thrift::Struct.generate_accessors self
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
# The Compact Result
|
1343
|
+
class CompactResult
|
1344
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1345
|
+
CID = 1
|
1346
|
+
ERR = 2
|
1347
|
+
|
1348
|
+
FIELDS = {
|
1349
|
+
# Column ID
|
1350
|
+
CID => {:type => ::Thrift::Types::I64, :name => 'cid'},
|
1351
|
+
# Error
|
1352
|
+
ERR => {:type => ::Thrift::Types::I32, :name => 'err'}
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
def struct_fields; FIELDS; end
|
1356
|
+
|
1357
|
+
def validate
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
::Thrift::Struct.generate_accessors self
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
# The Result of 'exec_sql'
|
1364
|
+
class Result
|
1365
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1366
|
+
SCHEMAS = 1
|
1367
|
+
CELLS = 2
|
1368
|
+
COMPACT = 3
|
1369
|
+
|
1370
|
+
FIELDS = {
|
1371
|
+
# Set with result for 'list columns' query
|
1372
|
+
SCHEMAS => {:type => ::Thrift::Types::LIST, :name => 'schemas', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::Schema}},
|
1373
|
+
# Set with result for 'select' query
|
1374
|
+
CELLS => {:type => ::Thrift::Types::STRUCT, :name => 'cells', :class => ::Swcdb::Thrift::Gen::Cells},
|
1375
|
+
# Set with result for 'compact columns' query
|
1376
|
+
COMPACT => {:type => ::Thrift::Types::LIST, :name => 'compact', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Swcdb::Thrift::Gen::CompactResult}}
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
def struct_fields; FIELDS; end
|
1380
|
+
|
1381
|
+
def validate
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
::Thrift::Struct.generate_accessors self
|
1385
|
+
end
|
1386
|
+
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
end
|