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