active_blur 0.1.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.
@@ -0,0 +1,10 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.7.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'blur_types'
8
+
9
+ module Blur
10
+ end
@@ -0,0 +1,641 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.7.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+
8
+ module Blur
9
+ module ScoreType
10
+ # During a multi Record match, a calculation of the best match
11
+ # Record plus how often it occurs within the match Row produces
12
+ # the score that is used in the scoring of the SuperQuery.
13
+ SUPER = 0
14
+ # During a multi Record match, the aggregate score of all the
15
+ # Records within a ColumnFamily is used in the scoring of the
16
+ # SuperQuery.
17
+ AGGREGATE = 1
18
+ # During a multi Record match, the best score of all the
19
+ # Records within a ColumnFamily is used in the scoring of the
20
+ # SuperQuery.
21
+ BEST = 2
22
+ # A constant score of 1 is used in the scoring of the SuperQuery.
23
+ CONSTANT = 3
24
+ VALUE_MAP = {0 => "SUPER", 1 => "AGGREGATE", 2 => "BEST", 3 => "CONSTANT"}
25
+ VALID_VALUES = Set.new([SUPER, AGGREGATE, BEST, CONSTANT]).freeze
26
+ end
27
+
28
+ module QueryState
29
+ # Query is running.
30
+ RUNNING = 0
31
+ # Query has been interrupted.
32
+ INTERRUPTED = 1
33
+ # Query is complete.
34
+ COMPLETE = 2
35
+ VALUE_MAP = {0 => "RUNNING", 1 => "INTERRUPTED", 2 => "COMPLETE"}
36
+ VALID_VALUES = Set.new([RUNNING, INTERRUPTED, COMPLETE]).freeze
37
+ end
38
+
39
+ module RowMutationType
40
+ # Indicates that the entire Row is to be deleted.
41
+ DELETE_ROW = 0
42
+ # Indicates that the entire Row is to be deleted, and then a new
43
+ # Row with the same id is to be added.
44
+ REPLACE_ROW = 1
45
+ # Indicates that mutations of the underlying Records will be
46
+ # processed individually.
47
+ UPDATE_ROW = 2
48
+ VALUE_MAP = {0 => "DELETE_ROW", 1 => "REPLACE_ROW", 2 => "UPDATE_ROW"}
49
+ VALID_VALUES = Set.new([DELETE_ROW, REPLACE_ROW, UPDATE_ROW]).freeze
50
+ end
51
+
52
+ module RecordMutationType
53
+ # Indicates the Record with the given recordId in the given Row
54
+ # is to be deleted.
55
+ DELETE_ENTIRE_RECORD = 0
56
+ # Indicates the Record with the given recordId in the given Row
57
+ # is to be deleted, and a new Record with the same id is to be added.
58
+ REPLACE_ENTIRE_RECORD = 1
59
+ # Replace the columns that are specified in the Record mutation.
60
+ REPLACE_COLUMNS = 2
61
+ # Append the columns in the Record mutation to the Record that
62
+ # could already exist.
63
+ APPEND_COLUMN_VALUES = 3
64
+ VALUE_MAP = {0 => "DELETE_ENTIRE_RECORD", 1 => "REPLACE_ENTIRE_RECORD", 2 => "REPLACE_COLUMNS", 3 => "APPEND_COLUMN_VALUES"}
65
+ VALID_VALUES = Set.new([DELETE_ENTIRE_RECORD, REPLACE_ENTIRE_RECORD, REPLACE_COLUMNS, APPEND_COLUMN_VALUES]).freeze
66
+ end
67
+
68
+ # BlurException that carries a message plus the original stack
69
+ # trace (if any).
70
+ class BlurException < ::Thrift::Exception
71
+ include ::Thrift::Struct, ::Thrift::Struct_Union
72
+ MESSAGE = 1
73
+ STACKTRACESTR = 2
74
+
75
+ FIELDS = {
76
+ # The message in the exception.
77
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'},
78
+ # The original stack trace (if any).
79
+ STACKTRACESTR => {:type => ::Thrift::Types::STRING, :name => 'stackTraceStr'}
80
+ }
81
+
82
+ def struct_fields; FIELDS; end
83
+
84
+ def validate
85
+ end
86
+
87
+ ::Thrift::Struct.generate_accessors self
88
+ end
89
+
90
+ # Column is the lowest storage element in Blur, it stores a single name and value pair.
91
+ class Column
92
+ include ::Thrift::Struct, ::Thrift::Struct_Union
93
+ NAME = 1
94
+ VALUE = 2
95
+
96
+ FIELDS = {
97
+ # The name of the column.
98
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
99
+ # The value to be indexed and stored.
100
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
101
+ }
102
+
103
+ def struct_fields; FIELDS; end
104
+
105
+ def validate
106
+ end
107
+
108
+ ::Thrift::Struct.generate_accessors self
109
+ end
110
+
111
+ # Records contain a list of columns, multiple columns with the same name are allowed.
112
+ class Record
113
+ include ::Thrift::Struct, ::Thrift::Struct_Union
114
+ RECORDID = 1
115
+ FAMILY = 2
116
+ COLUMNS = 3
117
+
118
+ FIELDS = {
119
+ # Record id uniquely identifies a record within a single row.
120
+ RECORDID => {:type => ::Thrift::Types::STRING, :name => 'recordId'},
121
+ # The family in which this record resides.
122
+ FAMILY => {:type => ::Thrift::Types::STRING, :name => 'family'},
123
+ # A list of columns, multiple columns with the same name are allowed.
124
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::Column}}
125
+ }
126
+
127
+ def struct_fields; FIELDS; end
128
+
129
+ def validate
130
+ end
131
+
132
+ ::Thrift::Struct.generate_accessors self
133
+ end
134
+
135
+ # Rows contain a list of records.
136
+ class Row
137
+ include ::Thrift::Struct, ::Thrift::Struct_Union
138
+ ID = 1
139
+ RECORDS = 2
140
+ RECORDCOUNT = 3
141
+
142
+ FIELDS = {
143
+ # The row id.
144
+ ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
145
+ # The list records within the row. If paging is used this list will only
146
+ # reflect the paged records from the selector.
147
+ RECORDS => {:type => ::Thrift::Types::LIST, :name => 'records', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::Record}},
148
+ # The total record count for the row. If paging is used in a selector to page
149
+ # through records of a row, this count will reflect the entire row.
150
+ RECORDCOUNT => {:type => ::Thrift::Types::I32, :name => 'recordCount'}
151
+ }
152
+
153
+ def struct_fields; FIELDS; end
154
+
155
+ def validate
156
+ end
157
+
158
+ ::Thrift::Struct.generate_accessors self
159
+ end
160
+
161
+ class Selector
162
+ include ::Thrift::Struct, ::Thrift::Struct_Union
163
+ RECORDONLY = 1
164
+ LOCATIONID = 2
165
+ ROWID = 3
166
+ RECORDID = 4
167
+ COLUMNFAMILIESTOFETCH = 5
168
+ COLUMNSTOFETCH = 6
169
+ ALLOWSTALEDATA = 7
170
+
171
+ FIELDS = {
172
+ RECORDONLY => {:type => ::Thrift::Types::BOOL, :name => 'recordOnly'},
173
+ LOCATIONID => {:type => ::Thrift::Types::STRING, :name => 'locationId'},
174
+ ROWID => {:type => ::Thrift::Types::STRING, :name => 'rowId'},
175
+ RECORDID => {:type => ::Thrift::Types::STRING, :name => 'recordId'},
176
+ COLUMNFAMILIESTOFETCH => {:type => ::Thrift::Types::SET, :name => 'columnFamiliesToFetch', :element => {:type => ::Thrift::Types::STRING}},
177
+ COLUMNSTOFETCH => {:type => ::Thrift::Types::MAP, :name => 'columnsToFetch', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::SET, :element => {:type => ::Thrift::Types::STRING}}},
178
+ ALLOWSTALEDATA => {:type => ::Thrift::Types::BOOL, :name => 'allowStaleData'}
179
+ }
180
+
181
+ def struct_fields; FIELDS; end
182
+
183
+ def validate
184
+ end
185
+
186
+ ::Thrift::Struct.generate_accessors self
187
+ end
188
+
189
+ class FetchRowResult
190
+ include ::Thrift::Struct, ::Thrift::Struct_Union
191
+ ROW = 1
192
+
193
+ FIELDS = {
194
+ ROW => {:type => ::Thrift::Types::STRUCT, :name => 'row', :class => ::Blur::Row}
195
+ }
196
+
197
+ def struct_fields; FIELDS; end
198
+
199
+ def validate
200
+ end
201
+
202
+ ::Thrift::Struct.generate_accessors self
203
+ end
204
+
205
+ class FetchRecordResult
206
+ include ::Thrift::Struct, ::Thrift::Struct_Union
207
+ ROWID = 1
208
+ RECORD = 2
209
+
210
+ FIELDS = {
211
+ ROWID => {:type => ::Thrift::Types::STRING, :name => 'rowid'},
212
+ RECORD => {:type => ::Thrift::Types::STRUCT, :name => 'record', :class => ::Blur::Record}
213
+ }
214
+
215
+ def struct_fields; FIELDS; end
216
+
217
+ def validate
218
+ end
219
+
220
+ ::Thrift::Struct.generate_accessors self
221
+ end
222
+
223
+ class FetchResult
224
+ include ::Thrift::Struct, ::Thrift::Struct_Union
225
+ EXISTS = 1
226
+ DELETED = 2
227
+ TABLE = 3
228
+ ROWRESULT = 4
229
+ RECORDRESULT = 5
230
+
231
+ FIELDS = {
232
+ EXISTS => {:type => ::Thrift::Types::BOOL, :name => 'exists'},
233
+ DELETED => {:type => ::Thrift::Types::BOOL, :name => 'deleted'},
234
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
235
+ ROWRESULT => {:type => ::Thrift::Types::STRUCT, :name => 'rowResult', :class => ::Blur::FetchRowResult},
236
+ RECORDRESULT => {:type => ::Thrift::Types::STRUCT, :name => 'recordResult', :class => ::Blur::FetchRecordResult}
237
+ }
238
+
239
+ def struct_fields; FIELDS; end
240
+
241
+ def validate
242
+ end
243
+
244
+ ::Thrift::Struct.generate_accessors self
245
+ end
246
+
247
+ class SimpleQuery
248
+ include ::Thrift::Struct, ::Thrift::Struct_Union
249
+ QUERYSTR = 1
250
+ SUPERQUERYON = 2
251
+ TYPE = 3
252
+ POSTSUPERFILTER = 4
253
+ PRESUPERFILTER = 5
254
+
255
+ FIELDS = {
256
+ QUERYSTR => {:type => ::Thrift::Types::STRING, :name => 'queryStr'},
257
+ SUPERQUERYON => {:type => ::Thrift::Types::BOOL, :name => 'superQueryOn', :default => true},
258
+ TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :default => 0, :enum_class => ::Blur::ScoreType},
259
+ POSTSUPERFILTER => {:type => ::Thrift::Types::STRING, :name => 'postSuperFilter'},
260
+ PRESUPERFILTER => {:type => ::Thrift::Types::STRING, :name => 'preSuperFilter'}
261
+ }
262
+
263
+ def struct_fields; FIELDS; end
264
+
265
+ def validate
266
+ unless @type.nil? || ::Blur::ScoreType::VALID_VALUES.include?(@type)
267
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
268
+ end
269
+ end
270
+
271
+ ::Thrift::Struct.generate_accessors self
272
+ end
273
+
274
+ class ExpertQuery
275
+ include ::Thrift::Struct, ::Thrift::Struct_Union
276
+ QUERY = 1
277
+ FILTER = 2
278
+
279
+ FIELDS = {
280
+ QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
281
+ FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter', :binary => true}
282
+ }
283
+
284
+ def struct_fields; FIELDS; end
285
+
286
+ def validate
287
+ end
288
+
289
+ ::Thrift::Struct.generate_accessors self
290
+ end
291
+
292
+ class Facet
293
+ include ::Thrift::Struct, ::Thrift::Struct_Union
294
+ QUERYSTR = 1
295
+ MINIMUMNUMBEROFBLURRESULTS = 2
296
+
297
+ FIELDS = {
298
+ QUERYSTR => {:type => ::Thrift::Types::STRING, :name => 'queryStr'},
299
+ MINIMUMNUMBEROFBLURRESULTS => {:type => ::Thrift::Types::I64, :name => 'minimumNumberOfBlurResults', :default => 9223372036854775807}
300
+ }
301
+
302
+ def struct_fields; FIELDS; end
303
+
304
+ def validate
305
+ end
306
+
307
+ ::Thrift::Struct.generate_accessors self
308
+ end
309
+
310
+ class BlurQuery
311
+ include ::Thrift::Struct, ::Thrift::Struct_Union
312
+ SIMPLEQUERY = 1
313
+ EXPERTQUERY = 2
314
+ FACETS = 3
315
+ SELECTOR = 4
316
+ ALLOWSTALEDATA = 5
317
+ USECACHEIFPRESENT = 6
318
+ START = 7
319
+ FETCH = 8
320
+ MINIMUMNUMBEROFRESULTS = 9
321
+ MAXQUERYTIME = 10
322
+ UUID = 11
323
+ USERCONTEXT = 12
324
+ CACHERESULT = 13
325
+ STARTTIME = 14
326
+ MODIFYFILECACHES = 15
327
+
328
+ FIELDS = {
329
+ SIMPLEQUERY => {:type => ::Thrift::Types::STRUCT, :name => 'simpleQuery', :class => ::Blur::SimpleQuery},
330
+ EXPERTQUERY => {:type => ::Thrift::Types::STRUCT, :name => 'expertQuery', :class => ::Blur::ExpertQuery},
331
+ FACETS => {:type => ::Thrift::Types::LIST, :name => 'facets', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::Facet}},
332
+ SELECTOR => {:type => ::Thrift::Types::STRUCT, :name => 'selector', :class => ::Blur::Selector},
333
+ ALLOWSTALEDATA => {:type => ::Thrift::Types::BOOL, :name => 'allowStaleData', :default => false},
334
+ USECACHEIFPRESENT => {:type => ::Thrift::Types::BOOL, :name => 'useCacheIfPresent', :default => true},
335
+ START => {:type => ::Thrift::Types::I64, :name => 'start', :default => 0},
336
+ FETCH => {:type => ::Thrift::Types::I32, :name => 'fetch', :default => 10},
337
+ MINIMUMNUMBEROFRESULTS => {:type => ::Thrift::Types::I64, :name => 'minimumNumberOfResults', :default => 9223372036854775807},
338
+ MAXQUERYTIME => {:type => ::Thrift::Types::I64, :name => 'maxQueryTime', :default => 9223372036854775807},
339
+ UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'},
340
+ USERCONTEXT => {:type => ::Thrift::Types::STRING, :name => 'userContext'},
341
+ CACHERESULT => {:type => ::Thrift::Types::BOOL, :name => 'cacheResult', :default => true},
342
+ STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime', :default => 0},
343
+ MODIFYFILECACHES => {:type => ::Thrift::Types::BOOL, :name => 'modifyFileCaches', :default => true}
344
+ }
345
+
346
+ def struct_fields; FIELDS; end
347
+
348
+ def validate
349
+ end
350
+
351
+ ::Thrift::Struct.generate_accessors self
352
+ end
353
+
354
+ class BlurResult
355
+ include ::Thrift::Struct, ::Thrift::Struct_Union
356
+ LOCATIONID = 1
357
+ SCORE = 2
358
+ FETCHRESULT = 3
359
+
360
+ FIELDS = {
361
+ LOCATIONID => {:type => ::Thrift::Types::STRING, :name => 'locationId'},
362
+ SCORE => {:type => ::Thrift::Types::DOUBLE, :name => 'score'},
363
+ FETCHRESULT => {:type => ::Thrift::Types::STRUCT, :name => 'fetchResult', :class => ::Blur::FetchResult}
364
+ }
365
+
366
+ def struct_fields; FIELDS; end
367
+
368
+ def validate
369
+ end
370
+
371
+ ::Thrift::Struct.generate_accessors self
372
+ end
373
+
374
+ class BlurResults
375
+ include ::Thrift::Struct, ::Thrift::Struct_Union
376
+ TOTALRESULTS = 1
377
+ SHARDINFO = 2
378
+ RESULTS = 3
379
+ FACETCOUNTS = 4
380
+ EXCEPTIONS = 5
381
+ QUERY = 6
382
+
383
+ FIELDS = {
384
+ TOTALRESULTS => {:type => ::Thrift::Types::I64, :name => 'totalResults', :default => 0},
385
+ SHARDINFO => {:type => ::Thrift::Types::MAP, :name => 'shardInfo', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}},
386
+ RESULTS => {:type => ::Thrift::Types::LIST, :name => 'results', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::BlurResult}},
387
+ FACETCOUNTS => {:type => ::Thrift::Types::LIST, :name => 'facetCounts', :element => {:type => ::Thrift::Types::I64}},
388
+ EXCEPTIONS => {:type => ::Thrift::Types::LIST, :name => 'exceptions', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::BlurException}},
389
+ QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::Blur::BlurQuery}
390
+ }
391
+
392
+ def struct_fields; FIELDS; end
393
+
394
+ def validate
395
+ end
396
+
397
+ ::Thrift::Struct.generate_accessors self
398
+ end
399
+
400
+ class RecordMutation
401
+ include ::Thrift::Struct, ::Thrift::Struct_Union
402
+ RECORDMUTATIONTYPE = 1
403
+ RECORD = 2
404
+
405
+ FIELDS = {
406
+ RECORDMUTATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'recordMutationType', :enum_class => ::Blur::RecordMutationType},
407
+ RECORD => {:type => ::Thrift::Types::STRUCT, :name => 'record', :class => ::Blur::Record}
408
+ }
409
+
410
+ def struct_fields; FIELDS; end
411
+
412
+ def validate
413
+ unless @recordMutationType.nil? || ::Blur::RecordMutationType::VALID_VALUES.include?(@recordMutationType)
414
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field recordMutationType!')
415
+ end
416
+ end
417
+
418
+ ::Thrift::Struct.generate_accessors self
419
+ end
420
+
421
+ class RowMutation
422
+ include ::Thrift::Struct, ::Thrift::Struct_Union
423
+ TABLE = 1
424
+ ROWID = 2
425
+ WAL = 3
426
+ ROWMUTATIONTYPE = 4
427
+ RECORDMUTATIONS = 5
428
+
429
+ FIELDS = {
430
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
431
+ ROWID => {:type => ::Thrift::Types::STRING, :name => 'rowId'},
432
+ WAL => {:type => ::Thrift::Types::BOOL, :name => 'wal', :default => true},
433
+ ROWMUTATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'rowMutationType', :enum_class => ::Blur::RowMutationType},
434
+ RECORDMUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'recordMutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::RecordMutation}}
435
+ }
436
+
437
+ def struct_fields; FIELDS; end
438
+
439
+ def validate
440
+ unless @rowMutationType.nil? || ::Blur::RowMutationType::VALID_VALUES.include?(@rowMutationType)
441
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field rowMutationType!')
442
+ end
443
+ end
444
+
445
+ ::Thrift::Struct.generate_accessors self
446
+ end
447
+
448
+ class CpuTime
449
+ include ::Thrift::Struct, ::Thrift::Struct_Union
450
+ CPUTIME = 1
451
+ REALTIME = 2
452
+
453
+ FIELDS = {
454
+ CPUTIME => {:type => ::Thrift::Types::I64, :name => 'cpuTime'},
455
+ REALTIME => {:type => ::Thrift::Types::I64, :name => 'realTime'}
456
+ }
457
+
458
+ def struct_fields; FIELDS; end
459
+
460
+ def validate
461
+ end
462
+
463
+ ::Thrift::Struct.generate_accessors self
464
+ end
465
+
466
+ class BlurQueryStatus
467
+ include ::Thrift::Struct, ::Thrift::Struct_Union
468
+ QUERY = 1
469
+ CPUTIMES = 2
470
+ COMPLETESHARDS = 3
471
+ TOTALSHARDS = 4
472
+ STATE = 5
473
+ UUID = 6
474
+
475
+ FIELDS = {
476
+ QUERY => {:type => ::Thrift::Types::STRUCT, :name => 'query', :class => ::Blur::BlurQuery},
477
+ CPUTIMES => {:type => ::Thrift::Types::MAP, :name => 'cpuTimes', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::CpuTime}},
478
+ COMPLETESHARDS => {:type => ::Thrift::Types::I32, :name => 'completeShards'},
479
+ TOTALSHARDS => {:type => ::Thrift::Types::I32, :name => 'totalShards'},
480
+ STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::Blur::QueryState},
481
+ UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'}
482
+ }
483
+
484
+ def struct_fields; FIELDS; end
485
+
486
+ def validate
487
+ unless @state.nil? || ::Blur::QueryState::VALID_VALUES.include?(@state)
488
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
489
+ end
490
+ end
491
+
492
+ ::Thrift::Struct.generate_accessors self
493
+ end
494
+
495
+ class TableStats
496
+ include ::Thrift::Struct, ::Thrift::Struct_Union
497
+ TABLENAME = 1
498
+ BYTES = 2
499
+ RECORDCOUNT = 3
500
+ ROWCOUNT = 4
501
+ QUERIES = 5
502
+
503
+ FIELDS = {
504
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
505
+ BYTES => {:type => ::Thrift::Types::I64, :name => 'bytes'},
506
+ RECORDCOUNT => {:type => ::Thrift::Types::I64, :name => 'recordCount'},
507
+ ROWCOUNT => {:type => ::Thrift::Types::I64, :name => 'rowCount'},
508
+ QUERIES => {:type => ::Thrift::Types::I64, :name => 'queries'}
509
+ }
510
+
511
+ def struct_fields; FIELDS; end
512
+
513
+ def validate
514
+ end
515
+
516
+ ::Thrift::Struct.generate_accessors self
517
+ end
518
+
519
+ class Schema
520
+ include ::Thrift::Struct, ::Thrift::Struct_Union
521
+ TABLE = 1
522
+ COLUMNFAMILIES = 2
523
+
524
+ FIELDS = {
525
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
526
+ COLUMNFAMILIES => {:type => ::Thrift::Types::MAP, :name => 'columnFamilies', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::SET, :element => {:type => ::Thrift::Types::STRING}}}
527
+ }
528
+
529
+ def struct_fields; FIELDS; end
530
+
531
+ def validate
532
+ end
533
+
534
+ ::Thrift::Struct.generate_accessors self
535
+ end
536
+
537
+ class AlternateColumnDefinition
538
+ include ::Thrift::Struct, ::Thrift::Struct_Union
539
+ ANALYZERCLASSNAME = 1
540
+
541
+ FIELDS = {
542
+ ANALYZERCLASSNAME => {:type => ::Thrift::Types::STRING, :name => 'analyzerClassName'}
543
+ }
544
+
545
+ def struct_fields; FIELDS; end
546
+
547
+ def validate
548
+ end
549
+
550
+ ::Thrift::Struct.generate_accessors self
551
+ end
552
+
553
+ class ColumnDefinition
554
+ include ::Thrift::Struct, ::Thrift::Struct_Union
555
+ ANALYZERCLASSNAME = 1
556
+ FULLTEXTINDEX = 2
557
+ ALTERNATECOLUMNDEFINITIONS = 3
558
+
559
+ FIELDS = {
560
+ ANALYZERCLASSNAME => {:type => ::Thrift::Types::STRING, :name => 'analyzerClassName'},
561
+ FULLTEXTINDEX => {:type => ::Thrift::Types::BOOL, :name => 'fullTextIndex'},
562
+ ALTERNATECOLUMNDEFINITIONS => {:type => ::Thrift::Types::MAP, :name => 'alternateColumnDefinitions', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::AlternateColumnDefinition}}
563
+ }
564
+
565
+ def struct_fields; FIELDS; end
566
+
567
+ def validate
568
+ end
569
+
570
+ ::Thrift::Struct.generate_accessors self
571
+ end
572
+
573
+ class ColumnFamilyDefinition
574
+ include ::Thrift::Struct, ::Thrift::Struct_Union
575
+ DEFAULTDEFINITION = 1
576
+ COLUMNDEFINITIONS = 2
577
+
578
+ FIELDS = {
579
+ DEFAULTDEFINITION => {:type => ::Thrift::Types::STRUCT, :name => 'defaultDefinition', :class => ::Blur::ColumnDefinition},
580
+ COLUMNDEFINITIONS => {:type => ::Thrift::Types::MAP, :name => 'columnDefinitions', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::ColumnDefinition}}
581
+ }
582
+
583
+ def struct_fields; FIELDS; end
584
+
585
+ def validate
586
+ end
587
+
588
+ ::Thrift::Struct.generate_accessors self
589
+ end
590
+
591
+ class AnalyzerDefinition
592
+ include ::Thrift::Struct, ::Thrift::Struct_Union
593
+ DEFAULTDEFINITION = 1
594
+ FULLTEXTANALYZERCLASSNAME = 2
595
+ COLUMNFAMILYDEFINITIONS = 3
596
+
597
+ FIELDS = {
598
+ DEFAULTDEFINITION => {:type => ::Thrift::Types::STRUCT, :name => 'defaultDefinition', :class => ::Blur::ColumnDefinition},
599
+ FULLTEXTANALYZERCLASSNAME => {:type => ::Thrift::Types::STRING, :name => 'fullTextAnalyzerClassName'},
600
+ COLUMNFAMILYDEFINITIONS => {:type => ::Thrift::Types::MAP, :name => 'columnFamilyDefinitions', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::ColumnFamilyDefinition}}
601
+ }
602
+
603
+ def struct_fields; FIELDS; end
604
+
605
+ def validate
606
+ end
607
+
608
+ ::Thrift::Struct.generate_accessors self
609
+ end
610
+
611
+ class TableDescriptor
612
+ include ::Thrift::Struct, ::Thrift::Struct_Union
613
+ ISENABLED = 1
614
+ ANALYZERDEFINITION = 2
615
+ SHARDCOUNT = 3
616
+ TABLEURI = 4
617
+ COMPRESSIONCLASS = 5
618
+ COMPRESSIONBLOCKSIZE = 6
619
+ CLUSTER = 7
620
+ NAME = 8
621
+
622
+ FIELDS = {
623
+ ISENABLED => {:type => ::Thrift::Types::BOOL, :name => 'isEnabled', :default => true},
624
+ ANALYZERDEFINITION => {:type => ::Thrift::Types::STRUCT, :name => 'analyzerDefinition', :class => ::Blur::AnalyzerDefinition},
625
+ SHARDCOUNT => {:type => ::Thrift::Types::I32, :name => 'shardCount', :default => 1},
626
+ TABLEURI => {:type => ::Thrift::Types::STRING, :name => 'tableUri'},
627
+ COMPRESSIONCLASS => {:type => ::Thrift::Types::STRING, :name => 'compressionClass', :default => %q"org.apache.hadoop.io.compress.DefaultCodec"},
628
+ COMPRESSIONBLOCKSIZE => {:type => ::Thrift::Types::I32, :name => 'compressionBlockSize', :default => 32768},
629
+ CLUSTER => {:type => ::Thrift::Types::STRING, :name => 'cluster'},
630
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
631
+ }
632
+
633
+ def struct_fields; FIELDS; end
634
+
635
+ def validate
636
+ end
637
+
638
+ ::Thrift::Struct.generate_accessors self
639
+ end
640
+
641
+ end