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