ok_hbase 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,9 @@
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
6
6
 
7
+ require 'thrift'
8
+ require_relative 'hbase.thrift_types.rb'
9
+
7
10
  module Apache
8
11
  module Hadoop
9
12
  module Hbase
@@ -168,13 +171,13 @@ module Apache
168
171
  return
169
172
  end
170
173
 
171
- def get(tableName, row, column)
172
- send_get(tableName, row, column)
174
+ def get(tableName, row, column, attributes)
175
+ send_get(tableName, row, column, attributes)
173
176
  return recv_get()
174
177
  end
175
178
 
176
- def send_get(tableName, row, column)
177
- send_message('get', Get_args, :tableName => tableName, :row => row, :column => column)
179
+ def send_get(tableName, row, column, attributes)
180
+ send_message('get', Get_args, :tableName => tableName, :row => row, :column => column, :attributes => attributes)
178
181
  end
179
182
 
180
183
  def recv_get()
@@ -184,13 +187,13 @@ module Apache
184
187
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
185
188
  end
186
189
 
187
- def getVer(tableName, row, column, numVersions)
188
- send_getVer(tableName, row, column, numVersions)
190
+ def getVer(tableName, row, column, numVersions, attributes)
191
+ send_getVer(tableName, row, column, numVersions, attributes)
189
192
  return recv_getVer()
190
193
  end
191
194
 
192
- def send_getVer(tableName, row, column, numVersions)
193
- send_message('getVer', GetVer_args, :tableName => tableName, :row => row, :column => column, :numVersions => numVersions)
195
+ def send_getVer(tableName, row, column, numVersions, attributes)
196
+ send_message('getVer', GetVer_args, :tableName => tableName, :row => row, :column => column, :numVersions => numVersions, :attributes => attributes)
194
197
  end
195
198
 
196
199
  def recv_getVer()
@@ -200,13 +203,13 @@ module Apache
200
203
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getVer failed: unknown result')
201
204
  end
202
205
 
203
- def getVerTs(tableName, row, column, timestamp, numVersions)
204
- send_getVerTs(tableName, row, column, timestamp, numVersions)
206
+ def getVerTs(tableName, row, column, timestamp, numVersions, attributes)
207
+ send_getVerTs(tableName, row, column, timestamp, numVersions, attributes)
205
208
  return recv_getVerTs()
206
209
  end
207
210
 
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)
211
+ def send_getVerTs(tableName, row, column, timestamp, numVersions, attributes)
212
+ send_message('getVerTs', GetVerTs_args, :tableName => tableName, :row => row, :column => column, :timestamp => timestamp, :numVersions => numVersions, :attributes => attributes)
210
213
  end
211
214
 
212
215
  def recv_getVerTs()
@@ -216,13 +219,13 @@ module Apache
216
219
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getVerTs failed: unknown result')
217
220
  end
218
221
 
219
- def getRow(tableName, row)
220
- send_getRow(tableName, row)
222
+ def getRow(tableName, row, attributes)
223
+ send_getRow(tableName, row, attributes)
221
224
  return recv_getRow()
222
225
  end
223
226
 
224
- def send_getRow(tableName, row)
225
- send_message('getRow', GetRow_args, :tableName => tableName, :row => row)
227
+ def send_getRow(tableName, row, attributes)
228
+ send_message('getRow', GetRow_args, :tableName => tableName, :row => row, :attributes => attributes)
226
229
  end
227
230
 
228
231
  def recv_getRow()
@@ -232,13 +235,13 @@ module Apache
232
235
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRow failed: unknown result')
233
236
  end
234
237
 
235
- def getRowWithColumns(tableName, row, columns)
236
- send_getRowWithColumns(tableName, row, columns)
238
+ def getRowWithColumns(tableName, row, columns, attributes)
239
+ send_getRowWithColumns(tableName, row, columns, attributes)
237
240
  return recv_getRowWithColumns()
238
241
  end
239
242
 
240
- def send_getRowWithColumns(tableName, row, columns)
241
- send_message('getRowWithColumns', GetRowWithColumns_args, :tableName => tableName, :row => row, :columns => columns)
243
+ def send_getRowWithColumns(tableName, row, columns, attributes)
244
+ send_message('getRowWithColumns', GetRowWithColumns_args, :tableName => tableName, :row => row, :columns => columns, :attributes => attributes)
242
245
  end
243
246
 
244
247
  def recv_getRowWithColumns()
@@ -248,13 +251,13 @@ module Apache
248
251
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowWithColumns failed: unknown result')
249
252
  end
250
253
 
251
- def getRowTs(tableName, row, timestamp)
252
- send_getRowTs(tableName, row, timestamp)
254
+ def getRowTs(tableName, row, timestamp, attributes)
255
+ send_getRowTs(tableName, row, timestamp, attributes)
253
256
  return recv_getRowTs()
254
257
  end
255
258
 
256
- def send_getRowTs(tableName, row, timestamp)
257
- send_message('getRowTs', GetRowTs_args, :tableName => tableName, :row => row, :timestamp => timestamp)
259
+ def send_getRowTs(tableName, row, timestamp, attributes)
260
+ send_message('getRowTs', GetRowTs_args, :tableName => tableName, :row => row, :timestamp => timestamp, :attributes => attributes)
258
261
  end
259
262
 
260
263
  def recv_getRowTs()
@@ -264,13 +267,13 @@ module Apache
264
267
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowTs failed: unknown result')
265
268
  end
266
269
 
267
- def getRowWithColumnsTs(tableName, row, columns, timestamp)
268
- send_getRowWithColumnsTs(tableName, row, columns, timestamp)
270
+ def getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
271
+ send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
269
272
  return recv_getRowWithColumnsTs()
270
273
  end
271
274
 
272
- def send_getRowWithColumnsTs(tableName, row, columns, timestamp)
273
- send_message('getRowWithColumnsTs', GetRowWithColumnsTs_args, :tableName => tableName, :row => row, :columns => columns, :timestamp => timestamp)
275
+ def send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes)
276
+ send_message('getRowWithColumnsTs', GetRowWithColumnsTs_args, :tableName => tableName, :row => row, :columns => columns, :timestamp => timestamp, :attributes => attributes)
274
277
  end
275
278
 
276
279
  def recv_getRowWithColumnsTs()
@@ -280,13 +283,13 @@ module Apache
280
283
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowWithColumnsTs failed: unknown result')
281
284
  end
282
285
 
283
- def getRows(tableName, rows)
284
- send_getRows(tableName, rows)
286
+ def getRows(tableName, rows, attributes)
287
+ send_getRows(tableName, rows, attributes)
285
288
  return recv_getRows()
286
289
  end
287
290
 
288
- def send_getRows(tableName, rows)
289
- send_message('getRows', GetRows_args, :tableName => tableName, :rows => rows)
291
+ def send_getRows(tableName, rows, attributes)
292
+ send_message('getRows', GetRows_args, :tableName => tableName, :rows => rows, :attributes => attributes)
290
293
  end
291
294
 
292
295
  def recv_getRows()
@@ -296,13 +299,13 @@ module Apache
296
299
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRows failed: unknown result')
297
300
  end
298
301
 
299
- def getRowsWithColumns(tableName, rows, columns)
300
- send_getRowsWithColumns(tableName, rows, columns)
302
+ def getRowsWithColumns(tableName, rows, columns, attributes)
303
+ send_getRowsWithColumns(tableName, rows, columns, attributes)
301
304
  return recv_getRowsWithColumns()
302
305
  end
303
306
 
304
- def send_getRowsWithColumns(tableName, rows, columns)
305
- send_message('getRowsWithColumns', GetRowsWithColumns_args, :tableName => tableName, :rows => rows, :columns => columns)
307
+ def send_getRowsWithColumns(tableName, rows, columns, attributes)
308
+ send_message('getRowsWithColumns', GetRowsWithColumns_args, :tableName => tableName, :rows => rows, :columns => columns, :attributes => attributes)
306
309
  end
307
310
 
308
311
  def recv_getRowsWithColumns()
@@ -312,13 +315,13 @@ module Apache
312
315
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowsWithColumns failed: unknown result')
313
316
  end
314
317
 
315
- def getRowsTs(tableName, rows, timestamp)
316
- send_getRowsTs(tableName, rows, timestamp)
318
+ def getRowsTs(tableName, rows, timestamp, attributes)
319
+ send_getRowsTs(tableName, rows, timestamp, attributes)
317
320
  return recv_getRowsTs()
318
321
  end
319
322
 
320
- def send_getRowsTs(tableName, rows, timestamp)
321
- send_message('getRowsTs', GetRowsTs_args, :tableName => tableName, :rows => rows, :timestamp => timestamp)
323
+ def send_getRowsTs(tableName, rows, timestamp, attributes)
324
+ send_message('getRowsTs', GetRowsTs_args, :tableName => tableName, :rows => rows, :timestamp => timestamp, :attributes => attributes)
322
325
  end
323
326
 
324
327
  def recv_getRowsTs()
@@ -328,13 +331,13 @@ module Apache
328
331
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowsTs failed: unknown result')
329
332
  end
330
333
 
331
- def getRowsWithColumnsTs(tableName, rows, columns, timestamp)
332
- send_getRowsWithColumnsTs(tableName, rows, columns, timestamp)
334
+ def getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
335
+ send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
333
336
  return recv_getRowsWithColumnsTs()
334
337
  end
335
338
 
336
- def send_getRowsWithColumnsTs(tableName, rows, columns, timestamp)
337
- send_message('getRowsWithColumnsTs', GetRowsWithColumnsTs_args, :tableName => tableName, :rows => rows, :columns => columns, :timestamp => timestamp)
339
+ def send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes)
340
+ send_message('getRowsWithColumnsTs', GetRowsWithColumnsTs_args, :tableName => tableName, :rows => rows, :columns => columns, :timestamp => timestamp, :attributes => attributes)
338
341
  end
339
342
 
340
343
  def recv_getRowsWithColumnsTs()
@@ -344,13 +347,13 @@ module Apache
344
347
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowsWithColumnsTs failed: unknown result')
345
348
  end
346
349
 
347
- def mutateRow(tableName, row, mutations)
348
- send_mutateRow(tableName, row, mutations)
350
+ def mutateRow(tableName, row, mutations, attributes)
351
+ send_mutateRow(tableName, row, mutations, attributes)
349
352
  recv_mutateRow()
350
353
  end
351
354
 
352
- def send_mutateRow(tableName, row, mutations)
353
- send_message('mutateRow', MutateRow_args, :tableName => tableName, :row => row, :mutations => mutations)
355
+ def send_mutateRow(tableName, row, mutations, attributes)
356
+ send_message('mutateRow', MutateRow_args, :tableName => tableName, :row => row, :mutations => mutations, :attributes => attributes)
354
357
  end
355
358
 
356
359
  def recv_mutateRow()
@@ -360,13 +363,13 @@ module Apache
360
363
  return
361
364
  end
362
365
 
363
- def mutateRowTs(tableName, row, mutations, timestamp)
364
- send_mutateRowTs(tableName, row, mutations, timestamp)
366
+ def mutateRowTs(tableName, row, mutations, timestamp, attributes)
367
+ send_mutateRowTs(tableName, row, mutations, timestamp, attributes)
365
368
  recv_mutateRowTs()
366
369
  end
367
370
 
368
- def send_mutateRowTs(tableName, row, mutations, timestamp)
369
- send_message('mutateRowTs', MutateRowTs_args, :tableName => tableName, :row => row, :mutations => mutations, :timestamp => timestamp)
371
+ def send_mutateRowTs(tableName, row, mutations, timestamp, attributes)
372
+ send_message('mutateRowTs', MutateRowTs_args, :tableName => tableName, :row => row, :mutations => mutations, :timestamp => timestamp, :attributes => attributes)
370
373
  end
371
374
 
372
375
  def recv_mutateRowTs()
@@ -376,13 +379,13 @@ module Apache
376
379
  return
377
380
  end
378
381
 
379
- def mutateRows(tableName, rowBatches)
380
- send_mutateRows(tableName, rowBatches)
382
+ def mutateRows(tableName, rowBatches, attributes)
383
+ send_mutateRows(tableName, rowBatches, attributes)
381
384
  recv_mutateRows()
382
385
  end
383
386
 
384
- def send_mutateRows(tableName, rowBatches)
385
- send_message('mutateRows', MutateRows_args, :tableName => tableName, :rowBatches => rowBatches)
387
+ def send_mutateRows(tableName, rowBatches, attributes)
388
+ send_message('mutateRows', MutateRows_args, :tableName => tableName, :rowBatches => rowBatches, :attributes => attributes)
386
389
  end
387
390
 
388
391
  def recv_mutateRows()
@@ -392,13 +395,13 @@ module Apache
392
395
  return
393
396
  end
394
397
 
395
- def mutateRowsTs(tableName, rowBatches, timestamp)
396
- send_mutateRowsTs(tableName, rowBatches, timestamp)
398
+ def mutateRowsTs(tableName, rowBatches, timestamp, attributes)
399
+ send_mutateRowsTs(tableName, rowBatches, timestamp, attributes)
397
400
  recv_mutateRowsTs()
398
401
  end
399
402
 
400
- def send_mutateRowsTs(tableName, rowBatches, timestamp)
401
- send_message('mutateRowsTs', MutateRowsTs_args, :tableName => tableName, :rowBatches => rowBatches, :timestamp => timestamp)
403
+ def send_mutateRowsTs(tableName, rowBatches, timestamp, attributes)
404
+ send_message('mutateRowsTs', MutateRowsTs_args, :tableName => tableName, :rowBatches => rowBatches, :timestamp => timestamp, :attributes => attributes)
402
405
  end
403
406
 
404
407
  def recv_mutateRowsTs()
@@ -425,13 +428,13 @@ module Apache
425
428
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'atomicIncrement failed: unknown result')
426
429
  end
427
430
 
428
- def deleteAll(tableName, row, column)
429
- send_deleteAll(tableName, row, column)
431
+ def deleteAll(tableName, row, column, attributes)
432
+ send_deleteAll(tableName, row, column, attributes)
430
433
  recv_deleteAll()
431
434
  end
432
435
 
433
- def send_deleteAll(tableName, row, column)
434
- send_message('deleteAll', DeleteAll_args, :tableName => tableName, :row => row, :column => column)
436
+ def send_deleteAll(tableName, row, column, attributes)
437
+ send_message('deleteAll', DeleteAll_args, :tableName => tableName, :row => row, :column => column, :attributes => attributes)
435
438
  end
436
439
 
437
440
  def recv_deleteAll()
@@ -440,13 +443,13 @@ module Apache
440
443
  return
441
444
  end
442
445
 
443
- def deleteAllTs(tableName, row, column, timestamp)
444
- send_deleteAllTs(tableName, row, column, timestamp)
446
+ def deleteAllTs(tableName, row, column, timestamp, attributes)
447
+ send_deleteAllTs(tableName, row, column, timestamp, attributes)
445
448
  recv_deleteAllTs()
446
449
  end
447
450
 
448
- def send_deleteAllTs(tableName, row, column, timestamp)
449
- send_message('deleteAllTs', DeleteAllTs_args, :tableName => tableName, :row => row, :column => column, :timestamp => timestamp)
451
+ def send_deleteAllTs(tableName, row, column, timestamp, attributes)
452
+ send_message('deleteAllTs', DeleteAllTs_args, :tableName => tableName, :row => row, :column => column, :timestamp => timestamp, :attributes => attributes)
450
453
  end
451
454
 
452
455
  def recv_deleteAllTs()
@@ -455,13 +458,13 @@ module Apache
455
458
  return
456
459
  end
457
460
 
458
- def deleteAllRow(tableName, row)
459
- send_deleteAllRow(tableName, row)
461
+ def deleteAllRow(tableName, row, attributes)
462
+ send_deleteAllRow(tableName, row, attributes)
460
463
  recv_deleteAllRow()
461
464
  end
462
465
 
463
- def send_deleteAllRow(tableName, row)
464
- send_message('deleteAllRow', DeleteAllRow_args, :tableName => tableName, :row => row)
466
+ def send_deleteAllRow(tableName, row, attributes)
467
+ send_message('deleteAllRow', DeleteAllRow_args, :tableName => tableName, :row => row, :attributes => attributes)
465
468
  end
466
469
 
467
470
  def recv_deleteAllRow()
@@ -470,13 +473,43 @@ module Apache
470
473
  return
471
474
  end
472
475
 
473
- def deleteAllRowTs(tableName, row, timestamp)
474
- send_deleteAllRowTs(tableName, row, timestamp)
476
+ def increment(increment)
477
+ send_increment(increment)
478
+ recv_increment()
479
+ end
480
+
481
+ def send_increment(increment)
482
+ send_message('increment', Increment_args, :increment => increment)
483
+ end
484
+
485
+ def recv_increment()
486
+ result = receive_message(Increment_result)
487
+ raise result.io unless result.io.nil?
488
+ return
489
+ end
490
+
491
+ def incrementRows(increments)
492
+ send_incrementRows(increments)
493
+ recv_incrementRows()
494
+ end
495
+
496
+ def send_incrementRows(increments)
497
+ send_message('incrementRows', IncrementRows_args, :increments => increments)
498
+ end
499
+
500
+ def recv_incrementRows()
501
+ result = receive_message(IncrementRows_result)
502
+ raise result.io unless result.io.nil?
503
+ return
504
+ end
505
+
506
+ def deleteAllRowTs(tableName, row, timestamp, attributes)
507
+ send_deleteAllRowTs(tableName, row, timestamp, attributes)
475
508
  recv_deleteAllRowTs()
476
509
  end
477
510
 
478
- def send_deleteAllRowTs(tableName, row, timestamp)
479
- send_message('deleteAllRowTs', DeleteAllRowTs_args, :tableName => tableName, :row => row, :timestamp => timestamp)
511
+ def send_deleteAllRowTs(tableName, row, timestamp, attributes)
512
+ send_message('deleteAllRowTs', DeleteAllRowTs_args, :tableName => tableName, :row => row, :timestamp => timestamp, :attributes => attributes)
480
513
  end
481
514
 
482
515
  def recv_deleteAllRowTs()
@@ -485,13 +518,13 @@ module Apache
485
518
  return
486
519
  end
487
520
 
488
- def scannerOpenWithScan(tableName, scan)
489
- send_scannerOpenWithScan(tableName, scan)
521
+ def scannerOpenWithScan(tableName, scan, attributes)
522
+ send_scannerOpenWithScan(tableName, scan, attributes)
490
523
  return recv_scannerOpenWithScan()
491
524
  end
492
525
 
493
- def send_scannerOpenWithScan(tableName, scan)
494
- send_message('scannerOpenWithScan', ScannerOpenWithScan_args, :tableName => tableName, :scan => scan)
526
+ def send_scannerOpenWithScan(tableName, scan, attributes)
527
+ send_message('scannerOpenWithScan', ScannerOpenWithScan_args, :tableName => tableName, :scan => scan, :attributes => attributes)
495
528
  end
496
529
 
497
530
  def recv_scannerOpenWithScan()
@@ -501,13 +534,13 @@ module Apache
501
534
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithScan failed: unknown result')
502
535
  end
503
536
 
504
- def scannerOpen(tableName, startRow, columns)
505
- send_scannerOpen(tableName, startRow, columns)
537
+ def scannerOpen(tableName, startRow, columns, attributes)
538
+ send_scannerOpen(tableName, startRow, columns, attributes)
506
539
  return recv_scannerOpen()
507
540
  end
508
541
 
509
- def send_scannerOpen(tableName, startRow, columns)
510
- send_message('scannerOpen', ScannerOpen_args, :tableName => tableName, :startRow => startRow, :columns => columns)
542
+ def send_scannerOpen(tableName, startRow, columns, attributes)
543
+ send_message('scannerOpen', ScannerOpen_args, :tableName => tableName, :startRow => startRow, :columns => columns, :attributes => attributes)
511
544
  end
512
545
 
513
546
  def recv_scannerOpen()
@@ -517,13 +550,13 @@ module Apache
517
550
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpen failed: unknown result')
518
551
  end
519
552
 
520
- def scannerOpenWithStop(tableName, startRow, stopRow, columns)
521
- send_scannerOpenWithStop(tableName, startRow, stopRow, columns)
553
+ def scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
554
+ send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
522
555
  return recv_scannerOpenWithStop()
523
556
  end
524
557
 
525
- def send_scannerOpenWithStop(tableName, startRow, stopRow, columns)
526
- send_message('scannerOpenWithStop', ScannerOpenWithStop_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns)
558
+ def send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes)
559
+ send_message('scannerOpenWithStop', ScannerOpenWithStop_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns, :attributes => attributes)
527
560
  end
528
561
 
529
562
  def recv_scannerOpenWithStop()
@@ -533,13 +566,13 @@ module Apache
533
566
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithStop failed: unknown result')
534
567
  end
535
568
 
536
- def scannerOpenWithPrefix(tableName, startAndPrefix, columns)
537
- send_scannerOpenWithPrefix(tableName, startAndPrefix, columns)
569
+ def scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes)
570
+ send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes)
538
571
  return recv_scannerOpenWithPrefix()
539
572
  end
540
573
 
541
- def send_scannerOpenWithPrefix(tableName, startAndPrefix, columns)
542
- send_message('scannerOpenWithPrefix', ScannerOpenWithPrefix_args, :tableName => tableName, :startAndPrefix => startAndPrefix, :columns => columns)
574
+ def send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes)
575
+ send_message('scannerOpenWithPrefix', ScannerOpenWithPrefix_args, :tableName => tableName, :startAndPrefix => startAndPrefix, :columns => columns, :attributes => attributes)
543
576
  end
544
577
 
545
578
  def recv_scannerOpenWithPrefix()
@@ -549,13 +582,13 @@ module Apache
549
582
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenWithPrefix failed: unknown result')
550
583
  end
551
584
 
552
- def scannerOpenTs(tableName, startRow, columns, timestamp)
553
- send_scannerOpenTs(tableName, startRow, columns, timestamp)
585
+ def scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
586
+ send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
554
587
  return recv_scannerOpenTs()
555
588
  end
556
589
 
557
- def send_scannerOpenTs(tableName, startRow, columns, timestamp)
558
- send_message('scannerOpenTs', ScannerOpenTs_args, :tableName => tableName, :startRow => startRow, :columns => columns, :timestamp => timestamp)
590
+ def send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes)
591
+ send_message('scannerOpenTs', ScannerOpenTs_args, :tableName => tableName, :startRow => startRow, :columns => columns, :timestamp => timestamp, :attributes => attributes)
559
592
  end
560
593
 
561
594
  def recv_scannerOpenTs()
@@ -565,13 +598,13 @@ module Apache
565
598
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'scannerOpenTs failed: unknown result')
566
599
  end
567
600
 
568
- def scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
569
- send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
601
+ def scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
602
+ send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
570
603
  return recv_scannerOpenWithStopTs()
571
604
  end
572
605
 
573
- def send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp)
574
- send_message('scannerOpenWithStopTs', ScannerOpenWithStopTs_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns, :timestamp => timestamp)
606
+ def send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes)
607
+ send_message('scannerOpenWithStopTs', ScannerOpenWithStopTs_args, :tableName => tableName, :startRow => startRow, :stopRow => stopRow, :columns => columns, :timestamp => timestamp, :attributes => attributes)
575
608
  end
576
609
 
577
610
  def recv_scannerOpenWithStopTs()
@@ -631,6 +664,38 @@ module Apache
631
664
  return
632
665
  end
633
666
 
667
+ def getRowOrBefore(tableName, row, family)
668
+ send_getRowOrBefore(tableName, row, family)
669
+ return recv_getRowOrBefore()
670
+ end
671
+
672
+ def send_getRowOrBefore(tableName, row, family)
673
+ send_message('getRowOrBefore', GetRowOrBefore_args, :tableName => tableName, :row => row, :family => family)
674
+ end
675
+
676
+ def recv_getRowOrBefore()
677
+ result = receive_message(GetRowOrBefore_result)
678
+ return result.success unless result.success.nil?
679
+ raise result.io unless result.io.nil?
680
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRowOrBefore failed: unknown result')
681
+ end
682
+
683
+ def getRegionInfo(row)
684
+ send_getRegionInfo(row)
685
+ return recv_getRegionInfo()
686
+ end
687
+
688
+ def send_getRegionInfo(row)
689
+ send_message('getRegionInfo', GetRegionInfo_args, :row => row)
690
+ end
691
+
692
+ def recv_getRegionInfo()
693
+ result = receive_message(GetRegionInfo_result)
694
+ return result.success unless result.success.nil?
695
+ raise result.io unless result.io.nil?
696
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getRegionInfo failed: unknown result')
697
+ end
698
+
634
699
  end
635
700
 
636
701
  class Processor
@@ -754,7 +819,7 @@ module Apache
754
819
  args = read_args(iprot, Get_args)
755
820
  result = Get_result.new()
756
821
  begin
757
- result.success = @handler.get(args.tableName, args.row, args.column)
822
+ result.success = @handler.get(args.tableName, args.row, args.column, args.attributes)
758
823
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
759
824
  result.io = io
760
825
  end
@@ -765,7 +830,7 @@ module Apache
765
830
  args = read_args(iprot, GetVer_args)
766
831
  result = GetVer_result.new()
767
832
  begin
768
- result.success = @handler.getVer(args.tableName, args.row, args.column, args.numVersions)
833
+ result.success = @handler.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes)
769
834
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
770
835
  result.io = io
771
836
  end
@@ -776,7 +841,7 @@ module Apache
776
841
  args = read_args(iprot, GetVerTs_args)
777
842
  result = GetVerTs_result.new()
778
843
  begin
779
- result.success = @handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions)
844
+ result.success = @handler.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes)
780
845
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
781
846
  result.io = io
782
847
  end
@@ -787,7 +852,7 @@ module Apache
787
852
  args = read_args(iprot, GetRow_args)
788
853
  result = GetRow_result.new()
789
854
  begin
790
- result.success = @handler.getRow(args.tableName, args.row)
855
+ result.success = @handler.getRow(args.tableName, args.row, args.attributes)
791
856
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
792
857
  result.io = io
793
858
  end
@@ -798,7 +863,7 @@ module Apache
798
863
  args = read_args(iprot, GetRowWithColumns_args)
799
864
  result = GetRowWithColumns_result.new()
800
865
  begin
801
- result.success = @handler.getRowWithColumns(args.tableName, args.row, args.columns)
866
+ result.success = @handler.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes)
802
867
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
803
868
  result.io = io
804
869
  end
@@ -809,7 +874,7 @@ module Apache
809
874
  args = read_args(iprot, GetRowTs_args)
810
875
  result = GetRowTs_result.new()
811
876
  begin
812
- result.success = @handler.getRowTs(args.tableName, args.row, args.timestamp)
877
+ result.success = @handler.getRowTs(args.tableName, args.row, args.timestamp, args.attributes)
813
878
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
814
879
  result.io = io
815
880
  end
@@ -820,7 +885,7 @@ module Apache
820
885
  args = read_args(iprot, GetRowWithColumnsTs_args)
821
886
  result = GetRowWithColumnsTs_result.new()
822
887
  begin
823
- result.success = @handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp)
888
+ result.success = @handler.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes)
824
889
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
825
890
  result.io = io
826
891
  end
@@ -831,7 +896,7 @@ module Apache
831
896
  args = read_args(iprot, GetRows_args)
832
897
  result = GetRows_result.new()
833
898
  begin
834
- result.success = @handler.getRows(args.tableName, args.rows)
899
+ result.success = @handler.getRows(args.tableName, args.rows, args.attributes)
835
900
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
836
901
  result.io = io
837
902
  end
@@ -842,7 +907,7 @@ module Apache
842
907
  args = read_args(iprot, GetRowsWithColumns_args)
843
908
  result = GetRowsWithColumns_result.new()
844
909
  begin
845
- result.success = @handler.getRowsWithColumns(args.tableName, args.rows, args.columns)
910
+ result.success = @handler.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes)
846
911
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
847
912
  result.io = io
848
913
  end
@@ -853,7 +918,7 @@ module Apache
853
918
  args = read_args(iprot, GetRowsTs_args)
854
919
  result = GetRowsTs_result.new()
855
920
  begin
856
- result.success = @handler.getRowsTs(args.tableName, args.rows, args.timestamp)
921
+ result.success = @handler.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes)
857
922
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
858
923
  result.io = io
859
924
  end
@@ -864,7 +929,7 @@ module Apache
864
929
  args = read_args(iprot, GetRowsWithColumnsTs_args)
865
930
  result = GetRowsWithColumnsTs_result.new()
866
931
  begin
867
- result.success = @handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp)
932
+ result.success = @handler.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes)
868
933
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
869
934
  result.io = io
870
935
  end
@@ -875,7 +940,7 @@ module Apache
875
940
  args = read_args(iprot, MutateRow_args)
876
941
  result = MutateRow_result.new()
877
942
  begin
878
- @handler.mutateRow(args.tableName, args.row, args.mutations)
943
+ @handler.mutateRow(args.tableName, args.row, args.mutations, args.attributes)
879
944
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
880
945
  result.io = io
881
946
  rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
@@ -888,7 +953,7 @@ module Apache
888
953
  args = read_args(iprot, MutateRowTs_args)
889
954
  result = MutateRowTs_result.new()
890
955
  begin
891
- @handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp)
956
+ @handler.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes)
892
957
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
893
958
  result.io = io
894
959
  rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
@@ -901,7 +966,7 @@ module Apache
901
966
  args = read_args(iprot, MutateRows_args)
902
967
  result = MutateRows_result.new()
903
968
  begin
904
- @handler.mutateRows(args.tableName, args.rowBatches)
969
+ @handler.mutateRows(args.tableName, args.rowBatches, args.attributes)
905
970
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
906
971
  result.io = io
907
972
  rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
@@ -914,7 +979,7 @@ module Apache
914
979
  args = read_args(iprot, MutateRowsTs_args)
915
980
  result = MutateRowsTs_result.new()
916
981
  begin
917
- @handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp)
982
+ @handler.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes)
918
983
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
919
984
  result.io = io
920
985
  rescue ::Apache::Hadoop::Hbase::Thrift::IllegalArgument => ia
@@ -940,7 +1005,7 @@ module Apache
940
1005
  args = read_args(iprot, DeleteAll_args)
941
1006
  result = DeleteAll_result.new()
942
1007
  begin
943
- @handler.deleteAll(args.tableName, args.row, args.column)
1008
+ @handler.deleteAll(args.tableName, args.row, args.column, args.attributes)
944
1009
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
945
1010
  result.io = io
946
1011
  end
@@ -951,7 +1016,7 @@ module Apache
951
1016
  args = read_args(iprot, DeleteAllTs_args)
952
1017
  result = DeleteAllTs_result.new()
953
1018
  begin
954
- @handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp)
1019
+ @handler.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes)
955
1020
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
956
1021
  result.io = io
957
1022
  end
@@ -962,18 +1027,40 @@ module Apache
962
1027
  args = read_args(iprot, DeleteAllRow_args)
963
1028
  result = DeleteAllRow_result.new()
964
1029
  begin
965
- @handler.deleteAllRow(args.tableName, args.row)
1030
+ @handler.deleteAllRow(args.tableName, args.row, args.attributes)
966
1031
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
967
1032
  result.io = io
968
1033
  end
969
1034
  write_result(result, oprot, 'deleteAllRow', seqid)
970
1035
  end
971
1036
 
1037
+ def process_increment(seqid, iprot, oprot)
1038
+ args = read_args(iprot, Increment_args)
1039
+ result = Increment_result.new()
1040
+ begin
1041
+ @handler.increment(args.increment)
1042
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1043
+ result.io = io
1044
+ end
1045
+ write_result(result, oprot, 'increment', seqid)
1046
+ end
1047
+
1048
+ def process_incrementRows(seqid, iprot, oprot)
1049
+ args = read_args(iprot, IncrementRows_args)
1050
+ result = IncrementRows_result.new()
1051
+ begin
1052
+ @handler.incrementRows(args.increments)
1053
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1054
+ result.io = io
1055
+ end
1056
+ write_result(result, oprot, 'incrementRows', seqid)
1057
+ end
1058
+
972
1059
  def process_deleteAllRowTs(seqid, iprot, oprot)
973
1060
  args = read_args(iprot, DeleteAllRowTs_args)
974
1061
  result = DeleteAllRowTs_result.new()
975
1062
  begin
976
- @handler.deleteAllRowTs(args.tableName, args.row, args.timestamp)
1063
+ @handler.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes)
977
1064
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
978
1065
  result.io = io
979
1066
  end
@@ -984,7 +1071,7 @@ module Apache
984
1071
  args = read_args(iprot, ScannerOpenWithScan_args)
985
1072
  result = ScannerOpenWithScan_result.new()
986
1073
  begin
987
- result.success = @handler.scannerOpenWithScan(args.tableName, args.scan)
1074
+ result.success = @handler.scannerOpenWithScan(args.tableName, args.scan, args.attributes)
988
1075
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
989
1076
  result.io = io
990
1077
  end
@@ -995,7 +1082,7 @@ module Apache
995
1082
  args = read_args(iprot, ScannerOpen_args)
996
1083
  result = ScannerOpen_result.new()
997
1084
  begin
998
- result.success = @handler.scannerOpen(args.tableName, args.startRow, args.columns)
1085
+ result.success = @handler.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes)
999
1086
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1000
1087
  result.io = io
1001
1088
  end
@@ -1006,7 +1093,7 @@ module Apache
1006
1093
  args = read_args(iprot, ScannerOpenWithStop_args)
1007
1094
  result = ScannerOpenWithStop_result.new()
1008
1095
  begin
1009
- result.success = @handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns)
1096
+ result.success = @handler.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes)
1010
1097
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1011
1098
  result.io = io
1012
1099
  end
@@ -1017,7 +1104,7 @@ module Apache
1017
1104
  args = read_args(iprot, ScannerOpenWithPrefix_args)
1018
1105
  result = ScannerOpenWithPrefix_result.new()
1019
1106
  begin
1020
- result.success = @handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns)
1107
+ result.success = @handler.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes)
1021
1108
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1022
1109
  result.io = io
1023
1110
  end
@@ -1028,7 +1115,7 @@ module Apache
1028
1115
  args = read_args(iprot, ScannerOpenTs_args)
1029
1116
  result = ScannerOpenTs_result.new()
1030
1117
  begin
1031
- result.success = @handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp)
1118
+ result.success = @handler.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes)
1032
1119
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1033
1120
  result.io = io
1034
1121
  end
@@ -1039,7 +1126,7 @@ module Apache
1039
1126
  args = read_args(iprot, ScannerOpenWithStopTs_args)
1040
1127
  result = ScannerOpenWithStopTs_result.new()
1041
1128
  begin
1042
- result.success = @handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp)
1129
+ result.success = @handler.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes)
1043
1130
  rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1044
1131
  result.io = io
1045
1132
  end
@@ -1085,6 +1172,28 @@ module Apache
1085
1172
  write_result(result, oprot, 'scannerClose', seqid)
1086
1173
  end
1087
1174
 
1175
+ def process_getRowOrBefore(seqid, iprot, oprot)
1176
+ args = read_args(iprot, GetRowOrBefore_args)
1177
+ result = GetRowOrBefore_result.new()
1178
+ begin
1179
+ result.success = @handler.getRowOrBefore(args.tableName, args.row, args.family)
1180
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1181
+ result.io = io
1182
+ end
1183
+ write_result(result, oprot, 'getRowOrBefore', seqid)
1184
+ end
1185
+
1186
+ def process_getRegionInfo(seqid, iprot, oprot)
1187
+ args = read_args(iprot, GetRegionInfo_args)
1188
+ result = GetRegionInfo_result.new()
1189
+ begin
1190
+ result.success = @handler.getRegionInfo(args.row)
1191
+ rescue ::Apache::Hadoop::Hbase::Thrift::IOError => io
1192
+ result.io = io
1193
+ end
1194
+ write_result(result, oprot, 'getRegionInfo', seqid)
1195
+ end
1196
+
1088
1197
  end
1089
1198
 
1090
1199
  # HELPER FUNCTIONS AND STRUCTURES
@@ -1435,6 +1544,7 @@ module Apache
1435
1544
  TABLENAME = 1
1436
1545
  ROW = 2
1437
1546
  COLUMN = 3
1547
+ ATTRIBUTES = 4
1438
1548
 
1439
1549
  FIELDS = {
1440
1550
  # name of table
@@ -1442,7 +1552,9 @@ module Apache
1442
1552
  # row key
1443
1553
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1444
1554
  # column name
1445
- COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true}
1555
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
1556
+ # Get attributes
1557
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1446
1558
  }
1447
1559
 
1448
1560
  def struct_fields; FIELDS; end
@@ -1477,6 +1589,7 @@ module Apache
1477
1589
  ROW = 2
1478
1590
  COLUMN = 3
1479
1591
  NUMVERSIONS = 4
1592
+ ATTRIBUTES = 5
1480
1593
 
1481
1594
  FIELDS = {
1482
1595
  # name of table
@@ -1486,7 +1599,9 @@ module Apache
1486
1599
  # column name
1487
1600
  COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
1488
1601
  # number of versions to retrieve
1489
- NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'}
1602
+ NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'},
1603
+ # Get attributes
1604
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1490
1605
  }
1491
1606
 
1492
1607
  def struct_fields; FIELDS; end
@@ -1522,6 +1637,7 @@ module Apache
1522
1637
  COLUMN = 3
1523
1638
  TIMESTAMP = 4
1524
1639
  NUMVERSIONS = 5
1640
+ ATTRIBUTES = 6
1525
1641
 
1526
1642
  FIELDS = {
1527
1643
  # name of table
@@ -1533,7 +1649,9 @@ module Apache
1533
1649
  # timestamp
1534
1650
  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1535
1651
  # number of versions to retrieve
1536
- NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'}
1652
+ NUMVERSIONS => {:type => ::Thrift::Types::I32, :name => 'numVersions'},
1653
+ # Get attributes
1654
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1537
1655
  }
1538
1656
 
1539
1657
  def struct_fields; FIELDS; end
@@ -1566,12 +1684,15 @@ module Apache
1566
1684
  include ::Thrift::Struct, ::Thrift::Struct_Union
1567
1685
  TABLENAME = 1
1568
1686
  ROW = 2
1687
+ ATTRIBUTES = 3
1569
1688
 
1570
1689
  FIELDS = {
1571
1690
  # name of table
1572
1691
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1573
1692
  # row key
1574
- ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
1693
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1694
+ # Get attributes
1695
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1575
1696
  }
1576
1697
 
1577
1698
  def struct_fields; FIELDS; end
@@ -1605,6 +1726,7 @@ module Apache
1605
1726
  TABLENAME = 1
1606
1727
  ROW = 2
1607
1728
  COLUMNS = 3
1729
+ ATTRIBUTES = 4
1608
1730
 
1609
1731
  FIELDS = {
1610
1732
  # name of table
@@ -1612,7 +1734,9 @@ module Apache
1612
1734
  # row key
1613
1735
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1614
1736
  # List of columns to return, null for all columns
1615
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1737
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1738
+ # Get attributes
1739
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1616
1740
  }
1617
1741
 
1618
1742
  def struct_fields; FIELDS; end
@@ -1646,6 +1770,7 @@ module Apache
1646
1770
  TABLENAME = 1
1647
1771
  ROW = 2
1648
1772
  TIMESTAMP = 3
1773
+ ATTRIBUTES = 4
1649
1774
 
1650
1775
  FIELDS = {
1651
1776
  # name of the table
@@ -1653,7 +1778,9 @@ module Apache
1653
1778
  # row key
1654
1779
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1655
1780
  # timestamp
1656
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1781
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1782
+ # Get attributes
1783
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1657
1784
  }
1658
1785
 
1659
1786
  def struct_fields; FIELDS; end
@@ -1688,6 +1815,7 @@ module Apache
1688
1815
  ROW = 2
1689
1816
  COLUMNS = 3
1690
1817
  TIMESTAMP = 4
1818
+ ATTRIBUTES = 5
1691
1819
 
1692
1820
  FIELDS = {
1693
1821
  # name of table
@@ -1696,7 +1824,9 @@ module Apache
1696
1824
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1697
1825
  # List of columns to return, null for all columns
1698
1826
  COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1699
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1827
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1828
+ # Get attributes
1829
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1700
1830
  }
1701
1831
 
1702
1832
  def struct_fields; FIELDS; end
@@ -1729,12 +1859,15 @@ module Apache
1729
1859
  include ::Thrift::Struct, ::Thrift::Struct_Union
1730
1860
  TABLENAME = 1
1731
1861
  ROWS = 2
1862
+ ATTRIBUTES = 3
1732
1863
 
1733
1864
  FIELDS = {
1734
1865
  # name of table
1735
1866
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1736
1867
  # row keys
1737
- ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1868
+ ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1869
+ # Get attributes
1870
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1738
1871
  }
1739
1872
 
1740
1873
  def struct_fields; FIELDS; end
@@ -1768,6 +1901,7 @@ module Apache
1768
1901
  TABLENAME = 1
1769
1902
  ROWS = 2
1770
1903
  COLUMNS = 3
1904
+ ATTRIBUTES = 4
1771
1905
 
1772
1906
  FIELDS = {
1773
1907
  # name of table
@@ -1775,7 +1909,9 @@ module Apache
1775
1909
  # row keys
1776
1910
  ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1777
1911
  # List of columns to return, null for all columns
1778
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
1912
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1913
+ # Get attributes
1914
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1779
1915
  }
1780
1916
 
1781
1917
  def struct_fields; FIELDS; end
@@ -1809,6 +1945,7 @@ module Apache
1809
1945
  TABLENAME = 1
1810
1946
  ROWS = 2
1811
1947
  TIMESTAMP = 3
1948
+ ATTRIBUTES = 4
1812
1949
 
1813
1950
  FIELDS = {
1814
1951
  # name of the table
@@ -1816,7 +1953,9 @@ module Apache
1816
1953
  # row keys
1817
1954
  ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1818
1955
  # timestamp
1819
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
1956
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1957
+ # Get attributes
1958
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1820
1959
  }
1821
1960
 
1822
1961
  def struct_fields; FIELDS; end
@@ -1851,6 +1990,7 @@ module Apache
1851
1990
  ROWS = 2
1852
1991
  COLUMNS = 3
1853
1992
  TIMESTAMP = 4
1993
+ ATTRIBUTES = 5
1854
1994
 
1855
1995
  FIELDS = {
1856
1996
  # name of table
@@ -1859,7 +1999,9 @@ module Apache
1859
1999
  ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1860
2000
  # List of columns to return, null for all columns
1861
2001
  COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1862
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2002
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2003
+ # Get attributes
2004
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1863
2005
  }
1864
2006
 
1865
2007
  def struct_fields; FIELDS; end
@@ -1893,6 +2035,7 @@ module Apache
1893
2035
  TABLENAME = 1
1894
2036
  ROW = 2
1895
2037
  MUTATIONS = 3
2038
+ ATTRIBUTES = 4
1896
2039
 
1897
2040
  FIELDS = {
1898
2041
  # name of table
@@ -1900,7 +2043,9 @@ module Apache
1900
2043
  # row key
1901
2044
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
1902
2045
  # list of mutation commands
1903
- MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::Mutation}}
2046
+ MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::Mutation}},
2047
+ # Mutation attributes
2048
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1904
2049
  }
1905
2050
 
1906
2051
  def struct_fields; FIELDS; end
@@ -1935,6 +2080,7 @@ module Apache
1935
2080
  ROW = 2
1936
2081
  MUTATIONS = 3
1937
2082
  TIMESTAMP = 4
2083
+ ATTRIBUTES = 5
1938
2084
 
1939
2085
  FIELDS = {
1940
2086
  # name of table
@@ -1944,7 +2090,9 @@ module Apache
1944
2090
  # list of mutation commands
1945
2091
  MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::Mutation}},
1946
2092
  # timestamp
1947
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2093
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2094
+ # Mutation attributes
2095
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1948
2096
  }
1949
2097
 
1950
2098
  def struct_fields; FIELDS; end
@@ -1977,12 +2125,15 @@ module Apache
1977
2125
  include ::Thrift::Struct, ::Thrift::Struct_Union
1978
2126
  TABLENAME = 1
1979
2127
  ROWBATCHES = 2
2128
+ ATTRIBUTES = 3
1980
2129
 
1981
2130
  FIELDS = {
1982
2131
  # name of table
1983
2132
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
1984
2133
  # list of row batches
1985
- ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::BatchMutation}}
2134
+ ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::BatchMutation}},
2135
+ # Mutation attributes
2136
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
1986
2137
  }
1987
2138
 
1988
2139
  def struct_fields; FIELDS; end
@@ -2016,6 +2167,7 @@ module Apache
2016
2167
  TABLENAME = 1
2017
2168
  ROWBATCHES = 2
2018
2169
  TIMESTAMP = 3
2170
+ ATTRIBUTES = 4
2019
2171
 
2020
2172
  FIELDS = {
2021
2173
  # name of table
@@ -2023,7 +2175,9 @@ module Apache
2023
2175
  # list of row batches
2024
2176
  ROWBATCHES => {:type => ::Thrift::Types::LIST, :name => 'rowBatches', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::BatchMutation}},
2025
2177
  # timestamp
2026
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2178
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2179
+ # Mutation attributes
2180
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2027
2181
  }
2028
2182
 
2029
2183
  def struct_fields; FIELDS; end
@@ -2103,6 +2257,7 @@ module Apache
2103
2257
  TABLENAME = 1
2104
2258
  ROW = 2
2105
2259
  COLUMN = 3
2260
+ ATTRIBUTES = 4
2106
2261
 
2107
2262
  FIELDS = {
2108
2263
  # name of table
@@ -2110,7 +2265,9 @@ module Apache
2110
2265
  # Row to update
2111
2266
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2112
2267
  # name of column whose value is to be deleted
2113
- COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true}
2268
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
2269
+ # Delete attributes
2270
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2114
2271
  }
2115
2272
 
2116
2273
  def struct_fields; FIELDS; end
@@ -2143,6 +2300,7 @@ module Apache
2143
2300
  ROW = 2
2144
2301
  COLUMN = 3
2145
2302
  TIMESTAMP = 4
2303
+ ATTRIBUTES = 5
2146
2304
 
2147
2305
  FIELDS = {
2148
2306
  # name of table
@@ -2152,7 +2310,9 @@ module Apache
2152
2310
  # name of column whose value is to be deleted
2153
2311
  COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :binary => true},
2154
2312
  # timestamp
2155
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2313
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2314
+ # Delete attributes
2315
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2156
2316
  }
2157
2317
 
2158
2318
  def struct_fields; FIELDS; end
@@ -2183,12 +2343,15 @@ module Apache
2183
2343
  include ::Thrift::Struct, ::Thrift::Struct_Union
2184
2344
  TABLENAME = 1
2185
2345
  ROW = 2
2346
+ ATTRIBUTES = 3
2186
2347
 
2187
2348
  FIELDS = {
2188
2349
  # name of table
2189
2350
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2190
2351
  # key of the row to be completely deleted.
2191
- ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
2352
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2353
+ # Delete attributes
2354
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2192
2355
  }
2193
2356
 
2194
2357
  def struct_fields; FIELDS; end
@@ -2215,11 +2378,78 @@ module Apache
2215
2378
  ::Thrift::Struct.generate_accessors self
2216
2379
  end
2217
2380
 
2381
+ class Increment_args
2382
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2383
+ INCREMENT = 1
2384
+
2385
+ FIELDS = {
2386
+ # The single increment to apply
2387
+ INCREMENT => {:type => ::Thrift::Types::STRUCT, :name => 'increment', :class => ::Apache::Hadoop::Hbase::Thrift::TIncrement}
2388
+ }
2389
+
2390
+ def struct_fields; FIELDS; end
2391
+
2392
+ def validate
2393
+ end
2394
+
2395
+ ::Thrift::Struct.generate_accessors self
2396
+ end
2397
+
2398
+ class Increment_result
2399
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2400
+ IO = 1
2401
+
2402
+ FIELDS = {
2403
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2404
+ }
2405
+
2406
+ def struct_fields; FIELDS; end
2407
+
2408
+ def validate
2409
+ end
2410
+
2411
+ ::Thrift::Struct.generate_accessors self
2412
+ end
2413
+
2414
+ class IncrementRows_args
2415
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2416
+ INCREMENTS = 1
2417
+
2418
+ FIELDS = {
2419
+ # The list of increments
2420
+ INCREMENTS => {:type => ::Thrift::Types::LIST, :name => 'increments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TIncrement}}
2421
+ }
2422
+
2423
+ def struct_fields; FIELDS; end
2424
+
2425
+ def validate
2426
+ end
2427
+
2428
+ ::Thrift::Struct.generate_accessors self
2429
+ end
2430
+
2431
+ class IncrementRows_result
2432
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2433
+ IO = 1
2434
+
2435
+ FIELDS = {
2436
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2437
+ }
2438
+
2439
+ def struct_fields; FIELDS; end
2440
+
2441
+ def validate
2442
+ end
2443
+
2444
+ ::Thrift::Struct.generate_accessors self
2445
+ end
2446
+
2218
2447
  class DeleteAllRowTs_args
2219
2448
  include ::Thrift::Struct, ::Thrift::Struct_Union
2220
2449
  TABLENAME = 1
2221
2450
  ROW = 2
2222
2451
  TIMESTAMP = 3
2452
+ ATTRIBUTES = 4
2223
2453
 
2224
2454
  FIELDS = {
2225
2455
  # name of table
@@ -2227,7 +2457,9 @@ module Apache
2227
2457
  # key of the row to be completely deleted.
2228
2458
  ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2229
2459
  # timestamp
2230
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2460
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2461
+ # Delete attributes
2462
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2231
2463
  }
2232
2464
 
2233
2465
  def struct_fields; FIELDS; end
@@ -2258,12 +2490,15 @@ module Apache
2258
2490
  include ::Thrift::Struct, ::Thrift::Struct_Union
2259
2491
  TABLENAME = 1
2260
2492
  SCAN = 2
2493
+ ATTRIBUTES = 3
2261
2494
 
2262
2495
  FIELDS = {
2263
2496
  # name of table
2264
2497
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2265
2498
  # Scan instance
2266
- SCAN => {:type => ::Thrift::Types::STRUCT, :name => 'scan', :class => ::Apache::Hadoop::Hbase::Thrift::TScan}
2499
+ SCAN => {:type => ::Thrift::Types::STRUCT, :name => 'scan', :class => ::Apache::Hadoop::Hbase::Thrift::TScan},
2500
+ # Scan attributes
2501
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2267
2502
  }
2268
2503
 
2269
2504
  def struct_fields; FIELDS; end
@@ -2297,6 +2532,7 @@ module Apache
2297
2532
  TABLENAME = 1
2298
2533
  STARTROW = 2
2299
2534
  COLUMNS = 3
2535
+ ATTRIBUTES = 4
2300
2536
 
2301
2537
  FIELDS = {
2302
2538
  # name of table
@@ -2307,7 +2543,9 @@ module Apache
2307
2543
  # columns to scan. If column name is a column family, all
2308
2544
  # columns of the specified column family are returned. It's also possible
2309
2545
  # to pass a regex in the column qualifier.
2310
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2546
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2547
+ # Scan attributes
2548
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2311
2549
  }
2312
2550
 
2313
2551
  def struct_fields; FIELDS; end
@@ -2342,6 +2580,7 @@ module Apache
2342
2580
  STARTROW = 2
2343
2581
  STOPROW = 3
2344
2582
  COLUMNS = 4
2583
+ ATTRIBUTES = 5
2345
2584
 
2346
2585
  FIELDS = {
2347
2586
  # name of table
@@ -2355,7 +2594,9 @@ module Apache
2355
2594
  # columns to scan. If column name is a column family, all
2356
2595
  # columns of the specified column family are returned. It's also possible
2357
2596
  # to pass a regex in the column qualifier.
2358
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2597
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2598
+ # Scan attributes
2599
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2359
2600
  }
2360
2601
 
2361
2602
  def struct_fields; FIELDS; end
@@ -2389,6 +2630,7 @@ module Apache
2389
2630
  TABLENAME = 1
2390
2631
  STARTANDPREFIX = 2
2391
2632
  COLUMNS = 3
2633
+ ATTRIBUTES = 4
2392
2634
 
2393
2635
  FIELDS = {
2394
2636
  # name of table
@@ -2396,7 +2638,9 @@ module Apache
2396
2638
  # the prefix (and thus start row) of the keys you want
2397
2639
  STARTANDPREFIX => {:type => ::Thrift::Types::STRING, :name => 'startAndPrefix', :binary => true},
2398
2640
  # the columns you want returned
2399
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2641
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2642
+ # Scan attributes
2643
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2400
2644
  }
2401
2645
 
2402
2646
  def struct_fields; FIELDS; end
@@ -2431,6 +2675,7 @@ module Apache
2431
2675
  STARTROW = 2
2432
2676
  COLUMNS = 3
2433
2677
  TIMESTAMP = 4
2678
+ ATTRIBUTES = 5
2434
2679
 
2435
2680
  FIELDS = {
2436
2681
  # name of table
@@ -2443,7 +2688,9 @@ module Apache
2443
2688
  # to pass a regex in the column qualifier.
2444
2689
  COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2445
2690
  # timestamp
2446
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2691
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2692
+ # Scan attributes
2693
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2447
2694
  }
2448
2695
 
2449
2696
  def struct_fields; FIELDS; end
@@ -2479,6 +2726,7 @@ module Apache
2479
2726
  STOPROW = 3
2480
2727
  COLUMNS = 4
2481
2728
  TIMESTAMP = 5
2729
+ ATTRIBUTES = 6
2482
2730
 
2483
2731
  FIELDS = {
2484
2732
  # name of table
@@ -2494,7 +2742,9 @@ module Apache
2494
2742
  # to pass a regex in the column qualifier.
2495
2743
  COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
2496
2744
  # timestamp
2497
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
2745
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
2746
+ # Scan attributes
2747
+ ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::STRING, :binary => true}}
2498
2748
  }
2499
2749
 
2500
2750
  def struct_fields; FIELDS; end
@@ -2635,6 +2885,82 @@ module Apache
2635
2885
  ::Thrift::Struct.generate_accessors self
2636
2886
  end
2637
2887
 
2888
+ class GetRowOrBefore_args
2889
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2890
+ TABLENAME = 1
2891
+ ROW = 2
2892
+ FAMILY = 3
2893
+
2894
+ FIELDS = {
2895
+ # name of table
2896
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :binary => true},
2897
+ # row key
2898
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true},
2899
+ # column name
2900
+ FAMILY => {:type => ::Thrift::Types::STRING, :name => 'family', :binary => true}
2901
+ }
2902
+
2903
+ def struct_fields; FIELDS; end
2904
+
2905
+ def validate
2906
+ end
2907
+
2908
+ ::Thrift::Struct.generate_accessors self
2909
+ end
2910
+
2911
+ class GetRowOrBefore_result
2912
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2913
+ SUCCESS = 0
2914
+ IO = 1
2915
+
2916
+ FIELDS = {
2917
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Apache::Hadoop::Hbase::Thrift::TCell}},
2918
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2919
+ }
2920
+
2921
+ def struct_fields; FIELDS; end
2922
+
2923
+ def validate
2924
+ end
2925
+
2926
+ ::Thrift::Struct.generate_accessors self
2927
+ end
2928
+
2929
+ class GetRegionInfo_args
2930
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2931
+ ROW = 1
2932
+
2933
+ FIELDS = {
2934
+ # row key
2935
+ ROW => {:type => ::Thrift::Types::STRING, :name => 'row', :binary => true}
2936
+ }
2937
+
2938
+ def struct_fields; FIELDS; end
2939
+
2940
+ def validate
2941
+ end
2942
+
2943
+ ::Thrift::Struct.generate_accessors self
2944
+ end
2945
+
2946
+ class GetRegionInfo_result
2947
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2948
+ SUCCESS = 0
2949
+ IO = 1
2950
+
2951
+ FIELDS = {
2952
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Apache::Hadoop::Hbase::Thrift::TRegionInfo},
2953
+ IO => {:type => ::Thrift::Types::STRUCT, :name => 'io', :class => ::Apache::Hadoop::Hbase::Thrift::IOError}
2954
+ }
2955
+
2956
+ def struct_fields; FIELDS; end
2957
+
2958
+ def validate
2959
+ end
2960
+
2961
+ ::Thrift::Struct.generate_accessors self
2962
+ end
2963
+
2638
2964
  end
2639
2965
 
2640
2966
  end