massive_record 0.1.0

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