hyper_record 0.2.8
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.
- data/.gitignore +3 -0
- data/CHANGELOG +83 -0
- data/LICENSE +20 -0
- data/README +49 -0
- data/Rakefile +43 -0
- data/VERSION.yml +4 -0
- data/benchmark/save.rb +58 -0
- data/hyper_record.gemspec +76 -0
- data/init.rb +1 -0
- data/lib/active_record/connection_adapters/hyper_table_definition.rb +26 -0
- data/lib/active_record/connection_adapters/hypertable_adapter.rb +680 -0
- data/lib/active_record/connection_adapters/qualified_column.rb +57 -0
- data/lib/associations/hyper_has_and_belongs_to_many_association_extension.rb +107 -0
- data/lib/associations/hyper_has_many_association_extension.rb +87 -0
- data/lib/hyper_record.rb +636 -0
- data/lib/hypertable/gen-rb/client_constants.rb +12 -0
- data/lib/hypertable/gen-rb/client_service.rb +1436 -0
- data/lib/hypertable/gen-rb/client_types.rb +253 -0
- data/lib/hypertable/gen-rb/hql_constants.rb +12 -0
- data/lib/hypertable/gen-rb/hql_service.rb +281 -0
- data/lib/hypertable/gen-rb/hql_types.rb +73 -0
- data/lib/hypertable/thrift_client.rb +94 -0
- data/lib/hypertable/thrift_transport_monkey_patch.rb +29 -0
- data/pkg/hyper_record-0.2.8.gem +0 -0
- data/spec/fixtures/pages.yml +8 -0
- data/spec/fixtures/qualified_pages.yml +1 -0
- data/spec/lib/associations_spec.rb +235 -0
- data/spec/lib/hyper_record_spec.rb +948 -0
- data/spec/lib/hypertable_adapter_spec.rb +121 -0
- data/spec/spec_helper.rb +130 -0
- data/test/test_helper.rb +10 -0
- data/test/thrift_client_test.rb +590 -0
- metadata +99 -0
@@ -0,0 +1,1436 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'client_types'
|
9
|
+
|
10
|
+
module Hypertable
|
11
|
+
module ThriftGen
|
12
|
+
module ClientService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def create_table(name, schema)
|
17
|
+
send_create_table(name, schema)
|
18
|
+
recv_create_table()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_create_table(name, schema)
|
22
|
+
send_message('create_table', Create_table_args, :name => name, :schema => schema)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_create_table()
|
26
|
+
result = receive_message(Create_table_result)
|
27
|
+
raise result.e unless result.e.nil?
|
28
|
+
return
|
29
|
+
end
|
30
|
+
|
31
|
+
def open_scanner(name, scan_spec, retry_table_not_found)
|
32
|
+
send_open_scanner(name, scan_spec, retry_table_not_found)
|
33
|
+
return recv_open_scanner()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_open_scanner(name, scan_spec, retry_table_not_found)
|
37
|
+
send_message('open_scanner', Open_scanner_args, :name => name, :scan_spec => scan_spec, :retry_table_not_found => retry_table_not_found)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_open_scanner()
|
41
|
+
result = receive_message(Open_scanner_result)
|
42
|
+
return result.success unless result.success.nil?
|
43
|
+
raise result.e unless result.e.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'open_scanner failed: unknown result')
|
45
|
+
end
|
46
|
+
|
47
|
+
def close_scanner(scanner)
|
48
|
+
send_close_scanner(scanner)
|
49
|
+
recv_close_scanner()
|
50
|
+
end
|
51
|
+
|
52
|
+
def send_close_scanner(scanner)
|
53
|
+
send_message('close_scanner', Close_scanner_args, :scanner => scanner)
|
54
|
+
end
|
55
|
+
|
56
|
+
def recv_close_scanner()
|
57
|
+
result = receive_message(Close_scanner_result)
|
58
|
+
raise result.e unless result.e.nil?
|
59
|
+
return
|
60
|
+
end
|
61
|
+
|
62
|
+
def next_cells(scanner)
|
63
|
+
send_next_cells(scanner)
|
64
|
+
return recv_next_cells()
|
65
|
+
end
|
66
|
+
|
67
|
+
def send_next_cells(scanner)
|
68
|
+
send_message('next_cells', Next_cells_args, :scanner => scanner)
|
69
|
+
end
|
70
|
+
|
71
|
+
def recv_next_cells()
|
72
|
+
result = receive_message(Next_cells_result)
|
73
|
+
return result.success unless result.success.nil?
|
74
|
+
raise result.e unless result.e.nil?
|
75
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_cells failed: unknown result')
|
76
|
+
end
|
77
|
+
|
78
|
+
def next_cells_as_arrays(scanner)
|
79
|
+
send_next_cells_as_arrays(scanner)
|
80
|
+
return recv_next_cells_as_arrays()
|
81
|
+
end
|
82
|
+
|
83
|
+
def send_next_cells_as_arrays(scanner)
|
84
|
+
send_message('next_cells_as_arrays', Next_cells_as_arrays_args, :scanner => scanner)
|
85
|
+
end
|
86
|
+
|
87
|
+
def recv_next_cells_as_arrays()
|
88
|
+
result = receive_message(Next_cells_as_arrays_result)
|
89
|
+
return result.success unless result.success.nil?
|
90
|
+
raise result.e unless result.e.nil?
|
91
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_cells_as_arrays failed: unknown result')
|
92
|
+
end
|
93
|
+
|
94
|
+
def next_row(scanner)
|
95
|
+
send_next_row(scanner)
|
96
|
+
return recv_next_row()
|
97
|
+
end
|
98
|
+
|
99
|
+
def send_next_row(scanner)
|
100
|
+
send_message('next_row', Next_row_args, :scanner => scanner)
|
101
|
+
end
|
102
|
+
|
103
|
+
def recv_next_row()
|
104
|
+
result = receive_message(Next_row_result)
|
105
|
+
return result.success unless result.success.nil?
|
106
|
+
raise result.e unless result.e.nil?
|
107
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_row failed: unknown result')
|
108
|
+
end
|
109
|
+
|
110
|
+
def next_row_as_arrays(scanner)
|
111
|
+
send_next_row_as_arrays(scanner)
|
112
|
+
return recv_next_row_as_arrays()
|
113
|
+
end
|
114
|
+
|
115
|
+
def send_next_row_as_arrays(scanner)
|
116
|
+
send_message('next_row_as_arrays', Next_row_as_arrays_args, :scanner => scanner)
|
117
|
+
end
|
118
|
+
|
119
|
+
def recv_next_row_as_arrays()
|
120
|
+
result = receive_message(Next_row_as_arrays_result)
|
121
|
+
return result.success unless result.success.nil?
|
122
|
+
raise result.e unless result.e.nil?
|
123
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'next_row_as_arrays failed: unknown result')
|
124
|
+
end
|
125
|
+
|
126
|
+
def get_row(name, row)
|
127
|
+
send_get_row(name, row)
|
128
|
+
return recv_get_row()
|
129
|
+
end
|
130
|
+
|
131
|
+
def send_get_row(name, row)
|
132
|
+
send_message('get_row', Get_row_args, :name => name, :row => row)
|
133
|
+
end
|
134
|
+
|
135
|
+
def recv_get_row()
|
136
|
+
result = receive_message(Get_row_result)
|
137
|
+
return result.success unless result.success.nil?
|
138
|
+
raise result.e unless result.e.nil?
|
139
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_row failed: unknown result')
|
140
|
+
end
|
141
|
+
|
142
|
+
def get_row_as_arrays(name, row)
|
143
|
+
send_get_row_as_arrays(name, row)
|
144
|
+
return recv_get_row_as_arrays()
|
145
|
+
end
|
146
|
+
|
147
|
+
def send_get_row_as_arrays(name, row)
|
148
|
+
send_message('get_row_as_arrays', Get_row_as_arrays_args, :name => name, :row => row)
|
149
|
+
end
|
150
|
+
|
151
|
+
def recv_get_row_as_arrays()
|
152
|
+
result = receive_message(Get_row_as_arrays_result)
|
153
|
+
return result.success unless result.success.nil?
|
154
|
+
raise result.e unless result.e.nil?
|
155
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_row_as_arrays failed: unknown result')
|
156
|
+
end
|
157
|
+
|
158
|
+
def get_cell(name, row, column)
|
159
|
+
send_get_cell(name, row, column)
|
160
|
+
return recv_get_cell()
|
161
|
+
end
|
162
|
+
|
163
|
+
def send_get_cell(name, row, column)
|
164
|
+
send_message('get_cell', Get_cell_args, :name => name, :row => row, :column => column)
|
165
|
+
end
|
166
|
+
|
167
|
+
def recv_get_cell()
|
168
|
+
result = receive_message(Get_cell_result)
|
169
|
+
return result.success unless result.success.nil?
|
170
|
+
raise result.e unless result.e.nil?
|
171
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_cell failed: unknown result')
|
172
|
+
end
|
173
|
+
|
174
|
+
def get_cells(name, scan_spec)
|
175
|
+
send_get_cells(name, scan_spec)
|
176
|
+
return recv_get_cells()
|
177
|
+
end
|
178
|
+
|
179
|
+
def send_get_cells(name, scan_spec)
|
180
|
+
send_message('get_cells', Get_cells_args, :name => name, :scan_spec => scan_spec)
|
181
|
+
end
|
182
|
+
|
183
|
+
def recv_get_cells()
|
184
|
+
result = receive_message(Get_cells_result)
|
185
|
+
return result.success unless result.success.nil?
|
186
|
+
raise result.e unless result.e.nil?
|
187
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_cells failed: unknown result')
|
188
|
+
end
|
189
|
+
|
190
|
+
def get_cells_as_arrays(name, scan_spec)
|
191
|
+
send_get_cells_as_arrays(name, scan_spec)
|
192
|
+
return recv_get_cells_as_arrays()
|
193
|
+
end
|
194
|
+
|
195
|
+
def send_get_cells_as_arrays(name, scan_spec)
|
196
|
+
send_message('get_cells_as_arrays', Get_cells_as_arrays_args, :name => name, :scan_spec => scan_spec)
|
197
|
+
end
|
198
|
+
|
199
|
+
def recv_get_cells_as_arrays()
|
200
|
+
result = receive_message(Get_cells_as_arrays_result)
|
201
|
+
return result.success unless result.success.nil?
|
202
|
+
raise result.e unless result.e.nil?
|
203
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_cells_as_arrays failed: unknown result')
|
204
|
+
end
|
205
|
+
|
206
|
+
def open_mutator(name, flags, flush_interval)
|
207
|
+
send_open_mutator(name, flags, flush_interval)
|
208
|
+
return recv_open_mutator()
|
209
|
+
end
|
210
|
+
|
211
|
+
def send_open_mutator(name, flags, flush_interval)
|
212
|
+
send_message('open_mutator', Open_mutator_args, :name => name, :flags => flags, :flush_interval => flush_interval)
|
213
|
+
end
|
214
|
+
|
215
|
+
def recv_open_mutator()
|
216
|
+
result = receive_message(Open_mutator_result)
|
217
|
+
return result.success unless result.success.nil?
|
218
|
+
raise result.e unless result.e.nil?
|
219
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'open_mutator failed: unknown result')
|
220
|
+
end
|
221
|
+
|
222
|
+
def close_mutator(mutator, flush)
|
223
|
+
send_close_mutator(mutator, flush)
|
224
|
+
recv_close_mutator()
|
225
|
+
end
|
226
|
+
|
227
|
+
def send_close_mutator(mutator, flush)
|
228
|
+
send_message('close_mutator', Close_mutator_args, :mutator => mutator, :flush => flush)
|
229
|
+
end
|
230
|
+
|
231
|
+
def recv_close_mutator()
|
232
|
+
result = receive_message(Close_mutator_result)
|
233
|
+
raise result.e unless result.e.nil?
|
234
|
+
return
|
235
|
+
end
|
236
|
+
|
237
|
+
def set_cell(mutator, cell)
|
238
|
+
send_set_cell(mutator, cell)
|
239
|
+
recv_set_cell()
|
240
|
+
end
|
241
|
+
|
242
|
+
def send_set_cell(mutator, cell)
|
243
|
+
send_message('set_cell', Set_cell_args, :mutator => mutator, :cell => cell)
|
244
|
+
end
|
245
|
+
|
246
|
+
def recv_set_cell()
|
247
|
+
result = receive_message(Set_cell_result)
|
248
|
+
raise result.e unless result.e.nil?
|
249
|
+
return
|
250
|
+
end
|
251
|
+
|
252
|
+
def set_cell_as_array(mutator, cell)
|
253
|
+
send_set_cell_as_array(mutator, cell)
|
254
|
+
recv_set_cell_as_array()
|
255
|
+
end
|
256
|
+
|
257
|
+
def send_set_cell_as_array(mutator, cell)
|
258
|
+
send_message('set_cell_as_array', Set_cell_as_array_args, :mutator => mutator, :cell => cell)
|
259
|
+
end
|
260
|
+
|
261
|
+
def recv_set_cell_as_array()
|
262
|
+
result = receive_message(Set_cell_as_array_result)
|
263
|
+
raise result.e unless result.e.nil?
|
264
|
+
return
|
265
|
+
end
|
266
|
+
|
267
|
+
def set_cells(mutator, cells)
|
268
|
+
send_set_cells(mutator, cells)
|
269
|
+
recv_set_cells()
|
270
|
+
end
|
271
|
+
|
272
|
+
def send_set_cells(mutator, cells)
|
273
|
+
send_message('set_cells', Set_cells_args, :mutator => mutator, :cells => cells)
|
274
|
+
end
|
275
|
+
|
276
|
+
def recv_set_cells()
|
277
|
+
result = receive_message(Set_cells_result)
|
278
|
+
raise result.e unless result.e.nil?
|
279
|
+
return
|
280
|
+
end
|
281
|
+
|
282
|
+
def set_cells_as_arrays(mutator, cells)
|
283
|
+
send_set_cells_as_arrays(mutator, cells)
|
284
|
+
recv_set_cells_as_arrays()
|
285
|
+
end
|
286
|
+
|
287
|
+
def send_set_cells_as_arrays(mutator, cells)
|
288
|
+
send_message('set_cells_as_arrays', Set_cells_as_arrays_args, :mutator => mutator, :cells => cells)
|
289
|
+
end
|
290
|
+
|
291
|
+
def recv_set_cells_as_arrays()
|
292
|
+
result = receive_message(Set_cells_as_arrays_result)
|
293
|
+
raise result.e unless result.e.nil?
|
294
|
+
return
|
295
|
+
end
|
296
|
+
|
297
|
+
def flush_mutator(mutator)
|
298
|
+
send_flush_mutator(mutator)
|
299
|
+
recv_flush_mutator()
|
300
|
+
end
|
301
|
+
|
302
|
+
def send_flush_mutator(mutator)
|
303
|
+
send_message('flush_mutator', Flush_mutator_args, :mutator => mutator)
|
304
|
+
end
|
305
|
+
|
306
|
+
def recv_flush_mutator()
|
307
|
+
result = receive_message(Flush_mutator_result)
|
308
|
+
raise result.e unless result.e.nil?
|
309
|
+
return
|
310
|
+
end
|
311
|
+
|
312
|
+
def get_table_id(name)
|
313
|
+
send_get_table_id(name)
|
314
|
+
return recv_get_table_id()
|
315
|
+
end
|
316
|
+
|
317
|
+
def send_get_table_id(name)
|
318
|
+
send_message('get_table_id', Get_table_id_args, :name => name)
|
319
|
+
end
|
320
|
+
|
321
|
+
def recv_get_table_id()
|
322
|
+
result = receive_message(Get_table_id_result)
|
323
|
+
return result.success unless result.success.nil?
|
324
|
+
raise result.e unless result.e.nil?
|
325
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_table_id failed: unknown result')
|
326
|
+
end
|
327
|
+
|
328
|
+
def get_schema(name)
|
329
|
+
send_get_schema(name)
|
330
|
+
return recv_get_schema()
|
331
|
+
end
|
332
|
+
|
333
|
+
def send_get_schema(name)
|
334
|
+
send_message('get_schema', Get_schema_args, :name => name)
|
335
|
+
end
|
336
|
+
|
337
|
+
def recv_get_schema()
|
338
|
+
result = receive_message(Get_schema_result)
|
339
|
+
return result.success unless result.success.nil?
|
340
|
+
raise result.e unless result.e.nil?
|
341
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_schema failed: unknown result')
|
342
|
+
end
|
343
|
+
|
344
|
+
def get_tables()
|
345
|
+
send_get_tables()
|
346
|
+
return recv_get_tables()
|
347
|
+
end
|
348
|
+
|
349
|
+
def send_get_tables()
|
350
|
+
send_message('get_tables', Get_tables_args)
|
351
|
+
end
|
352
|
+
|
353
|
+
def recv_get_tables()
|
354
|
+
result = receive_message(Get_tables_result)
|
355
|
+
return result.success unless result.success.nil?
|
356
|
+
raise result.e unless result.e.nil?
|
357
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_tables failed: unknown result')
|
358
|
+
end
|
359
|
+
|
360
|
+
def drop_table(name, if_exists)
|
361
|
+
send_drop_table(name, if_exists)
|
362
|
+
recv_drop_table()
|
363
|
+
end
|
364
|
+
|
365
|
+
def send_drop_table(name, if_exists)
|
366
|
+
send_message('drop_table', Drop_table_args, :name => name, :if_exists => if_exists)
|
367
|
+
end
|
368
|
+
|
369
|
+
def recv_drop_table()
|
370
|
+
result = receive_message(Drop_table_result)
|
371
|
+
raise result.e unless result.e.nil?
|
372
|
+
return
|
373
|
+
end
|
374
|
+
|
375
|
+
end
|
376
|
+
|
377
|
+
class Processor
|
378
|
+
include ::Thrift::Processor
|
379
|
+
|
380
|
+
def process_create_table(seqid, iprot, oprot)
|
381
|
+
args = read_args(iprot, Create_table_args)
|
382
|
+
result = Create_table_result.new()
|
383
|
+
begin
|
384
|
+
@handler.create_table(args.name, args.schema)
|
385
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
386
|
+
result.e = e
|
387
|
+
end
|
388
|
+
write_result(result, oprot, 'create_table', seqid)
|
389
|
+
end
|
390
|
+
|
391
|
+
def process_open_scanner(seqid, iprot, oprot)
|
392
|
+
args = read_args(iprot, Open_scanner_args)
|
393
|
+
result = Open_scanner_result.new()
|
394
|
+
begin
|
395
|
+
result.success = @handler.open_scanner(args.name, args.scan_spec, args.retry_table_not_found)
|
396
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
397
|
+
result.e = e
|
398
|
+
end
|
399
|
+
write_result(result, oprot, 'open_scanner', seqid)
|
400
|
+
end
|
401
|
+
|
402
|
+
def process_close_scanner(seqid, iprot, oprot)
|
403
|
+
args = read_args(iprot, Close_scanner_args)
|
404
|
+
result = Close_scanner_result.new()
|
405
|
+
begin
|
406
|
+
@handler.close_scanner(args.scanner)
|
407
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
408
|
+
result.e = e
|
409
|
+
end
|
410
|
+
write_result(result, oprot, 'close_scanner', seqid)
|
411
|
+
end
|
412
|
+
|
413
|
+
def process_next_cells(seqid, iprot, oprot)
|
414
|
+
args = read_args(iprot, Next_cells_args)
|
415
|
+
result = Next_cells_result.new()
|
416
|
+
begin
|
417
|
+
result.success = @handler.next_cells(args.scanner)
|
418
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
419
|
+
result.e = e
|
420
|
+
end
|
421
|
+
write_result(result, oprot, 'next_cells', seqid)
|
422
|
+
end
|
423
|
+
|
424
|
+
def process_next_cells_as_arrays(seqid, iprot, oprot)
|
425
|
+
args = read_args(iprot, Next_cells_as_arrays_args)
|
426
|
+
result = Next_cells_as_arrays_result.new()
|
427
|
+
begin
|
428
|
+
result.success = @handler.next_cells_as_arrays(args.scanner)
|
429
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
430
|
+
result.e = e
|
431
|
+
end
|
432
|
+
write_result(result, oprot, 'next_cells_as_arrays', seqid)
|
433
|
+
end
|
434
|
+
|
435
|
+
def process_next_row(seqid, iprot, oprot)
|
436
|
+
args = read_args(iprot, Next_row_args)
|
437
|
+
result = Next_row_result.new()
|
438
|
+
begin
|
439
|
+
result.success = @handler.next_row(args.scanner)
|
440
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
441
|
+
result.e = e
|
442
|
+
end
|
443
|
+
write_result(result, oprot, 'next_row', seqid)
|
444
|
+
end
|
445
|
+
|
446
|
+
def process_next_row_as_arrays(seqid, iprot, oprot)
|
447
|
+
args = read_args(iprot, Next_row_as_arrays_args)
|
448
|
+
result = Next_row_as_arrays_result.new()
|
449
|
+
begin
|
450
|
+
result.success = @handler.next_row_as_arrays(args.scanner)
|
451
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
452
|
+
result.e = e
|
453
|
+
end
|
454
|
+
write_result(result, oprot, 'next_row_as_arrays', seqid)
|
455
|
+
end
|
456
|
+
|
457
|
+
def process_get_row(seqid, iprot, oprot)
|
458
|
+
args = read_args(iprot, Get_row_args)
|
459
|
+
result = Get_row_result.new()
|
460
|
+
begin
|
461
|
+
result.success = @handler.get_row(args.name, args.row)
|
462
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
463
|
+
result.e = e
|
464
|
+
end
|
465
|
+
write_result(result, oprot, 'get_row', seqid)
|
466
|
+
end
|
467
|
+
|
468
|
+
def process_get_row_as_arrays(seqid, iprot, oprot)
|
469
|
+
args = read_args(iprot, Get_row_as_arrays_args)
|
470
|
+
result = Get_row_as_arrays_result.new()
|
471
|
+
begin
|
472
|
+
result.success = @handler.get_row_as_arrays(args.name, args.row)
|
473
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
474
|
+
result.e = e
|
475
|
+
end
|
476
|
+
write_result(result, oprot, 'get_row_as_arrays', seqid)
|
477
|
+
end
|
478
|
+
|
479
|
+
def process_get_cell(seqid, iprot, oprot)
|
480
|
+
args = read_args(iprot, Get_cell_args)
|
481
|
+
result = Get_cell_result.new()
|
482
|
+
begin
|
483
|
+
result.success = @handler.get_cell(args.name, args.row, args.column)
|
484
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
485
|
+
result.e = e
|
486
|
+
end
|
487
|
+
write_result(result, oprot, 'get_cell', seqid)
|
488
|
+
end
|
489
|
+
|
490
|
+
def process_get_cells(seqid, iprot, oprot)
|
491
|
+
args = read_args(iprot, Get_cells_args)
|
492
|
+
result = Get_cells_result.new()
|
493
|
+
begin
|
494
|
+
result.success = @handler.get_cells(args.name, args.scan_spec)
|
495
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
496
|
+
result.e = e
|
497
|
+
end
|
498
|
+
write_result(result, oprot, 'get_cells', seqid)
|
499
|
+
end
|
500
|
+
|
501
|
+
def process_get_cells_as_arrays(seqid, iprot, oprot)
|
502
|
+
args = read_args(iprot, Get_cells_as_arrays_args)
|
503
|
+
result = Get_cells_as_arrays_result.new()
|
504
|
+
begin
|
505
|
+
result.success = @handler.get_cells_as_arrays(args.name, args.scan_spec)
|
506
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
507
|
+
result.e = e
|
508
|
+
end
|
509
|
+
write_result(result, oprot, 'get_cells_as_arrays', seqid)
|
510
|
+
end
|
511
|
+
|
512
|
+
def process_open_mutator(seqid, iprot, oprot)
|
513
|
+
args = read_args(iprot, Open_mutator_args)
|
514
|
+
result = Open_mutator_result.new()
|
515
|
+
begin
|
516
|
+
result.success = @handler.open_mutator(args.name, args.flags, args.flush_interval)
|
517
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
518
|
+
result.e = e
|
519
|
+
end
|
520
|
+
write_result(result, oprot, 'open_mutator', seqid)
|
521
|
+
end
|
522
|
+
|
523
|
+
def process_close_mutator(seqid, iprot, oprot)
|
524
|
+
args = read_args(iprot, Close_mutator_args)
|
525
|
+
result = Close_mutator_result.new()
|
526
|
+
begin
|
527
|
+
@handler.close_mutator(args.mutator, args.flush)
|
528
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
529
|
+
result.e = e
|
530
|
+
end
|
531
|
+
write_result(result, oprot, 'close_mutator', seqid)
|
532
|
+
end
|
533
|
+
|
534
|
+
def process_set_cell(seqid, iprot, oprot)
|
535
|
+
args = read_args(iprot, Set_cell_args)
|
536
|
+
result = Set_cell_result.new()
|
537
|
+
begin
|
538
|
+
@handler.set_cell(args.mutator, args.cell)
|
539
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
540
|
+
result.e = e
|
541
|
+
end
|
542
|
+
write_result(result, oprot, 'set_cell', seqid)
|
543
|
+
end
|
544
|
+
|
545
|
+
def process_set_cell_as_array(seqid, iprot, oprot)
|
546
|
+
args = read_args(iprot, Set_cell_as_array_args)
|
547
|
+
result = Set_cell_as_array_result.new()
|
548
|
+
begin
|
549
|
+
@handler.set_cell_as_array(args.mutator, args.cell)
|
550
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
551
|
+
result.e = e
|
552
|
+
end
|
553
|
+
write_result(result, oprot, 'set_cell_as_array', seqid)
|
554
|
+
end
|
555
|
+
|
556
|
+
def process_set_cells(seqid, iprot, oprot)
|
557
|
+
args = read_args(iprot, Set_cells_args)
|
558
|
+
result = Set_cells_result.new()
|
559
|
+
begin
|
560
|
+
@handler.set_cells(args.mutator, args.cells)
|
561
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
562
|
+
result.e = e
|
563
|
+
end
|
564
|
+
write_result(result, oprot, 'set_cells', seqid)
|
565
|
+
end
|
566
|
+
|
567
|
+
def process_set_cells_as_arrays(seqid, iprot, oprot)
|
568
|
+
args = read_args(iprot, Set_cells_as_arrays_args)
|
569
|
+
result = Set_cells_as_arrays_result.new()
|
570
|
+
begin
|
571
|
+
@handler.set_cells_as_arrays(args.mutator, args.cells)
|
572
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
573
|
+
result.e = e
|
574
|
+
end
|
575
|
+
write_result(result, oprot, 'set_cells_as_arrays', seqid)
|
576
|
+
end
|
577
|
+
|
578
|
+
def process_flush_mutator(seqid, iprot, oprot)
|
579
|
+
args = read_args(iprot, Flush_mutator_args)
|
580
|
+
result = Flush_mutator_result.new()
|
581
|
+
begin
|
582
|
+
@handler.flush_mutator(args.mutator)
|
583
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
584
|
+
result.e = e
|
585
|
+
end
|
586
|
+
write_result(result, oprot, 'flush_mutator', seqid)
|
587
|
+
end
|
588
|
+
|
589
|
+
def process_get_table_id(seqid, iprot, oprot)
|
590
|
+
args = read_args(iprot, Get_table_id_args)
|
591
|
+
result = Get_table_id_result.new()
|
592
|
+
begin
|
593
|
+
result.success = @handler.get_table_id(args.name)
|
594
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
595
|
+
result.e = e
|
596
|
+
end
|
597
|
+
write_result(result, oprot, 'get_table_id', seqid)
|
598
|
+
end
|
599
|
+
|
600
|
+
def process_get_schema(seqid, iprot, oprot)
|
601
|
+
args = read_args(iprot, Get_schema_args)
|
602
|
+
result = Get_schema_result.new()
|
603
|
+
begin
|
604
|
+
result.success = @handler.get_schema(args.name)
|
605
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
606
|
+
result.e = e
|
607
|
+
end
|
608
|
+
write_result(result, oprot, 'get_schema', seqid)
|
609
|
+
end
|
610
|
+
|
611
|
+
def process_get_tables(seqid, iprot, oprot)
|
612
|
+
args = read_args(iprot, Get_tables_args)
|
613
|
+
result = Get_tables_result.new()
|
614
|
+
begin
|
615
|
+
result.success = @handler.get_tables()
|
616
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
617
|
+
result.e = e
|
618
|
+
end
|
619
|
+
write_result(result, oprot, 'get_tables', seqid)
|
620
|
+
end
|
621
|
+
|
622
|
+
def process_drop_table(seqid, iprot, oprot)
|
623
|
+
args = read_args(iprot, Drop_table_args)
|
624
|
+
result = Drop_table_result.new()
|
625
|
+
begin
|
626
|
+
@handler.drop_table(args.name, args.if_exists)
|
627
|
+
rescue Hypertable::ThriftGen::ClientException => e
|
628
|
+
result.e = e
|
629
|
+
end
|
630
|
+
write_result(result, oprot, 'drop_table', seqid)
|
631
|
+
end
|
632
|
+
|
633
|
+
end
|
634
|
+
|
635
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
636
|
+
|
637
|
+
class Create_table_args
|
638
|
+
include ::Thrift::Struct
|
639
|
+
NAME = 1
|
640
|
+
SCHEMA = 2
|
641
|
+
|
642
|
+
::Thrift::Struct.field_accessor self, :name, :schema
|
643
|
+
FIELDS = {
|
644
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
645
|
+
SCHEMA => {:type => ::Thrift::Types::STRING, :name => 'schema'}
|
646
|
+
}
|
647
|
+
|
648
|
+
def struct_fields; FIELDS; end
|
649
|
+
|
650
|
+
def validate
|
651
|
+
end
|
652
|
+
|
653
|
+
end
|
654
|
+
|
655
|
+
class Create_table_result
|
656
|
+
include ::Thrift::Struct
|
657
|
+
E = 1
|
658
|
+
|
659
|
+
::Thrift::Struct.field_accessor self, :e
|
660
|
+
FIELDS = {
|
661
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
662
|
+
}
|
663
|
+
|
664
|
+
def struct_fields; FIELDS; end
|
665
|
+
|
666
|
+
def validate
|
667
|
+
end
|
668
|
+
|
669
|
+
end
|
670
|
+
|
671
|
+
class Open_scanner_args
|
672
|
+
include ::Thrift::Struct
|
673
|
+
NAME = 1
|
674
|
+
SCAN_SPEC = 2
|
675
|
+
RETRY_TABLE_NOT_FOUND = 3
|
676
|
+
|
677
|
+
::Thrift::Struct.field_accessor self, :name, :scan_spec, :retry_table_not_found
|
678
|
+
FIELDS = {
|
679
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
680
|
+
SCAN_SPEC => {:type => ::Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec},
|
681
|
+
RETRY_TABLE_NOT_FOUND => {:type => ::Thrift::Types::BOOL, :name => 'retry_table_not_found', :default => false}
|
682
|
+
}
|
683
|
+
|
684
|
+
def struct_fields; FIELDS; end
|
685
|
+
|
686
|
+
def validate
|
687
|
+
end
|
688
|
+
|
689
|
+
end
|
690
|
+
|
691
|
+
class Open_scanner_result
|
692
|
+
include ::Thrift::Struct
|
693
|
+
SUCCESS = 0
|
694
|
+
E = 1
|
695
|
+
|
696
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
697
|
+
FIELDS = {
|
698
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
699
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
700
|
+
}
|
701
|
+
|
702
|
+
def struct_fields; FIELDS; end
|
703
|
+
|
704
|
+
def validate
|
705
|
+
end
|
706
|
+
|
707
|
+
end
|
708
|
+
|
709
|
+
class Close_scanner_args
|
710
|
+
include ::Thrift::Struct
|
711
|
+
SCANNER = 1
|
712
|
+
|
713
|
+
::Thrift::Struct.field_accessor self, :scanner
|
714
|
+
FIELDS = {
|
715
|
+
SCANNER => {:type => ::Thrift::Types::I64, :name => 'scanner'}
|
716
|
+
}
|
717
|
+
|
718
|
+
def struct_fields; FIELDS; end
|
719
|
+
|
720
|
+
def validate
|
721
|
+
end
|
722
|
+
|
723
|
+
end
|
724
|
+
|
725
|
+
class Close_scanner_result
|
726
|
+
include ::Thrift::Struct
|
727
|
+
E = 1
|
728
|
+
|
729
|
+
::Thrift::Struct.field_accessor self, :e
|
730
|
+
FIELDS = {
|
731
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
732
|
+
}
|
733
|
+
|
734
|
+
def struct_fields; FIELDS; end
|
735
|
+
|
736
|
+
def validate
|
737
|
+
end
|
738
|
+
|
739
|
+
end
|
740
|
+
|
741
|
+
class Next_cells_args
|
742
|
+
include ::Thrift::Struct
|
743
|
+
SCANNER = 1
|
744
|
+
|
745
|
+
::Thrift::Struct.field_accessor self, :scanner
|
746
|
+
FIELDS = {
|
747
|
+
SCANNER => {:type => ::Thrift::Types::I64, :name => 'scanner'}
|
748
|
+
}
|
749
|
+
|
750
|
+
def struct_fields; FIELDS; end
|
751
|
+
|
752
|
+
def validate
|
753
|
+
end
|
754
|
+
|
755
|
+
end
|
756
|
+
|
757
|
+
class Next_cells_result
|
758
|
+
include ::Thrift::Struct
|
759
|
+
SUCCESS = 0
|
760
|
+
E = 1
|
761
|
+
|
762
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
763
|
+
FIELDS = {
|
764
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}},
|
765
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
766
|
+
}
|
767
|
+
|
768
|
+
def struct_fields; FIELDS; end
|
769
|
+
|
770
|
+
def validate
|
771
|
+
end
|
772
|
+
|
773
|
+
end
|
774
|
+
|
775
|
+
class Next_cells_as_arrays_args
|
776
|
+
include ::Thrift::Struct
|
777
|
+
SCANNER = 1
|
778
|
+
|
779
|
+
::Thrift::Struct.field_accessor self, :scanner
|
780
|
+
FIELDS = {
|
781
|
+
SCANNER => {:type => ::Thrift::Types::I64, :name => 'scanner'}
|
782
|
+
}
|
783
|
+
|
784
|
+
def struct_fields; FIELDS; end
|
785
|
+
|
786
|
+
def validate
|
787
|
+
end
|
788
|
+
|
789
|
+
end
|
790
|
+
|
791
|
+
class Next_cells_as_arrays_result
|
792
|
+
include ::Thrift::Struct
|
793
|
+
SUCCESS = 0
|
794
|
+
E = 1
|
795
|
+
|
796
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
797
|
+
FIELDS = {
|
798
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
799
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
800
|
+
}
|
801
|
+
|
802
|
+
def struct_fields; FIELDS; end
|
803
|
+
|
804
|
+
def validate
|
805
|
+
end
|
806
|
+
|
807
|
+
end
|
808
|
+
|
809
|
+
class Next_row_args
|
810
|
+
include ::Thrift::Struct
|
811
|
+
SCANNER = 1
|
812
|
+
|
813
|
+
::Thrift::Struct.field_accessor self, :scanner
|
814
|
+
FIELDS = {
|
815
|
+
SCANNER => {:type => ::Thrift::Types::I64, :name => 'scanner'}
|
816
|
+
}
|
817
|
+
|
818
|
+
def struct_fields; FIELDS; end
|
819
|
+
|
820
|
+
def validate
|
821
|
+
end
|
822
|
+
|
823
|
+
end
|
824
|
+
|
825
|
+
class Next_row_result
|
826
|
+
include ::Thrift::Struct
|
827
|
+
SUCCESS = 0
|
828
|
+
E = 1
|
829
|
+
|
830
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
831
|
+
FIELDS = {
|
832
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}},
|
833
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
834
|
+
}
|
835
|
+
|
836
|
+
def struct_fields; FIELDS; end
|
837
|
+
|
838
|
+
def validate
|
839
|
+
end
|
840
|
+
|
841
|
+
end
|
842
|
+
|
843
|
+
class Next_row_as_arrays_args
|
844
|
+
include ::Thrift::Struct
|
845
|
+
SCANNER = 1
|
846
|
+
|
847
|
+
::Thrift::Struct.field_accessor self, :scanner
|
848
|
+
FIELDS = {
|
849
|
+
SCANNER => {:type => ::Thrift::Types::I64, :name => 'scanner'}
|
850
|
+
}
|
851
|
+
|
852
|
+
def struct_fields; FIELDS; end
|
853
|
+
|
854
|
+
def validate
|
855
|
+
end
|
856
|
+
|
857
|
+
end
|
858
|
+
|
859
|
+
class Next_row_as_arrays_result
|
860
|
+
include ::Thrift::Struct
|
861
|
+
SUCCESS = 0
|
862
|
+
E = 1
|
863
|
+
|
864
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
865
|
+
FIELDS = {
|
866
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
867
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
868
|
+
}
|
869
|
+
|
870
|
+
def struct_fields; FIELDS; end
|
871
|
+
|
872
|
+
def validate
|
873
|
+
end
|
874
|
+
|
875
|
+
end
|
876
|
+
|
877
|
+
class Get_row_args
|
878
|
+
include ::Thrift::Struct
|
879
|
+
NAME = 1
|
880
|
+
ROW = 2
|
881
|
+
|
882
|
+
::Thrift::Struct.field_accessor self, :name, :row
|
883
|
+
FIELDS = {
|
884
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
885
|
+
ROW => {:type => ::Thrift::Types::STRING, :name => 'row'}
|
886
|
+
}
|
887
|
+
|
888
|
+
def struct_fields; FIELDS; end
|
889
|
+
|
890
|
+
def validate
|
891
|
+
end
|
892
|
+
|
893
|
+
end
|
894
|
+
|
895
|
+
class Get_row_result
|
896
|
+
include ::Thrift::Struct
|
897
|
+
SUCCESS = 0
|
898
|
+
E = 1
|
899
|
+
|
900
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
901
|
+
FIELDS = {
|
902
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}},
|
903
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
904
|
+
}
|
905
|
+
|
906
|
+
def struct_fields; FIELDS; end
|
907
|
+
|
908
|
+
def validate
|
909
|
+
end
|
910
|
+
|
911
|
+
end
|
912
|
+
|
913
|
+
class Get_row_as_arrays_args
|
914
|
+
include ::Thrift::Struct
|
915
|
+
NAME = 1
|
916
|
+
ROW = 2
|
917
|
+
|
918
|
+
::Thrift::Struct.field_accessor self, :name, :row
|
919
|
+
FIELDS = {
|
920
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
921
|
+
ROW => {:type => ::Thrift::Types::STRING, :name => 'row'}
|
922
|
+
}
|
923
|
+
|
924
|
+
def struct_fields; FIELDS; end
|
925
|
+
|
926
|
+
def validate
|
927
|
+
end
|
928
|
+
|
929
|
+
end
|
930
|
+
|
931
|
+
class Get_row_as_arrays_result
|
932
|
+
include ::Thrift::Struct
|
933
|
+
SUCCESS = 0
|
934
|
+
E = 1
|
935
|
+
|
936
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
937
|
+
FIELDS = {
|
938
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
939
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
940
|
+
}
|
941
|
+
|
942
|
+
def struct_fields; FIELDS; end
|
943
|
+
|
944
|
+
def validate
|
945
|
+
end
|
946
|
+
|
947
|
+
end
|
948
|
+
|
949
|
+
class Get_cell_args
|
950
|
+
include ::Thrift::Struct
|
951
|
+
NAME = 1
|
952
|
+
ROW = 2
|
953
|
+
COLUMN = 3
|
954
|
+
|
955
|
+
::Thrift::Struct.field_accessor self, :name, :row, :column
|
956
|
+
FIELDS = {
|
957
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
958
|
+
ROW => {:type => ::Thrift::Types::STRING, :name => 'row'},
|
959
|
+
COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column'}
|
960
|
+
}
|
961
|
+
|
962
|
+
def struct_fields; FIELDS; end
|
963
|
+
|
964
|
+
def validate
|
965
|
+
end
|
966
|
+
|
967
|
+
end
|
968
|
+
|
969
|
+
class Get_cell_result
|
970
|
+
include ::Thrift::Struct
|
971
|
+
SUCCESS = 0
|
972
|
+
E = 1
|
973
|
+
|
974
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
975
|
+
FIELDS = {
|
976
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
977
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
978
|
+
}
|
979
|
+
|
980
|
+
def struct_fields; FIELDS; end
|
981
|
+
|
982
|
+
def validate
|
983
|
+
end
|
984
|
+
|
985
|
+
end
|
986
|
+
|
987
|
+
class Get_cells_args
|
988
|
+
include ::Thrift::Struct
|
989
|
+
NAME = 1
|
990
|
+
SCAN_SPEC = 2
|
991
|
+
|
992
|
+
::Thrift::Struct.field_accessor self, :name, :scan_spec
|
993
|
+
FIELDS = {
|
994
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
995
|
+
SCAN_SPEC => {:type => ::Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec}
|
996
|
+
}
|
997
|
+
|
998
|
+
def struct_fields; FIELDS; end
|
999
|
+
|
1000
|
+
def validate
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
class Get_cells_result
|
1006
|
+
include ::Thrift::Struct
|
1007
|
+
SUCCESS = 0
|
1008
|
+
E = 1
|
1009
|
+
|
1010
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
1011
|
+
FIELDS = {
|
1012
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}},
|
1013
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
def struct_fields; FIELDS; end
|
1017
|
+
|
1018
|
+
def validate
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
class Get_cells_as_arrays_args
|
1024
|
+
include ::Thrift::Struct
|
1025
|
+
NAME = 1
|
1026
|
+
SCAN_SPEC = 2
|
1027
|
+
|
1028
|
+
::Thrift::Struct.field_accessor self, :name, :scan_spec
|
1029
|
+
FIELDS = {
|
1030
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1031
|
+
SCAN_SPEC => {:type => ::Thrift::Types::STRUCT, :name => 'scan_spec', :class => Hypertable::ThriftGen::ScanSpec}
|
1032
|
+
}
|
1033
|
+
|
1034
|
+
def struct_fields; FIELDS; end
|
1035
|
+
|
1036
|
+
def validate
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
class Get_cells_as_arrays_result
|
1042
|
+
include ::Thrift::Struct
|
1043
|
+
SUCCESS = 0
|
1044
|
+
E = 1
|
1045
|
+
|
1046
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
1047
|
+
FIELDS = {
|
1048
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
1049
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
def struct_fields; FIELDS; end
|
1053
|
+
|
1054
|
+
def validate
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
class Open_mutator_args
|
1060
|
+
include ::Thrift::Struct
|
1061
|
+
NAME = 1
|
1062
|
+
FLAGS = 2
|
1063
|
+
FLUSH_INTERVAL = 3
|
1064
|
+
|
1065
|
+
::Thrift::Struct.field_accessor self, :name, :flags, :flush_interval
|
1066
|
+
FIELDS = {
|
1067
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1068
|
+
FLAGS => {:type => ::Thrift::Types::I32, :name => 'flags', :default => 0},
|
1069
|
+
FLUSH_INTERVAL => {:type => ::Thrift::Types::I32, :name => 'flush_interval', :default => 0}
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
def struct_fields; FIELDS; end
|
1073
|
+
|
1074
|
+
def validate
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
class Open_mutator_result
|
1080
|
+
include ::Thrift::Struct
|
1081
|
+
SUCCESS = 0
|
1082
|
+
E = 1
|
1083
|
+
|
1084
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
1085
|
+
FIELDS = {
|
1086
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
|
1087
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1088
|
+
}
|
1089
|
+
|
1090
|
+
def struct_fields; FIELDS; end
|
1091
|
+
|
1092
|
+
def validate
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
class Close_mutator_args
|
1098
|
+
include ::Thrift::Struct
|
1099
|
+
MUTATOR = 1
|
1100
|
+
FLUSH = 2
|
1101
|
+
|
1102
|
+
::Thrift::Struct.field_accessor self, :mutator, :flush
|
1103
|
+
FIELDS = {
|
1104
|
+
MUTATOR => {:type => ::Thrift::Types::I64, :name => 'mutator'},
|
1105
|
+
FLUSH => {:type => ::Thrift::Types::BOOL, :name => 'flush', :default => true}
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
def struct_fields; FIELDS; end
|
1109
|
+
|
1110
|
+
def validate
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
class Close_mutator_result
|
1116
|
+
include ::Thrift::Struct
|
1117
|
+
E = 1
|
1118
|
+
|
1119
|
+
::Thrift::Struct.field_accessor self, :e
|
1120
|
+
FIELDS = {
|
1121
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1122
|
+
}
|
1123
|
+
|
1124
|
+
def struct_fields; FIELDS; end
|
1125
|
+
|
1126
|
+
def validate
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
class Set_cell_args
|
1132
|
+
include ::Thrift::Struct
|
1133
|
+
MUTATOR = 1
|
1134
|
+
CELL = 2
|
1135
|
+
|
1136
|
+
::Thrift::Struct.field_accessor self, :mutator, :cell
|
1137
|
+
FIELDS = {
|
1138
|
+
MUTATOR => {:type => ::Thrift::Types::I64, :name => 'mutator'},
|
1139
|
+
CELL => {:type => ::Thrift::Types::STRUCT, :name => 'cell', :class => Hypertable::ThriftGen::Cell}
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
def struct_fields; FIELDS; end
|
1143
|
+
|
1144
|
+
def validate
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
class Set_cell_result
|
1150
|
+
include ::Thrift::Struct
|
1151
|
+
E = 1
|
1152
|
+
|
1153
|
+
::Thrift::Struct.field_accessor self, :e
|
1154
|
+
FIELDS = {
|
1155
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1156
|
+
}
|
1157
|
+
|
1158
|
+
def struct_fields; FIELDS; end
|
1159
|
+
|
1160
|
+
def validate
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
class Set_cell_as_array_args
|
1166
|
+
include ::Thrift::Struct
|
1167
|
+
MUTATOR = 1
|
1168
|
+
CELL = 2
|
1169
|
+
|
1170
|
+
::Thrift::Struct.field_accessor self, :mutator, :cell
|
1171
|
+
FIELDS = {
|
1172
|
+
MUTATOR => {:type => ::Thrift::Types::I64, :name => 'mutator'},
|
1173
|
+
CELL => {:type => ::Thrift::Types::LIST, :name => 'cell', :element => {:type => ::Thrift::Types::STRING}}
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
def struct_fields; FIELDS; end
|
1177
|
+
|
1178
|
+
def validate
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
class Set_cell_as_array_result
|
1184
|
+
include ::Thrift::Struct
|
1185
|
+
E = 1
|
1186
|
+
|
1187
|
+
::Thrift::Struct.field_accessor self, :e
|
1188
|
+
FIELDS = {
|
1189
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
def struct_fields; FIELDS; end
|
1193
|
+
|
1194
|
+
def validate
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
class Set_cells_args
|
1200
|
+
include ::Thrift::Struct
|
1201
|
+
MUTATOR = 1
|
1202
|
+
CELLS = 2
|
1203
|
+
|
1204
|
+
::Thrift::Struct.field_accessor self, :mutator, :cells
|
1205
|
+
FIELDS = {
|
1206
|
+
MUTATOR => {:type => ::Thrift::Types::I64, :name => 'mutator'},
|
1207
|
+
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::Cell}}
|
1208
|
+
}
|
1209
|
+
|
1210
|
+
def struct_fields; FIELDS; end
|
1211
|
+
|
1212
|
+
def validate
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
class Set_cells_result
|
1218
|
+
include ::Thrift::Struct
|
1219
|
+
E = 1
|
1220
|
+
|
1221
|
+
::Thrift::Struct.field_accessor self, :e
|
1222
|
+
FIELDS = {
|
1223
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
def struct_fields; FIELDS; end
|
1227
|
+
|
1228
|
+
def validate
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
class Set_cells_as_arrays_args
|
1234
|
+
include ::Thrift::Struct
|
1235
|
+
MUTATOR = 1
|
1236
|
+
CELLS = 2
|
1237
|
+
|
1238
|
+
::Thrift::Struct.field_accessor self, :mutator, :cells
|
1239
|
+
FIELDS = {
|
1240
|
+
MUTATOR => {:type => ::Thrift::Types::I64, :name => 'mutator'},
|
1241
|
+
CELLS => {:type => ::Thrift::Types::LIST, :name => 'cells', :element => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}}
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
def struct_fields; FIELDS; end
|
1245
|
+
|
1246
|
+
def validate
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
class Set_cells_as_arrays_result
|
1252
|
+
include ::Thrift::Struct
|
1253
|
+
E = 1
|
1254
|
+
|
1255
|
+
::Thrift::Struct.field_accessor self, :e
|
1256
|
+
FIELDS = {
|
1257
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1258
|
+
}
|
1259
|
+
|
1260
|
+
def struct_fields; FIELDS; end
|
1261
|
+
|
1262
|
+
def validate
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
class Flush_mutator_args
|
1268
|
+
include ::Thrift::Struct
|
1269
|
+
MUTATOR = 1
|
1270
|
+
|
1271
|
+
::Thrift::Struct.field_accessor self, :mutator
|
1272
|
+
FIELDS = {
|
1273
|
+
MUTATOR => {:type => ::Thrift::Types::I64, :name => 'mutator'}
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
def struct_fields; FIELDS; end
|
1277
|
+
|
1278
|
+
def validate
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
class Flush_mutator_result
|
1284
|
+
include ::Thrift::Struct
|
1285
|
+
E = 1
|
1286
|
+
|
1287
|
+
::Thrift::Struct.field_accessor self, :e
|
1288
|
+
FIELDS = {
|
1289
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1290
|
+
}
|
1291
|
+
|
1292
|
+
def struct_fields; FIELDS; end
|
1293
|
+
|
1294
|
+
def validate
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
class Get_table_id_args
|
1300
|
+
include ::Thrift::Struct
|
1301
|
+
NAME = 1
|
1302
|
+
|
1303
|
+
::Thrift::Struct.field_accessor self, :name
|
1304
|
+
FIELDS = {
|
1305
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
def struct_fields; FIELDS; end
|
1309
|
+
|
1310
|
+
def validate
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
class Get_table_id_result
|
1316
|
+
include ::Thrift::Struct
|
1317
|
+
SUCCESS = 0
|
1318
|
+
E = 1
|
1319
|
+
|
1320
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
1321
|
+
FIELDS = {
|
1322
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
1323
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
def struct_fields; FIELDS; end
|
1327
|
+
|
1328
|
+
def validate
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
class Get_schema_args
|
1334
|
+
include ::Thrift::Struct
|
1335
|
+
NAME = 1
|
1336
|
+
|
1337
|
+
::Thrift::Struct.field_accessor self, :name
|
1338
|
+
FIELDS = {
|
1339
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
|
1340
|
+
}
|
1341
|
+
|
1342
|
+
def struct_fields; FIELDS; end
|
1343
|
+
|
1344
|
+
def validate
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
class Get_schema_result
|
1350
|
+
include ::Thrift::Struct
|
1351
|
+
SUCCESS = 0
|
1352
|
+
E = 1
|
1353
|
+
|
1354
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
1355
|
+
FIELDS = {
|
1356
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
1357
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
def struct_fields; FIELDS; end
|
1361
|
+
|
1362
|
+
def validate
|
1363
|
+
end
|
1364
|
+
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
class Get_tables_args
|
1368
|
+
include ::Thrift::Struct
|
1369
|
+
|
1370
|
+
FIELDS = {
|
1371
|
+
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
def struct_fields; FIELDS; end
|
1375
|
+
|
1376
|
+
def validate
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
class Get_tables_result
|
1382
|
+
include ::Thrift::Struct
|
1383
|
+
SUCCESS = 0
|
1384
|
+
E = 1
|
1385
|
+
|
1386
|
+
::Thrift::Struct.field_accessor self, :success, :e
|
1387
|
+
FIELDS = {
|
1388
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
1389
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
def struct_fields; FIELDS; end
|
1393
|
+
|
1394
|
+
def validate
|
1395
|
+
end
|
1396
|
+
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
class Drop_table_args
|
1400
|
+
include ::Thrift::Struct
|
1401
|
+
NAME = 1
|
1402
|
+
IF_EXISTS = 2
|
1403
|
+
|
1404
|
+
::Thrift::Struct.field_accessor self, :name, :if_exists
|
1405
|
+
FIELDS = {
|
1406
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
1407
|
+
IF_EXISTS => {:type => ::Thrift::Types::BOOL, :name => 'if_exists', :default => true}
|
1408
|
+
}
|
1409
|
+
|
1410
|
+
def struct_fields; FIELDS; end
|
1411
|
+
|
1412
|
+
def validate
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
class Drop_table_result
|
1418
|
+
include ::Thrift::Struct
|
1419
|
+
E = 1
|
1420
|
+
|
1421
|
+
::Thrift::Struct.field_accessor self, :e
|
1422
|
+
FIELDS = {
|
1423
|
+
E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => Hypertable::ThriftGen::ClientException}
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
def struct_fields; FIELDS; end
|
1427
|
+
|
1428
|
+
def validate
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
end
|
1436
|
+
end
|