hbaserb 0.0.1

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