hbase-client 0.0.1

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