hbase-rb 0.90.4.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ require 'thrift'
2
+
3
+ require File.join(File.dirname(__FILE__), 'hbase', 'hbase_types')
4
+ require File.join(File.dirname(__FILE__), 'hbase', 'hbase')
5
+
6
+ # Try to make the crazy nesting that Thrift generates a little less painful
7
+ module Hbase
8
+ Client = ::Apache::Hadoop::Hbase::Thrift::Hbase::Client
9
+ end
10
+ HBase = Hbase
@@ -0,0 +1,2578 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.7.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ 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 scannerOpen(tableName, startRow, columns)
489
+ send_scannerOpen(tableName, startRow, columns)
490
+ return recv_scannerOpen()
491
+ end
492
+
493
+ def send_scannerOpen(tableName, startRow, columns)
494
+ send_message('scannerOpen', ScannerOpen_args, :tableName => tableName, :startRow => startRow, :columns => columns)
495
+ end
496
+
497
+ def recv_scannerOpen()
498
+ result = receive_message(ScannerOpen_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, 'scannerOpen failed: unknown result')
502
+ end
503
+
504
+ def scannerOpenWithStop(tableName, startRow, stopRow, columns)
505
+ send_scannerOpenWithStop(tableName, startRow, stopRow, columns)
506
+ return recv_scannerOpenWithStop()
507
+ end
508
+
509
+ def send_scannerOpenWithStop(tableName, startRow, stopRow, columns)
510
+ send_message('scannerOpenWithStop', ScannerOpenWithStop_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns)
511
+ end
512
+
513
+ def recv_scannerOpenWithStop()
514
+ result = receive_message(ScannerOpenWithStop_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, 'scannerOpenWithStop failed: unknown result')
518
+ end
519
+
520
+ def scannerOpenWithPrefix(tableName, startAndPrefix, columns)
521
+ send_scannerOpenWithPrefix(tableName, startAndPrefix, columns)
522
+ return recv_scannerOpenWithPrefix()
523
+ end
524
+
525
+ def send_scannerOpenWithPrefix(tableName, startAndPrefix, columns)
526
+ send_message('scannerOpenWithPrefix', ScannerOpenWithPrefix_args, :tableName => tableName, :startAndPrefix => startAndPrefix, :columns => columns)
527
+ end
528
+
529
+ def recv_scannerOpenWithPrefix()
530
+ result = receive_message(ScannerOpenWithPrefix_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, 'scannerOpenWithPrefix failed: unknown result')
534
+ end
535
+
536
+ def scannerOpenTs(tableName, startRow, columns, timestamp)
537
+ send_scannerOpenTs(tableName, startRow, columns, timestamp)
538
+ return recv_scannerOpenTs()
539
+ end
540
+
541
+ def send_scannerOpenTs(tableName, startRow, columns, timestamp)
542
+ send_message('scannerOpenTs', ScannerOpenTs_args, :tableName => tableName, :startRow => startRow, :columns => columns, :timestamp => timestamp)
543
+ end
544
+
545
+ def recv_scannerOpenTs()
546
+ result = receive_message(ScannerOpenTs_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, 'scannerOpenTs failed: unknown result')
550
+ end
551
+
552
+ def scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
553
+ send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
554
+ return recv_scannerOpenWithStopTs()
555
+ end
556
+
557
+ def send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
558
+ send_message('scannerOpenWithStopTs', ScannerOpenWithStopTs_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns, :timestamp => timestamp)
559
+ end
560
+
561
+ def recv_scannerOpenWithStopTs()
562
+ result = receive_message(ScannerOpenWithStopTs_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, 'scannerOpenWithStopTs failed: unknown result')
566
+ end
567
+
568
+ def scannerGet(id)
569
+ send_scannerGet(id)
570
+ return recv_scannerGet()
571
+ end
572
+
573
+ def send_scannerGet(id)
574
+ send_message('scannerGet', ScannerGet_args, :id => id)
575
+ end
576
+
577
+ def recv_scannerGet()
578
+ result = receive_message(ScannerGet_result)
579
+ return result.success unless result.success.nil?
580
+ raise result.io unless result.io.nil?
581
+ raise result.ia unless result.ia.nil?
582
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerGet failed: unknown result')
583
+ end
584
+
585
+ def scannerGetList(id, nbRows)
586
+ send_scannerGetList(id, nbRows)
587
+ return recv_scannerGetList()
588
+ end
589
+
590
+ def send_scannerGetList(id, nbRows)
591
+ send_message('scannerGetList', ScannerGetList_args, :id => id, :nbRows => nbRows)
592
+ end
593
+
594
+ def recv_scannerGetList()
595
+ result = receive_message(ScannerGetList_result)
596
+ return result.success unless result.success.nil?
597
+ raise result.io unless result.io.nil?
598
+ raise result.ia unless result.ia.nil?
599
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerGetList failed: unknown result')
600
+ end
601
+
602
+ def scannerClose(id)
603
+ send_scannerClose(id)
604
+ recv_scannerClose()
605
+ end
606
+
607
+ def send_scannerClose(id)
608
+ send_message('scannerClose', ScannerClose_args, :id => id)
609
+ end
610
+
611
+ def recv_scannerClose()
612
+ result = receive_message(ScannerClose_result)
613
+ raise result.io unless result.io.nil?
614
+ raise result.ia unless result.ia.nil?
615
+ return
616
+ end
617
+
618
+ end
619
+
620
+ class Processor
621
+ include ::Thrift::Processor
622
+
623
+ def process_enableTable(seqid, iprot, oprot)
624
+ args = read_args(iprot, EnableTable_args)
625
+ result = EnableTable_result.new()
626
+ begin
627
+ @handler.enableTable(args.tableName)
628
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
629
+ result.io = io
630
+ end
631
+ write_result(result, oprot, 'enableTable', seqid)
632
+ end
633
+
634
+ def process_disableTable(seqid, iprot, oprot)
635
+ args = read_args(iprot, DisableTable_args)
636
+ result = DisableTable_result.new()
637
+ begin
638
+ @handler.disableTable(args.tableName)
639
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
640
+ result.io = io
641
+ end
642
+ write_result(result, oprot, 'disableTable', seqid)
643
+ end
644
+
645
+ def process_isTableEnabled(seqid, iprot, oprot)
646
+ args = read_args(iprot, IsTableEnabled_args)
647
+ result = IsTableEnabled_result.new()
648
+ begin
649
+ result.success = @handler.isTableEnabled(args.tableName)
650
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
651
+ result.io = io
652
+ end
653
+ write_result(result, oprot, 'isTableEnabled', seqid)
654
+ end
655
+
656
+ def process_compact(seqid, iprot, oprot)
657
+ args = read_args(iprot, Compact_args)
658
+ result = Compact_result.new()
659
+ begin
660
+ @handler.compact(args.tableNameOrRegionName)
661
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
662
+ result.io = io
663
+ end
664
+ write_result(result, oprot, 'compact', seqid)
665
+ end
666
+
667
+ def process_majorCompact(seqid, iprot, oprot)
668
+ args = read_args(iprot, MajorCompact_args)
669
+ result = MajorCompact_result.new()
670
+ begin
671
+ @handler.majorCompact(args.tableNameOrRegionName)
672
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
673
+ result.io = io
674
+ end
675
+ write_result(result, oprot, 'majorCompact', seqid)
676
+ end
677
+
678
+ def process_getTableNames(seqid, iprot, oprot)
679
+ args = read_args(iprot, GetTableNames_args)
680
+ result = GetTableNames_result.new()
681
+ begin
682
+ result.success = @handler.getTableNames()
683
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
684
+ result.io = io
685
+ end
686
+ write_result(result, oprot, 'getTableNames', seqid)
687
+ end
688
+
689
+ def process_getColumnDescriptors(seqid, iprot, oprot)
690
+ args = read_args(iprot, GetColumnDescriptors_args)
691
+ result = GetColumnDescriptors_result.new()
692
+ begin
693
+ result.success = @handler.getColumnDescriptors(args.tableName)
694
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
695
+ result.io = io
696
+ end
697
+ write_result(result, oprot, 'getColumnDescriptors', seqid)
698
+ end
699
+
700
+ def process_getTableRegions(seqid, iprot, oprot)
701
+ args = read_args(iprot, GetTableRegions_args)
702
+ result = GetTableRegions_result.new()
703
+ begin
704
+ result.success = @handler.getTableRegions(args.tableName)
705
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
706
+ result.io = io
707
+ end
708
+ write_result(result, oprot, 'getTableRegions', seqid)
709
+ end
710
+
711
+ def process_createTable(seqid, iprot, oprot)
712
+ args = read_args(iprot, CreateTable_args)
713
+ result = CreateTable_result.new()
714
+ begin
715
+ @handler.createTable(args.tableName, args.columnFamilies)
716
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
717
+ result.io = io
718
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
719
+ result.ia = ia
720
+ rescue Apache::Hadoop::Hbase::Thrift::AlreadyExists => exist
721
+ result.exist = exist
722
+ end
723
+ write_result(result, oprot, 'createTable', seqid)
724
+ end
725
+
726
+ def process_deleteTable(seqid, iprot, oprot)
727
+ args = read_args(iprot, DeleteTable_args)
728
+ result = DeleteTable_result.new()
729
+ begin
730
+ @handler.deleteTable(args.tableName)
731
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
732
+ result.io = io
733
+ end
734
+ write_result(result, oprot, 'deleteTable', seqid)
735
+ end
736
+
737
+ def process_get(seqid, iprot, oprot)
738
+ args = read_args(iprot, Get_args)
739
+ result = Get_result.new()
740
+ begin
741
+ result.success = @handler.get(args.tableName, args.row, args.column)
742
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
743
+ result.io = io
744
+ end
745
+ write_result(result, oprot, 'get', seqid)
746
+ end
747
+
748
+ def process_getVer(seqid, iprot, oprot)
749
+ args = read_args(iprot, GetVer_args)
750
+ result = GetVer_result.new()
751
+ begin
752
+ result.success = @handler.getVer(args.tableName, args.row, args.column, args.numVersions)
753
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
754
+ result.io = io
755
+ end
756
+ write_result(result, oprot, 'getVer', seqid)
757
+ end
758
+
759
+ def process_getVerTs(seqid, iprot, oprot)
760
+ args = read_args(iprot, GetVerTs_args)
761
+ result = GetVerTs_result.new()
762
+ begin
763
+ result.success = @handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions)
764
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
765
+ result.io = io
766
+ end
767
+ write_result(result, oprot, 'getVerTs', seqid)
768
+ end
769
+
770
+ def process_getRow(seqid, iprot, oprot)
771
+ args = read_args(iprot, GetRow_args)
772
+ result = GetRow_result.new()
773
+ begin
774
+ result.success = @handler.getRow(args.tableName, args.row)
775
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
776
+ result.io = io
777
+ end
778
+ write_result(result, oprot, 'getRow', seqid)
779
+ end
780
+
781
+ def process_getRowWithColumns(seqid, iprot, oprot)
782
+ args = read_args(iprot, GetRowWithColumns_args)
783
+ result = GetRowWithColumns_result.new()
784
+ begin
785
+ result.success = @handler.getRowWithColumns(args.tableName, args.row, args.columns)
786
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
787
+ result.io = io
788
+ end
789
+ write_result(result, oprot, 'getRowWithColumns', seqid)
790
+ end
791
+
792
+ def process_getRowTs(seqid, iprot, oprot)
793
+ args = read_args(iprot, GetRowTs_args)
794
+ result = GetRowTs_result.new()
795
+ begin
796
+ result.success = @handler.getRowTs(args.tableName, args.row, args.timestamp)
797
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
798
+ result.io = io
799
+ end
800
+ write_result(result, oprot, 'getRowTs', seqid)
801
+ end
802
+
803
+ def process_getRowWithColumnsTs(seqid, iprot, oprot)
804
+ args = read_args(iprot, GetRowWithColumnsTs_args)
805
+ result = GetRowWithColumnsTs_result.new()
806
+ begin
807
+ result.success = @handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp)
808
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
809
+ result.io = io
810
+ end
811
+ write_result(result, oprot, 'getRowWithColumnsTs', seqid)
812
+ end
813
+
814
+ def process_getRows(seqid, iprot, oprot)
815
+ args = read_args(iprot, GetRows_args)
816
+ result = GetRows_result.new()
817
+ begin
818
+ result.success = @handler.getRows(args.tableName, args.rows)
819
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
820
+ result.io = io
821
+ end
822
+ write_result(result, oprot, 'getRows', seqid)
823
+ end
824
+
825
+ def process_getRowsWithColumns(seqid, iprot, oprot)
826
+ args = read_args(iprot, GetRowsWithColumns_args)
827
+ result = GetRowsWithColumns_result.new()
828
+ begin
829
+ result.success = @handler.getRowsWithColumns(args.tableName, args.rows, args.columns)
830
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
831
+ result.io = io
832
+ end
833
+ write_result(result, oprot, 'getRowsWithColumns', seqid)
834
+ end
835
+
836
+ def process_getRowsTs(seqid, iprot, oprot)
837
+ args = read_args(iprot, GetRowsTs_args)
838
+ result = GetRowsTs_result.new()
839
+ begin
840
+ result.success = @handler.getRowsTs(args.tableName, args.rows, args.timestamp)
841
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
842
+ result.io = io
843
+ end
844
+ write_result(result, oprot, 'getRowsTs', seqid)
845
+ end
846
+
847
+ def process_getRowsWithColumnsTs(seqid, iprot, oprot)
848
+ args = read_args(iprot, GetRowsWithColumnsTs_args)
849
+ result = GetRowsWithColumnsTs_result.new()
850
+ begin
851
+ result.success = @handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp)
852
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
853
+ result.io = io
854
+ end
855
+ write_result(result, oprot, 'getRowsWithColumnsTs', seqid)
856
+ end
857
+
858
+ def process_mutateRow(seqid, iprot, oprot)
859
+ args = read_args(iprot, MutateRow_args)
860
+ result = MutateRow_result.new()
861
+ begin
862
+ @handler.mutateRow(args.tableName, args.row, args.mutations)
863
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
864
+ result.io = io
865
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
866
+ result.ia = ia
867
+ end
868
+ write_result(result, oprot, 'mutateRow', seqid)
869
+ end
870
+
871
+ def process_mutateRowTs(seqid, iprot, oprot)
872
+ args = read_args(iprot, MutateRowTs_args)
873
+ result = MutateRowTs_result.new()
874
+ begin
875
+ @handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp)
876
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
877
+ result.io = io
878
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
879
+ result.ia = ia
880
+ end
881
+ write_result(result, oprot, 'mutateRowTs', seqid)
882
+ end
883
+
884
+ def process_mutateRows(seqid, iprot, oprot)
885
+ args = read_args(iprot, MutateRows_args)
886
+ result = MutateRows_result.new()
887
+ begin
888
+ @handler.mutateRows(args.tableName, args.rowBatches)
889
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
890
+ result.io = io
891
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
892
+ result.ia = ia
893
+ end
894
+ write_result(result, oprot, 'mutateRows', seqid)
895
+ end
896
+
897
+ def process_mutateRowsTs(seqid, iprot, oprot)
898
+ args = read_args(iprot, MutateRowsTs_args)
899
+ result = MutateRowsTs_result.new()
900
+ begin
901
+ @handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp)
902
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
903
+ result.io = io
904
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
905
+ result.ia = ia
906
+ end
907
+ write_result(result, oprot, 'mutateRowsTs', seqid)
908
+ end
909
+
910
+ def process_atomicIncrement(seqid, iprot, oprot)
911
+ args = read_args(iprot, AtomicIncrement_args)
912
+ result = AtomicIncrement_result.new()
913
+ begin
914
+ result.success = @handler.atomicIncrement(args.tableName, args.row, args.column, args.value)
915
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
916
+ result.io = io
917
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
918
+ result.ia = ia
919
+ end
920
+ write_result(result, oprot, 'atomicIncrement', seqid)
921
+ end
922
+
923
+ def process_deleteAll(seqid, iprot, oprot)
924
+ args = read_args(iprot, DeleteAll_args)
925
+ result = DeleteAll_result.new()
926
+ begin
927
+ @handler.deleteAll(args.tableName, args.row, args.column)
928
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
929
+ result.io = io
930
+ end
931
+ write_result(result, oprot, 'deleteAll', seqid)
932
+ end
933
+
934
+ def process_deleteAllTs(seqid, iprot, oprot)
935
+ args = read_args(iprot, DeleteAllTs_args)
936
+ result = DeleteAllTs_result.new()
937
+ begin
938
+ @handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp)
939
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
940
+ result.io = io
941
+ end
942
+ write_result(result, oprot, 'deleteAllTs', seqid)
943
+ end
944
+
945
+ def process_deleteAllRow(seqid, iprot, oprot)
946
+ args = read_args(iprot, DeleteAllRow_args)
947
+ result = DeleteAllRow_result.new()
948
+ begin
949
+ @handler.deleteAllRow(args.tableName, args.row)
950
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
951
+ result.io = io
952
+ end
953
+ write_result(result, oprot, 'deleteAllRow', seqid)
954
+ end
955
+
956
+ def process_deleteAllRowTs(seqid, iprot, oprot)
957
+ args = read_args(iprot, DeleteAllRowTs_args)
958
+ result = DeleteAllRowTs_result.new()
959
+ begin
960
+ @handler.deleteAllRowTs(args.tableName, args.row, args.timestamp)
961
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
962
+ result.io = io
963
+ end
964
+ write_result(result, oprot, 'deleteAllRowTs', seqid)
965
+ end
966
+
967
+ def process_scannerOpen(seqid, iprot, oprot)
968
+ args = read_args(iprot, ScannerOpen_args)
969
+ result = ScannerOpen_result.new()
970
+ begin
971
+ result.success = @handler.scannerOpen(args.tableName, args.startRow, args.columns)
972
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
973
+ result.io = io
974
+ end
975
+ write_result(result, oprot, 'scannerOpen', seqid)
976
+ end
977
+
978
+ def process_scannerOpenWithStop(seqid, iprot, oprot)
979
+ args = read_args(iprot, ScannerOpenWithStop_args)
980
+ result = ScannerOpenWithStop_result.new()
981
+ begin
982
+ result.success = @handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns)
983
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
984
+ result.io = io
985
+ end
986
+ write_result(result, oprot, 'scannerOpenWithStop', seqid)
987
+ end
988
+
989
+ def process_scannerOpenWithPrefix(seqid, iprot, oprot)
990
+ args = read_args(iprot, ScannerOpenWithPrefix_args)
991
+ result = ScannerOpenWithPrefix_result.new()
992
+ begin
993
+ result.success = @handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns)
994
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
995
+ result.io = io
996
+ end
997
+ write_result(result, oprot, 'scannerOpenWithPrefix', seqid)
998
+ end
999
+
1000
+ def process_scannerOpenTs(seqid, iprot, oprot)
1001
+ args = read_args(iprot, ScannerOpenTs_args)
1002
+ result = ScannerOpenTs_result.new()
1003
+ begin
1004
+ result.success = @handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp)
1005
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
1006
+ result.io = io
1007
+ end
1008
+ write_result(result, oprot, 'scannerOpenTs', seqid)
1009
+ end
1010
+
1011
+ def process_scannerOpenWithStopTs(seqid, iprot, oprot)
1012
+ args = read_args(iprot, ScannerOpenWithStopTs_args)
1013
+ result = ScannerOpenWithStopTs_result.new()
1014
+ begin
1015
+ result.success = @handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp)
1016
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
1017
+ result.io = io
1018
+ end
1019
+ write_result(result, oprot, 'scannerOpenWithStopTs', seqid)
1020
+ end
1021
+
1022
+ def process_scannerGet(seqid, iprot, oprot)
1023
+ args = read_args(iprot, ScannerGet_args)
1024
+ result = ScannerGet_result.new()
1025
+ begin
1026
+ result.success = @handler.scannerGet(args.id)
1027
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
1028
+ result.io = io
1029
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
1030
+ result.ia = ia
1031
+ end
1032
+ write_result(result, oprot, 'scannerGet', seqid)
1033
+ end
1034
+
1035
+ def process_scannerGetList(seqid, iprot, oprot)
1036
+ args = read_args(iprot, ScannerGetList_args)
1037
+ result = ScannerGetList_result.new()
1038
+ begin
1039
+ result.success = @handler.scannerGetList(args.id, args.nbRows)
1040
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
1041
+ result.io = io
1042
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
1043
+ result.ia = ia
1044
+ end
1045
+ write_result(result, oprot, 'scannerGetList', seqid)
1046
+ end
1047
+
1048
+ def process_scannerClose(seqid, iprot, oprot)
1049
+ args = read_args(iprot, ScannerClose_args)
1050
+ result = ScannerClose_result.new()
1051
+ begin
1052
+ @handler.scannerClose(args.id)
1053
+ rescue Apache::Hadoop::Hbase::Thrift::IOError => io
1054
+ result.io = io
1055
+ rescue Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
1056
+ result.ia = ia
1057
+ end
1058
+ write_result(result, oprot, 'scannerClose', seqid)
1059
+ end
1060
+
1061
+ end
1062
+
1063
+ # HELPER FUNCTIONS AND STRUCTURES
1064
+
1065
+ class EnableTable_args
1066
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1067
+ TABLENAME = 1
1068
+
1069
+ FIELDS = {
1070
+ # name of the table
1071
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1072
+ }
1073
+
1074
+ def struct_fields; FIELDS; end
1075
+
1076
+ def validate
1077
+ end
1078
+
1079
+ ::Thrift::Struct.generate_accessors self
1080
+ end
1081
+
1082
+ class EnableTable_result
1083
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1084
+ IO = 1
1085
+
1086
+ FIELDS = {
1087
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1088
+ }
1089
+
1090
+ def struct_fields; FIELDS; end
1091
+
1092
+ def validate
1093
+ end
1094
+
1095
+ ::Thrift::Struct.generate_accessors self
1096
+ end
1097
+
1098
+ class DisableTable_args
1099
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1100
+ TABLENAME = 1
1101
+
1102
+ FIELDS = {
1103
+ # name of the table
1104
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1105
+ }
1106
+
1107
+ def struct_fields; FIELDS; end
1108
+
1109
+ def validate
1110
+ end
1111
+
1112
+ ::Thrift::Struct.generate_accessors self
1113
+ end
1114
+
1115
+ class DisableTable_result
1116
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1117
+ IO = 1
1118
+
1119
+ FIELDS = {
1120
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1121
+ }
1122
+
1123
+ def struct_fields; FIELDS; end
1124
+
1125
+ def validate
1126
+ end
1127
+
1128
+ ::Thrift::Struct.generate_accessors self
1129
+ end
1130
+
1131
+ class IsTableEnabled_args
1132
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1133
+ TABLENAME = 1
1134
+
1135
+ FIELDS = {
1136
+ # name of the table to check
1137
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1138
+ }
1139
+
1140
+ def struct_fields; FIELDS; end
1141
+
1142
+ def validate
1143
+ end
1144
+
1145
+ ::Thrift::Struct.generate_accessors self
1146
+ end
1147
+
1148
+ class IsTableEnabled_result
1149
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1150
+ SUCCESS = 0
1151
+ IO = 1
1152
+
1153
+ FIELDS = {
1154
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
1155
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1156
+ }
1157
+
1158
+ def struct_fields; FIELDS; end
1159
+
1160
+ def validate
1161
+ end
1162
+
1163
+ ::Thrift::Struct.generate_accessors self
1164
+ end
1165
+
1166
+ class Compact_args
1167
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1168
+ TABLENAMEORREGIONNAME = 1
1169
+
1170
+ FIELDS = {
1171
+ TABLENAMEORREGIONNAME => {:type => ::Thrift::Types::STRING, :name => 'tableNameOrRegionName', :binary => true}
1172
+ }
1173
+
1174
+ def struct_fields; FIELDS; end
1175
+
1176
+ def validate
1177
+ end
1178
+
1179
+ ::Thrift::Struct.generate_accessors self
1180
+ end
1181
+
1182
+ class Compact_result
1183
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1184
+ IO = 1
1185
+
1186
+ FIELDS = {
1187
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1188
+ }
1189
+
1190
+ def struct_fields; FIELDS; end
1191
+
1192
+ def validate
1193
+ end
1194
+
1195
+ ::Thrift::Struct.generate_accessors self
1196
+ end
1197
+
1198
+ class MajorCompact_args
1199
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1200
+ TABLENAMEORREGIONNAME = 1
1201
+
1202
+ FIELDS = {
1203
+ TABLENAMEORREGIONNAME => {:type => ::Thrift::Types::STRING, :name => 'tableNameOrRegionName', :binary => true}
1204
+ }
1205
+
1206
+ def struct_fields; FIELDS; end
1207
+
1208
+ def validate
1209
+ end
1210
+
1211
+ ::Thrift::Struct.generate_accessors self
1212
+ end
1213
+
1214
+ class MajorCompact_result
1215
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1216
+ IO = 1
1217
+
1218
+ FIELDS = {
1219
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1220
+ }
1221
+
1222
+ def struct_fields; FIELDS; end
1223
+
1224
+ def validate
1225
+ end
1226
+
1227
+ ::Thrift::Struct.generate_accessors self
1228
+ end
1229
+
1230
+ class GetTableNames_args
1231
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1232
+
1233
+ FIELDS = {
1234
+
1235
+ }
1236
+
1237
+ def struct_fields; FIELDS; end
1238
+
1239
+ def validate
1240
+ end
1241
+
1242
+ ::Thrift::Struct.generate_accessors self
1243
+ end
1244
+
1245
+ class GetTableNames_result
1246
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1247
+ SUCCESS = 0
1248
+ IO = 1
1249
+
1250
+ FIELDS = {
1251
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1252
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1253
+ }
1254
+
1255
+ def struct_fields; FIELDS; end
1256
+
1257
+ def validate
1258
+ end
1259
+
1260
+ ::Thrift::Struct.generate_accessors self
1261
+ end
1262
+
1263
+ class GetColumnDescriptors_args
1264
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1265
+ TABLENAME = 1
1266
+
1267
+ FIELDS = {
1268
+ # table name
1269
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1270
+ }
1271
+
1272
+ def struct_fields; FIELDS; end
1273
+
1274
+ def validate
1275
+ end
1276
+
1277
+ ::Thrift::Struct.generate_accessors self
1278
+ end
1279
+
1280
+ class GetColumnDescriptors_result
1281
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1282
+ SUCCESS = 0
1283
+ IO = 1
1284
+
1285
+ FIELDS = {
1286
+ 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}},
1287
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1288
+ }
1289
+
1290
+ def struct_fields; FIELDS; end
1291
+
1292
+ def validate
1293
+ end
1294
+
1295
+ ::Thrift::Struct.generate_accessors self
1296
+ end
1297
+
1298
+ class GetTableRegions_args
1299
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1300
+ TABLENAME = 1
1301
+
1302
+ FIELDS = {
1303
+ # table name
1304
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1305
+ }
1306
+
1307
+ def struct_fields; FIELDS; end
1308
+
1309
+ def validate
1310
+ end
1311
+
1312
+ ::Thrift::Struct.generate_accessors self
1313
+ end
1314
+
1315
+ class GetTableRegions_result
1316
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1317
+ SUCCESS = 0
1318
+ IO = 1
1319
+
1320
+ FIELDS = {
1321
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRegionInfo}},
1322
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1323
+ }
1324
+
1325
+ def struct_fields; FIELDS; end
1326
+
1327
+ def validate
1328
+ end
1329
+
1330
+ ::Thrift::Struct.generate_accessors self
1331
+ end
1332
+
1333
+ class CreateTable_args
1334
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1335
+ TABLENAME = 1
1336
+ COLUMNFAMILIES = 2
1337
+
1338
+ FIELDS = {
1339
+ # name of table to create
1340
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1341
+ # list of column family descriptors
1342
+ COLUMNFAMILIES => {:type => ::Thrift::Types::LIST, :name => 'columnFamilies', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::ColumnDescriptor}}
1343
+ }
1344
+
1345
+ def struct_fields; FIELDS; end
1346
+
1347
+ def validate
1348
+ end
1349
+
1350
+ ::Thrift::Struct.generate_accessors self
1351
+ end
1352
+
1353
+ class CreateTable_result
1354
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1355
+ IO = 1
1356
+ IA = 2
1357
+ EXIST = 3
1358
+
1359
+ FIELDS = {
1360
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
1361
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument},
1362
+ EXIST => {:type => ::Thrift::Types::STRUCT, :name => 'exist', :class => Apache::Hadoop::Hbase::Thrift::AlreadyExists}
1363
+ }
1364
+
1365
+ def struct_fields; FIELDS; end
1366
+
1367
+ def validate
1368
+ end
1369
+
1370
+ ::Thrift::Struct.generate_accessors self
1371
+ end
1372
+
1373
+ class DeleteTable_args
1374
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1375
+ TABLENAME = 1
1376
+
1377
+ FIELDS = {
1378
+ # name of table to delete
1379
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true}
1380
+ }
1381
+
1382
+ def struct_fields; FIELDS; end
1383
+
1384
+ def validate
1385
+ end
1386
+
1387
+ ::Thrift::Struct.generate_accessors self
1388
+ end
1389
+
1390
+ class DeleteTable_result
1391
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1392
+ IO = 1
1393
+
1394
+ FIELDS = {
1395
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1396
+ }
1397
+
1398
+ def struct_fields; FIELDS; end
1399
+
1400
+ def validate
1401
+ end
1402
+
1403
+ ::Thrift::Struct.generate_accessors self
1404
+ end
1405
+
1406
+ class Get_args
1407
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1408
+ TABLENAME = 1
1409
+ ROW = 2
1410
+ COLUMN = 3
1411
+
1412
+ FIELDS = {
1413
+ # name of table
1414
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1415
+ # row key
1416
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1417
+ # column name
1418
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true}
1419
+ }
1420
+
1421
+ def struct_fields; FIELDS; end
1422
+
1423
+ def validate
1424
+ end
1425
+
1426
+ ::Thrift::Struct.generate_accessors self
1427
+ end
1428
+
1429
+ class Get_result
1430
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1431
+ SUCCESS = 0
1432
+ IO = 1
1433
+
1434
+ FIELDS = {
1435
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TCell}},
1436
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1437
+ }
1438
+
1439
+ def struct_fields; FIELDS; end
1440
+
1441
+ def validate
1442
+ end
1443
+
1444
+ ::Thrift::Struct.generate_accessors self
1445
+ end
1446
+
1447
+ class GetVer_args
1448
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1449
+ TABLENAME = 1
1450
+ ROW = 2
1451
+ COLUMN = 3
1452
+ NUMVERSIONS = 4
1453
+
1454
+ FIELDS = {
1455
+ # name of table
1456
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1457
+ # row key
1458
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1459
+ # column name
1460
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
1461
+ # number of versions to retrieve
1462
+ NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'}
1463
+ }
1464
+
1465
+ def struct_fields; FIELDS; end
1466
+
1467
+ def validate
1468
+ end
1469
+
1470
+ ::Thrift::Struct.generate_accessors self
1471
+ end
1472
+
1473
+ class GetVer_result
1474
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1475
+ SUCCESS = 0
1476
+ IO = 1
1477
+
1478
+ FIELDS = {
1479
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TCell}},
1480
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1481
+ }
1482
+
1483
+ def struct_fields; FIELDS; end
1484
+
1485
+ def validate
1486
+ end
1487
+
1488
+ ::Thrift::Struct.generate_accessors self
1489
+ end
1490
+
1491
+ class GetVerTs_args
1492
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1493
+ TABLENAME = 1
1494
+ ROW = 2
1495
+ COLUMN = 3
1496
+ TIMESTAMP = 4
1497
+ NUMVERSIONS = 5
1498
+
1499
+ FIELDS = {
1500
+ # name of table
1501
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1502
+ # row key
1503
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1504
+ # column name
1505
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
1506
+ # timestamp
1507
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1508
+ # number of versions to retrieve
1509
+ NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'}
1510
+ }
1511
+
1512
+ def struct_fields; FIELDS; end
1513
+
1514
+ def validate
1515
+ end
1516
+
1517
+ ::Thrift::Struct.generate_accessors self
1518
+ end
1519
+
1520
+ class GetVerTs_result
1521
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1522
+ SUCCESS = 0
1523
+ IO = 1
1524
+
1525
+ FIELDS = {
1526
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TCell}},
1527
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1528
+ }
1529
+
1530
+ def struct_fields; FIELDS; end
1531
+
1532
+ def validate
1533
+ end
1534
+
1535
+ ::Thrift::Struct.generate_accessors self
1536
+ end
1537
+
1538
+ class GetRow_args
1539
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1540
+ TABLENAME = 1
1541
+ ROW = 2
1542
+
1543
+ FIELDS = {
1544
+ # name of table
1545
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1546
+ # row key
1547
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
1548
+ }
1549
+
1550
+ def struct_fields; FIELDS; end
1551
+
1552
+ def validate
1553
+ end
1554
+
1555
+ ::Thrift::Struct.generate_accessors self
1556
+ end
1557
+
1558
+ class GetRow_result
1559
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1560
+ SUCCESS = 0
1561
+ IO = 1
1562
+
1563
+ FIELDS = {
1564
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1565
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1566
+ }
1567
+
1568
+ def struct_fields; FIELDS; end
1569
+
1570
+ def validate
1571
+ end
1572
+
1573
+ ::Thrift::Struct.generate_accessors self
1574
+ end
1575
+
1576
+ class GetRowWithColumns_args
1577
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1578
+ TABLENAME = 1
1579
+ ROW = 2
1580
+ COLUMNS = 3
1581
+
1582
+ FIELDS = {
1583
+ # name of table
1584
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1585
+ # row key
1586
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1587
+ # List of columns to return, null for all columns
1588
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1589
+ }
1590
+
1591
+ def struct_fields; FIELDS; end
1592
+
1593
+ def validate
1594
+ end
1595
+
1596
+ ::Thrift::Struct.generate_accessors self
1597
+ end
1598
+
1599
+ class GetRowWithColumns_result
1600
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1601
+ SUCCESS = 0
1602
+ IO = 1
1603
+
1604
+ FIELDS = {
1605
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1606
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1607
+ }
1608
+
1609
+ def struct_fields; FIELDS; end
1610
+
1611
+ def validate
1612
+ end
1613
+
1614
+ ::Thrift::Struct.generate_accessors self
1615
+ end
1616
+
1617
+ class GetRowTs_args
1618
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1619
+ TABLENAME = 1
1620
+ ROW = 2
1621
+ TIMESTAMP = 3
1622
+
1623
+ FIELDS = {
1624
+ # name of the table
1625
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1626
+ # row key
1627
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1628
+ # timestamp
1629
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1630
+ }
1631
+
1632
+ def struct_fields; FIELDS; end
1633
+
1634
+ def validate
1635
+ end
1636
+
1637
+ ::Thrift::Struct.generate_accessors self
1638
+ end
1639
+
1640
+ class GetRowTs_result
1641
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1642
+ SUCCESS = 0
1643
+ IO = 1
1644
+
1645
+ FIELDS = {
1646
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1647
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1648
+ }
1649
+
1650
+ def struct_fields; FIELDS; end
1651
+
1652
+ def validate
1653
+ end
1654
+
1655
+ ::Thrift::Struct.generate_accessors self
1656
+ end
1657
+
1658
+ class GetRowWithColumnsTs_args
1659
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1660
+ TABLENAME = 1
1661
+ ROW = 2
1662
+ COLUMNS = 3
1663
+ TIMESTAMP = 4
1664
+
1665
+ FIELDS = {
1666
+ # name of table
1667
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1668
+ # row key
1669
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1670
+ # List of columns to return, null for all columns
1671
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1672
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1673
+ }
1674
+
1675
+ def struct_fields; FIELDS; end
1676
+
1677
+ def validate
1678
+ end
1679
+
1680
+ ::Thrift::Struct.generate_accessors self
1681
+ end
1682
+
1683
+ class GetRowWithColumnsTs_result
1684
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1685
+ SUCCESS = 0
1686
+ IO = 1
1687
+
1688
+ FIELDS = {
1689
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1690
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
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 GetRows_args
1702
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1703
+ TABLENAME = 1
1704
+ ROWS = 2
1705
+
1706
+ FIELDS = {
1707
+ # name of table
1708
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1709
+ # row keys
1710
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1711
+ }
1712
+
1713
+ def struct_fields; FIELDS; end
1714
+
1715
+ def validate
1716
+ end
1717
+
1718
+ ::Thrift::Struct.generate_accessors self
1719
+ end
1720
+
1721
+ class GetRows_result
1722
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1723
+ SUCCESS = 0
1724
+ IO = 1
1725
+
1726
+ FIELDS = {
1727
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1728
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1729
+ }
1730
+
1731
+ def struct_fields; FIELDS; end
1732
+
1733
+ def validate
1734
+ end
1735
+
1736
+ ::Thrift::Struct.generate_accessors self
1737
+ end
1738
+
1739
+ class GetRowsWithColumns_args
1740
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1741
+ TABLENAME = 1
1742
+ ROWS = 2
1743
+ COLUMNS = 3
1744
+
1745
+ FIELDS = {
1746
+ # name of table
1747
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1748
+ # row keys
1749
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1750
+ # List of columns to return, null for all columns
1751
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1752
+ }
1753
+
1754
+ def struct_fields; FIELDS; end
1755
+
1756
+ def validate
1757
+ end
1758
+
1759
+ ::Thrift::Struct.generate_accessors self
1760
+ end
1761
+
1762
+ class GetRowsWithColumns_result
1763
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1764
+ SUCCESS = 0
1765
+ IO = 1
1766
+
1767
+ FIELDS = {
1768
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1769
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1770
+ }
1771
+
1772
+ def struct_fields; FIELDS; end
1773
+
1774
+ def validate
1775
+ end
1776
+
1777
+ ::Thrift::Struct.generate_accessors self
1778
+ end
1779
+
1780
+ class GetRowsTs_args
1781
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1782
+ TABLENAME = 1
1783
+ ROWS = 2
1784
+ TIMESTAMP = 3
1785
+
1786
+ FIELDS = {
1787
+ # name of the table
1788
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1789
+ # row keys
1790
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1791
+ # timestamp
1792
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1793
+ }
1794
+
1795
+ def struct_fields; FIELDS; end
1796
+
1797
+ def validate
1798
+ end
1799
+
1800
+ ::Thrift::Struct.generate_accessors self
1801
+ end
1802
+
1803
+ class GetRowsTs_result
1804
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1805
+ SUCCESS = 0
1806
+ IO = 1
1807
+
1808
+ FIELDS = {
1809
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1810
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1811
+ }
1812
+
1813
+ def struct_fields; FIELDS; end
1814
+
1815
+ def validate
1816
+ end
1817
+
1818
+ ::Thrift::Struct.generate_accessors self
1819
+ end
1820
+
1821
+ class GetRowsWithColumnsTs_args
1822
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1823
+ TABLENAME = 1
1824
+ ROWS = 2
1825
+ COLUMNS = 3
1826
+ TIMESTAMP = 4
1827
+
1828
+ FIELDS = {
1829
+ # name of table
1830
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1831
+ # row keys
1832
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1833
+ # List of columns to return, null for all columns
1834
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1835
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1836
+ }
1837
+
1838
+ def struct_fields; FIELDS; end
1839
+
1840
+ def validate
1841
+ end
1842
+
1843
+ ::Thrift::Struct.generate_accessors self
1844
+ end
1845
+
1846
+ class GetRowsWithColumnsTs_result
1847
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1848
+ SUCCESS = 0
1849
+ IO = 1
1850
+
1851
+ FIELDS = {
1852
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
1853
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
1854
+ }
1855
+
1856
+ def struct_fields; FIELDS; end
1857
+
1858
+ def validate
1859
+ end
1860
+
1861
+ ::Thrift::Struct.generate_accessors self
1862
+ end
1863
+
1864
+ class MutateRow_args
1865
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1866
+ TABLENAME = 1
1867
+ ROW = 2
1868
+ MUTATIONS = 3
1869
+
1870
+ FIELDS = {
1871
+ # name of table
1872
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1873
+ # row key
1874
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1875
+ # list of mutation commands
1876
+ MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::Mutation}}
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 MutateRow_result
1888
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1889
+ IO = 1
1890
+ IA = 2
1891
+
1892
+ FIELDS = {
1893
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
1894
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
1895
+ }
1896
+
1897
+ def struct_fields; FIELDS; end
1898
+
1899
+ def validate
1900
+ end
1901
+
1902
+ ::Thrift::Struct.generate_accessors self
1903
+ end
1904
+
1905
+ class MutateRowTs_args
1906
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1907
+ TABLENAME = 1
1908
+ ROW = 2
1909
+ MUTATIONS = 3
1910
+ TIMESTAMP = 4
1911
+
1912
+ FIELDS = {
1913
+ # name of table
1914
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1915
+ # row key
1916
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1917
+ # list of mutation commands
1918
+ MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::Mutation}},
1919
+ # timestamp
1920
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1921
+ }
1922
+
1923
+ def struct_fields; FIELDS; end
1924
+
1925
+ def validate
1926
+ end
1927
+
1928
+ ::Thrift::Struct.generate_accessors self
1929
+ end
1930
+
1931
+ class MutateRowTs_result
1932
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1933
+ IO = 1
1934
+ IA = 2
1935
+
1936
+ FIELDS = {
1937
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
1938
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
1939
+ }
1940
+
1941
+ def struct_fields; FIELDS; end
1942
+
1943
+ def validate
1944
+ end
1945
+
1946
+ ::Thrift::Struct.generate_accessors self
1947
+ end
1948
+
1949
+ class MutateRows_args
1950
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1951
+ TABLENAME = 1
1952
+ ROWBATCHES = 2
1953
+
1954
+ FIELDS = {
1955
+ # name of table
1956
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1957
+ # list of row batches
1958
+ ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::BatchMutation}}
1959
+ }
1960
+
1961
+ def struct_fields; FIELDS; end
1962
+
1963
+ def validate
1964
+ end
1965
+
1966
+ ::Thrift::Struct.generate_accessors self
1967
+ end
1968
+
1969
+ class MutateRows_result
1970
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1971
+ IO = 1
1972
+ IA = 2
1973
+
1974
+ FIELDS = {
1975
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
1976
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
1977
+ }
1978
+
1979
+ def struct_fields; FIELDS; end
1980
+
1981
+ def validate
1982
+ end
1983
+
1984
+ ::Thrift::Struct.generate_accessors self
1985
+ end
1986
+
1987
+ class MutateRowsTs_args
1988
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1989
+ TABLENAME = 1
1990
+ ROWBATCHES = 2
1991
+ TIMESTAMP = 3
1992
+
1993
+ FIELDS = {
1994
+ # name of table
1995
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1996
+ # list of row batches
1997
+ ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::BatchMutation}},
1998
+ # timestamp
1999
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2000
+ }
2001
+
2002
+ def struct_fields; FIELDS; end
2003
+
2004
+ def validate
2005
+ end
2006
+
2007
+ ::Thrift::Struct.generate_accessors self
2008
+ end
2009
+
2010
+ class MutateRowsTs_result
2011
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2012
+ IO = 1
2013
+ IA = 2
2014
+
2015
+ FIELDS = {
2016
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
2017
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2018
+ }
2019
+
2020
+ def struct_fields; FIELDS; end
2021
+
2022
+ def validate
2023
+ end
2024
+
2025
+ ::Thrift::Struct.generate_accessors self
2026
+ end
2027
+
2028
+ class AtomicIncrement_args
2029
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2030
+ TABLENAME = 1
2031
+ ROW = 2
2032
+ COLUMN = 3
2033
+ VALUE = 4
2034
+
2035
+ FIELDS = {
2036
+ # name of table
2037
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2038
+ # row to increment
2039
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2040
+ # name of column
2041
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
2042
+ # amount to increment by
2043
+ VALUE => {:type => ::Thrift::Types::I64, :name => 'value'}
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 AtomicIncrement_result
2055
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2056
+ SUCCESS = 0
2057
+ IO = 1
2058
+ IA = 2
2059
+
2060
+ FIELDS = {
2061
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
2062
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
2063
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2064
+ }
2065
+
2066
+ def struct_fields; FIELDS; end
2067
+
2068
+ def validate
2069
+ end
2070
+
2071
+ ::Thrift::Struct.generate_accessors self
2072
+ end
2073
+
2074
+ class DeleteAll_args
2075
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2076
+ TABLENAME = 1
2077
+ ROW = 2
2078
+ COLUMN = 3
2079
+
2080
+ FIELDS = {
2081
+ # name of table
2082
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2083
+ # Row to update
2084
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2085
+ # name of column whose value is to be deleted
2086
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true}
2087
+ }
2088
+
2089
+ def struct_fields; FIELDS; end
2090
+
2091
+ def validate
2092
+ end
2093
+
2094
+ ::Thrift::Struct.generate_accessors self
2095
+ end
2096
+
2097
+ class DeleteAll_result
2098
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2099
+ IO = 1
2100
+
2101
+ FIELDS = {
2102
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2103
+ }
2104
+
2105
+ def struct_fields; FIELDS; end
2106
+
2107
+ def validate
2108
+ end
2109
+
2110
+ ::Thrift::Struct.generate_accessors self
2111
+ end
2112
+
2113
+ class DeleteAllTs_args
2114
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2115
+ TABLENAME = 1
2116
+ ROW = 2
2117
+ COLUMN = 3
2118
+ TIMESTAMP = 4
2119
+
2120
+ FIELDS = {
2121
+ # name of table
2122
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2123
+ # Row to update
2124
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2125
+ # name of column whose value is to be deleted
2126
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
2127
+ # timestamp
2128
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2129
+ }
2130
+
2131
+ def struct_fields; FIELDS; end
2132
+
2133
+ def validate
2134
+ end
2135
+
2136
+ ::Thrift::Struct.generate_accessors self
2137
+ end
2138
+
2139
+ class DeleteAllTs_result
2140
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2141
+ IO = 1
2142
+
2143
+ FIELDS = {
2144
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2145
+ }
2146
+
2147
+ def struct_fields; FIELDS; end
2148
+
2149
+ def validate
2150
+ end
2151
+
2152
+ ::Thrift::Struct.generate_accessors self
2153
+ end
2154
+
2155
+ class DeleteAllRow_args
2156
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2157
+ TABLENAME = 1
2158
+ ROW = 2
2159
+
2160
+ FIELDS = {
2161
+ # name of table
2162
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2163
+ # key of the row to be completely deleted.
2164
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
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 DeleteAllRow_result
2176
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2177
+ IO = 1
2178
+
2179
+ FIELDS = {
2180
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2181
+ }
2182
+
2183
+ def struct_fields; FIELDS; end
2184
+
2185
+ def validate
2186
+ end
2187
+
2188
+ ::Thrift::Struct.generate_accessors self
2189
+ end
2190
+
2191
+ class DeleteAllRowTs_args
2192
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2193
+ TABLENAME = 1
2194
+ ROW = 2
2195
+ TIMESTAMP = 3
2196
+
2197
+ FIELDS = {
2198
+ # name of table
2199
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2200
+ # key of the row to be completely deleted.
2201
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2202
+ # timestamp
2203
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2204
+ }
2205
+
2206
+ def struct_fields; FIELDS; end
2207
+
2208
+ def validate
2209
+ end
2210
+
2211
+ ::Thrift::Struct.generate_accessors self
2212
+ end
2213
+
2214
+ class DeleteAllRowTs_result
2215
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2216
+ IO = 1
2217
+
2218
+ FIELDS = {
2219
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
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 ScannerOpen_args
2231
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2232
+ TABLENAME = 1
2233
+ STARTROW = 2
2234
+ COLUMNS = 3
2235
+
2236
+ FIELDS = {
2237
+ # name of table
2238
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2239
+ # Starting row in table to scan.
2240
+ # Send "" (empty string) to start at the first row.
2241
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2242
+ # columns to scan. If column name is a column family, all
2243
+ # columns of the specified column family are returned. It's also possible
2244
+ # to pass a regex in the column qualifier.
2245
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2246
+ }
2247
+
2248
+ def struct_fields; FIELDS; end
2249
+
2250
+ def validate
2251
+ end
2252
+
2253
+ ::Thrift::Struct.generate_accessors self
2254
+ end
2255
+
2256
+ class ScannerOpen_result
2257
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2258
+ SUCCESS = 0
2259
+ IO = 1
2260
+
2261
+ FIELDS = {
2262
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2263
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2264
+ }
2265
+
2266
+ def struct_fields; FIELDS; end
2267
+
2268
+ def validate
2269
+ end
2270
+
2271
+ ::Thrift::Struct.generate_accessors self
2272
+ end
2273
+
2274
+ class ScannerOpenWithStop_args
2275
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2276
+ TABLENAME = 1
2277
+ STARTROW = 2
2278
+ STOPROW = 3
2279
+ COLUMNS = 4
2280
+
2281
+ FIELDS = {
2282
+ # name of table
2283
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2284
+ # Starting row in table to scan.
2285
+ # Send "" (empty string) to start at the first row.
2286
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2287
+ # row to stop scanning on. This row is *not* included in the
2288
+ # scanner's results
2289
+ STOPROW => {:type => ::Thrift::Types::STRING, :name => 'stopRow', :binary => true},
2290
+ # columns to scan. If column name is a column family, all
2291
+ # columns of the specified column family are returned. It's also possible
2292
+ # to pass a regex in the column qualifier.
2293
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2294
+ }
2295
+
2296
+ def struct_fields; FIELDS; end
2297
+
2298
+ def validate
2299
+ end
2300
+
2301
+ ::Thrift::Struct.generate_accessors self
2302
+ end
2303
+
2304
+ class ScannerOpenWithStop_result
2305
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2306
+ SUCCESS = 0
2307
+ IO = 1
2308
+
2309
+ FIELDS = {
2310
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2311
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2312
+ }
2313
+
2314
+ def struct_fields; FIELDS; end
2315
+
2316
+ def validate
2317
+ end
2318
+
2319
+ ::Thrift::Struct.generate_accessors self
2320
+ end
2321
+
2322
+ class ScannerOpenWithPrefix_args
2323
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2324
+ TABLENAME = 1
2325
+ STARTANDPREFIX = 2
2326
+ COLUMNS = 3
2327
+
2328
+ FIELDS = {
2329
+ # name of table
2330
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2331
+ # the prefix (and thus start row) of the keys you want
2332
+ STARTANDPREFIX => {:type => ::Thrift::Types::STRING, :name => 'startAndPrefix', :binary => true},
2333
+ # the columns you want returned
2334
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2335
+ }
2336
+
2337
+ def struct_fields; FIELDS; end
2338
+
2339
+ def validate
2340
+ end
2341
+
2342
+ ::Thrift::Struct.generate_accessors self
2343
+ end
2344
+
2345
+ class ScannerOpenWithPrefix_result
2346
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2347
+ SUCCESS = 0
2348
+ IO = 1
2349
+
2350
+ FIELDS = {
2351
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2352
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2353
+ }
2354
+
2355
+ def struct_fields; FIELDS; end
2356
+
2357
+ def validate
2358
+ end
2359
+
2360
+ ::Thrift::Struct.generate_accessors self
2361
+ end
2362
+
2363
+ class ScannerOpenTs_args
2364
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2365
+ TABLENAME = 1
2366
+ STARTROW = 2
2367
+ COLUMNS = 3
2368
+ TIMESTAMP = 4
2369
+
2370
+ FIELDS = {
2371
+ # name of table
2372
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2373
+ # Starting row in table to scan.
2374
+ # Send "" (empty string) to start at the first row.
2375
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2376
+ # columns to scan. If column name is a column family, all
2377
+ # columns of the specified column family are returned. It's also possible
2378
+ # to pass a regex in the column qualifier.
2379
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2380
+ # timestamp
2381
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2382
+ }
2383
+
2384
+ def struct_fields; FIELDS; end
2385
+
2386
+ def validate
2387
+ end
2388
+
2389
+ ::Thrift::Struct.generate_accessors self
2390
+ end
2391
+
2392
+ class ScannerOpenTs_result
2393
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2394
+ SUCCESS = 0
2395
+ IO = 1
2396
+
2397
+ FIELDS = {
2398
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2399
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
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 ScannerOpenWithStopTs_args
2411
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2412
+ TABLENAME = 1
2413
+ STARTROW = 2
2414
+ STOPROW = 3
2415
+ COLUMNS = 4
2416
+ TIMESTAMP = 5
2417
+
2418
+ FIELDS = {
2419
+ # name of table
2420
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2421
+ # Starting row in table to scan.
2422
+ # Send "" (empty string) to start at the first row.
2423
+ STARTROW => {:type => ::Thrift::Types::STRING, :name => 'startRow', :binary => true},
2424
+ # row to stop scanning on. This row is *not* included in the
2425
+ # scanner's results
2426
+ STOPROW => {:type => ::Thrift::Types::STRING, :name => 'stopRow', :binary => true},
2427
+ # columns to scan. If column name is a column family, all
2428
+ # columns of the specified column family are returned. It's also possible
2429
+ # to pass a regex in the column qualifier.
2430
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2431
+ # timestamp
2432
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2433
+ }
2434
+
2435
+ def struct_fields; FIELDS; end
2436
+
2437
+ def validate
2438
+ end
2439
+
2440
+ ::Thrift::Struct.generate_accessors self
2441
+ end
2442
+
2443
+ class ScannerOpenWithStopTs_result
2444
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2445
+ SUCCESS = 0
2446
+ IO = 1
2447
+
2448
+ FIELDS = {
2449
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
2450
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError}
2451
+ }
2452
+
2453
+ def struct_fields; FIELDS; end
2454
+
2455
+ def validate
2456
+ end
2457
+
2458
+ ::Thrift::Struct.generate_accessors self
2459
+ end
2460
+
2461
+ class ScannerGet_args
2462
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2463
+ ID = 1
2464
+
2465
+ FIELDS = {
2466
+ # id of a scanner returned by scannerOpen
2467
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'}
2468
+ }
2469
+
2470
+ def struct_fields; FIELDS; end
2471
+
2472
+ def validate
2473
+ end
2474
+
2475
+ ::Thrift::Struct.generate_accessors self
2476
+ end
2477
+
2478
+ class ScannerGet_result
2479
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2480
+ SUCCESS = 0
2481
+ IO = 1
2482
+ IA = 2
2483
+
2484
+ FIELDS = {
2485
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
2486
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
2487
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2488
+ }
2489
+
2490
+ def struct_fields; FIELDS; end
2491
+
2492
+ def validate
2493
+ end
2494
+
2495
+ ::Thrift::Struct.generate_accessors self
2496
+ end
2497
+
2498
+ class ScannerGetList_args
2499
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2500
+ ID = 1
2501
+ NBROWS = 2
2502
+
2503
+ FIELDS = {
2504
+ # id of a scanner returned by scannerOpen
2505
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'},
2506
+ # number of results to return
2507
+ NBROWS => {:type => ::Thrift::Types::I32, :name => 'nbRows'}
2508
+ }
2509
+
2510
+ def struct_fields; FIELDS; end
2511
+
2512
+ def validate
2513
+ end
2514
+
2515
+ ::Thrift::Struct.generate_accessors self
2516
+ end
2517
+
2518
+ class ScannerGetList_result
2519
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2520
+ SUCCESS = 0
2521
+ IO = 1
2522
+ IA = 2
2523
+
2524
+ FIELDS = {
2525
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TRowResult}},
2526
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
2527
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2528
+ }
2529
+
2530
+ def struct_fields; FIELDS; end
2531
+
2532
+ def validate
2533
+ end
2534
+
2535
+ ::Thrift::Struct.generate_accessors self
2536
+ end
2537
+
2538
+ class ScannerClose_args
2539
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2540
+ ID = 1
2541
+
2542
+ FIELDS = {
2543
+ # id of a scanner returned by scannerOpen
2544
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'}
2545
+ }
2546
+
2547
+ def struct_fields; FIELDS; end
2548
+
2549
+ def validate
2550
+ end
2551
+
2552
+ ::Thrift::Struct.generate_accessors self
2553
+ end
2554
+
2555
+ class ScannerClose_result
2556
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2557
+ IO = 1
2558
+ IA = 2
2559
+
2560
+ FIELDS = {
2561
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => Apache::Hadoop::Hbase::Thrift::IOError},
2562
+ IA => {:type => ::Thrift::Types::STRUCT, :name => 'ia', :class => Apache::Hadoop::Hbase::Thrift::IllegalArgument}
2563
+ }
2564
+
2565
+ def struct_fields; FIELDS; end
2566
+
2567
+ def validate
2568
+ end
2569
+
2570
+ ::Thrift::Struct.generate_accessors self
2571
+ end
2572
+
2573
+ end
2574
+
2575
+ end
2576
+ end
2577
+ end
2578
+ end