ok_hbase 0.0.5

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.
Files changed (42) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +17 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +47 -0
  7. data/Rakefile +22 -0
  8. data/examples/README.md +46 -0
  9. data/examples/advanced/README.md +36 -0
  10. data/examples/advanced/perf_read.rb +146 -0
  11. data/examples/advanced/perf_write.rb +143 -0
  12. data/examples/advanced/table_read.rb +115 -0
  13. data/examples/advanced/table_write.rb +128 -0
  14. data/examples/table_scan.rb +97 -0
  15. data/examples/table_write.rb +97 -0
  16. data/lib/ok_hbase/active_model.rb +35 -0
  17. data/lib/ok_hbase/client.rb +42 -0
  18. data/lib/ok_hbase/concerns/custom_row/class_methods.rb +13 -0
  19. data/lib/ok_hbase/concerns/custom_row.rb +40 -0
  20. data/lib/ok_hbase/concerns/indexable/class_methods.rb +13 -0
  21. data/lib/ok_hbase/concerns/indexable.rb +101 -0
  22. data/lib/ok_hbase/concerns/row.rb +85 -0
  23. data/lib/ok_hbase/concerns/table/batch.rb +95 -0
  24. data/lib/ok_hbase/concerns/table/class_methods.rb +13 -0
  25. data/lib/ok_hbase/concerns/table/instrumentation.rb +48 -0
  26. data/lib/ok_hbase/concerns/table.rb +241 -0
  27. data/lib/ok_hbase/concerns.rb +13 -0
  28. data/lib/ok_hbase/connection.rb +157 -0
  29. data/lib/ok_hbase/row.rb +21 -0
  30. data/lib/ok_hbase/table.rb +10 -0
  31. data/lib/ok_hbase/version.rb +3 -0
  32. data/lib/ok_hbase.rb +39 -0
  33. data/lib/thrift/hbase/hbase.rb +2643 -0
  34. data/lib/thrift/hbase/hbase_constants.rb +14 -0
  35. data/lib/thrift/hbase/hbase_types.rb +252 -0
  36. data/ok-hbase.gemspec +23 -0
  37. data/spec/ok_hbase/connection_spec.rb +99 -0
  38. data/spec/ok_hbase/table_spec.rb +149 -0
  39. data/spec/ok_hbase_spec.rb +24 -0
  40. data/spec/spec_helper.rb +20 -0
  41. data/tasks/bump.rb +30 -0
  42. metadata +122 -0
@@ -0,0 +1,2643 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ module Apache
8
+ module Hadoop
9
+ module Hbase
10
+ module Thrift
11
+ module Hbase
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def enableTable(tableName)
16
+ send_enableTable(tableName)
17
+ recv_enableTable()
18
+ end
19
+
20
+ def send_enableTable(tableName)
21
+ send_message('enableTable', EnableTable_args, :tableName => tableName)
22
+ end
23
+
24
+ def recv_enableTable()
25
+ result = receive_message(EnableTable_result)
26
+ raise result.io unless result.io.nil?
27
+ return
28
+ end
29
+
30
+ def disableTable(tableName)
31
+ send_disableTable(tableName)
32
+ recv_disableTable()
33
+ end
34
+
35
+ def send_disableTable(tableName)
36
+ send_message('disableTable', DisableTable_args, :tableName => tableName)
37
+ end
38
+
39
+ def recv_disableTable()
40
+ result = receive_message(DisableTable_result)
41
+ raise result.io unless result.io.nil?
42
+ return
43
+ end
44
+
45
+ def isTableEnabled(tableName)
46
+ send_isTableEnabled(tableName)
47
+ return recv_isTableEnabled()
48
+ end
49
+
50
+ def send_isTableEnabled(tableName)
51
+ send_message('isTableEnabled', IsTableEnabled_args, :tableName => tableName)
52
+ end
53
+
54
+ def recv_isTableEnabled()
55
+ result = receive_message(IsTableEnabled_result)
56
+ return result.success unless result.success.nil?
57
+ raise result.io unless result.io.nil?
58
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'isTableEnabled failed: unknown result')
59
+ end
60
+
61
+ def compact(tableNameOrRegionName)
62
+ send_compact(tableNameOrRegionName)
63
+ recv_compact()
64
+ end
65
+
66
+ def send_compact(tableNameOrRegionName)
67
+ send_message('compact', Compact_args, :tableNameOrRegionName => tableNameOrRegionName)
68
+ end
69
+
70
+ def recv_compact()
71
+ result = receive_message(Compact_result)
72
+ raise result.io unless result.io.nil?
73
+ return
74
+ end
75
+
76
+ def majorCompact(tableNameOrRegionName)
77
+ send_majorCompact(tableNameOrRegionName)
78
+ recv_majorCompact()
79
+ end
80
+
81
+ def send_majorCompact(tableNameOrRegionName)
82
+ send_message('majorCompact', MajorCompact_args, :tableNameOrRegionName => tableNameOrRegionName)
83
+ end
84
+
85
+ def recv_majorCompact()
86
+ result = receive_message(MajorCompact_result)
87
+ raise result.io unless result.io.nil?
88
+ return
89
+ end
90
+
91
+ def getTableNames()
92
+ send_getTableNames()
93
+ return recv_getTableNames()
94
+ end
95
+
96
+ def send_getTableNames()
97
+ send_message('getTableNames', GetTableNames_args)
98
+ end
99
+
100
+ def recv_getTableNames()
101
+ result = receive_message(GetTableNames_result)
102
+ return result.success unless result.success.nil?
103
+ raise result.io unless result.io.nil?
104
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTableNames failed: unknown result')
105
+ end
106
+
107
+ def getColumnDescriptors(tableName)
108
+ send_getColumnDescriptors(tableName)
109
+ return recv_getColumnDescriptors()
110
+ end
111
+
112
+ def send_getColumnDescriptors(tableName)
113
+ send_message('getColumnDescriptors', GetColumnDescriptors_args, :tableName => tableName)
114
+ end
115
+
116
+ def recv_getColumnDescriptors()
117
+ result = receive_message(GetColumnDescriptors_result)
118
+ return result.success unless result.success.nil?
119
+ raise result.io unless result.io.nil?
120
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getColumnDescriptors failed: unknown result')
121
+ end
122
+
123
+ def getTableRegions(tableName)
124
+ send_getTableRegions(tableName)
125
+ return recv_getTableRegions()
126
+ end
127
+
128
+ def send_getTableRegions(tableName)
129
+ send_message('getTableRegions', GetTableRegions_args, :tableName => tableName)
130
+ end
131
+
132
+ def recv_getTableRegions()
133
+ result = receive_message(GetTableRegions_result)
134
+ return result.success unless result.success.nil?
135
+ raise result.io unless result.io.nil?
136
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTableRegions failed: unknown result')
137
+ end
138
+
139
+ def createTable(tableName, columnFamilies)
140
+ send_createTable(tableName, columnFamilies)
141
+ recv_createTable()
142
+ end
143
+
144
+ def send_createTable(tableName, columnFamilies)
145
+ send_message('createTable', CreateTable_args, :tableName => tableName, :columnFamilies => columnFamilies)
146
+ end
147
+
148
+ def recv_createTable()
149
+ result = receive_message(CreateTable_result)
150
+ raise result.io unless result.io.nil?
151
+ raise result.ia unless result.ia.nil?
152
+ raise result.exist unless result.exist.nil?
153
+ return
154
+ end
155
+
156
+ def deleteTable(tableName)
157
+ send_deleteTable(tableName)
158
+ recv_deleteTable()
159
+ end
160
+
161
+ def send_deleteTable(tableName)
162
+ send_message('deleteTable', DeleteTable_args, :tableName => tableName)
163
+ end
164
+
165
+ def recv_deleteTable()
166
+ result = receive_message(DeleteTable_result)
167
+ raise result.io unless result.io.nil?
168
+ return
169
+ end
170
+
171
+ def get(tableName, row, column)
172
+ send_get(tableName, row, column)
173
+ return recv_get()
174
+ end
175
+
176
+ def send_get(tableName, row, column)
177
+ send_message('get', Get_args, :tableName => tableName, :row => row, :column => column)
178
+ end
179
+
180
+ def recv_get()
181
+ result = receive_message(Get_result)
182
+ return result.success unless result.success.nil?
183
+ raise result.io unless result.io.nil?
184
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
185
+ end
186
+
187
+ def getVer(tableName, row, column, numVersions)
188
+ send_getVer(tableName, row, column, numVersions)
189
+ return recv_getVer()
190
+ end
191
+
192
+ def send_getVer(tableName, row, column, numVersions)
193
+ send_message('getVer', GetVer_args, :tableName => tableName, :row => row, :column => column, :numVersions => numVersions)
194
+ end
195
+
196
+ def recv_getVer()
197
+ result = receive_message(GetVer_result)
198
+ return result.success unless result.success.nil?
199
+ raise result.io unless result.io.nil?
200
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getVer failed: unknown result')
201
+ end
202
+
203
+ def getVerTs(tableName, row, column, timestamp, numVersions)
204
+ send_getVerTs(tableName, row, column, timestamp, numVersions)
205
+ return recv_getVerTs()
206
+ end
207
+
208
+ def send_getVerTs(tableName, row, column, timestamp, numVersions)
209
+ send_message('getVerTs', GetVerTs_args, :tableName => tableName, :row => row, :column => column, :timestamp => timestamp, :numVersions => numVersions)
210
+ end
211
+
212
+ def recv_getVerTs()
213
+ result = receive_message(GetVerTs_result)
214
+ return result.success unless result.success.nil?
215
+ raise result.io unless result.io.nil?
216
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getVerTs failed: unknown result')
217
+ end
218
+
219
+ def getRow(tableName, row)
220
+ send_getRow(tableName, row)
221
+ return recv_getRow()
222
+ end
223
+
224
+ def send_getRow(tableName, row)
225
+ send_message('getRow', GetRow_args, :tableName => tableName, :row => row)
226
+ end
227
+
228
+ def recv_getRow()
229
+ result = receive_message(GetRow_result)
230
+ return result.success unless result.success.nil?
231
+ raise result.io unless result.io.nil?
232
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRow failed: unknown result')
233
+ end
234
+
235
+ def getRowWithColumns(tableName, row, columns)
236
+ send_getRowWithColumns(tableName, row, columns)
237
+ return recv_getRowWithColumns()
238
+ end
239
+
240
+ def send_getRowWithColumns(tableName, row, columns)
241
+ send_message('getRowWithColumns', GetRowWithColumns_args, :tableName => tableName, :row => row, :columns => columns)
242
+ end
243
+
244
+ def recv_getRowWithColumns()
245
+ result = receive_message(GetRowWithColumns_result)
246
+ return result.success unless result.success.nil?
247
+ raise result.io unless result.io.nil?
248
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowWithColumns failed: unknown result')
249
+ end
250
+
251
+ def getRowTs(tableName, row, timestamp)
252
+ send_getRowTs(tableName, row, timestamp)
253
+ return recv_getRowTs()
254
+ end
255
+
256
+ def send_getRowTs(tableName, row, timestamp)
257
+ send_message('getRowTs', GetRowTs_args, :tableName => tableName, :row => row, :timestamp => timestamp)
258
+ end
259
+
260
+ def recv_getRowTs()
261
+ result = receive_message(GetRowTs_result)
262
+ return result.success unless result.success.nil?
263
+ raise result.io unless result.io.nil?
264
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowTs failed: unknown result')
265
+ end
266
+
267
+ def getRowWithColumnsTs(tableName, row, columns, timestamp)
268
+ send_getRowWithColumnsTs(tableName, row, columns, timestamp)
269
+ return recv_getRowWithColumnsTs()
270
+ end
271
+
272
+ def send_getRowWithColumnsTs(tableName, row, columns, timestamp)
273
+ send_message('getRowWithColumnsTs', GetRowWithColumnsTs_args, :tableName => tableName, :row => row, :columns => columns, :timestamp => timestamp)
274
+ end
275
+
276
+ def recv_getRowWithColumnsTs()
277
+ result = receive_message(GetRowWithColumnsTs_result)
278
+ return result.success unless result.success.nil?
279
+ raise result.io unless result.io.nil?
280
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowWithColumnsTs failed: unknown result')
281
+ end
282
+
283
+ def getRows(tableName, rows)
284
+ send_getRows(tableName, rows)
285
+ return recv_getRows()
286
+ end
287
+
288
+ def send_getRows(tableName, rows)
289
+ send_message('getRows', GetRows_args, :tableName => tableName, :rows => rows)
290
+ end
291
+
292
+ def recv_getRows()
293
+ result = receive_message(GetRows_result)
294
+ return result.success unless result.success.nil?
295
+ raise result.io unless result.io.nil?
296
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRows failed: unknown result')
297
+ end
298
+
299
+ def getRowsWithColumns(tableName, rows, columns)
300
+ send_getRowsWithColumns(tableName, rows, columns)
301
+ return recv_getRowsWithColumns()
302
+ end
303
+
304
+ def send_getRowsWithColumns(tableName, rows, columns)
305
+ send_message('getRowsWithColumns', GetRowsWithColumns_args, :tableName => tableName, :rows => rows, :columns => columns)
306
+ end
307
+
308
+ def recv_getRowsWithColumns()
309
+ result = receive_message(GetRowsWithColumns_result)
310
+ return result.success unless result.success.nil?
311
+ raise result.io unless result.io.nil?
312
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowsWithColumns failed: unknown result')
313
+ end
314
+
315
+ def getRowsTs(tableName, rows, timestamp)
316
+ send_getRowsTs(tableName, rows, timestamp)
317
+ return recv_getRowsTs()
318
+ end
319
+
320
+ def send_getRowsTs(tableName, rows, timestamp)
321
+ send_message('getRowsTs', GetRowsTs_args, :tableName => tableName, :rows => rows, :timestamp => timestamp)
322
+ end
323
+
324
+ def recv_getRowsTs()
325
+ result = receive_message(GetRowsTs_result)
326
+ return result.success unless result.success.nil?
327
+ raise result.io unless result.io.nil?
328
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowsTs failed: unknown result')
329
+ end
330
+
331
+ def getRowsWithColumnsTs(tableName, rows, columns, timestamp)
332
+ send_getRowsWithColumnsTs(tableName, rows, columns, timestamp)
333
+ return recv_getRowsWithColumnsTs()
334
+ end
335
+
336
+ def send_getRowsWithColumnsTs(tableName, rows, columns, timestamp)
337
+ send_message('getRowsWithColumnsTs', GetRowsWithColumnsTs_args, :tableName => tableName, :rows => rows, :columns => columns, :timestamp => timestamp)
338
+ end
339
+
340
+ def recv_getRowsWithColumnsTs()
341
+ result = receive_message(GetRowsWithColumnsTs_result)
342
+ return result.success unless result.success.nil?
343
+ raise result.io unless result.io.nil?
344
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowsWithColumnsTs failed: unknown result')
345
+ end
346
+
347
+ def mutateRow(tableName, row, mutations)
348
+ send_mutateRow(tableName, row, mutations)
349
+ recv_mutateRow()
350
+ end
351
+
352
+ def send_mutateRow(tableName, row, mutations)
353
+ send_message('mutateRow', MutateRow_args, :tableName => tableName, :row => row, :mutations => mutations)
354
+ end
355
+
356
+ def recv_mutateRow()
357
+ result = receive_message(MutateRow_result)
358
+ raise result.io unless result.io.nil?
359
+ raise result.ia unless result.ia.nil?
360
+ return
361
+ end
362
+
363
+ def mutateRowTs(tableName, row, mutations, timestamp)
364
+ send_mutateRowTs(tableName, row, mutations, timestamp)
365
+ recv_mutateRowTs()
366
+ end
367
+
368
+ def send_mutateRowTs(tableName, row, mutations, timestamp)
369
+ send_message('mutateRowTs', MutateRowTs_args, :tableName => tableName, :row => row, :mutations => mutations, :timestamp => timestamp)
370
+ end
371
+
372
+ def recv_mutateRowTs()
373
+ result = receive_message(MutateRowTs_result)
374
+ raise result.io unless result.io.nil?
375
+ raise result.ia unless result.ia.nil?
376
+ return
377
+ end
378
+
379
+ def mutateRows(tableName, rowBatches)
380
+ send_mutateRows(tableName, rowBatches)
381
+ recv_mutateRows()
382
+ end
383
+
384
+ def send_mutateRows(tableName, rowBatches)
385
+ send_message('mutateRows', MutateRows_args, :tableName => tableName, :rowBatches => rowBatches)
386
+ end
387
+
388
+ def recv_mutateRows()
389
+ result = receive_message(MutateRows_result)
390
+ raise result.io unless result.io.nil?
391
+ raise result.ia unless result.ia.nil?
392
+ return
393
+ end
394
+
395
+ def mutateRowsTs(tableName, rowBatches, timestamp)
396
+ send_mutateRowsTs(tableName, rowBatches, timestamp)
397
+ recv_mutateRowsTs()
398
+ end
399
+
400
+ def send_mutateRowsTs(tableName, rowBatches, timestamp)
401
+ send_message('mutateRowsTs', MutateRowsTs_args, :tableName => tableName, :rowBatches => rowBatches, :timestamp => timestamp)
402
+ end
403
+
404
+ def recv_mutateRowsTs()
405
+ result = receive_message(MutateRowsTs_result)
406
+ raise result.io unless result.io.nil?
407
+ raise result.ia unless result.ia.nil?
408
+ return
409
+ end
410
+
411
+ def atomicIncrement(tableName, row, column, value)
412
+ send_atomicIncrement(tableName, row, column, value)
413
+ return recv_atomicIncrement()
414
+ end
415
+
416
+ def send_atomicIncrement(tableName, row, column, value)
417
+ send_message('atomicIncrement', AtomicIncrement_args, :tableName => tableName, :row => row, :column => column, :value => value)
418
+ end
419
+
420
+ def recv_atomicIncrement()
421
+ result = receive_message(AtomicIncrement_result)
422
+ return result.success unless result.success.nil?
423
+ raise result.io unless result.io.nil?
424
+ raise result.ia unless result.ia.nil?
425
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'atomicIncrement failed: unknown result')
426
+ end
427
+
428
+ def deleteAll(tableName, row, column)
429
+ send_deleteAll(tableName, row, column)
430
+ recv_deleteAll()
431
+ end
432
+
433
+ def send_deleteAll(tableName, row, column)
434
+ send_message('deleteAll', DeleteAll_args, :tableName => tableName, :row => row, :column => column)
435
+ end
436
+
437
+ def recv_deleteAll()
438
+ result = receive_message(DeleteAll_result)
439
+ raise result.io unless result.io.nil?
440
+ return
441
+ end
442
+
443
+ def deleteAllTs(tableName, row, column, timestamp)
444
+ send_deleteAllTs(tableName, row, column, timestamp)
445
+ recv_deleteAllTs()
446
+ end
447
+
448
+ def send_deleteAllTs(tableName, row, column, timestamp)
449
+ send_message('deleteAllTs', DeleteAllTs_args, :tableName => tableName, :row => row, :column => column, :timestamp => timestamp)
450
+ end
451
+
452
+ def recv_deleteAllTs()
453
+ result = receive_message(DeleteAllTs_result)
454
+ raise result.io unless result.io.nil?
455
+ return
456
+ end
457
+
458
+ def deleteAllRow(tableName, row)
459
+ send_deleteAllRow(tableName, row)
460
+ recv_deleteAllRow()
461
+ end
462
+
463
+ def send_deleteAllRow(tableName, row)
464
+ send_message('deleteAllRow', DeleteAllRow_args, :tableName => tableName, :row => row)
465
+ end
466
+
467
+ def recv_deleteAllRow()
468
+ result = receive_message(DeleteAllRow_result)
469
+ raise result.io unless result.io.nil?
470
+ return
471
+ end
472
+
473
+ def deleteAllRowTs(tableName, row, timestamp)
474
+ send_deleteAllRowTs(tableName, row, timestamp)
475
+ recv_deleteAllRowTs()
476
+ end
477
+
478
+ def send_deleteAllRowTs(tableName, row, timestamp)
479
+ send_message('deleteAllRowTs', DeleteAllRowTs_args, :tableName => tableName, :row => row, :timestamp => timestamp)
480
+ end
481
+
482
+ def recv_deleteAllRowTs()
483
+ result = receive_message(DeleteAllRowTs_result)
484
+ raise result.io unless result.io.nil?
485
+ return
486
+ end
487
+
488
+ def scannerOpenWithScan(tableName, scan)
489
+ send_scannerOpenWithScan(tableName, scan)
490
+ return recv_scannerOpenWithScan()
491
+ end
492
+
493
+ def send_scannerOpenWithScan(tableName, scan)
494
+ send_message('scannerOpenWithScan', ScannerOpenWithScan_args, :tableName => tableName, :scan => scan)
495
+ end
496
+
497
+ def recv_scannerOpenWithScan()
498
+ result = receive_message(ScannerOpenWithScan_result)
499
+ return result.success unless result.success.nil?
500
+ raise result.io unless result.io.nil?
501
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithScan failed: unknown result')
502
+ end
503
+
504
+ def scannerOpen(tableName, startRow, columns)
505
+ send_scannerOpen(tableName, startRow, columns)
506
+ return recv_scannerOpen()
507
+ end
508
+
509
+ def send_scannerOpen(tableName, startRow, columns)
510
+ send_message('scannerOpen', ScannerOpen_args, :tableName => tableName, :startRow => startRow, :columns => columns)
511
+ end
512
+
513
+ def recv_scannerOpen()
514
+ result = receive_message(ScannerOpen_result)
515
+ return result.success unless result.success.nil?
516
+ raise result.io unless result.io.nil?
517
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpen failed: unknown result')
518
+ end
519
+
520
+ def scannerOpenWithStop(tableName, startRow, stopRow, columns)
521
+ send_scannerOpenWithStop(tableName, startRow, stopRow, columns)
522
+ return recv_scannerOpenWithStop()
523
+ end
524
+
525
+ def send_scannerOpenWithStop(tableName, startRow, stopRow, columns)
526
+ send_message('scannerOpenWithStop', ScannerOpenWithStop_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns)
527
+ end
528
+
529
+ def recv_scannerOpenWithStop()
530
+ result = receive_message(ScannerOpenWithStop_result)
531
+ return result.success unless result.success.nil?
532
+ raise result.io unless result.io.nil?
533
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithStop failed: unknown result')
534
+ end
535
+
536
+ def scannerOpenWithPrefix(tableName, startAndPrefix, columns)
537
+ send_scannerOpenWithPrefix(tableName, startAndPrefix, columns)
538
+ return recv_scannerOpenWithPrefix()
539
+ end
540
+
541
+ def send_scannerOpenWithPrefix(tableName, startAndPrefix, columns)
542
+ send_message('scannerOpenWithPrefix', ScannerOpenWithPrefix_args, :tableName => tableName, :startAndPrefix => startAndPrefix, :columns => columns)
543
+ end
544
+
545
+ def recv_scannerOpenWithPrefix()
546
+ result = receive_message(ScannerOpenWithPrefix_result)
547
+ return result.success unless result.success.nil?
548
+ raise result.io unless result.io.nil?
549
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithPrefix failed: unknown result')
550
+ end
551
+
552
+ def scannerOpenTs(tableName, startRow, columns, timestamp)
553
+ send_scannerOpenTs(tableName, startRow, columns, timestamp)
554
+ return recv_scannerOpenTs()
555
+ end
556
+
557
+ def send_scannerOpenTs(tableName, startRow, columns, timestamp)
558
+ send_message('scannerOpenTs', ScannerOpenTs_args, :tableName => tableName, :startRow => startRow, :columns => columns, :timestamp => timestamp)
559
+ end
560
+
561
+ def recv_scannerOpenTs()
562
+ result = receive_message(ScannerOpenTs_result)
563
+ return result.success unless result.success.nil?
564
+ raise result.io unless result.io.nil?
565
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenTs failed: unknown result')
566
+ end
567
+
568
+ def scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
569
+ send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
570
+ return recv_scannerOpenWithStopTs()
571
+ end
572
+
573
+ def send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
574
+ send_message('scannerOpenWithStopTs', ScannerOpenWithStopTs_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns, :timestamp => timestamp)
575
+ end
576
+
577
+ def recv_scannerOpenWithStopTs()
578
+ result = receive_message(ScannerOpenWithStopTs_result)
579
+ return result.success unless result.success.nil?
580
+ raise result.io unless result.io.nil?
581
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithStopTs failed: unknown result')
582
+ end
583
+
584
+ def scannerGet(id)
585
+ send_scannerGet(id)
586
+ return recv_scannerGet()
587
+ end
588
+
589
+ def send_scannerGet(id)
590
+ send_message('scannerGet', ScannerGet_args, :id => id)
591
+ end
592
+
593
+ def recv_scannerGet()
594
+ result = receive_message(ScannerGet_result)
595
+ return result.success unless result.success.nil?
596
+ raise result.io unless result.io.nil?
597
+ raise result.ia unless result.ia.nil?
598
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerGet failed: unknown result')
599
+ end
600
+
601
+ def scannerGetList(id, nbRows)
602
+ send_scannerGetList(id, nbRows)
603
+ return recv_scannerGetList()
604
+ end
605
+
606
+ def send_scannerGetList(id, nbRows)
607
+ send_message('scannerGetList', ScannerGetList_args, :id => id, :nbRows => nbRows)
608
+ end
609
+
610
+ def recv_scannerGetList()
611
+ result = receive_message(ScannerGetList_result)
612
+ return result.success unless result.success.nil?
613
+ raise result.io unless result.io.nil?
614
+ raise result.ia unless result.ia.nil?
615
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerGetList failed: unknown result')
616
+ end
617
+
618
+ def scannerClose(id)
619
+ send_scannerClose(id)
620
+ recv_scannerClose()
621
+ end
622
+
623
+ def send_scannerClose(id)
624
+ send_message('scannerClose', ScannerClose_args, :id => id)
625
+ end
626
+
627
+ def recv_scannerClose()
628
+ result = receive_message(ScannerClose_result)
629
+ raise result.io unless result.io.nil?
630
+ raise result.ia unless result.ia.nil?
631
+ return
632
+ end
633
+
634
+ end
635
+
636
+ class Processor
637
+ include ::Thrift::Processor
638
+
639
+ def process_enableTable(seqid, iprot, oprot)
640
+ args = read_args(iprot, EnableTable_args)
641
+ result = EnableTable_result.new()
642
+ begin
643
+ @handler.enableTable(args.tableName)
644
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
645
+ result.io = io
646
+ end
647
+ write_result(result, oprot, 'enableTable', seqid)
648
+ end
649
+
650
+ def process_disableTable(seqid, iprot, oprot)
651
+ args = read_args(iprot, DisableTable_args)
652
+ result = DisableTable_result.new()
653
+ begin
654
+ @handler.disableTable(args.tableName)
655
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
656
+ result.io = io
657
+ end
658
+ write_result(result, oprot, 'disableTable', seqid)
659
+ end
660
+
661
+ def process_isTableEnabled(seqid, iprot, oprot)
662
+ args = read_args(iprot, IsTableEnabled_args)
663
+ result = IsTableEnabled_result.new()
664
+ begin
665
+ result.success = @handler.isTableEnabled(args.tableName)
666
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
667
+ result.io = io
668
+ end
669
+ write_result(result, oprot, 'isTableEnabled', seqid)
670
+ end
671
+
672
+ def process_compact(seqid, iprot, oprot)
673
+ args = read_args(iprot, Compact_args)
674
+ result = Compact_result.new()
675
+ begin
676
+ @handler.compact(args.tableNameOrRegionName)
677
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
678
+ result.io = io
679
+ end
680
+ write_result(result, oprot, 'compact', seqid)
681
+ end
682
+
683
+ def process_majorCompact(seqid, iprot, oprot)
684
+ args = read_args(iprot, MajorCompact_args)
685
+ result = MajorCompact_result.new()
686
+ begin
687
+ @handler.majorCompact(args.tableNameOrRegionName)
688
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
689
+ result.io = io
690
+ end
691
+ write_result(result, oprot, 'majorCompact', seqid)
692
+ end
693
+
694
+ def process_getTableNames(seqid, iprot, oprot)
695
+ args = read_args(iprot, GetTableNames_args)
696
+ result = GetTableNames_result.new()
697
+ begin
698
+ result.success = @handler.getTableNames()
699
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
700
+ result.io = io
701
+ end
702
+ write_result(result, oprot, 'getTableNames', seqid)
703
+ end
704
+
705
+ def process_getColumnDescriptors(seqid, iprot, oprot)
706
+ args = read_args(iprot, GetColumnDescriptors_args)
707
+ result = GetColumnDescriptors_result.new()
708
+ begin
709
+ result.success = @handler.getColumnDescriptors(args.tableName)
710
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
711
+ result.io = io
712
+ end
713
+ write_result(result, oprot, 'getColumnDescriptors', seqid)
714
+ end
715
+
716
+ def process_getTableRegions(seqid, iprot, oprot)
717
+ args = read_args(iprot, GetTableRegions_args)
718
+ result = GetTableRegions_result.new()
719
+ begin
720
+ result.success = @handler.getTableRegions(args.tableName)
721
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
722
+ result.io = io
723
+ end
724
+ write_result(result, oprot, 'getTableRegions', seqid)
725
+ end
726
+
727
+ def process_createTable(seqid, iprot, oprot)
728
+ args = read_args(iprot, CreateTable_args)
729
+ result = CreateTable_result.new()
730
+ begin
731
+ @handler.createTable(args.tableName, args.columnFamilies)
732
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
733
+ result.io = io
734
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
735
+ result.ia = ia
736
+ rescue ::Apache::Hadoop::Hbase::Thrift::AlreadyExists => exist
737
+ result.exist = exist
738
+ end
739
+ write_result(result, oprot, 'createTable', seqid)
740
+ end
741
+
742
+ def process_deleteTable(seqid, iprot, oprot)
743
+ args = read_args(iprot, DeleteTable_args)
744
+ result = DeleteTable_result.new()
745
+ begin
746
+ @handler.deleteTable(args.tableName)
747
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
748
+ result.io = io
749
+ end
750
+ write_result(result, oprot, 'deleteTable', seqid)
751
+ end
752
+
753
+ def process_get(seqid, iprot, oprot)
754
+ args = read_args(iprot, Get_args)
755
+ result = Get_result.new()
756
+ begin
757
+ result.success = @handler.get(args.tableName, args.row, args.column)
758
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
759
+ result.io = io
760
+ end
761
+ write_result(result, oprot, 'get', seqid)
762
+ end
763
+
764
+ def process_getVer(seqid, iprot, oprot)
765
+ args = read_args(iprot, GetVer_args)
766
+ result = GetVer_result.new()
767
+ begin
768
+ result.success = @handler.getVer(args.tableName, args.row, args.column, args.numVersions)
769
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
770
+ result.io = io
771
+ end
772
+ write_result(result, oprot, 'getVer', seqid)
773
+ end
774
+
775
+ def process_getVerTs(seqid, iprot, oprot)
776
+ args = read_args(iprot, GetVerTs_args)
777
+ result = GetVerTs_result.new()
778
+ begin
779
+ result.success = @handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions)
780
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
781
+ result.io = io
782
+ end
783
+ write_result(result, oprot, 'getVerTs', seqid)
784
+ end
785
+
786
+ def process_getRow(seqid, iprot, oprot)
787
+ args = read_args(iprot, GetRow_args)
788
+ result = GetRow_result.new()
789
+ begin
790
+ result.success = @handler.getRow(args.tableName, args.row)
791
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
792
+ result.io = io
793
+ end
794
+ write_result(result, oprot, 'getRow', seqid)
795
+ end
796
+
797
+ def process_getRowWithColumns(seqid, iprot, oprot)
798
+ args = read_args(iprot, GetRowWithColumns_args)
799
+ result = GetRowWithColumns_result.new()
800
+ begin
801
+ result.success = @handler.getRowWithColumns(args.tableName, args.row, args.columns)
802
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
803
+ result.io = io
804
+ end
805
+ write_result(result, oprot, 'getRowWithColumns', seqid)
806
+ end
807
+
808
+ def process_getRowTs(seqid, iprot, oprot)
809
+ args = read_args(iprot, GetRowTs_args)
810
+ result = GetRowTs_result.new()
811
+ begin
812
+ result.success = @handler.getRowTs(args.tableName, args.row, args.timestamp)
813
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
814
+ result.io = io
815
+ end
816
+ write_result(result, oprot, 'getRowTs', seqid)
817
+ end
818
+
819
+ def process_getRowWithColumnsTs(seqid, iprot, oprot)
820
+ args = read_args(iprot, GetRowWithColumnsTs_args)
821
+ result = GetRowWithColumnsTs_result.new()
822
+ begin
823
+ result.success = @handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp)
824
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
825
+ result.io = io
826
+ end
827
+ write_result(result, oprot, 'getRowWithColumnsTs', seqid)
828
+ end
829
+
830
+ def process_getRows(seqid, iprot, oprot)
831
+ args = read_args(iprot, GetRows_args)
832
+ result = GetRows_result.new()
833
+ begin
834
+ result.success = @handler.getRows(args.tableName, args.rows)
835
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
836
+ result.io = io
837
+ end
838
+ write_result(result, oprot, 'getRows', seqid)
839
+ end
840
+
841
+ def process_getRowsWithColumns(seqid, iprot, oprot)
842
+ args = read_args(iprot, GetRowsWithColumns_args)
843
+ result = GetRowsWithColumns_result.new()
844
+ begin
845
+ result.success = @handler.getRowsWithColumns(args.tableName, args.rows, args.columns)
846
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
847
+ result.io = io
848
+ end
849
+ write_result(result, oprot, 'getRowsWithColumns', seqid)
850
+ end
851
+
852
+ def process_getRowsTs(seqid, iprot, oprot)
853
+ args = read_args(iprot, GetRowsTs_args)
854
+ result = GetRowsTs_result.new()
855
+ begin
856
+ result.success = @handler.getRowsTs(args.tableName, args.rows, args.timestamp)
857
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
858
+ result.io = io
859
+ end
860
+ write_result(result, oprot, 'getRowsTs', seqid)
861
+ end
862
+
863
+ def process_getRowsWithColumnsTs(seqid, iprot, oprot)
864
+ args = read_args(iprot, GetRowsWithColumnsTs_args)
865
+ result = GetRowsWithColumnsTs_result.new()
866
+ begin
867
+ result.success = @handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp)
868
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
869
+ result.io = io
870
+ end
871
+ write_result(result, oprot, 'getRowsWithColumnsTs', seqid)
872
+ end
873
+
874
+ def process_mutateRow(seqid, iprot, oprot)
875
+ args = read_args(iprot, MutateRow_args)
876
+ result = MutateRow_result.new()
877
+ begin
878
+ @handler.mutateRow(args.tableName, args.row, args.mutations)
879
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
880
+ result.io = io
881
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
882
+ result.ia = ia
883
+ end
884
+ write_result(result, oprot, 'mutateRow', seqid)
885
+ end
886
+
887
+ def process_mutateRowTs(seqid, iprot, oprot)
888
+ args = read_args(iprot, MutateRowTs_args)
889
+ result = MutateRowTs_result.new()
890
+ begin
891
+ @handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp)
892
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
893
+ result.io = io
894
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
895
+ result.ia = ia
896
+ end
897
+ write_result(result, oprot, 'mutateRowTs', seqid)
898
+ end
899
+
900
+ def process_mutateRows(seqid, iprot, oprot)
901
+ args = read_args(iprot, MutateRows_args)
902
+ result = MutateRows_result.new()
903
+ begin
904
+ @handler.mutateRows(args.tableName, args.rowBatches)
905
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
906
+ result.io = io
907
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
908
+ result.ia = ia
909
+ end
910
+ write_result(result, oprot, 'mutateRows', seqid)
911
+ end
912
+
913
+ def process_mutateRowsTs(seqid, iprot, oprot)
914
+ args = read_args(iprot, MutateRowsTs_args)
915
+ result = MutateRowsTs_result.new()
916
+ begin
917
+ @handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp)
918
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
919
+ result.io = io
920
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
921
+ result.ia = ia
922
+ end
923
+ write_result(result, oprot, 'mutateRowsTs', seqid)
924
+ end
925
+
926
+ def process_atomicIncrement(seqid, iprot, oprot)
927
+ args = read_args(iprot, AtomicIncrement_args)
928
+ result = AtomicIncrement_result.new()
929
+ begin
930
+ result.success = @handler.atomicIncrement(args.tableName, args.row, args.column, args.value)
931
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
932
+ result.io = io
933
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
934
+ result.ia = ia
935
+ end
936
+ write_result(result, oprot, 'atomicIncrement', seqid)
937
+ end
938
+
939
+ def process_deleteAll(seqid, iprot, oprot)
940
+ args = read_args(iprot, DeleteAll_args)
941
+ result = DeleteAll_result.new()
942
+ begin
943
+ @handler.deleteAll(args.tableName, args.row, args.column)
944
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
945
+ result.io = io
946
+ end
947
+ write_result(result, oprot, 'deleteAll', seqid)
948
+ end
949
+
950
+ def process_deleteAllTs(seqid, iprot, oprot)
951
+ args = read_args(iprot, DeleteAllTs_args)
952
+ result = DeleteAllTs_result.new()
953
+ begin
954
+ @handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp)
955
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
956
+ result.io = io
957
+ end
958
+ write_result(result, oprot, 'deleteAllTs', seqid)
959
+ end
960
+
961
+ def process_deleteAllRow(seqid, iprot, oprot)
962
+ args = read_args(iprot, DeleteAllRow_args)
963
+ result = DeleteAllRow_result.new()
964
+ begin
965
+ @handler.deleteAllRow(args.tableName, args.row)
966
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
967
+ result.io = io
968
+ end
969
+ write_result(result, oprot, 'deleteAllRow', seqid)
970
+ end
971
+
972
+ def process_deleteAllRowTs(seqid, iprot, oprot)
973
+ args = read_args(iprot, DeleteAllRowTs_args)
974
+ result = DeleteAllRowTs_result.new()
975
+ begin
976
+ @handler.deleteAllRowTs(args.tableName, args.row, args.timestamp)
977
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
978
+ result.io = io
979
+ end
980
+ write_result(result, oprot, 'deleteAllRowTs', seqid)
981
+ end
982
+
983
+ def process_scannerOpenWithScan(seqid, iprot, oprot)
984
+ args = read_args(iprot, ScannerOpenWithScan_args)
985
+ result = ScannerOpenWithScan_result.new()
986
+ begin
987
+ result.success = @handler.scannerOpenWithScan(args.tableName, args.scan)
988
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
989
+ result.io = io
990
+ end
991
+ write_result(result, oprot, 'scannerOpenWithScan', seqid)
992
+ end
993
+
994
+ def process_scannerOpen(seqid, iprot, oprot)
995
+ args = read_args(iprot, ScannerOpen_args)
996
+ result = ScannerOpen_result.new()
997
+ begin
998
+ result.success = @handler.scannerOpen(args.tableName, args.startRow, args.columns)
999
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1000
+ result.io = io
1001
+ end
1002
+ write_result(result, oprot, 'scannerOpen', seqid)
1003
+ end
1004
+
1005
+ def process_scannerOpenWithStop(seqid, iprot, oprot)
1006
+ args = read_args(iprot, ScannerOpenWithStop_args)
1007
+ result = ScannerOpenWithStop_result.new()
1008
+ begin
1009
+ result.success = @handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns)
1010
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1011
+ result.io = io
1012
+ end
1013
+ write_result(result, oprot, 'scannerOpenWithStop', seqid)
1014
+ end
1015
+
1016
+ def process_scannerOpenWithPrefix(seqid, iprot, oprot)
1017
+ args = read_args(iprot, ScannerOpenWithPrefix_args)
1018
+ result = ScannerOpenWithPrefix_result.new()
1019
+ begin
1020
+ result.success = @handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns)
1021
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1022
+ result.io = io
1023
+ end
1024
+ write_result(result, oprot, 'scannerOpenWithPrefix', seqid)
1025
+ end
1026
+
1027
+ def process_scannerOpenTs(seqid, iprot, oprot)
1028
+ args = read_args(iprot, ScannerOpenTs_args)
1029
+ result = ScannerOpenTs_result.new()
1030
+ begin
1031
+ result.success = @handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp)
1032
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1033
+ result.io = io
1034
+ end
1035
+ write_result(result, oprot, 'scannerOpenTs', seqid)
1036
+ end
1037
+
1038
+ def process_scannerOpenWithStopTs(seqid, iprot, oprot)
1039
+ args = read_args(iprot, ScannerOpenWithStopTs_args)
1040
+ result = ScannerOpenWithStopTs_result.new()
1041
+ begin
1042
+ result.success = @handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp)
1043
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1044
+ result.io = io
1045
+ end
1046
+ write_result(result, oprot, 'scannerOpenWithStopTs', seqid)
1047
+ end
1048
+
1049
+ def process_scannerGet(seqid, iprot, oprot)
1050
+ args = read_args(iprot, ScannerGet_args)
1051
+ result = ScannerGet_result.new()
1052
+ begin
1053
+ result.success = @handler.scannerGet(args.id)
1054
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1055
+ result.io = io
1056
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
1057
+ result.ia = ia
1058
+ end
1059
+ write_result(result, oprot, 'scannerGet', seqid)
1060
+ end
1061
+
1062
+ def process_scannerGetList(seqid, iprot, oprot)
1063
+ args = read_args(iprot, ScannerGetList_args)
1064
+ result = ScannerGetList_result.new()
1065
+ begin
1066
+ result.success = @handler.scannerGetList(args.id, args.nbRows)
1067
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1068
+ result.io = io
1069
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
1070
+ result.ia = ia
1071
+ end
1072
+ write_result(result, oprot, 'scannerGetList', seqid)
1073
+ end
1074
+
1075
+ def process_scannerClose(seqid, iprot, oprot)
1076
+ args = read_args(iprot, ScannerClose_args)
1077
+ result = ScannerClose_result.new()
1078
+ begin
1079
+ @handler.scannerClose(args.id)
1080
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1081
+ result.io = io
1082
+ rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
1083
+ result.ia = ia
1084
+ end
1085
+ write_result(result, oprot, 'scannerClose', seqid)
1086
+ end
1087
+
1088
+ end
1089
+
1090
+ # HELPER FUNCTIONS AND STRUCTURES
1091
+
1092
+ class EnableTable_args
1093
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1094
+ TABLENAME = 1
1095
+
1096
+ FIELDS = {
1097
+ # name of the table
1098
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1099
+ }
1100
+
1101
+ def struct_fields; FIELDS; end
1102
+
1103
+ def validate
1104
+ end
1105
+
1106
+ ::Thrift::Struct.generate_accessors self
1107
+ end
1108
+
1109
+ class EnableTable_result
1110
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1111
+ IO = 1
1112
+
1113
+ FIELDS = {
1114
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1115
+ }
1116
+
1117
+ def struct_fields; FIELDS; end
1118
+
1119
+ def validate
1120
+ end
1121
+
1122
+ ::Thrift::Struct.generate_accessors self
1123
+ end
1124
+
1125
+ class DisableTable_args
1126
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1127
+ TABLENAME = 1
1128
+
1129
+ FIELDS = {
1130
+ # name of the table
1131
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1132
+ }
1133
+
1134
+ def struct_fields; FIELDS; end
1135
+
1136
+ def validate
1137
+ end
1138
+
1139
+ ::Thrift::Struct.generate_accessors self
1140
+ end
1141
+
1142
+ class DisableTable_result
1143
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1144
+ IO = 1
1145
+
1146
+ FIELDS = {
1147
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1148
+ }
1149
+
1150
+ def struct_fields; FIELDS; end
1151
+
1152
+ def validate
1153
+ end
1154
+
1155
+ ::Thrift::Struct.generate_accessors self
1156
+ end
1157
+
1158
+ class IsTableEnabled_args
1159
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1160
+ TABLENAME = 1
1161
+
1162
+ FIELDS = {
1163
+ # name of the table to check
1164
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1165
+ }
1166
+
1167
+ def struct_fields; FIELDS; end
1168
+
1169
+ def validate
1170
+ end
1171
+
1172
+ ::Thrift::Struct.generate_accessors self
1173
+ end
1174
+
1175
+ class IsTableEnabled_result
1176
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1177
+ SUCCESS = 0
1178
+ IO = 1
1179
+
1180
+ FIELDS = {
1181
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
1182
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1183
+ }
1184
+
1185
+ def struct_fields; FIELDS; end
1186
+
1187
+ def validate
1188
+ end
1189
+
1190
+ ::Thrift::Struct.generate_accessors self
1191
+ end
1192
+
1193
+ class Compact_args
1194
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1195
+ TABLENAMEORREGIONNAME = 1
1196
+
1197
+ FIELDS = {
1198
+ TABLENAMEORREGIONNAME => {:type => ::Thrift::Types::STRING, :name => 'tableNameOrRegionName', :binary => true}
1199
+ }
1200
+
1201
+ def struct_fields; FIELDS; end
1202
+
1203
+ def validate
1204
+ end
1205
+
1206
+ ::Thrift::Struct.generate_accessors self
1207
+ end
1208
+
1209
+ class Compact_result
1210
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1211
+ IO = 1
1212
+
1213
+ FIELDS = {
1214
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1215
+ }
1216
+
1217
+ def struct_fields; FIELDS; end
1218
+
1219
+ def validate
1220
+ end
1221
+
1222
+ ::Thrift::Struct.generate_accessors self
1223
+ end
1224
+
1225
+ class MajorCompact_args
1226
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1227
+ TABLENAMEORREGIONNAME = 1
1228
+
1229
+ FIELDS = {
1230
+ TABLENAMEORREGIONNAME => {:type => ::Thrift::Types::STRING, :name => 'tableNameOrRegionName', :binary => true}
1231
+ }
1232
+
1233
+ def struct_fields; FIELDS; end
1234
+
1235
+ def validate
1236
+ end
1237
+
1238
+ ::Thrift::Struct.generate_accessors self
1239
+ end
1240
+
1241
+ class MajorCompact_result
1242
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1243
+ IO = 1
1244
+
1245
+ FIELDS = {
1246
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1247
+ }
1248
+
1249
+ def struct_fields; FIELDS; end
1250
+
1251
+ def validate
1252
+ end
1253
+
1254
+ ::Thrift::Struct.generate_accessors self
1255
+ end
1256
+
1257
+ class GetTableNames_args
1258
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1259
+
1260
+ FIELDS = {
1261
+
1262
+ }
1263
+
1264
+ def struct_fields; FIELDS; end
1265
+
1266
+ def validate
1267
+ end
1268
+
1269
+ ::Thrift::Struct.generate_accessors self
1270
+ end
1271
+
1272
+ class GetTableNames_result
1273
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1274
+ SUCCESS = 0
1275
+ IO = 1
1276
+
1277
+ FIELDS = {
1278
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1279
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1280
+ }
1281
+
1282
+ def struct_fields; FIELDS; end
1283
+
1284
+ def validate
1285
+ end
1286
+
1287
+ ::Thrift::Struct.generate_accessors self
1288
+ end
1289
+
1290
+ class GetColumnDescriptors_args
1291
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1292
+ TABLENAME = 1
1293
+
1294
+ FIELDS = {
1295
+ # table name
1296
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1297
+ }
1298
+
1299
+ def struct_fields; FIELDS; end
1300
+
1301
+ def validate
1302
+ end
1303
+
1304
+ ::Thrift::Struct.generate_accessors self
1305
+ end
1306
+
1307
+ class GetColumnDescriptors_result
1308
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1309
+ SUCCESS = 0
1310
+ IO = 1
1311
+
1312
+ FIELDS = {
1313
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::ColumnDescriptor}},
1314
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1315
+ }
1316
+
1317
+ def struct_fields; FIELDS; end
1318
+
1319
+ def validate
1320
+ end
1321
+
1322
+ ::Thrift::Struct.generate_accessors self
1323
+ end
1324
+
1325
+ class GetTableRegions_args
1326
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1327
+ TABLENAME = 1
1328
+
1329
+ FIELDS = {
1330
+ # table name
1331
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
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
+ class GetTableRegions_result
1343
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1344
+ SUCCESS = 0
1345
+ IO = 1
1346
+
1347
+ FIELDS = {
1348
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRegionInfo}},
1349
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1350
+ }
1351
+
1352
+ def struct_fields; FIELDS; end
1353
+
1354
+ def validate
1355
+ end
1356
+
1357
+ ::Thrift::Struct.generate_accessors self
1358
+ end
1359
+
1360
+ class CreateTable_args
1361
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1362
+ TABLENAME = 1
1363
+ COLUMNFAMILIES = 2
1364
+
1365
+ FIELDS = {
1366
+ # name of table to create
1367
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1368
+ # list of column family descriptors
1369
+ COLUMNFAMILIES => {:type => ::Thrift::Types::LIST, :name => 'columnFamilies', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::ColumnDescriptor}}
1370
+ }
1371
+
1372
+ def struct_fields; FIELDS; end
1373
+
1374
+ def validate
1375
+ end
1376
+
1377
+ ::Thrift::Struct.generate_accessors self
1378
+ end
1379
+
1380
+ class CreateTable_result
1381
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1382
+ IO = 1
1383
+ IA = 2
1384
+ EXIST = 3
1385
+
1386
+ FIELDS = {
1387
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
1388
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument},
1389
+ EXIST => {:type => ::Thrift::Types::STRUCT, :name => 'exist', :class => ::Apache::Hadoop::Hbase::Thrift::AlreadyExists}
1390
+ }
1391
+
1392
+ def struct_fields; FIELDS; end
1393
+
1394
+ def validate
1395
+ end
1396
+
1397
+ ::Thrift::Struct.generate_accessors self
1398
+ end
1399
+
1400
+ class DeleteTable_args
1401
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1402
+ TABLENAME = 1
1403
+
1404
+ FIELDS = {
1405
+ # name of table to delete
1406
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1407
+ }
1408
+
1409
+ def struct_fields; FIELDS; end
1410
+
1411
+ def validate
1412
+ end
1413
+
1414
+ ::Thrift::Struct.generate_accessors self
1415
+ end
1416
+
1417
+ class DeleteTable_result
1418
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1419
+ IO = 1
1420
+
1421
+ FIELDS = {
1422
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1423
+ }
1424
+
1425
+ def struct_fields; FIELDS; end
1426
+
1427
+ def validate
1428
+ end
1429
+
1430
+ ::Thrift::Struct.generate_accessors self
1431
+ end
1432
+
1433
+ class Get_args
1434
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1435
+ TABLENAME = 1
1436
+ ROW = 2
1437
+ COLUMN = 3
1438
+
1439
+ FIELDS = {
1440
+ # name of table
1441
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1442
+ # row key
1443
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1444
+ # column name
1445
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true}
1446
+ }
1447
+
1448
+ def struct_fields; FIELDS; end
1449
+
1450
+ def validate
1451
+ end
1452
+
1453
+ ::Thrift::Struct.generate_accessors self
1454
+ end
1455
+
1456
+ class Get_result
1457
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1458
+ SUCCESS = 0
1459
+ IO = 1
1460
+
1461
+ FIELDS = {
1462
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TCell}},
1463
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1464
+ }
1465
+
1466
+ def struct_fields; FIELDS; end
1467
+
1468
+ def validate
1469
+ end
1470
+
1471
+ ::Thrift::Struct.generate_accessors self
1472
+ end
1473
+
1474
+ class GetVer_args
1475
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1476
+ TABLENAME = 1
1477
+ ROW = 2
1478
+ COLUMN = 3
1479
+ NUMVERSIONS = 4
1480
+
1481
+ FIELDS = {
1482
+ # name of table
1483
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1484
+ # row key
1485
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1486
+ # column name
1487
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
1488
+ # number of versions to retrieve
1489
+ NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'}
1490
+ }
1491
+
1492
+ def struct_fields; FIELDS; end
1493
+
1494
+ def validate
1495
+ end
1496
+
1497
+ ::Thrift::Struct.generate_accessors self
1498
+ end
1499
+
1500
+ class GetVer_result
1501
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1502
+ SUCCESS = 0
1503
+ IO = 1
1504
+
1505
+ FIELDS = {
1506
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TCell}},
1507
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1508
+ }
1509
+
1510
+ def struct_fields; FIELDS; end
1511
+
1512
+ def validate
1513
+ end
1514
+
1515
+ ::Thrift::Struct.generate_accessors self
1516
+ end
1517
+
1518
+ class GetVerTs_args
1519
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1520
+ TABLENAME = 1
1521
+ ROW = 2
1522
+ COLUMN = 3
1523
+ TIMESTAMP = 4
1524
+ NUMVERSIONS = 5
1525
+
1526
+ FIELDS = {
1527
+ # name of table
1528
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1529
+ # row key
1530
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1531
+ # column name
1532
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
1533
+ # timestamp
1534
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1535
+ # number of versions to retrieve
1536
+ NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'}
1537
+ }
1538
+
1539
+ def struct_fields; FIELDS; end
1540
+
1541
+ def validate
1542
+ end
1543
+
1544
+ ::Thrift::Struct.generate_accessors self
1545
+ end
1546
+
1547
+ class GetVerTs_result
1548
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1549
+ SUCCESS = 0
1550
+ IO = 1
1551
+
1552
+ FIELDS = {
1553
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TCell}},
1554
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1555
+ }
1556
+
1557
+ def struct_fields; FIELDS; end
1558
+
1559
+ def validate
1560
+ end
1561
+
1562
+ ::Thrift::Struct.generate_accessors self
1563
+ end
1564
+
1565
+ class GetRow_args
1566
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1567
+ TABLENAME = 1
1568
+ ROW = 2
1569
+
1570
+ FIELDS = {
1571
+ # name of table
1572
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1573
+ # row key
1574
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
1575
+ }
1576
+
1577
+ def struct_fields; FIELDS; end
1578
+
1579
+ def validate
1580
+ end
1581
+
1582
+ ::Thrift::Struct.generate_accessors self
1583
+ end
1584
+
1585
+ class GetRow_result
1586
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1587
+ SUCCESS = 0
1588
+ IO = 1
1589
+
1590
+ FIELDS = {
1591
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1592
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1593
+ }
1594
+
1595
+ def struct_fields; FIELDS; end
1596
+
1597
+ def validate
1598
+ end
1599
+
1600
+ ::Thrift::Struct.generate_accessors self
1601
+ end
1602
+
1603
+ class GetRowWithColumns_args
1604
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1605
+ TABLENAME = 1
1606
+ ROW = 2
1607
+ COLUMNS = 3
1608
+
1609
+ FIELDS = {
1610
+ # name of table
1611
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1612
+ # row key
1613
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1614
+ # List of columns to return, null for all columns
1615
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1616
+ }
1617
+
1618
+ def struct_fields; FIELDS; end
1619
+
1620
+ def validate
1621
+ end
1622
+
1623
+ ::Thrift::Struct.generate_accessors self
1624
+ end
1625
+
1626
+ class GetRowWithColumns_result
1627
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1628
+ SUCCESS = 0
1629
+ IO = 1
1630
+
1631
+ FIELDS = {
1632
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1633
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1634
+ }
1635
+
1636
+ def struct_fields; FIELDS; end
1637
+
1638
+ def validate
1639
+ end
1640
+
1641
+ ::Thrift::Struct.generate_accessors self
1642
+ end
1643
+
1644
+ class GetRowTs_args
1645
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1646
+ TABLENAME = 1
1647
+ ROW = 2
1648
+ TIMESTAMP = 3
1649
+
1650
+ FIELDS = {
1651
+ # name of the table
1652
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1653
+ # row key
1654
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1655
+ # timestamp
1656
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1657
+ }
1658
+
1659
+ def struct_fields; FIELDS; end
1660
+
1661
+ def validate
1662
+ end
1663
+
1664
+ ::Thrift::Struct.generate_accessors self
1665
+ end
1666
+
1667
+ class GetRowTs_result
1668
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1669
+ SUCCESS = 0
1670
+ IO = 1
1671
+
1672
+ FIELDS = {
1673
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1674
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1675
+ }
1676
+
1677
+ def struct_fields; FIELDS; end
1678
+
1679
+ def validate
1680
+ end
1681
+
1682
+ ::Thrift::Struct.generate_accessors self
1683
+ end
1684
+
1685
+ class GetRowWithColumnsTs_args
1686
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1687
+ TABLENAME = 1
1688
+ ROW = 2
1689
+ COLUMNS = 3
1690
+ TIMESTAMP = 4
1691
+
1692
+ FIELDS = {
1693
+ # name of table
1694
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1695
+ # row key
1696
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1697
+ # List of columns to return, null for all columns
1698
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1699
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1700
+ }
1701
+
1702
+ def struct_fields; FIELDS; end
1703
+
1704
+ def validate
1705
+ end
1706
+
1707
+ ::Thrift::Struct.generate_accessors self
1708
+ end
1709
+
1710
+ class GetRowWithColumnsTs_result
1711
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1712
+ SUCCESS = 0
1713
+ IO = 1
1714
+
1715
+ FIELDS = {
1716
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1717
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1718
+ }
1719
+
1720
+ def struct_fields; FIELDS; end
1721
+
1722
+ def validate
1723
+ end
1724
+
1725
+ ::Thrift::Struct.generate_accessors self
1726
+ end
1727
+
1728
+ class GetRows_args
1729
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1730
+ TABLENAME = 1
1731
+ ROWS = 2
1732
+
1733
+ FIELDS = {
1734
+ # name of table
1735
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1736
+ # row keys
1737
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1738
+ }
1739
+
1740
+ def struct_fields; FIELDS; end
1741
+
1742
+ def validate
1743
+ end
1744
+
1745
+ ::Thrift::Struct.generate_accessors self
1746
+ end
1747
+
1748
+ class GetRows_result
1749
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1750
+ SUCCESS = 0
1751
+ IO = 1
1752
+
1753
+ FIELDS = {
1754
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1755
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1756
+ }
1757
+
1758
+ def struct_fields; FIELDS; end
1759
+
1760
+ def validate
1761
+ end
1762
+
1763
+ ::Thrift::Struct.generate_accessors self
1764
+ end
1765
+
1766
+ class GetRowsWithColumns_args
1767
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1768
+ TABLENAME = 1
1769
+ ROWS = 2
1770
+ COLUMNS = 3
1771
+
1772
+ FIELDS = {
1773
+ # name of table
1774
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1775
+ # row keys
1776
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1777
+ # List of columns to return, null for all columns
1778
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1779
+ }
1780
+
1781
+ def struct_fields; FIELDS; end
1782
+
1783
+ def validate
1784
+ end
1785
+
1786
+ ::Thrift::Struct.generate_accessors self
1787
+ end
1788
+
1789
+ class GetRowsWithColumns_result
1790
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1791
+ SUCCESS = 0
1792
+ IO = 1
1793
+
1794
+ FIELDS = {
1795
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1796
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1797
+ }
1798
+
1799
+ def struct_fields; FIELDS; end
1800
+
1801
+ def validate
1802
+ end
1803
+
1804
+ ::Thrift::Struct.generate_accessors self
1805
+ end
1806
+
1807
+ class GetRowsTs_args
1808
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1809
+ TABLENAME = 1
1810
+ ROWS = 2
1811
+ TIMESTAMP = 3
1812
+
1813
+ FIELDS = {
1814
+ # name of the table
1815
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1816
+ # row keys
1817
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1818
+ # timestamp
1819
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1820
+ }
1821
+
1822
+ def struct_fields; FIELDS; end
1823
+
1824
+ def validate
1825
+ end
1826
+
1827
+ ::Thrift::Struct.generate_accessors self
1828
+ end
1829
+
1830
+ class GetRowsTs_result
1831
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1832
+ SUCCESS = 0
1833
+ IO = 1
1834
+
1835
+ FIELDS = {
1836
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1837
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1838
+ }
1839
+
1840
+ def struct_fields; FIELDS; end
1841
+
1842
+ def validate
1843
+ end
1844
+
1845
+ ::Thrift::Struct.generate_accessors self
1846
+ end
1847
+
1848
+ class GetRowsWithColumnsTs_args
1849
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1850
+ TABLENAME = 1
1851
+ ROWS = 2
1852
+ COLUMNS = 3
1853
+ TIMESTAMP = 4
1854
+
1855
+ FIELDS = {
1856
+ # name of table
1857
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1858
+ # row keys
1859
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1860
+ # List of columns to return, null for all columns
1861
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1862
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1863
+ }
1864
+
1865
+ def struct_fields; FIELDS; end
1866
+
1867
+ def validate
1868
+ end
1869
+
1870
+ ::Thrift::Struct.generate_accessors self
1871
+ end
1872
+
1873
+ class GetRowsWithColumnsTs_result
1874
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1875
+ SUCCESS = 0
1876
+ IO = 1
1877
+
1878
+ FIELDS = {
1879
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
1880
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
1881
+ }
1882
+
1883
+ def struct_fields; FIELDS; end
1884
+
1885
+ def validate
1886
+ end
1887
+
1888
+ ::Thrift::Struct.generate_accessors self
1889
+ end
1890
+
1891
+ class MutateRow_args
1892
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1893
+ TABLENAME = 1
1894
+ ROW = 2
1895
+ MUTATIONS = 3
1896
+
1897
+ FIELDS = {
1898
+ # name of table
1899
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1900
+ # row key
1901
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1902
+ # list of mutation commands
1903
+ MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::Mutation}}
1904
+ }
1905
+
1906
+ def struct_fields; FIELDS; end
1907
+
1908
+ def validate
1909
+ end
1910
+
1911
+ ::Thrift::Struct.generate_accessors self
1912
+ end
1913
+
1914
+ class MutateRow_result
1915
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1916
+ IO = 1
1917
+ IA = 2
1918
+
1919
+ FIELDS = {
1920
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
1921
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
1922
+ }
1923
+
1924
+ def struct_fields; FIELDS; end
1925
+
1926
+ def validate
1927
+ end
1928
+
1929
+ ::Thrift::Struct.generate_accessors self
1930
+ end
1931
+
1932
+ class MutateRowTs_args
1933
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1934
+ TABLENAME = 1
1935
+ ROW = 2
1936
+ MUTATIONS = 3
1937
+ TIMESTAMP = 4
1938
+
1939
+ FIELDS = {
1940
+ # name of table
1941
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1942
+ # row key
1943
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1944
+ # list of mutation commands
1945
+ MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::Mutation}},
1946
+ # timestamp
1947
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1948
+ }
1949
+
1950
+ def struct_fields; FIELDS; end
1951
+
1952
+ def validate
1953
+ end
1954
+
1955
+ ::Thrift::Struct.generate_accessors self
1956
+ end
1957
+
1958
+ class MutateRowTs_result
1959
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1960
+ IO = 1
1961
+ IA = 2
1962
+
1963
+ FIELDS = {
1964
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
1965
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
1966
+ }
1967
+
1968
+ def struct_fields; FIELDS; end
1969
+
1970
+ def validate
1971
+ end
1972
+
1973
+ ::Thrift::Struct.generate_accessors self
1974
+ end
1975
+
1976
+ class MutateRows_args
1977
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1978
+ TABLENAME = 1
1979
+ ROWBATCHES = 2
1980
+
1981
+ FIELDS = {
1982
+ # name of table
1983
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1984
+ # list of row batches
1985
+ ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::BatchMutation}}
1986
+ }
1987
+
1988
+ def struct_fields; FIELDS; end
1989
+
1990
+ def validate
1991
+ end
1992
+
1993
+ ::Thrift::Struct.generate_accessors self
1994
+ end
1995
+
1996
+ class MutateRows_result
1997
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1998
+ IO = 1
1999
+ IA = 2
2000
+
2001
+ FIELDS = {
2002
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
2003
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2004
+ }
2005
+
2006
+ def struct_fields; FIELDS; end
2007
+
2008
+ def validate
2009
+ end
2010
+
2011
+ ::Thrift::Struct.generate_accessors self
2012
+ end
2013
+
2014
+ class MutateRowsTs_args
2015
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2016
+ TABLENAME = 1
2017
+ ROWBATCHES = 2
2018
+ TIMESTAMP = 3
2019
+
2020
+ FIELDS = {
2021
+ # name of table
2022
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2023
+ # list of row batches
2024
+ ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::BatchMutation}},
2025
+ # timestamp
2026
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2027
+ }
2028
+
2029
+ def struct_fields; FIELDS; end
2030
+
2031
+ def validate
2032
+ end
2033
+
2034
+ ::Thrift::Struct.generate_accessors self
2035
+ end
2036
+
2037
+ class MutateRowsTs_result
2038
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2039
+ IO = 1
2040
+ IA = 2
2041
+
2042
+ FIELDS = {
2043
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
2044
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2045
+ }
2046
+
2047
+ def struct_fields; FIELDS; end
2048
+
2049
+ def validate
2050
+ end
2051
+
2052
+ ::Thrift::Struct.generate_accessors self
2053
+ end
2054
+
2055
+ class AtomicIncrement_args
2056
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2057
+ TABLENAME = 1
2058
+ ROW = 2
2059
+ COLUMN = 3
2060
+ VALUE = 4
2061
+
2062
+ FIELDS = {
2063
+ # name of table
2064
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2065
+ # row to increment
2066
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2067
+ # name of column
2068
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
2069
+ # amount to increment by
2070
+ VALUE => {:type => ::Thrift::Types::I64, :name => 'value'}
2071
+ }
2072
+
2073
+ def struct_fields; FIELDS; end
2074
+
2075
+ def validate
2076
+ end
2077
+
2078
+ ::Thrift::Struct.generate_accessors self
2079
+ end
2080
+
2081
+ class AtomicIncrement_result
2082
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2083
+ SUCCESS = 0
2084
+ IO = 1
2085
+ IA = 2
2086
+
2087
+ FIELDS = {
2088
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
2089
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
2090
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2091
+ }
2092
+
2093
+ def struct_fields; FIELDS; end
2094
+
2095
+ def validate
2096
+ end
2097
+
2098
+ ::Thrift::Struct.generate_accessors self
2099
+ end
2100
+
2101
+ class DeleteAll_args
2102
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2103
+ TABLENAME = 1
2104
+ ROW = 2
2105
+ COLUMN = 3
2106
+
2107
+ FIELDS = {
2108
+ # name of table
2109
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2110
+ # Row to update
2111
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2112
+ # name of column whose value is to be deleted
2113
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true}
2114
+ }
2115
+
2116
+ def struct_fields; FIELDS; end
2117
+
2118
+ def validate
2119
+ end
2120
+
2121
+ ::Thrift::Struct.generate_accessors self
2122
+ end
2123
+
2124
+ class DeleteAll_result
2125
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2126
+ IO = 1
2127
+
2128
+ FIELDS = {
2129
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2130
+ }
2131
+
2132
+ def struct_fields; FIELDS; end
2133
+
2134
+ def validate
2135
+ end
2136
+
2137
+ ::Thrift::Struct.generate_accessors self
2138
+ end
2139
+
2140
+ class DeleteAllTs_args
2141
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2142
+ TABLENAME = 1
2143
+ ROW = 2
2144
+ COLUMN = 3
2145
+ TIMESTAMP = 4
2146
+
2147
+ FIELDS = {
2148
+ # name of table
2149
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2150
+ # Row to update
2151
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2152
+ # name of column whose value is to be deleted
2153
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
2154
+ # timestamp
2155
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2156
+ }
2157
+
2158
+ def struct_fields; FIELDS; end
2159
+
2160
+ def validate
2161
+ end
2162
+
2163
+ ::Thrift::Struct.generate_accessors self
2164
+ end
2165
+
2166
+ class DeleteAllTs_result
2167
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2168
+ IO = 1
2169
+
2170
+ FIELDS = {
2171
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2172
+ }
2173
+
2174
+ def struct_fields; FIELDS; end
2175
+
2176
+ def validate
2177
+ end
2178
+
2179
+ ::Thrift::Struct.generate_accessors self
2180
+ end
2181
+
2182
+ class DeleteAllRow_args
2183
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2184
+ TABLENAME = 1
2185
+ ROW = 2
2186
+
2187
+ FIELDS = {
2188
+ # name of table
2189
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2190
+ # key of the row to be completely deleted.
2191
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
2192
+ }
2193
+
2194
+ def struct_fields; FIELDS; end
2195
+
2196
+ def validate
2197
+ end
2198
+
2199
+ ::Thrift::Struct.generate_accessors self
2200
+ end
2201
+
2202
+ class DeleteAllRow_result
2203
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2204
+ IO = 1
2205
+
2206
+ FIELDS = {
2207
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2208
+ }
2209
+
2210
+ def struct_fields; FIELDS; end
2211
+
2212
+ def validate
2213
+ end
2214
+
2215
+ ::Thrift::Struct.generate_accessors self
2216
+ end
2217
+
2218
+ class DeleteAllRowTs_args
2219
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2220
+ TABLENAME = 1
2221
+ ROW = 2
2222
+ TIMESTAMP = 3
2223
+
2224
+ FIELDS = {
2225
+ # name of table
2226
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2227
+ # key of the row to be completely deleted.
2228
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2229
+ # timestamp
2230
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2231
+ }
2232
+
2233
+ def struct_fields; FIELDS; end
2234
+
2235
+ def validate
2236
+ end
2237
+
2238
+ ::Thrift::Struct.generate_accessors self
2239
+ end
2240
+
2241
+ class DeleteAllRowTs_result
2242
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2243
+ IO = 1
2244
+
2245
+ FIELDS = {
2246
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2247
+ }
2248
+
2249
+ def struct_fields; FIELDS; end
2250
+
2251
+ def validate
2252
+ end
2253
+
2254
+ ::Thrift::Struct.generate_accessors self
2255
+ end
2256
+
2257
+ class ScannerOpenWithScan_args
2258
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2259
+ TABLENAME = 1
2260
+ SCAN = 2
2261
+
2262
+ FIELDS = {
2263
+ # name of table
2264
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2265
+ # Scan instance
2266
+ SCAN => {:type => ::Thrift::Types::STRUCT, :name => 'scan', :class => ::Apache::Hadoop::Hbase::Thrift::TScan}
2267
+ }
2268
+
2269
+ def struct_fields; FIELDS; end
2270
+
2271
+ def validate
2272
+ end
2273
+
2274
+ ::Thrift::Struct.generate_accessors self
2275
+ end
2276
+
2277
+ class ScannerOpenWithScan_result
2278
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2279
+ SUCCESS = 0
2280
+ IO = 1
2281
+
2282
+ FIELDS = {
2283
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2284
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2285
+ }
2286
+
2287
+ def struct_fields; FIELDS; end
2288
+
2289
+ def validate
2290
+ end
2291
+
2292
+ ::Thrift::Struct.generate_accessors self
2293
+ end
2294
+
2295
+ class ScannerOpen_args
2296
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2297
+ TABLENAME = 1
2298
+ STARTROW = 2
2299
+ COLUMNS = 3
2300
+
2301
+ FIELDS = {
2302
+ # name of table
2303
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2304
+ # Starting row in table to scan.
2305
+ # Send "" (empty string) to start at the first row.
2306
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2307
+ # columns to scan. If column name is a column family, all
2308
+ # columns of the specified column family are returned. It's also possible
2309
+ # to pass a regex in the column qualifier.
2310
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2311
+ }
2312
+
2313
+ def struct_fields; FIELDS; end
2314
+
2315
+ def validate
2316
+ end
2317
+
2318
+ ::Thrift::Struct.generate_accessors self
2319
+ end
2320
+
2321
+ class ScannerOpen_result
2322
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2323
+ SUCCESS = 0
2324
+ IO = 1
2325
+
2326
+ FIELDS = {
2327
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2328
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2329
+ }
2330
+
2331
+ def struct_fields; FIELDS; end
2332
+
2333
+ def validate
2334
+ end
2335
+
2336
+ ::Thrift::Struct.generate_accessors self
2337
+ end
2338
+
2339
+ class ScannerOpenWithStop_args
2340
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2341
+ TABLENAME = 1
2342
+ STARTROW = 2
2343
+ STOPROW = 3
2344
+ COLUMNS = 4
2345
+
2346
+ FIELDS = {
2347
+ # name of table
2348
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2349
+ # Starting row in table to scan.
2350
+ # Send "" (empty string) to start at the first row.
2351
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2352
+ # row to stop scanning on. This row is *not* included in the
2353
+ # scanner's results
2354
+ STOPROW => {:type => ::Thrift::Types::STRING, :name => 'stopRow', :binary => true},
2355
+ # columns to scan. If column name is a column family, all
2356
+ # columns of the specified column family are returned. It's also possible
2357
+ # to pass a regex in the column qualifier.
2358
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2359
+ }
2360
+
2361
+ def struct_fields; FIELDS; end
2362
+
2363
+ def validate
2364
+ end
2365
+
2366
+ ::Thrift::Struct.generate_accessors self
2367
+ end
2368
+
2369
+ class ScannerOpenWithStop_result
2370
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2371
+ SUCCESS = 0
2372
+ IO = 1
2373
+
2374
+ FIELDS = {
2375
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2376
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2377
+ }
2378
+
2379
+ def struct_fields; FIELDS; end
2380
+
2381
+ def validate
2382
+ end
2383
+
2384
+ ::Thrift::Struct.generate_accessors self
2385
+ end
2386
+
2387
+ class ScannerOpenWithPrefix_args
2388
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2389
+ TABLENAME = 1
2390
+ STARTANDPREFIX = 2
2391
+ COLUMNS = 3
2392
+
2393
+ FIELDS = {
2394
+ # name of table
2395
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2396
+ # the prefix (and thus start row) of the keys you want
2397
+ STARTANDPREFIX => {:type => ::Thrift::Types::STRING, :name => 'startAndPrefix', :binary => true},
2398
+ # the columns you want returned
2399
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2400
+ }
2401
+
2402
+ def struct_fields; FIELDS; end
2403
+
2404
+ def validate
2405
+ end
2406
+
2407
+ ::Thrift::Struct.generate_accessors self
2408
+ end
2409
+
2410
+ class ScannerOpenWithPrefix_result
2411
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2412
+ SUCCESS = 0
2413
+ IO = 1
2414
+
2415
+ FIELDS = {
2416
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2417
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2418
+ }
2419
+
2420
+ def struct_fields; FIELDS; end
2421
+
2422
+ def validate
2423
+ end
2424
+
2425
+ ::Thrift::Struct.generate_accessors self
2426
+ end
2427
+
2428
+ class ScannerOpenTs_args
2429
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2430
+ TABLENAME = 1
2431
+ STARTROW = 2
2432
+ COLUMNS = 3
2433
+ TIMESTAMP = 4
2434
+
2435
+ FIELDS = {
2436
+ # name of table
2437
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2438
+ # Starting row in table to scan.
2439
+ # Send "" (empty string) to start at the first row.
2440
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2441
+ # columns to scan. If column name is a column family, all
2442
+ # columns of the specified column family are returned. It's also possible
2443
+ # to pass a regex in the column qualifier.
2444
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2445
+ # timestamp
2446
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2447
+ }
2448
+
2449
+ def struct_fields; FIELDS; end
2450
+
2451
+ def validate
2452
+ end
2453
+
2454
+ ::Thrift::Struct.generate_accessors self
2455
+ end
2456
+
2457
+ class ScannerOpenTs_result
2458
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2459
+ SUCCESS = 0
2460
+ IO = 1
2461
+
2462
+ FIELDS = {
2463
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2464
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2465
+ }
2466
+
2467
+ def struct_fields; FIELDS; end
2468
+
2469
+ def validate
2470
+ end
2471
+
2472
+ ::Thrift::Struct.generate_accessors self
2473
+ end
2474
+
2475
+ class ScannerOpenWithStopTs_args
2476
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2477
+ TABLENAME = 1
2478
+ STARTROW = 2
2479
+ STOPROW = 3
2480
+ COLUMNS = 4
2481
+ TIMESTAMP = 5
2482
+
2483
+ FIELDS = {
2484
+ # name of table
2485
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2486
+ # Starting row in table to scan.
2487
+ # Send "" (empty string) to start at the first row.
2488
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2489
+ # row to stop scanning on. This row is *not* included in the
2490
+ # scanner's results
2491
+ STOPROW => {:type => ::Thrift::Types::STRING, :name => 'stopRow', :binary => true},
2492
+ # columns to scan. If column name is a column family, all
2493
+ # columns of the specified column family are returned. It's also possible
2494
+ # to pass a regex in the column qualifier.
2495
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2496
+ # timestamp
2497
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2498
+ }
2499
+
2500
+ def struct_fields; FIELDS; end
2501
+
2502
+ def validate
2503
+ end
2504
+
2505
+ ::Thrift::Struct.generate_accessors self
2506
+ end
2507
+
2508
+ class ScannerOpenWithStopTs_result
2509
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2510
+ SUCCESS = 0
2511
+ IO = 1
2512
+
2513
+ FIELDS = {
2514
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2515
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2516
+ }
2517
+
2518
+ def struct_fields; FIELDS; end
2519
+
2520
+ def validate
2521
+ end
2522
+
2523
+ ::Thrift::Struct.generate_accessors self
2524
+ end
2525
+
2526
+ class ScannerGet_args
2527
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2528
+ ID = 1
2529
+
2530
+ FIELDS = {
2531
+ # id of a scanner returned by scannerOpen
2532
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'}
2533
+ }
2534
+
2535
+ def struct_fields; FIELDS; end
2536
+
2537
+ def validate
2538
+ end
2539
+
2540
+ ::Thrift::Struct.generate_accessors self
2541
+ end
2542
+
2543
+ class ScannerGet_result
2544
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2545
+ SUCCESS = 0
2546
+ IO = 1
2547
+ IA = 2
2548
+
2549
+ FIELDS = {
2550
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
2551
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
2552
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2553
+ }
2554
+
2555
+ def struct_fields; FIELDS; end
2556
+
2557
+ def validate
2558
+ end
2559
+
2560
+ ::Thrift::Struct.generate_accessors self
2561
+ end
2562
+
2563
+ class ScannerGetList_args
2564
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2565
+ ID = 1
2566
+ NBROWS = 2
2567
+
2568
+ FIELDS = {
2569
+ # id of a scanner returned by scannerOpen
2570
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'},
2571
+ # number of results to return
2572
+ NBROWS => {:type => ::Thrift::Types::I32, :name => 'nbRows'}
2573
+ }
2574
+
2575
+ def struct_fields; FIELDS; end
2576
+
2577
+ def validate
2578
+ end
2579
+
2580
+ ::Thrift::Struct.generate_accessors self
2581
+ end
2582
+
2583
+ class ScannerGetList_result
2584
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2585
+ SUCCESS = 0
2586
+ IO = 1
2587
+ IA = 2
2588
+
2589
+ FIELDS = {
2590
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TRowResult}},
2591
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
2592
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2593
+ }
2594
+
2595
+ def struct_fields; FIELDS; end
2596
+
2597
+ def validate
2598
+ end
2599
+
2600
+ ::Thrift::Struct.generate_accessors self
2601
+ end
2602
+
2603
+ class ScannerClose_args
2604
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2605
+ ID = 1
2606
+
2607
+ FIELDS = {
2608
+ # id of a scanner returned by scannerOpen
2609
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'}
2610
+ }
2611
+
2612
+ def struct_fields; FIELDS; end
2613
+
2614
+ def validate
2615
+ end
2616
+
2617
+ ::Thrift::Struct.generate_accessors self
2618
+ end
2619
+
2620
+ class ScannerClose_result
2621
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2622
+ IO = 1
2623
+ IA = 2
2624
+
2625
+ FIELDS = {
2626
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError},
2627
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => ::Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2628
+ }
2629
+
2630
+ def struct_fields; FIELDS; end
2631
+
2632
+ def validate
2633
+ end
2634
+
2635
+ ::Thrift::Struct.generate_accessors self
2636
+ end
2637
+
2638
+ end
2639
+
2640
+ end
2641
+ end
2642
+ end
2643
+ end