cassandra-cql 1.1.5 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +9 -12
- data/Gemfile +1 -1
- data/README.md +4 -0
- data/Rakefile +29 -6
- data/lib/cassandra-cql.rb +3 -0
- data/lib/cassandra-cql/1.2.rb +8 -0
- data/lib/cassandra-cql/1.2/result.rb +6 -0
- data/lib/cassandra-cql/1.2/statement.rb +6 -0
- data/lib/cassandra-cql/collections/list.rb +17 -0
- data/lib/cassandra-cql/collections/map.rb +26 -0
- data/lib/cassandra-cql/collections/set.rb +10 -0
- data/lib/cassandra-cql/database.rb +11 -2
- data/lib/cassandra-cql/result.rb +1 -1
- data/lib/cassandra-cql/schema.rb +18 -1
- data/lib/cassandra-cql/statement.rb +20 -9
- data/lib/cassandra-cql/version.rb +2 -2
- data/spec/comparator_spec.rb +2 -2
- data/spec/conf/1.1/cassandra.in.sh +41 -0
- data/spec/conf/1.1/cassandra.yaml +567 -0
- data/spec/conf/1.1/log4j-server.properties +44 -0
- data/spec/conf/1.1/schema.json +72 -0
- data/spec/conf/1.1/schema.txt +57 -0
- data/spec/conf/1.2/cassandra.in.sh +41 -0
- data/spec/conf/1.2/cassandra.yaml +643 -0
- data/spec/conf/1.2/log4j-server.properties +44 -0
- data/spec/conf/1.2/schema.json +72 -0
- data/spec/conf/1.2/schema.txt +57 -0
- data/spec/misc_spec.rb +6 -4
- data/spec/result_spec.rb +16 -2
- data/spec/row_spec.rb +43 -5
- data/spec/rowkey_spec.rb +2 -2
- data/spec/spec_helper.rb +66 -12
- data/spec/statement_spec.rb +41 -16
- data/spec/validation_spec.rb +5 -4
- data/vendor/1.2/gen-rb/cassandra.rb +3013 -0
- data/vendor/1.2/gen-rb/cassandra_constants.rb +13 -0
- data/vendor/1.2/gen-rb/cassandra_types.rb +966 -0
- metadata +21 -5
data/spec/validation_spec.rb
CHANGED
@@ -14,7 +14,7 @@ describe "Validation Roundtrip tests" do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def reset_column_family(name, test_column_type, opts="")
|
17
|
-
if @connection
|
17
|
+
if column_family_exists?(@connection, name)
|
18
18
|
@connection.execute("DROP COLUMNFAMILY #{name}")
|
19
19
|
end
|
20
20
|
|
@@ -22,8 +22,9 @@ describe "Validation Roundtrip tests" do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def change_column_type_and_raise_exception(cf_name, type, value)
|
25
|
+
@connection.execute("ALTER COLUMNFAMILY #{cf_name} ADD broken_column varchar")
|
25
26
|
@connection.execute("INSERT INTO #{cf_name} (id, broken_column) values (?, ?)", 'test', value)
|
26
|
-
@connection.execute("ALTER COLUMNFAMILY #{cf_name}
|
27
|
+
@connection.execute("ALTER COLUMNFAMILY #{cf_name} ALTER broken_column TYPE #{type}")
|
27
28
|
expect {
|
28
29
|
@connection.execute("SELECT id, broken_column FROM #{cf_name} WHERE id=?", 'test').fetch['broken_column']
|
29
30
|
}.to raise_error CassandraCQL::Error::CastException
|
@@ -100,7 +101,7 @@ describe "Validation Roundtrip tests" do
|
|
100
101
|
end
|
101
102
|
end
|
102
103
|
|
103
|
-
context "with counter validation" do
|
104
|
+
context "with counter validation", :cql_version => '2.0.0' do
|
104
105
|
let(:cf_name) { "validation_cf_counter" }
|
105
106
|
before(:each) {
|
106
107
|
if !@connection.schema.column_family_names.include?(cf_name)
|
@@ -319,4 +320,4 @@ describe "Validation Roundtrip tests" do
|
|
319
320
|
change_column_type_and_raise_exception(cf_name, 'varint', nil)
|
320
321
|
end
|
321
322
|
end
|
322
|
-
end
|
323
|
+
end
|
@@ -0,0 +1,3013 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.8.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require File.join(File.dirname(__FILE__), 'cassandra_types')
|
9
|
+
|
10
|
+
module CassandraCQL
|
11
|
+
module Thrift
|
12
|
+
class Client
|
13
|
+
include ::Thrift::Client
|
14
|
+
|
15
|
+
def login(auth_request)
|
16
|
+
send_login(auth_request)
|
17
|
+
recv_login()
|
18
|
+
end
|
19
|
+
|
20
|
+
def send_login(auth_request)
|
21
|
+
send_message('login', Login_args, :auth_request => auth_request)
|
22
|
+
end
|
23
|
+
|
24
|
+
def recv_login()
|
25
|
+
result = receive_message(Login_result)
|
26
|
+
raise result.authnx unless result.authnx.nil?
|
27
|
+
raise result.authzx unless result.authzx.nil?
|
28
|
+
return
|
29
|
+
end
|
30
|
+
|
31
|
+
def set_keyspace(keyspace)
|
32
|
+
send_set_keyspace(keyspace)
|
33
|
+
recv_set_keyspace()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_set_keyspace(keyspace)
|
37
|
+
send_message('set_keyspace', Set_keyspace_args, :keyspace => keyspace)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_set_keyspace()
|
41
|
+
result = receive_message(Set_keyspace_result)
|
42
|
+
raise result.ire unless result.ire.nil?
|
43
|
+
return
|
44
|
+
end
|
45
|
+
|
46
|
+
def get(key, column_path, consistency_level)
|
47
|
+
send_get(key, column_path, consistency_level)
|
48
|
+
return recv_get()
|
49
|
+
end
|
50
|
+
|
51
|
+
def send_get(key, column_path, consistency_level)
|
52
|
+
send_message('get', Get_args, :key => key, :column_path => column_path, :consistency_level => consistency_level)
|
53
|
+
end
|
54
|
+
|
55
|
+
def recv_get()
|
56
|
+
result = receive_message(Get_result)
|
57
|
+
return result.success unless result.success.nil?
|
58
|
+
raise result.ire unless result.ire.nil?
|
59
|
+
raise result.nfe unless result.nfe.nil?
|
60
|
+
raise result.ue unless result.ue.nil?
|
61
|
+
raise result.te unless result.te.nil?
|
62
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
|
63
|
+
end
|
64
|
+
|
65
|
+
def get_slice(key, column_parent, predicate, consistency_level)
|
66
|
+
send_get_slice(key, column_parent, predicate, consistency_level)
|
67
|
+
return recv_get_slice()
|
68
|
+
end
|
69
|
+
|
70
|
+
def send_get_slice(key, column_parent, predicate, consistency_level)
|
71
|
+
send_message('get_slice', Get_slice_args, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
|
72
|
+
end
|
73
|
+
|
74
|
+
def recv_get_slice()
|
75
|
+
result = receive_message(Get_slice_result)
|
76
|
+
return result.success unless result.success.nil?
|
77
|
+
raise result.ire unless result.ire.nil?
|
78
|
+
raise result.ue unless result.ue.nil?
|
79
|
+
raise result.te unless result.te.nil?
|
80
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice failed: unknown result')
|
81
|
+
end
|
82
|
+
|
83
|
+
def get_count(key, column_parent, predicate, consistency_level)
|
84
|
+
send_get_count(key, column_parent, predicate, consistency_level)
|
85
|
+
return recv_get_count()
|
86
|
+
end
|
87
|
+
|
88
|
+
def send_get_count(key, column_parent, predicate, consistency_level)
|
89
|
+
send_message('get_count', Get_count_args, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
|
90
|
+
end
|
91
|
+
|
92
|
+
def recv_get_count()
|
93
|
+
result = receive_message(Get_count_result)
|
94
|
+
return result.success unless result.success.nil?
|
95
|
+
raise result.ire unless result.ire.nil?
|
96
|
+
raise result.ue unless result.ue.nil?
|
97
|
+
raise result.te unless result.te.nil?
|
98
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_count failed: unknown result')
|
99
|
+
end
|
100
|
+
|
101
|
+
def multiget_slice(keys, column_parent, predicate, consistency_level)
|
102
|
+
send_multiget_slice(keys, column_parent, predicate, consistency_level)
|
103
|
+
return recv_multiget_slice()
|
104
|
+
end
|
105
|
+
|
106
|
+
def send_multiget_slice(keys, column_parent, predicate, consistency_level)
|
107
|
+
send_message('multiget_slice', Multiget_slice_args, :keys => keys, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
|
108
|
+
end
|
109
|
+
|
110
|
+
def recv_multiget_slice()
|
111
|
+
result = receive_message(Multiget_slice_result)
|
112
|
+
return result.success unless result.success.nil?
|
113
|
+
raise result.ire unless result.ire.nil?
|
114
|
+
raise result.ue unless result.ue.nil?
|
115
|
+
raise result.te unless result.te.nil?
|
116
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiget_slice failed: unknown result')
|
117
|
+
end
|
118
|
+
|
119
|
+
def multiget_count(keys, column_parent, predicate, consistency_level)
|
120
|
+
send_multiget_count(keys, column_parent, predicate, consistency_level)
|
121
|
+
return recv_multiget_count()
|
122
|
+
end
|
123
|
+
|
124
|
+
def send_multiget_count(keys, column_parent, predicate, consistency_level)
|
125
|
+
send_message('multiget_count', Multiget_count_args, :keys => keys, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
|
126
|
+
end
|
127
|
+
|
128
|
+
def recv_multiget_count()
|
129
|
+
result = receive_message(Multiget_count_result)
|
130
|
+
return result.success unless result.success.nil?
|
131
|
+
raise result.ire unless result.ire.nil?
|
132
|
+
raise result.ue unless result.ue.nil?
|
133
|
+
raise result.te unless result.te.nil?
|
134
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiget_count failed: unknown result')
|
135
|
+
end
|
136
|
+
|
137
|
+
def get_range_slices(column_parent, predicate, range, consistency_level)
|
138
|
+
send_get_range_slices(column_parent, predicate, range, consistency_level)
|
139
|
+
return recv_get_range_slices()
|
140
|
+
end
|
141
|
+
|
142
|
+
def send_get_range_slices(column_parent, predicate, range, consistency_level)
|
143
|
+
send_message('get_range_slices', Get_range_slices_args, :column_parent => column_parent, :predicate => predicate, :range => range, :consistency_level => consistency_level)
|
144
|
+
end
|
145
|
+
|
146
|
+
def recv_get_range_slices()
|
147
|
+
result = receive_message(Get_range_slices_result)
|
148
|
+
return result.success unless result.success.nil?
|
149
|
+
raise result.ire unless result.ire.nil?
|
150
|
+
raise result.ue unless result.ue.nil?
|
151
|
+
raise result.te unless result.te.nil?
|
152
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_range_slices failed: unknown result')
|
153
|
+
end
|
154
|
+
|
155
|
+
def get_paged_slice(column_family, range, start_column, consistency_level)
|
156
|
+
send_get_paged_slice(column_family, range, start_column, consistency_level)
|
157
|
+
return recv_get_paged_slice()
|
158
|
+
end
|
159
|
+
|
160
|
+
def send_get_paged_slice(column_family, range, start_column, consistency_level)
|
161
|
+
send_message('get_paged_slice', Get_paged_slice_args, :column_family => column_family, :range => range, :start_column => start_column, :consistency_level => consistency_level)
|
162
|
+
end
|
163
|
+
|
164
|
+
def recv_get_paged_slice()
|
165
|
+
result = receive_message(Get_paged_slice_result)
|
166
|
+
return result.success unless result.success.nil?
|
167
|
+
raise result.ire unless result.ire.nil?
|
168
|
+
raise result.ue unless result.ue.nil?
|
169
|
+
raise result.te unless result.te.nil?
|
170
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_paged_slice failed: unknown result')
|
171
|
+
end
|
172
|
+
|
173
|
+
def get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
|
174
|
+
send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
|
175
|
+
return recv_get_indexed_slices()
|
176
|
+
end
|
177
|
+
|
178
|
+
def send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
|
179
|
+
send_message('get_indexed_slices', Get_indexed_slices_args, :column_parent => column_parent, :index_clause => index_clause, :column_predicate => column_predicate, :consistency_level => consistency_level)
|
180
|
+
end
|
181
|
+
|
182
|
+
def recv_get_indexed_slices()
|
183
|
+
result = receive_message(Get_indexed_slices_result)
|
184
|
+
return result.success unless result.success.nil?
|
185
|
+
raise result.ire unless result.ire.nil?
|
186
|
+
raise result.ue unless result.ue.nil?
|
187
|
+
raise result.te unless result.te.nil?
|
188
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_indexed_slices failed: unknown result')
|
189
|
+
end
|
190
|
+
|
191
|
+
def insert(key, column_parent, column, consistency_level)
|
192
|
+
send_insert(key, column_parent, column, consistency_level)
|
193
|
+
recv_insert()
|
194
|
+
end
|
195
|
+
|
196
|
+
def send_insert(key, column_parent, column, consistency_level)
|
197
|
+
send_message('insert', Insert_args, :key => key, :column_parent => column_parent, :column => column, :consistency_level => consistency_level)
|
198
|
+
end
|
199
|
+
|
200
|
+
def recv_insert()
|
201
|
+
result = receive_message(Insert_result)
|
202
|
+
raise result.ire unless result.ire.nil?
|
203
|
+
raise result.ue unless result.ue.nil?
|
204
|
+
raise result.te unless result.te.nil?
|
205
|
+
return
|
206
|
+
end
|
207
|
+
|
208
|
+
def add(key, column_parent, column, consistency_level)
|
209
|
+
send_add(key, column_parent, column, consistency_level)
|
210
|
+
recv_add()
|
211
|
+
end
|
212
|
+
|
213
|
+
def send_add(key, column_parent, column, consistency_level)
|
214
|
+
send_message('add', Add_args, :key => key, :column_parent => column_parent, :column => column, :consistency_level => consistency_level)
|
215
|
+
end
|
216
|
+
|
217
|
+
def recv_add()
|
218
|
+
result = receive_message(Add_result)
|
219
|
+
raise result.ire unless result.ire.nil?
|
220
|
+
raise result.ue unless result.ue.nil?
|
221
|
+
raise result.te unless result.te.nil?
|
222
|
+
return
|
223
|
+
end
|
224
|
+
|
225
|
+
def remove(key, column_path, timestamp, consistency_level)
|
226
|
+
send_remove(key, column_path, timestamp, consistency_level)
|
227
|
+
recv_remove()
|
228
|
+
end
|
229
|
+
|
230
|
+
def send_remove(key, column_path, timestamp, consistency_level)
|
231
|
+
send_message('remove', Remove_args, :key => key, :column_path => column_path, :timestamp => timestamp, :consistency_level => consistency_level)
|
232
|
+
end
|
233
|
+
|
234
|
+
def recv_remove()
|
235
|
+
result = receive_message(Remove_result)
|
236
|
+
raise result.ire unless result.ire.nil?
|
237
|
+
raise result.ue unless result.ue.nil?
|
238
|
+
raise result.te unless result.te.nil?
|
239
|
+
return
|
240
|
+
end
|
241
|
+
|
242
|
+
def remove_counter(key, path, consistency_level)
|
243
|
+
send_remove_counter(key, path, consistency_level)
|
244
|
+
recv_remove_counter()
|
245
|
+
end
|
246
|
+
|
247
|
+
def send_remove_counter(key, path, consistency_level)
|
248
|
+
send_message('remove_counter', Remove_counter_args, :key => key, :path => path, :consistency_level => consistency_level)
|
249
|
+
end
|
250
|
+
|
251
|
+
def recv_remove_counter()
|
252
|
+
result = receive_message(Remove_counter_result)
|
253
|
+
raise result.ire unless result.ire.nil?
|
254
|
+
raise result.ue unless result.ue.nil?
|
255
|
+
raise result.te unless result.te.nil?
|
256
|
+
return
|
257
|
+
end
|
258
|
+
|
259
|
+
def batch_mutate(mutation_map, consistency_level)
|
260
|
+
send_batch_mutate(mutation_map, consistency_level)
|
261
|
+
recv_batch_mutate()
|
262
|
+
end
|
263
|
+
|
264
|
+
def send_batch_mutate(mutation_map, consistency_level)
|
265
|
+
send_message('batch_mutate', Batch_mutate_args, :mutation_map => mutation_map, :consistency_level => consistency_level)
|
266
|
+
end
|
267
|
+
|
268
|
+
def recv_batch_mutate()
|
269
|
+
result = receive_message(Batch_mutate_result)
|
270
|
+
raise result.ire unless result.ire.nil?
|
271
|
+
raise result.ue unless result.ue.nil?
|
272
|
+
raise result.te unless result.te.nil?
|
273
|
+
return
|
274
|
+
end
|
275
|
+
|
276
|
+
def atomic_batch_mutate(mutation_map, consistency_level)
|
277
|
+
send_atomic_batch_mutate(mutation_map, consistency_level)
|
278
|
+
recv_atomic_batch_mutate()
|
279
|
+
end
|
280
|
+
|
281
|
+
def send_atomic_batch_mutate(mutation_map, consistency_level)
|
282
|
+
send_message('atomic_batch_mutate', Atomic_batch_mutate_args, :mutation_map => mutation_map, :consistency_level => consistency_level)
|
283
|
+
end
|
284
|
+
|
285
|
+
def recv_atomic_batch_mutate()
|
286
|
+
result = receive_message(Atomic_batch_mutate_result)
|
287
|
+
raise result.ire unless result.ire.nil?
|
288
|
+
raise result.ue unless result.ue.nil?
|
289
|
+
raise result.te unless result.te.nil?
|
290
|
+
return
|
291
|
+
end
|
292
|
+
|
293
|
+
def truncate(cfname)
|
294
|
+
send_truncate(cfname)
|
295
|
+
recv_truncate()
|
296
|
+
end
|
297
|
+
|
298
|
+
def send_truncate(cfname)
|
299
|
+
send_message('truncate', Truncate_args, :cfname => cfname)
|
300
|
+
end
|
301
|
+
|
302
|
+
def recv_truncate()
|
303
|
+
result = receive_message(Truncate_result)
|
304
|
+
raise result.ire unless result.ire.nil?
|
305
|
+
raise result.ue unless result.ue.nil?
|
306
|
+
raise result.te unless result.te.nil?
|
307
|
+
return
|
308
|
+
end
|
309
|
+
|
310
|
+
def describe_schema_versions()
|
311
|
+
send_describe_schema_versions()
|
312
|
+
return recv_describe_schema_versions()
|
313
|
+
end
|
314
|
+
|
315
|
+
def send_describe_schema_versions()
|
316
|
+
send_message('describe_schema_versions', Describe_schema_versions_args)
|
317
|
+
end
|
318
|
+
|
319
|
+
def recv_describe_schema_versions()
|
320
|
+
result = receive_message(Describe_schema_versions_result)
|
321
|
+
return result.success unless result.success.nil?
|
322
|
+
raise result.ire unless result.ire.nil?
|
323
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_schema_versions failed: unknown result')
|
324
|
+
end
|
325
|
+
|
326
|
+
def describe_keyspaces()
|
327
|
+
send_describe_keyspaces()
|
328
|
+
return recv_describe_keyspaces()
|
329
|
+
end
|
330
|
+
|
331
|
+
def send_describe_keyspaces()
|
332
|
+
send_message('describe_keyspaces', Describe_keyspaces_args)
|
333
|
+
end
|
334
|
+
|
335
|
+
def recv_describe_keyspaces()
|
336
|
+
result = receive_message(Describe_keyspaces_result)
|
337
|
+
return result.success unless result.success.nil?
|
338
|
+
raise result.ire unless result.ire.nil?
|
339
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspaces failed: unknown result')
|
340
|
+
end
|
341
|
+
|
342
|
+
def describe_cluster_name()
|
343
|
+
send_describe_cluster_name()
|
344
|
+
return recv_describe_cluster_name()
|
345
|
+
end
|
346
|
+
|
347
|
+
def send_describe_cluster_name()
|
348
|
+
send_message('describe_cluster_name', Describe_cluster_name_args)
|
349
|
+
end
|
350
|
+
|
351
|
+
def recv_describe_cluster_name()
|
352
|
+
result = receive_message(Describe_cluster_name_result)
|
353
|
+
return result.success unless result.success.nil?
|
354
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_cluster_name failed: unknown result')
|
355
|
+
end
|
356
|
+
|
357
|
+
def describe_version()
|
358
|
+
send_describe_version()
|
359
|
+
return recv_describe_version()
|
360
|
+
end
|
361
|
+
|
362
|
+
def send_describe_version()
|
363
|
+
send_message('describe_version', Describe_version_args)
|
364
|
+
end
|
365
|
+
|
366
|
+
def recv_describe_version()
|
367
|
+
result = receive_message(Describe_version_result)
|
368
|
+
return result.success unless result.success.nil?
|
369
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_version failed: unknown result')
|
370
|
+
end
|
371
|
+
|
372
|
+
def describe_ring(keyspace)
|
373
|
+
send_describe_ring(keyspace)
|
374
|
+
return recv_describe_ring()
|
375
|
+
end
|
376
|
+
|
377
|
+
def send_describe_ring(keyspace)
|
378
|
+
send_message('describe_ring', Describe_ring_args, :keyspace => keyspace)
|
379
|
+
end
|
380
|
+
|
381
|
+
def recv_describe_ring()
|
382
|
+
result = receive_message(Describe_ring_result)
|
383
|
+
return result.success unless result.success.nil?
|
384
|
+
raise result.ire unless result.ire.nil?
|
385
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_ring failed: unknown result')
|
386
|
+
end
|
387
|
+
|
388
|
+
def describe_token_map()
|
389
|
+
send_describe_token_map()
|
390
|
+
return recv_describe_token_map()
|
391
|
+
end
|
392
|
+
|
393
|
+
def send_describe_token_map()
|
394
|
+
send_message('describe_token_map', Describe_token_map_args)
|
395
|
+
end
|
396
|
+
|
397
|
+
def recv_describe_token_map()
|
398
|
+
result = receive_message(Describe_token_map_result)
|
399
|
+
return result.success unless result.success.nil?
|
400
|
+
raise result.ire unless result.ire.nil?
|
401
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_token_map failed: unknown result')
|
402
|
+
end
|
403
|
+
|
404
|
+
def describe_partitioner()
|
405
|
+
send_describe_partitioner()
|
406
|
+
return recv_describe_partitioner()
|
407
|
+
end
|
408
|
+
|
409
|
+
def send_describe_partitioner()
|
410
|
+
send_message('describe_partitioner', Describe_partitioner_args)
|
411
|
+
end
|
412
|
+
|
413
|
+
def recv_describe_partitioner()
|
414
|
+
result = receive_message(Describe_partitioner_result)
|
415
|
+
return result.success unless result.success.nil?
|
416
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_partitioner failed: unknown result')
|
417
|
+
end
|
418
|
+
|
419
|
+
def describe_snitch()
|
420
|
+
send_describe_snitch()
|
421
|
+
return recv_describe_snitch()
|
422
|
+
end
|
423
|
+
|
424
|
+
def send_describe_snitch()
|
425
|
+
send_message('describe_snitch', Describe_snitch_args)
|
426
|
+
end
|
427
|
+
|
428
|
+
def recv_describe_snitch()
|
429
|
+
result = receive_message(Describe_snitch_result)
|
430
|
+
return result.success unless result.success.nil?
|
431
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_snitch failed: unknown result')
|
432
|
+
end
|
433
|
+
|
434
|
+
def describe_keyspace(keyspace)
|
435
|
+
send_describe_keyspace(keyspace)
|
436
|
+
return recv_describe_keyspace()
|
437
|
+
end
|
438
|
+
|
439
|
+
def send_describe_keyspace(keyspace)
|
440
|
+
send_message('describe_keyspace', Describe_keyspace_args, :keyspace => keyspace)
|
441
|
+
end
|
442
|
+
|
443
|
+
def recv_describe_keyspace()
|
444
|
+
result = receive_message(Describe_keyspace_result)
|
445
|
+
return result.success unless result.success.nil?
|
446
|
+
raise result.nfe unless result.nfe.nil?
|
447
|
+
raise result.ire unless result.ire.nil?
|
448
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspace failed: unknown result')
|
449
|
+
end
|
450
|
+
|
451
|
+
def describe_splits(cfName, start_token, end_token, keys_per_split)
|
452
|
+
send_describe_splits(cfName, start_token, end_token, keys_per_split)
|
453
|
+
return recv_describe_splits()
|
454
|
+
end
|
455
|
+
|
456
|
+
def send_describe_splits(cfName, start_token, end_token, keys_per_split)
|
457
|
+
send_message('describe_splits', Describe_splits_args, :cfName => cfName, :start_token => start_token, :end_token => end_token, :keys_per_split => keys_per_split)
|
458
|
+
end
|
459
|
+
|
460
|
+
def recv_describe_splits()
|
461
|
+
result = receive_message(Describe_splits_result)
|
462
|
+
return result.success unless result.success.nil?
|
463
|
+
raise result.ire unless result.ire.nil?
|
464
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_splits failed: unknown result')
|
465
|
+
end
|
466
|
+
|
467
|
+
def trace_next_query()
|
468
|
+
send_trace_next_query()
|
469
|
+
return recv_trace_next_query()
|
470
|
+
end
|
471
|
+
|
472
|
+
def send_trace_next_query()
|
473
|
+
send_message('trace_next_query', Trace_next_query_args)
|
474
|
+
end
|
475
|
+
|
476
|
+
def recv_trace_next_query()
|
477
|
+
result = receive_message(Trace_next_query_result)
|
478
|
+
return result.success unless result.success.nil?
|
479
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'trace_next_query failed: unknown result')
|
480
|
+
end
|
481
|
+
|
482
|
+
def describe_splits_ex(cfName, start_token, end_token, keys_per_split)
|
483
|
+
send_describe_splits_ex(cfName, start_token, end_token, keys_per_split)
|
484
|
+
return recv_describe_splits_ex()
|
485
|
+
end
|
486
|
+
|
487
|
+
def send_describe_splits_ex(cfName, start_token, end_token, keys_per_split)
|
488
|
+
send_message('describe_splits_ex', Describe_splits_ex_args, :cfName => cfName, :start_token => start_token, :end_token => end_token, :keys_per_split => keys_per_split)
|
489
|
+
end
|
490
|
+
|
491
|
+
def recv_describe_splits_ex()
|
492
|
+
result = receive_message(Describe_splits_ex_result)
|
493
|
+
return result.success unless result.success.nil?
|
494
|
+
raise result.ire unless result.ire.nil?
|
495
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_splits_ex failed: unknown result')
|
496
|
+
end
|
497
|
+
|
498
|
+
def system_add_column_family(cf_def)
|
499
|
+
send_system_add_column_family(cf_def)
|
500
|
+
return recv_system_add_column_family()
|
501
|
+
end
|
502
|
+
|
503
|
+
def send_system_add_column_family(cf_def)
|
504
|
+
send_message('system_add_column_family', System_add_column_family_args, :cf_def => cf_def)
|
505
|
+
end
|
506
|
+
|
507
|
+
def recv_system_add_column_family()
|
508
|
+
result = receive_message(System_add_column_family_result)
|
509
|
+
return result.success unless result.success.nil?
|
510
|
+
raise result.ire unless result.ire.nil?
|
511
|
+
raise result.sde unless result.sde.nil?
|
512
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_column_family failed: unknown result')
|
513
|
+
end
|
514
|
+
|
515
|
+
def system_drop_column_family(column_family)
|
516
|
+
send_system_drop_column_family(column_family)
|
517
|
+
return recv_system_drop_column_family()
|
518
|
+
end
|
519
|
+
|
520
|
+
def send_system_drop_column_family(column_family)
|
521
|
+
send_message('system_drop_column_family', System_drop_column_family_args, :column_family => column_family)
|
522
|
+
end
|
523
|
+
|
524
|
+
def recv_system_drop_column_family()
|
525
|
+
result = receive_message(System_drop_column_family_result)
|
526
|
+
return result.success unless result.success.nil?
|
527
|
+
raise result.ire unless result.ire.nil?
|
528
|
+
raise result.sde unless result.sde.nil?
|
529
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_column_family failed: unknown result')
|
530
|
+
end
|
531
|
+
|
532
|
+
def system_add_keyspace(ks_def)
|
533
|
+
send_system_add_keyspace(ks_def)
|
534
|
+
return recv_system_add_keyspace()
|
535
|
+
end
|
536
|
+
|
537
|
+
def send_system_add_keyspace(ks_def)
|
538
|
+
send_message('system_add_keyspace', System_add_keyspace_args, :ks_def => ks_def)
|
539
|
+
end
|
540
|
+
|
541
|
+
def recv_system_add_keyspace()
|
542
|
+
result = receive_message(System_add_keyspace_result)
|
543
|
+
return result.success unless result.success.nil?
|
544
|
+
raise result.ire unless result.ire.nil?
|
545
|
+
raise result.sde unless result.sde.nil?
|
546
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_keyspace failed: unknown result')
|
547
|
+
end
|
548
|
+
|
549
|
+
def system_drop_keyspace(keyspace)
|
550
|
+
send_system_drop_keyspace(keyspace)
|
551
|
+
return recv_system_drop_keyspace()
|
552
|
+
end
|
553
|
+
|
554
|
+
def send_system_drop_keyspace(keyspace)
|
555
|
+
send_message('system_drop_keyspace', System_drop_keyspace_args, :keyspace => keyspace)
|
556
|
+
end
|
557
|
+
|
558
|
+
def recv_system_drop_keyspace()
|
559
|
+
result = receive_message(System_drop_keyspace_result)
|
560
|
+
return result.success unless result.success.nil?
|
561
|
+
raise result.ire unless result.ire.nil?
|
562
|
+
raise result.sde unless result.sde.nil?
|
563
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_keyspace failed: unknown result')
|
564
|
+
end
|
565
|
+
|
566
|
+
def system_update_keyspace(ks_def)
|
567
|
+
send_system_update_keyspace(ks_def)
|
568
|
+
return recv_system_update_keyspace()
|
569
|
+
end
|
570
|
+
|
571
|
+
def send_system_update_keyspace(ks_def)
|
572
|
+
send_message('system_update_keyspace', System_update_keyspace_args, :ks_def => ks_def)
|
573
|
+
end
|
574
|
+
|
575
|
+
def recv_system_update_keyspace()
|
576
|
+
result = receive_message(System_update_keyspace_result)
|
577
|
+
return result.success unless result.success.nil?
|
578
|
+
raise result.ire unless result.ire.nil?
|
579
|
+
raise result.sde unless result.sde.nil?
|
580
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_keyspace failed: unknown result')
|
581
|
+
end
|
582
|
+
|
583
|
+
def system_update_column_family(cf_def)
|
584
|
+
send_system_update_column_family(cf_def)
|
585
|
+
return recv_system_update_column_family()
|
586
|
+
end
|
587
|
+
|
588
|
+
def send_system_update_column_family(cf_def)
|
589
|
+
send_message('system_update_column_family', System_update_column_family_args, :cf_def => cf_def)
|
590
|
+
end
|
591
|
+
|
592
|
+
def recv_system_update_column_family()
|
593
|
+
result = receive_message(System_update_column_family_result)
|
594
|
+
return result.success unless result.success.nil?
|
595
|
+
raise result.ire unless result.ire.nil?
|
596
|
+
raise result.sde unless result.sde.nil?
|
597
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_column_family failed: unknown result')
|
598
|
+
end
|
599
|
+
|
600
|
+
def execute_cql_query(query, compression)
|
601
|
+
send_execute_cql_query(query, compression)
|
602
|
+
return recv_execute_cql_query()
|
603
|
+
end
|
604
|
+
|
605
|
+
def send_execute_cql_query(query, compression)
|
606
|
+
send_message('execute_cql_query', Execute_cql_query_args, :query => query, :compression => compression)
|
607
|
+
end
|
608
|
+
|
609
|
+
def recv_execute_cql_query()
|
610
|
+
result = receive_message(Execute_cql_query_result)
|
611
|
+
return result.success unless result.success.nil?
|
612
|
+
raise result.ire unless result.ire.nil?
|
613
|
+
raise result.ue unless result.ue.nil?
|
614
|
+
raise result.te unless result.te.nil?
|
615
|
+
raise result.sde unless result.sde.nil?
|
616
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_cql_query failed: unknown result')
|
617
|
+
end
|
618
|
+
|
619
|
+
def execute_cql3_query(query, compression, consistency)
|
620
|
+
send_execute_cql3_query(query, compression, consistency)
|
621
|
+
return recv_execute_cql3_query()
|
622
|
+
end
|
623
|
+
|
624
|
+
def send_execute_cql3_query(query, compression, consistency)
|
625
|
+
send_message('execute_cql3_query', Execute_cql3_query_args, :query => query, :compression => compression, :consistency => consistency)
|
626
|
+
end
|
627
|
+
|
628
|
+
def recv_execute_cql3_query()
|
629
|
+
result = receive_message(Execute_cql3_query_result)
|
630
|
+
return result.success unless result.success.nil?
|
631
|
+
raise result.ire unless result.ire.nil?
|
632
|
+
raise result.ue unless result.ue.nil?
|
633
|
+
raise result.te unless result.te.nil?
|
634
|
+
raise result.sde unless result.sde.nil?
|
635
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_cql3_query failed: unknown result')
|
636
|
+
end
|
637
|
+
|
638
|
+
def prepare_cql_query(query, compression)
|
639
|
+
send_prepare_cql_query(query, compression)
|
640
|
+
return recv_prepare_cql_query()
|
641
|
+
end
|
642
|
+
|
643
|
+
def send_prepare_cql_query(query, compression)
|
644
|
+
send_message('prepare_cql_query', Prepare_cql_query_args, :query => query, :compression => compression)
|
645
|
+
end
|
646
|
+
|
647
|
+
def recv_prepare_cql_query()
|
648
|
+
result = receive_message(Prepare_cql_query_result)
|
649
|
+
return result.success unless result.success.nil?
|
650
|
+
raise result.ire unless result.ire.nil?
|
651
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'prepare_cql_query failed: unknown result')
|
652
|
+
end
|
653
|
+
|
654
|
+
def prepare_cql3_query(query, compression)
|
655
|
+
send_prepare_cql3_query(query, compression)
|
656
|
+
return recv_prepare_cql3_query()
|
657
|
+
end
|
658
|
+
|
659
|
+
def send_prepare_cql3_query(query, compression)
|
660
|
+
send_message('prepare_cql3_query', Prepare_cql3_query_args, :query => query, :compression => compression)
|
661
|
+
end
|
662
|
+
|
663
|
+
def recv_prepare_cql3_query()
|
664
|
+
result = receive_message(Prepare_cql3_query_result)
|
665
|
+
return result.success unless result.success.nil?
|
666
|
+
raise result.ire unless result.ire.nil?
|
667
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'prepare_cql3_query failed: unknown result')
|
668
|
+
end
|
669
|
+
|
670
|
+
def execute_prepared_cql_query(itemId, values)
|
671
|
+
send_execute_prepared_cql_query(itemId, values)
|
672
|
+
return recv_execute_prepared_cql_query()
|
673
|
+
end
|
674
|
+
|
675
|
+
def send_execute_prepared_cql_query(itemId, values)
|
676
|
+
send_message('execute_prepared_cql_query', Execute_prepared_cql_query_args, :itemId => itemId, :values => values)
|
677
|
+
end
|
678
|
+
|
679
|
+
def recv_execute_prepared_cql_query()
|
680
|
+
result = receive_message(Execute_prepared_cql_query_result)
|
681
|
+
return result.success unless result.success.nil?
|
682
|
+
raise result.ire unless result.ire.nil?
|
683
|
+
raise result.ue unless result.ue.nil?
|
684
|
+
raise result.te unless result.te.nil?
|
685
|
+
raise result.sde unless result.sde.nil?
|
686
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_prepared_cql_query failed: unknown result')
|
687
|
+
end
|
688
|
+
|
689
|
+
def execute_prepared_cql3_query(itemId, values, consistency)
|
690
|
+
send_execute_prepared_cql3_query(itemId, values, consistency)
|
691
|
+
return recv_execute_prepared_cql3_query()
|
692
|
+
end
|
693
|
+
|
694
|
+
def send_execute_prepared_cql3_query(itemId, values, consistency)
|
695
|
+
send_message('execute_prepared_cql3_query', Execute_prepared_cql3_query_args, :itemId => itemId, :values => values, :consistency => consistency)
|
696
|
+
end
|
697
|
+
|
698
|
+
def recv_execute_prepared_cql3_query()
|
699
|
+
result = receive_message(Execute_prepared_cql3_query_result)
|
700
|
+
return result.success unless result.success.nil?
|
701
|
+
raise result.ire unless result.ire.nil?
|
702
|
+
raise result.ue unless result.ue.nil?
|
703
|
+
raise result.te unless result.te.nil?
|
704
|
+
raise result.sde unless result.sde.nil?
|
705
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_prepared_cql3_query failed: unknown result')
|
706
|
+
end
|
707
|
+
|
708
|
+
def set_cql_version(version)
|
709
|
+
send_set_cql_version(version)
|
710
|
+
recv_set_cql_version()
|
711
|
+
end
|
712
|
+
|
713
|
+
def send_set_cql_version(version)
|
714
|
+
send_message('set_cql_version', Set_cql_version_args, :version => version)
|
715
|
+
end
|
716
|
+
|
717
|
+
def recv_set_cql_version()
|
718
|
+
result = receive_message(Set_cql_version_result)
|
719
|
+
raise result.ire unless result.ire.nil?
|
720
|
+
return
|
721
|
+
end
|
722
|
+
|
723
|
+
end
|
724
|
+
|
725
|
+
class Processor
|
726
|
+
include ::Thrift::Processor
|
727
|
+
|
728
|
+
def process_login(seqid, iprot, oprot)
|
729
|
+
args = read_args(iprot, Login_args)
|
730
|
+
result = Login_result.new()
|
731
|
+
begin
|
732
|
+
@handler.login(args.auth_request)
|
733
|
+
rescue CassandraCQL::Thrift::AuthenticationException => authnx
|
734
|
+
result.authnx = authnx
|
735
|
+
rescue CassandraCQL::Thrift::AuthorizationException => authzx
|
736
|
+
result.authzx = authzx
|
737
|
+
end
|
738
|
+
write_result(result, oprot, 'login', seqid)
|
739
|
+
end
|
740
|
+
|
741
|
+
def process_set_keyspace(seqid, iprot, oprot)
|
742
|
+
args = read_args(iprot, Set_keyspace_args)
|
743
|
+
result = Set_keyspace_result.new()
|
744
|
+
begin
|
745
|
+
@handler.set_keyspace(args.keyspace)
|
746
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
747
|
+
result.ire = ire
|
748
|
+
end
|
749
|
+
write_result(result, oprot, 'set_keyspace', seqid)
|
750
|
+
end
|
751
|
+
|
752
|
+
def process_get(seqid, iprot, oprot)
|
753
|
+
args = read_args(iprot, Get_args)
|
754
|
+
result = Get_result.new()
|
755
|
+
begin
|
756
|
+
result.success = @handler.get(args.key, args.column_path, args.consistency_level)
|
757
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
758
|
+
result.ire = ire
|
759
|
+
rescue CassandraCQL::Thrift::NotFoundException => nfe
|
760
|
+
result.nfe = nfe
|
761
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
762
|
+
result.ue = ue
|
763
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
764
|
+
result.te = te
|
765
|
+
end
|
766
|
+
write_result(result, oprot, 'get', seqid)
|
767
|
+
end
|
768
|
+
|
769
|
+
def process_get_slice(seqid, iprot, oprot)
|
770
|
+
args = read_args(iprot, Get_slice_args)
|
771
|
+
result = Get_slice_result.new()
|
772
|
+
begin
|
773
|
+
result.success = @handler.get_slice(args.key, args.column_parent, args.predicate, args.consistency_level)
|
774
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
775
|
+
result.ire = ire
|
776
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
777
|
+
result.ue = ue
|
778
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
779
|
+
result.te = te
|
780
|
+
end
|
781
|
+
write_result(result, oprot, 'get_slice', seqid)
|
782
|
+
end
|
783
|
+
|
784
|
+
def process_get_count(seqid, iprot, oprot)
|
785
|
+
args = read_args(iprot, Get_count_args)
|
786
|
+
result = Get_count_result.new()
|
787
|
+
begin
|
788
|
+
result.success = @handler.get_count(args.key, args.column_parent, args.predicate, args.consistency_level)
|
789
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
790
|
+
result.ire = ire
|
791
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
792
|
+
result.ue = ue
|
793
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
794
|
+
result.te = te
|
795
|
+
end
|
796
|
+
write_result(result, oprot, 'get_count', seqid)
|
797
|
+
end
|
798
|
+
|
799
|
+
def process_multiget_slice(seqid, iprot, oprot)
|
800
|
+
args = read_args(iprot, Multiget_slice_args)
|
801
|
+
result = Multiget_slice_result.new()
|
802
|
+
begin
|
803
|
+
result.success = @handler.multiget_slice(args.keys, args.column_parent, args.predicate, args.consistency_level)
|
804
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
805
|
+
result.ire = ire
|
806
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
807
|
+
result.ue = ue
|
808
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
809
|
+
result.te = te
|
810
|
+
end
|
811
|
+
write_result(result, oprot, 'multiget_slice', seqid)
|
812
|
+
end
|
813
|
+
|
814
|
+
def process_multiget_count(seqid, iprot, oprot)
|
815
|
+
args = read_args(iprot, Multiget_count_args)
|
816
|
+
result = Multiget_count_result.new()
|
817
|
+
begin
|
818
|
+
result.success = @handler.multiget_count(args.keys, args.column_parent, args.predicate, args.consistency_level)
|
819
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
820
|
+
result.ire = ire
|
821
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
822
|
+
result.ue = ue
|
823
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
824
|
+
result.te = te
|
825
|
+
end
|
826
|
+
write_result(result, oprot, 'multiget_count', seqid)
|
827
|
+
end
|
828
|
+
|
829
|
+
def process_get_range_slices(seqid, iprot, oprot)
|
830
|
+
args = read_args(iprot, Get_range_slices_args)
|
831
|
+
result = Get_range_slices_result.new()
|
832
|
+
begin
|
833
|
+
result.success = @handler.get_range_slices(args.column_parent, args.predicate, args.range, args.consistency_level)
|
834
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
835
|
+
result.ire = ire
|
836
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
837
|
+
result.ue = ue
|
838
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
839
|
+
result.te = te
|
840
|
+
end
|
841
|
+
write_result(result, oprot, 'get_range_slices', seqid)
|
842
|
+
end
|
843
|
+
|
844
|
+
def process_get_paged_slice(seqid, iprot, oprot)
|
845
|
+
args = read_args(iprot, Get_paged_slice_args)
|
846
|
+
result = Get_paged_slice_result.new()
|
847
|
+
begin
|
848
|
+
result.success = @handler.get_paged_slice(args.column_family, args.range, args.start_column, args.consistency_level)
|
849
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
850
|
+
result.ire = ire
|
851
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
852
|
+
result.ue = ue
|
853
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
854
|
+
result.te = te
|
855
|
+
end
|
856
|
+
write_result(result, oprot, 'get_paged_slice', seqid)
|
857
|
+
end
|
858
|
+
|
859
|
+
def process_get_indexed_slices(seqid, iprot, oprot)
|
860
|
+
args = read_args(iprot, Get_indexed_slices_args)
|
861
|
+
result = Get_indexed_slices_result.new()
|
862
|
+
begin
|
863
|
+
result.success = @handler.get_indexed_slices(args.column_parent, args.index_clause, args.column_predicate, args.consistency_level)
|
864
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
865
|
+
result.ire = ire
|
866
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
867
|
+
result.ue = ue
|
868
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
869
|
+
result.te = te
|
870
|
+
end
|
871
|
+
write_result(result, oprot, 'get_indexed_slices', seqid)
|
872
|
+
end
|
873
|
+
|
874
|
+
def process_insert(seqid, iprot, oprot)
|
875
|
+
args = read_args(iprot, Insert_args)
|
876
|
+
result = Insert_result.new()
|
877
|
+
begin
|
878
|
+
@handler.insert(args.key, args.column_parent, args.column, args.consistency_level)
|
879
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
880
|
+
result.ire = ire
|
881
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
882
|
+
result.ue = ue
|
883
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
884
|
+
result.te = te
|
885
|
+
end
|
886
|
+
write_result(result, oprot, 'insert', seqid)
|
887
|
+
end
|
888
|
+
|
889
|
+
def process_add(seqid, iprot, oprot)
|
890
|
+
args = read_args(iprot, Add_args)
|
891
|
+
result = Add_result.new()
|
892
|
+
begin
|
893
|
+
@handler.add(args.key, args.column_parent, args.column, args.consistency_level)
|
894
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
895
|
+
result.ire = ire
|
896
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
897
|
+
result.ue = ue
|
898
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
899
|
+
result.te = te
|
900
|
+
end
|
901
|
+
write_result(result, oprot, 'add', seqid)
|
902
|
+
end
|
903
|
+
|
904
|
+
def process_remove(seqid, iprot, oprot)
|
905
|
+
args = read_args(iprot, Remove_args)
|
906
|
+
result = Remove_result.new()
|
907
|
+
begin
|
908
|
+
@handler.remove(args.key, args.column_path, args.timestamp, args.consistency_level)
|
909
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
910
|
+
result.ire = ire
|
911
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
912
|
+
result.ue = ue
|
913
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
914
|
+
result.te = te
|
915
|
+
end
|
916
|
+
write_result(result, oprot, 'remove', seqid)
|
917
|
+
end
|
918
|
+
|
919
|
+
def process_remove_counter(seqid, iprot, oprot)
|
920
|
+
args = read_args(iprot, Remove_counter_args)
|
921
|
+
result = Remove_counter_result.new()
|
922
|
+
begin
|
923
|
+
@handler.remove_counter(args.key, args.path, args.consistency_level)
|
924
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
925
|
+
result.ire = ire
|
926
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
927
|
+
result.ue = ue
|
928
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
929
|
+
result.te = te
|
930
|
+
end
|
931
|
+
write_result(result, oprot, 'remove_counter', seqid)
|
932
|
+
end
|
933
|
+
|
934
|
+
def process_batch_mutate(seqid, iprot, oprot)
|
935
|
+
args = read_args(iprot, Batch_mutate_args)
|
936
|
+
result = Batch_mutate_result.new()
|
937
|
+
begin
|
938
|
+
@handler.batch_mutate(args.mutation_map, args.consistency_level)
|
939
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
940
|
+
result.ire = ire
|
941
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
942
|
+
result.ue = ue
|
943
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
944
|
+
result.te = te
|
945
|
+
end
|
946
|
+
write_result(result, oprot, 'batch_mutate', seqid)
|
947
|
+
end
|
948
|
+
|
949
|
+
def process_atomic_batch_mutate(seqid, iprot, oprot)
|
950
|
+
args = read_args(iprot, Atomic_batch_mutate_args)
|
951
|
+
result = Atomic_batch_mutate_result.new()
|
952
|
+
begin
|
953
|
+
@handler.atomic_batch_mutate(args.mutation_map, args.consistency_level)
|
954
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
955
|
+
result.ire = ire
|
956
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
957
|
+
result.ue = ue
|
958
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
959
|
+
result.te = te
|
960
|
+
end
|
961
|
+
write_result(result, oprot, 'atomic_batch_mutate', seqid)
|
962
|
+
end
|
963
|
+
|
964
|
+
def process_truncate(seqid, iprot, oprot)
|
965
|
+
args = read_args(iprot, Truncate_args)
|
966
|
+
result = Truncate_result.new()
|
967
|
+
begin
|
968
|
+
@handler.truncate(args.cfname)
|
969
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
970
|
+
result.ire = ire
|
971
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
972
|
+
result.ue = ue
|
973
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
974
|
+
result.te = te
|
975
|
+
end
|
976
|
+
write_result(result, oprot, 'truncate', seqid)
|
977
|
+
end
|
978
|
+
|
979
|
+
def process_describe_schema_versions(seqid, iprot, oprot)
|
980
|
+
args = read_args(iprot, Describe_schema_versions_args)
|
981
|
+
result = Describe_schema_versions_result.new()
|
982
|
+
begin
|
983
|
+
result.success = @handler.describe_schema_versions()
|
984
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
985
|
+
result.ire = ire
|
986
|
+
end
|
987
|
+
write_result(result, oprot, 'describe_schema_versions', seqid)
|
988
|
+
end
|
989
|
+
|
990
|
+
def process_describe_keyspaces(seqid, iprot, oprot)
|
991
|
+
args = read_args(iprot, Describe_keyspaces_args)
|
992
|
+
result = Describe_keyspaces_result.new()
|
993
|
+
begin
|
994
|
+
result.success = @handler.describe_keyspaces()
|
995
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
996
|
+
result.ire = ire
|
997
|
+
end
|
998
|
+
write_result(result, oprot, 'describe_keyspaces', seqid)
|
999
|
+
end
|
1000
|
+
|
1001
|
+
def process_describe_cluster_name(seqid, iprot, oprot)
|
1002
|
+
args = read_args(iprot, Describe_cluster_name_args)
|
1003
|
+
result = Describe_cluster_name_result.new()
|
1004
|
+
result.success = @handler.describe_cluster_name()
|
1005
|
+
write_result(result, oprot, 'describe_cluster_name', seqid)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
def process_describe_version(seqid, iprot, oprot)
|
1009
|
+
args = read_args(iprot, Describe_version_args)
|
1010
|
+
result = Describe_version_result.new()
|
1011
|
+
result.success = @handler.describe_version()
|
1012
|
+
write_result(result, oprot, 'describe_version', seqid)
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
def process_describe_ring(seqid, iprot, oprot)
|
1016
|
+
args = read_args(iprot, Describe_ring_args)
|
1017
|
+
result = Describe_ring_result.new()
|
1018
|
+
begin
|
1019
|
+
result.success = @handler.describe_ring(args.keyspace)
|
1020
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1021
|
+
result.ire = ire
|
1022
|
+
end
|
1023
|
+
write_result(result, oprot, 'describe_ring', seqid)
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
def process_describe_token_map(seqid, iprot, oprot)
|
1027
|
+
args = read_args(iprot, Describe_token_map_args)
|
1028
|
+
result = Describe_token_map_result.new()
|
1029
|
+
begin
|
1030
|
+
result.success = @handler.describe_token_map()
|
1031
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1032
|
+
result.ire = ire
|
1033
|
+
end
|
1034
|
+
write_result(result, oprot, 'describe_token_map', seqid)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
def process_describe_partitioner(seqid, iprot, oprot)
|
1038
|
+
args = read_args(iprot, Describe_partitioner_args)
|
1039
|
+
result = Describe_partitioner_result.new()
|
1040
|
+
result.success = @handler.describe_partitioner()
|
1041
|
+
write_result(result, oprot, 'describe_partitioner', seqid)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
def process_describe_snitch(seqid, iprot, oprot)
|
1045
|
+
args = read_args(iprot, Describe_snitch_args)
|
1046
|
+
result = Describe_snitch_result.new()
|
1047
|
+
result.success = @handler.describe_snitch()
|
1048
|
+
write_result(result, oprot, 'describe_snitch', seqid)
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
def process_describe_keyspace(seqid, iprot, oprot)
|
1052
|
+
args = read_args(iprot, Describe_keyspace_args)
|
1053
|
+
result = Describe_keyspace_result.new()
|
1054
|
+
begin
|
1055
|
+
result.success = @handler.describe_keyspace(args.keyspace)
|
1056
|
+
rescue CassandraCQL::Thrift::NotFoundException => nfe
|
1057
|
+
result.nfe = nfe
|
1058
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1059
|
+
result.ire = ire
|
1060
|
+
end
|
1061
|
+
write_result(result, oprot, 'describe_keyspace', seqid)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
def process_describe_splits(seqid, iprot, oprot)
|
1065
|
+
args = read_args(iprot, Describe_splits_args)
|
1066
|
+
result = Describe_splits_result.new()
|
1067
|
+
begin
|
1068
|
+
result.success = @handler.describe_splits(args.cfName, args.start_token, args.end_token, args.keys_per_split)
|
1069
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1070
|
+
result.ire = ire
|
1071
|
+
end
|
1072
|
+
write_result(result, oprot, 'describe_splits', seqid)
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
def process_trace_next_query(seqid, iprot, oprot)
|
1076
|
+
args = read_args(iprot, Trace_next_query_args)
|
1077
|
+
result = Trace_next_query_result.new()
|
1078
|
+
result.success = @handler.trace_next_query()
|
1079
|
+
write_result(result, oprot, 'trace_next_query', seqid)
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
def process_describe_splits_ex(seqid, iprot, oprot)
|
1083
|
+
args = read_args(iprot, Describe_splits_ex_args)
|
1084
|
+
result = Describe_splits_ex_result.new()
|
1085
|
+
begin
|
1086
|
+
result.success = @handler.describe_splits_ex(args.cfName, args.start_token, args.end_token, args.keys_per_split)
|
1087
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1088
|
+
result.ire = ire
|
1089
|
+
end
|
1090
|
+
write_result(result, oprot, 'describe_splits_ex', seqid)
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
def process_system_add_column_family(seqid, iprot, oprot)
|
1094
|
+
args = read_args(iprot, System_add_column_family_args)
|
1095
|
+
result = System_add_column_family_result.new()
|
1096
|
+
begin
|
1097
|
+
result.success = @handler.system_add_column_family(args.cf_def)
|
1098
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1099
|
+
result.ire = ire
|
1100
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1101
|
+
result.sde = sde
|
1102
|
+
end
|
1103
|
+
write_result(result, oprot, 'system_add_column_family', seqid)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
def process_system_drop_column_family(seqid, iprot, oprot)
|
1107
|
+
args = read_args(iprot, System_drop_column_family_args)
|
1108
|
+
result = System_drop_column_family_result.new()
|
1109
|
+
begin
|
1110
|
+
result.success = @handler.system_drop_column_family(args.column_family)
|
1111
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1112
|
+
result.ire = ire
|
1113
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1114
|
+
result.sde = sde
|
1115
|
+
end
|
1116
|
+
write_result(result, oprot, 'system_drop_column_family', seqid)
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
def process_system_add_keyspace(seqid, iprot, oprot)
|
1120
|
+
args = read_args(iprot, System_add_keyspace_args)
|
1121
|
+
result = System_add_keyspace_result.new()
|
1122
|
+
begin
|
1123
|
+
result.success = @handler.system_add_keyspace(args.ks_def)
|
1124
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1125
|
+
result.ire = ire
|
1126
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1127
|
+
result.sde = sde
|
1128
|
+
end
|
1129
|
+
write_result(result, oprot, 'system_add_keyspace', seqid)
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
def process_system_drop_keyspace(seqid, iprot, oprot)
|
1133
|
+
args = read_args(iprot, System_drop_keyspace_args)
|
1134
|
+
result = System_drop_keyspace_result.new()
|
1135
|
+
begin
|
1136
|
+
result.success = @handler.system_drop_keyspace(args.keyspace)
|
1137
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1138
|
+
result.ire = ire
|
1139
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1140
|
+
result.sde = sde
|
1141
|
+
end
|
1142
|
+
write_result(result, oprot, 'system_drop_keyspace', seqid)
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
def process_system_update_keyspace(seqid, iprot, oprot)
|
1146
|
+
args = read_args(iprot, System_update_keyspace_args)
|
1147
|
+
result = System_update_keyspace_result.new()
|
1148
|
+
begin
|
1149
|
+
result.success = @handler.system_update_keyspace(args.ks_def)
|
1150
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1151
|
+
result.ire = ire
|
1152
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1153
|
+
result.sde = sde
|
1154
|
+
end
|
1155
|
+
write_result(result, oprot, 'system_update_keyspace', seqid)
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
def process_system_update_column_family(seqid, iprot, oprot)
|
1159
|
+
args = read_args(iprot, System_update_column_family_args)
|
1160
|
+
result = System_update_column_family_result.new()
|
1161
|
+
begin
|
1162
|
+
result.success = @handler.system_update_column_family(args.cf_def)
|
1163
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1164
|
+
result.ire = ire
|
1165
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1166
|
+
result.sde = sde
|
1167
|
+
end
|
1168
|
+
write_result(result, oprot, 'system_update_column_family', seqid)
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
def process_execute_cql_query(seqid, iprot, oprot)
|
1172
|
+
args = read_args(iprot, Execute_cql_query_args)
|
1173
|
+
result = Execute_cql_query_result.new()
|
1174
|
+
begin
|
1175
|
+
result.success = @handler.execute_cql_query(args.query, args.compression)
|
1176
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1177
|
+
result.ire = ire
|
1178
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
1179
|
+
result.ue = ue
|
1180
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
1181
|
+
result.te = te
|
1182
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1183
|
+
result.sde = sde
|
1184
|
+
end
|
1185
|
+
write_result(result, oprot, 'execute_cql_query', seqid)
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
def process_execute_cql3_query(seqid, iprot, oprot)
|
1189
|
+
args = read_args(iprot, Execute_cql3_query_args)
|
1190
|
+
result = Execute_cql3_query_result.new()
|
1191
|
+
begin
|
1192
|
+
result.success = @handler.execute_cql3_query(args.query, args.compression, args.consistency)
|
1193
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1194
|
+
result.ire = ire
|
1195
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
1196
|
+
result.ue = ue
|
1197
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
1198
|
+
result.te = te
|
1199
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1200
|
+
result.sde = sde
|
1201
|
+
end
|
1202
|
+
write_result(result, oprot, 'execute_cql3_query', seqid)
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
def process_prepare_cql_query(seqid, iprot, oprot)
|
1206
|
+
args = read_args(iprot, Prepare_cql_query_args)
|
1207
|
+
result = Prepare_cql_query_result.new()
|
1208
|
+
begin
|
1209
|
+
result.success = @handler.prepare_cql_query(args.query, args.compression)
|
1210
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1211
|
+
result.ire = ire
|
1212
|
+
end
|
1213
|
+
write_result(result, oprot, 'prepare_cql_query', seqid)
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
def process_prepare_cql3_query(seqid, iprot, oprot)
|
1217
|
+
args = read_args(iprot, Prepare_cql3_query_args)
|
1218
|
+
result = Prepare_cql3_query_result.new()
|
1219
|
+
begin
|
1220
|
+
result.success = @handler.prepare_cql3_query(args.query, args.compression)
|
1221
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1222
|
+
result.ire = ire
|
1223
|
+
end
|
1224
|
+
write_result(result, oprot, 'prepare_cql3_query', seqid)
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
def process_execute_prepared_cql_query(seqid, iprot, oprot)
|
1228
|
+
args = read_args(iprot, Execute_prepared_cql_query_args)
|
1229
|
+
result = Execute_prepared_cql_query_result.new()
|
1230
|
+
begin
|
1231
|
+
result.success = @handler.execute_prepared_cql_query(args.itemId, args.values)
|
1232
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1233
|
+
result.ire = ire
|
1234
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
1235
|
+
result.ue = ue
|
1236
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
1237
|
+
result.te = te
|
1238
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1239
|
+
result.sde = sde
|
1240
|
+
end
|
1241
|
+
write_result(result, oprot, 'execute_prepared_cql_query', seqid)
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
def process_execute_prepared_cql3_query(seqid, iprot, oprot)
|
1245
|
+
args = read_args(iprot, Execute_prepared_cql3_query_args)
|
1246
|
+
result = Execute_prepared_cql3_query_result.new()
|
1247
|
+
begin
|
1248
|
+
result.success = @handler.execute_prepared_cql3_query(args.itemId, args.values, args.consistency)
|
1249
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1250
|
+
result.ire = ire
|
1251
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
1252
|
+
result.ue = ue
|
1253
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
1254
|
+
result.te = te
|
1255
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1256
|
+
result.sde = sde
|
1257
|
+
end
|
1258
|
+
write_result(result, oprot, 'execute_prepared_cql3_query', seqid)
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
def process_set_cql_version(seqid, iprot, oprot)
|
1262
|
+
args = read_args(iprot, Set_cql_version_args)
|
1263
|
+
result = Set_cql_version_result.new()
|
1264
|
+
begin
|
1265
|
+
@handler.set_cql_version(args.version)
|
1266
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1267
|
+
result.ire = ire
|
1268
|
+
end
|
1269
|
+
write_result(result, oprot, 'set_cql_version', seqid)
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
1275
|
+
|
1276
|
+
class Login_args
|
1277
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1278
|
+
AUTH_REQUEST = 1
|
1279
|
+
|
1280
|
+
FIELDS = {
|
1281
|
+
AUTH_REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'auth_request', :class => CassandraCQL::Thrift::AuthenticationRequest}
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
def struct_fields; FIELDS; end
|
1285
|
+
|
1286
|
+
def validate
|
1287
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field auth_request is unset!') unless @auth_request
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
::Thrift::Struct.generate_accessors self
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
class Login_result
|
1294
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1295
|
+
AUTHNX = 1
|
1296
|
+
AUTHZX = 2
|
1297
|
+
|
1298
|
+
FIELDS = {
|
1299
|
+
AUTHNX => {:type => ::Thrift::Types::STRUCT, :name => 'authnx', :class => CassandraCQL::Thrift::AuthenticationException},
|
1300
|
+
AUTHZX => {:type => ::Thrift::Types::STRUCT, :name => 'authzx', :class => CassandraCQL::Thrift::AuthorizationException}
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
def struct_fields; FIELDS; end
|
1304
|
+
|
1305
|
+
def validate
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
::Thrift::Struct.generate_accessors self
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
class Set_keyspace_args
|
1312
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1313
|
+
KEYSPACE = 1
|
1314
|
+
|
1315
|
+
FIELDS = {
|
1316
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
def struct_fields; FIELDS; end
|
1320
|
+
|
1321
|
+
def validate
|
1322
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
::Thrift::Struct.generate_accessors self
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
class Set_keyspace_result
|
1329
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1330
|
+
IRE = 1
|
1331
|
+
|
1332
|
+
FIELDS = {
|
1333
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
def struct_fields; FIELDS; end
|
1337
|
+
|
1338
|
+
def validate
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
::Thrift::Struct.generate_accessors self
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
class Get_args
|
1345
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1346
|
+
KEY = 1
|
1347
|
+
COLUMN_PATH = 2
|
1348
|
+
CONSISTENCY_LEVEL = 3
|
1349
|
+
|
1350
|
+
FIELDS = {
|
1351
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1352
|
+
COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraCQL::Thrift::ColumnPath},
|
1353
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1354
|
+
}
|
1355
|
+
|
1356
|
+
def struct_fields; FIELDS; end
|
1357
|
+
|
1358
|
+
def validate
|
1359
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1360
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
|
1361
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1362
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1363
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1364
|
+
end
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
::Thrift::Struct.generate_accessors self
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
class Get_result
|
1371
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1372
|
+
SUCCESS = 0
|
1373
|
+
IRE = 1
|
1374
|
+
NFE = 2
|
1375
|
+
UE = 3
|
1376
|
+
TE = 4
|
1377
|
+
|
1378
|
+
FIELDS = {
|
1379
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::ColumnOrSuperColumn},
|
1380
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1381
|
+
NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraCQL::Thrift::NotFoundException},
|
1382
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1383
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
def struct_fields; FIELDS; end
|
1387
|
+
|
1388
|
+
def validate
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
::Thrift::Struct.generate_accessors self
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
class Get_slice_args
|
1395
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1396
|
+
KEY = 1
|
1397
|
+
COLUMN_PARENT = 2
|
1398
|
+
PREDICATE = 3
|
1399
|
+
CONSISTENCY_LEVEL = 4
|
1400
|
+
|
1401
|
+
FIELDS = {
|
1402
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1403
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1404
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1405
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1406
|
+
}
|
1407
|
+
|
1408
|
+
def struct_fields; FIELDS; end
|
1409
|
+
|
1410
|
+
def validate
|
1411
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1412
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1413
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1414
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1415
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1416
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
::Thrift::Struct.generate_accessors self
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
class Get_slice_result
|
1424
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1425
|
+
SUCCESS = 0
|
1426
|
+
IRE = 1
|
1427
|
+
UE = 2
|
1428
|
+
TE = 3
|
1429
|
+
|
1430
|
+
FIELDS = {
|
1431
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::ColumnOrSuperColumn}},
|
1432
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1433
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1434
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
def struct_fields; FIELDS; end
|
1438
|
+
|
1439
|
+
def validate
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
::Thrift::Struct.generate_accessors self
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
class Get_count_args
|
1446
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1447
|
+
KEY = 1
|
1448
|
+
COLUMN_PARENT = 2
|
1449
|
+
PREDICATE = 3
|
1450
|
+
CONSISTENCY_LEVEL = 4
|
1451
|
+
|
1452
|
+
FIELDS = {
|
1453
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1454
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1455
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1456
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
def struct_fields; FIELDS; end
|
1460
|
+
|
1461
|
+
def validate
|
1462
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1463
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1464
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1465
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1466
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1467
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1468
|
+
end
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
::Thrift::Struct.generate_accessors self
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
class Get_count_result
|
1475
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1476
|
+
SUCCESS = 0
|
1477
|
+
IRE = 1
|
1478
|
+
UE = 2
|
1479
|
+
TE = 3
|
1480
|
+
|
1481
|
+
FIELDS = {
|
1482
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
1483
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1484
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1485
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1486
|
+
}
|
1487
|
+
|
1488
|
+
def struct_fields; FIELDS; end
|
1489
|
+
|
1490
|
+
def validate
|
1491
|
+
end
|
1492
|
+
|
1493
|
+
::Thrift::Struct.generate_accessors self
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
class Multiget_slice_args
|
1497
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1498
|
+
KEYS = 1
|
1499
|
+
COLUMN_PARENT = 2
|
1500
|
+
PREDICATE = 3
|
1501
|
+
CONSISTENCY_LEVEL = 4
|
1502
|
+
|
1503
|
+
FIELDS = {
|
1504
|
+
KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1505
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1506
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1507
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1508
|
+
}
|
1509
|
+
|
1510
|
+
def struct_fields; FIELDS; end
|
1511
|
+
|
1512
|
+
def validate
|
1513
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
|
1514
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1515
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1516
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1517
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1518
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1519
|
+
end
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
::Thrift::Struct.generate_accessors self
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
class Multiget_slice_result
|
1526
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1527
|
+
SUCCESS = 0
|
1528
|
+
IRE = 1
|
1529
|
+
UE = 2
|
1530
|
+
TE = 3
|
1531
|
+
|
1532
|
+
FIELDS = {
|
1533
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::ColumnOrSuperColumn}}},
|
1534
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1535
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1536
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1537
|
+
}
|
1538
|
+
|
1539
|
+
def struct_fields; FIELDS; end
|
1540
|
+
|
1541
|
+
def validate
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
::Thrift::Struct.generate_accessors self
|
1545
|
+
end
|
1546
|
+
|
1547
|
+
class Multiget_count_args
|
1548
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1549
|
+
KEYS = 1
|
1550
|
+
COLUMN_PARENT = 2
|
1551
|
+
PREDICATE = 3
|
1552
|
+
CONSISTENCY_LEVEL = 4
|
1553
|
+
|
1554
|
+
FIELDS = {
|
1555
|
+
KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1556
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1557
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1558
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
def struct_fields; FIELDS; end
|
1562
|
+
|
1563
|
+
def validate
|
1564
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
|
1565
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1566
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1567
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1568
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1569
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1570
|
+
end
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
::Thrift::Struct.generate_accessors self
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
class Multiget_count_result
|
1577
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1578
|
+
SUCCESS = 0
|
1579
|
+
IRE = 1
|
1580
|
+
UE = 2
|
1581
|
+
TE = 3
|
1582
|
+
|
1583
|
+
FIELDS = {
|
1584
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::I32}},
|
1585
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1586
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1587
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
def struct_fields; FIELDS; end
|
1591
|
+
|
1592
|
+
def validate
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
::Thrift::Struct.generate_accessors self
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
class Get_range_slices_args
|
1599
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1600
|
+
COLUMN_PARENT = 1
|
1601
|
+
PREDICATE = 2
|
1602
|
+
RANGE = 3
|
1603
|
+
CONSISTENCY_LEVEL = 4
|
1604
|
+
|
1605
|
+
FIELDS = {
|
1606
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1607
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1608
|
+
RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraCQL::Thrift::KeyRange},
|
1609
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1610
|
+
}
|
1611
|
+
|
1612
|
+
def struct_fields; FIELDS; end
|
1613
|
+
|
1614
|
+
def validate
|
1615
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1616
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1617
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
|
1618
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1619
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1620
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1621
|
+
end
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
::Thrift::Struct.generate_accessors self
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
class Get_range_slices_result
|
1628
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1629
|
+
SUCCESS = 0
|
1630
|
+
IRE = 1
|
1631
|
+
UE = 2
|
1632
|
+
TE = 3
|
1633
|
+
|
1634
|
+
FIELDS = {
|
1635
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KeySlice}},
|
1636
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1637
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1638
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
def struct_fields; FIELDS; end
|
1642
|
+
|
1643
|
+
def validate
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
::Thrift::Struct.generate_accessors self
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
class Get_paged_slice_args
|
1650
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1651
|
+
COLUMN_FAMILY = 1
|
1652
|
+
RANGE = 2
|
1653
|
+
START_COLUMN = 3
|
1654
|
+
CONSISTENCY_LEVEL = 4
|
1655
|
+
|
1656
|
+
FIELDS = {
|
1657
|
+
COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
|
1658
|
+
RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraCQL::Thrift::KeyRange},
|
1659
|
+
START_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'start_column', :binary => true},
|
1660
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1661
|
+
}
|
1662
|
+
|
1663
|
+
def struct_fields; FIELDS; end
|
1664
|
+
|
1665
|
+
def validate
|
1666
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
|
1667
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
|
1668
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_column is unset!') unless @start_column
|
1669
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1670
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1671
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1672
|
+
end
|
1673
|
+
end
|
1674
|
+
|
1675
|
+
::Thrift::Struct.generate_accessors self
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
class Get_paged_slice_result
|
1679
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1680
|
+
SUCCESS = 0
|
1681
|
+
IRE = 1
|
1682
|
+
UE = 2
|
1683
|
+
TE = 3
|
1684
|
+
|
1685
|
+
FIELDS = {
|
1686
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KeySlice}},
|
1687
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1688
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1689
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1690
|
+
}
|
1691
|
+
|
1692
|
+
def struct_fields; FIELDS; end
|
1693
|
+
|
1694
|
+
def validate
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
::Thrift::Struct.generate_accessors self
|
1698
|
+
end
|
1699
|
+
|
1700
|
+
class Get_indexed_slices_args
|
1701
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1702
|
+
COLUMN_PARENT = 1
|
1703
|
+
INDEX_CLAUSE = 2
|
1704
|
+
COLUMN_PREDICATE = 3
|
1705
|
+
CONSISTENCY_LEVEL = 4
|
1706
|
+
|
1707
|
+
FIELDS = {
|
1708
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1709
|
+
INDEX_CLAUSE => {:type => ::Thrift::Types::STRUCT, :name => 'index_clause', :class => CassandraCQL::Thrift::IndexClause},
|
1710
|
+
COLUMN_PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'column_predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1711
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1712
|
+
}
|
1713
|
+
|
1714
|
+
def struct_fields; FIELDS; end
|
1715
|
+
|
1716
|
+
def validate
|
1717
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1718
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field index_clause is unset!') unless @index_clause
|
1719
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_predicate is unset!') unless @column_predicate
|
1720
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1721
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1722
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1723
|
+
end
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
::Thrift::Struct.generate_accessors self
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
class Get_indexed_slices_result
|
1730
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1731
|
+
SUCCESS = 0
|
1732
|
+
IRE = 1
|
1733
|
+
UE = 2
|
1734
|
+
TE = 3
|
1735
|
+
|
1736
|
+
FIELDS = {
|
1737
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KeySlice}},
|
1738
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1739
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1740
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
def struct_fields; FIELDS; end
|
1744
|
+
|
1745
|
+
def validate
|
1746
|
+
end
|
1747
|
+
|
1748
|
+
::Thrift::Struct.generate_accessors self
|
1749
|
+
end
|
1750
|
+
|
1751
|
+
class Insert_args
|
1752
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1753
|
+
KEY = 1
|
1754
|
+
COLUMN_PARENT = 2
|
1755
|
+
COLUMN = 3
|
1756
|
+
CONSISTENCY_LEVEL = 4
|
1757
|
+
|
1758
|
+
FIELDS = {
|
1759
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1760
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1761
|
+
COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraCQL::Thrift::Column},
|
1762
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1763
|
+
}
|
1764
|
+
|
1765
|
+
def struct_fields; FIELDS; end
|
1766
|
+
|
1767
|
+
def validate
|
1768
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1769
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1770
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
|
1771
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1772
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1773
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1774
|
+
end
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
::Thrift::Struct.generate_accessors self
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
class Insert_result
|
1781
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1782
|
+
IRE = 1
|
1783
|
+
UE = 2
|
1784
|
+
TE = 3
|
1785
|
+
|
1786
|
+
FIELDS = {
|
1787
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1788
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1789
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1790
|
+
}
|
1791
|
+
|
1792
|
+
def struct_fields; FIELDS; end
|
1793
|
+
|
1794
|
+
def validate
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
::Thrift::Struct.generate_accessors self
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
class Add_args
|
1801
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1802
|
+
KEY = 1
|
1803
|
+
COLUMN_PARENT = 2
|
1804
|
+
COLUMN = 3
|
1805
|
+
CONSISTENCY_LEVEL = 4
|
1806
|
+
|
1807
|
+
FIELDS = {
|
1808
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1809
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1810
|
+
COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraCQL::Thrift::CounterColumn},
|
1811
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
def struct_fields; FIELDS; end
|
1815
|
+
|
1816
|
+
def validate
|
1817
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1818
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1819
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
|
1820
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1821
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1822
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1823
|
+
end
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
::Thrift::Struct.generate_accessors self
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
class Add_result
|
1830
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1831
|
+
IRE = 1
|
1832
|
+
UE = 2
|
1833
|
+
TE = 3
|
1834
|
+
|
1835
|
+
FIELDS = {
|
1836
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1837
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1838
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1839
|
+
}
|
1840
|
+
|
1841
|
+
def struct_fields; FIELDS; end
|
1842
|
+
|
1843
|
+
def validate
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
::Thrift::Struct.generate_accessors self
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
class Remove_args
|
1850
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1851
|
+
KEY = 1
|
1852
|
+
COLUMN_PATH = 2
|
1853
|
+
TIMESTAMP = 3
|
1854
|
+
CONSISTENCY_LEVEL = 4
|
1855
|
+
|
1856
|
+
FIELDS = {
|
1857
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1858
|
+
COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraCQL::Thrift::ColumnPath},
|
1859
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
1860
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1861
|
+
}
|
1862
|
+
|
1863
|
+
def struct_fields; FIELDS; end
|
1864
|
+
|
1865
|
+
def validate
|
1866
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1867
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
|
1868
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field timestamp is unset!') unless @timestamp
|
1869
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1870
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1871
|
+
end
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
::Thrift::Struct.generate_accessors self
|
1875
|
+
end
|
1876
|
+
|
1877
|
+
class Remove_result
|
1878
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1879
|
+
IRE = 1
|
1880
|
+
UE = 2
|
1881
|
+
TE = 3
|
1882
|
+
|
1883
|
+
FIELDS = {
|
1884
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1885
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1886
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1887
|
+
}
|
1888
|
+
|
1889
|
+
def struct_fields; FIELDS; end
|
1890
|
+
|
1891
|
+
def validate
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
::Thrift::Struct.generate_accessors self
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
class Remove_counter_args
|
1898
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1899
|
+
KEY = 1
|
1900
|
+
PATH = 2
|
1901
|
+
CONSISTENCY_LEVEL = 3
|
1902
|
+
|
1903
|
+
FIELDS = {
|
1904
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1905
|
+
PATH => {:type => ::Thrift::Types::STRUCT, :name => 'path', :class => CassandraCQL::Thrift::ColumnPath},
|
1906
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
def struct_fields; FIELDS; end
|
1910
|
+
|
1911
|
+
def validate
|
1912
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1913
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field path is unset!') unless @path
|
1914
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1915
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1916
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1917
|
+
end
|
1918
|
+
end
|
1919
|
+
|
1920
|
+
::Thrift::Struct.generate_accessors self
|
1921
|
+
end
|
1922
|
+
|
1923
|
+
class Remove_counter_result
|
1924
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1925
|
+
IRE = 1
|
1926
|
+
UE = 2
|
1927
|
+
TE = 3
|
1928
|
+
|
1929
|
+
FIELDS = {
|
1930
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1931
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1932
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
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 Batch_mutate_args
|
1944
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1945
|
+
MUTATION_MAP = 1
|
1946
|
+
CONSISTENCY_LEVEL = 2
|
1947
|
+
|
1948
|
+
FIELDS = {
|
1949
|
+
MUTATION_MAP => {:type => ::Thrift::Types::MAP, :name => 'mutation_map', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::Mutation}}}},
|
1950
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1951
|
+
}
|
1952
|
+
|
1953
|
+
def struct_fields; FIELDS; end
|
1954
|
+
|
1955
|
+
def validate
|
1956
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field mutation_map is unset!') unless @mutation_map
|
1957
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1958
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1959
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1960
|
+
end
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
::Thrift::Struct.generate_accessors self
|
1964
|
+
end
|
1965
|
+
|
1966
|
+
class Batch_mutate_result
|
1967
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1968
|
+
IRE = 1
|
1969
|
+
UE = 2
|
1970
|
+
TE = 3
|
1971
|
+
|
1972
|
+
FIELDS = {
|
1973
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1974
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1975
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1976
|
+
}
|
1977
|
+
|
1978
|
+
def struct_fields; FIELDS; end
|
1979
|
+
|
1980
|
+
def validate
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
::Thrift::Struct.generate_accessors self
|
1984
|
+
end
|
1985
|
+
|
1986
|
+
class Atomic_batch_mutate_args
|
1987
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1988
|
+
MUTATION_MAP = 1
|
1989
|
+
CONSISTENCY_LEVEL = 2
|
1990
|
+
|
1991
|
+
FIELDS = {
|
1992
|
+
MUTATION_MAP => {:type => ::Thrift::Types::MAP, :name => 'mutation_map', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::Mutation}}}},
|
1993
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
def struct_fields; FIELDS; end
|
1997
|
+
|
1998
|
+
def validate
|
1999
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field mutation_map is unset!') unless @mutation_map
|
2000
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
2001
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
2002
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
2003
|
+
end
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
::Thrift::Struct.generate_accessors self
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
class Atomic_batch_mutate_result
|
2010
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2011
|
+
IRE = 1
|
2012
|
+
UE = 2
|
2013
|
+
TE = 3
|
2014
|
+
|
2015
|
+
FIELDS = {
|
2016
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2017
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2018
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
2019
|
+
}
|
2020
|
+
|
2021
|
+
def struct_fields; FIELDS; end
|
2022
|
+
|
2023
|
+
def validate
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
::Thrift::Struct.generate_accessors self
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
class Truncate_args
|
2030
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2031
|
+
CFNAME = 1
|
2032
|
+
|
2033
|
+
FIELDS = {
|
2034
|
+
CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfname'}
|
2035
|
+
}
|
2036
|
+
|
2037
|
+
def struct_fields; FIELDS; end
|
2038
|
+
|
2039
|
+
def validate
|
2040
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfname is unset!') unless @cfname
|
2041
|
+
end
|
2042
|
+
|
2043
|
+
::Thrift::Struct.generate_accessors self
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
class Truncate_result
|
2047
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2048
|
+
IRE = 1
|
2049
|
+
UE = 2
|
2050
|
+
TE = 3
|
2051
|
+
|
2052
|
+
FIELDS = {
|
2053
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2054
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2055
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
2056
|
+
}
|
2057
|
+
|
2058
|
+
def struct_fields; FIELDS; end
|
2059
|
+
|
2060
|
+
def validate
|
2061
|
+
end
|
2062
|
+
|
2063
|
+
::Thrift::Struct.generate_accessors self
|
2064
|
+
end
|
2065
|
+
|
2066
|
+
class Describe_schema_versions_args
|
2067
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2068
|
+
|
2069
|
+
FIELDS = {
|
2070
|
+
|
2071
|
+
}
|
2072
|
+
|
2073
|
+
def struct_fields; FIELDS; end
|
2074
|
+
|
2075
|
+
def validate
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
::Thrift::Struct.generate_accessors self
|
2079
|
+
end
|
2080
|
+
|
2081
|
+
class Describe_schema_versions_result
|
2082
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2083
|
+
SUCCESS = 0
|
2084
|
+
IRE = 1
|
2085
|
+
|
2086
|
+
FIELDS = {
|
2087
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
2088
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2089
|
+
}
|
2090
|
+
|
2091
|
+
def struct_fields; FIELDS; end
|
2092
|
+
|
2093
|
+
def validate
|
2094
|
+
end
|
2095
|
+
|
2096
|
+
::Thrift::Struct.generate_accessors self
|
2097
|
+
end
|
2098
|
+
|
2099
|
+
class Describe_keyspaces_args
|
2100
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2101
|
+
|
2102
|
+
FIELDS = {
|
2103
|
+
|
2104
|
+
}
|
2105
|
+
|
2106
|
+
def struct_fields; FIELDS; end
|
2107
|
+
|
2108
|
+
def validate
|
2109
|
+
end
|
2110
|
+
|
2111
|
+
::Thrift::Struct.generate_accessors self
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
class Describe_keyspaces_result
|
2115
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2116
|
+
SUCCESS = 0
|
2117
|
+
IRE = 1
|
2118
|
+
|
2119
|
+
FIELDS = {
|
2120
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KsDef}},
|
2121
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2122
|
+
}
|
2123
|
+
|
2124
|
+
def struct_fields; FIELDS; end
|
2125
|
+
|
2126
|
+
def validate
|
2127
|
+
end
|
2128
|
+
|
2129
|
+
::Thrift::Struct.generate_accessors self
|
2130
|
+
end
|
2131
|
+
|
2132
|
+
class Describe_cluster_name_args
|
2133
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2134
|
+
|
2135
|
+
FIELDS = {
|
2136
|
+
|
2137
|
+
}
|
2138
|
+
|
2139
|
+
def struct_fields; FIELDS; end
|
2140
|
+
|
2141
|
+
def validate
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
::Thrift::Struct.generate_accessors self
|
2145
|
+
end
|
2146
|
+
|
2147
|
+
class Describe_cluster_name_result
|
2148
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2149
|
+
SUCCESS = 0
|
2150
|
+
|
2151
|
+
FIELDS = {
|
2152
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
2153
|
+
}
|
2154
|
+
|
2155
|
+
def struct_fields; FIELDS; end
|
2156
|
+
|
2157
|
+
def validate
|
2158
|
+
end
|
2159
|
+
|
2160
|
+
::Thrift::Struct.generate_accessors self
|
2161
|
+
end
|
2162
|
+
|
2163
|
+
class Describe_version_args
|
2164
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2165
|
+
|
2166
|
+
FIELDS = {
|
2167
|
+
|
2168
|
+
}
|
2169
|
+
|
2170
|
+
def struct_fields; FIELDS; end
|
2171
|
+
|
2172
|
+
def validate
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
::Thrift::Struct.generate_accessors self
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
class Describe_version_result
|
2179
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2180
|
+
SUCCESS = 0
|
2181
|
+
|
2182
|
+
FIELDS = {
|
2183
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
2184
|
+
}
|
2185
|
+
|
2186
|
+
def struct_fields; FIELDS; end
|
2187
|
+
|
2188
|
+
def validate
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
::Thrift::Struct.generate_accessors self
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
class Describe_ring_args
|
2195
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2196
|
+
KEYSPACE = 1
|
2197
|
+
|
2198
|
+
FIELDS = {
|
2199
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
2200
|
+
}
|
2201
|
+
|
2202
|
+
def struct_fields; FIELDS; end
|
2203
|
+
|
2204
|
+
def validate
|
2205
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
::Thrift::Struct.generate_accessors self
|
2209
|
+
end
|
2210
|
+
|
2211
|
+
class Describe_ring_result
|
2212
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2213
|
+
SUCCESS = 0
|
2214
|
+
IRE = 1
|
2215
|
+
|
2216
|
+
FIELDS = {
|
2217
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::TokenRange}},
|
2218
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2219
|
+
}
|
2220
|
+
|
2221
|
+
def struct_fields; FIELDS; end
|
2222
|
+
|
2223
|
+
def validate
|
2224
|
+
end
|
2225
|
+
|
2226
|
+
::Thrift::Struct.generate_accessors self
|
2227
|
+
end
|
2228
|
+
|
2229
|
+
class Describe_token_map_args
|
2230
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2231
|
+
|
2232
|
+
FIELDS = {
|
2233
|
+
|
2234
|
+
}
|
2235
|
+
|
2236
|
+
def struct_fields; FIELDS; end
|
2237
|
+
|
2238
|
+
def validate
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
::Thrift::Struct.generate_accessors self
|
2242
|
+
end
|
2243
|
+
|
2244
|
+
class Describe_token_map_result
|
2245
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2246
|
+
SUCCESS = 0
|
2247
|
+
IRE = 1
|
2248
|
+
|
2249
|
+
FIELDS = {
|
2250
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
2251
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2252
|
+
}
|
2253
|
+
|
2254
|
+
def struct_fields; FIELDS; end
|
2255
|
+
|
2256
|
+
def validate
|
2257
|
+
end
|
2258
|
+
|
2259
|
+
::Thrift::Struct.generate_accessors self
|
2260
|
+
end
|
2261
|
+
|
2262
|
+
class Describe_partitioner_args
|
2263
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2264
|
+
|
2265
|
+
FIELDS = {
|
2266
|
+
|
2267
|
+
}
|
2268
|
+
|
2269
|
+
def struct_fields; FIELDS; end
|
2270
|
+
|
2271
|
+
def validate
|
2272
|
+
end
|
2273
|
+
|
2274
|
+
::Thrift::Struct.generate_accessors self
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
class Describe_partitioner_result
|
2278
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2279
|
+
SUCCESS = 0
|
2280
|
+
|
2281
|
+
FIELDS = {
|
2282
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
2283
|
+
}
|
2284
|
+
|
2285
|
+
def struct_fields; FIELDS; end
|
2286
|
+
|
2287
|
+
def validate
|
2288
|
+
end
|
2289
|
+
|
2290
|
+
::Thrift::Struct.generate_accessors self
|
2291
|
+
end
|
2292
|
+
|
2293
|
+
class Describe_snitch_args
|
2294
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2295
|
+
|
2296
|
+
FIELDS = {
|
2297
|
+
|
2298
|
+
}
|
2299
|
+
|
2300
|
+
def struct_fields; FIELDS; end
|
2301
|
+
|
2302
|
+
def validate
|
2303
|
+
end
|
2304
|
+
|
2305
|
+
::Thrift::Struct.generate_accessors self
|
2306
|
+
end
|
2307
|
+
|
2308
|
+
class Describe_snitch_result
|
2309
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2310
|
+
SUCCESS = 0
|
2311
|
+
|
2312
|
+
FIELDS = {
|
2313
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
2314
|
+
}
|
2315
|
+
|
2316
|
+
def struct_fields; FIELDS; end
|
2317
|
+
|
2318
|
+
def validate
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
::Thrift::Struct.generate_accessors self
|
2322
|
+
end
|
2323
|
+
|
2324
|
+
class Describe_keyspace_args
|
2325
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2326
|
+
KEYSPACE = 1
|
2327
|
+
|
2328
|
+
FIELDS = {
|
2329
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
2330
|
+
}
|
2331
|
+
|
2332
|
+
def struct_fields; FIELDS; end
|
2333
|
+
|
2334
|
+
def validate
|
2335
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
::Thrift::Struct.generate_accessors self
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
class Describe_keyspace_result
|
2342
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2343
|
+
SUCCESS = 0
|
2344
|
+
NFE = 1
|
2345
|
+
IRE = 2
|
2346
|
+
|
2347
|
+
FIELDS = {
|
2348
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::KsDef},
|
2349
|
+
NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraCQL::Thrift::NotFoundException},
|
2350
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2351
|
+
}
|
2352
|
+
|
2353
|
+
def struct_fields; FIELDS; end
|
2354
|
+
|
2355
|
+
def validate
|
2356
|
+
end
|
2357
|
+
|
2358
|
+
::Thrift::Struct.generate_accessors self
|
2359
|
+
end
|
2360
|
+
|
2361
|
+
class Describe_splits_args
|
2362
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2363
|
+
CFNAME = 1
|
2364
|
+
START_TOKEN = 2
|
2365
|
+
END_TOKEN = 3
|
2366
|
+
KEYS_PER_SPLIT = 4
|
2367
|
+
|
2368
|
+
FIELDS = {
|
2369
|
+
CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfName'},
|
2370
|
+
START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
|
2371
|
+
END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
|
2372
|
+
KEYS_PER_SPLIT => {:type => ::Thrift::Types::I32, :name => 'keys_per_split'}
|
2373
|
+
}
|
2374
|
+
|
2375
|
+
def struct_fields; FIELDS; end
|
2376
|
+
|
2377
|
+
def validate
|
2378
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfName is unset!') unless @cfName
|
2379
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_token is unset!') unless @start_token
|
2380
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field end_token is unset!') unless @end_token
|
2381
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys_per_split is unset!') unless @keys_per_split
|
2382
|
+
end
|
2383
|
+
|
2384
|
+
::Thrift::Struct.generate_accessors self
|
2385
|
+
end
|
2386
|
+
|
2387
|
+
class Describe_splits_result
|
2388
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2389
|
+
SUCCESS = 0
|
2390
|
+
IRE = 1
|
2391
|
+
|
2392
|
+
FIELDS = {
|
2393
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2394
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2395
|
+
}
|
2396
|
+
|
2397
|
+
def struct_fields; FIELDS; end
|
2398
|
+
|
2399
|
+
def validate
|
2400
|
+
end
|
2401
|
+
|
2402
|
+
::Thrift::Struct.generate_accessors self
|
2403
|
+
end
|
2404
|
+
|
2405
|
+
class Trace_next_query_args
|
2406
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2407
|
+
|
2408
|
+
FIELDS = {
|
2409
|
+
|
2410
|
+
}
|
2411
|
+
|
2412
|
+
def struct_fields; FIELDS; end
|
2413
|
+
|
2414
|
+
def validate
|
2415
|
+
end
|
2416
|
+
|
2417
|
+
::Thrift::Struct.generate_accessors self
|
2418
|
+
end
|
2419
|
+
|
2420
|
+
class Trace_next_query_result
|
2421
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2422
|
+
SUCCESS = 0
|
2423
|
+
|
2424
|
+
FIELDS = {
|
2425
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success', :binary => true}
|
2426
|
+
}
|
2427
|
+
|
2428
|
+
def struct_fields; FIELDS; end
|
2429
|
+
|
2430
|
+
def validate
|
2431
|
+
end
|
2432
|
+
|
2433
|
+
::Thrift::Struct.generate_accessors self
|
2434
|
+
end
|
2435
|
+
|
2436
|
+
class Describe_splits_ex_args
|
2437
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2438
|
+
CFNAME = 1
|
2439
|
+
START_TOKEN = 2
|
2440
|
+
END_TOKEN = 3
|
2441
|
+
KEYS_PER_SPLIT = 4
|
2442
|
+
|
2443
|
+
FIELDS = {
|
2444
|
+
CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfName'},
|
2445
|
+
START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
|
2446
|
+
END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
|
2447
|
+
KEYS_PER_SPLIT => {:type => ::Thrift::Types::I32, :name => 'keys_per_split'}
|
2448
|
+
}
|
2449
|
+
|
2450
|
+
def struct_fields; FIELDS; end
|
2451
|
+
|
2452
|
+
def validate
|
2453
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfName is unset!') unless @cfName
|
2454
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_token is unset!') unless @start_token
|
2455
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field end_token is unset!') unless @end_token
|
2456
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys_per_split is unset!') unless @keys_per_split
|
2457
|
+
end
|
2458
|
+
|
2459
|
+
::Thrift::Struct.generate_accessors self
|
2460
|
+
end
|
2461
|
+
|
2462
|
+
class Describe_splits_ex_result
|
2463
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2464
|
+
SUCCESS = 0
|
2465
|
+
IRE = 1
|
2466
|
+
|
2467
|
+
FIELDS = {
|
2468
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::CfSplit}},
|
2469
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2470
|
+
}
|
2471
|
+
|
2472
|
+
def struct_fields; FIELDS; end
|
2473
|
+
|
2474
|
+
def validate
|
2475
|
+
end
|
2476
|
+
|
2477
|
+
::Thrift::Struct.generate_accessors self
|
2478
|
+
end
|
2479
|
+
|
2480
|
+
class System_add_column_family_args
|
2481
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2482
|
+
CF_DEF = 1
|
2483
|
+
|
2484
|
+
FIELDS = {
|
2485
|
+
CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraCQL::Thrift::CfDef}
|
2486
|
+
}
|
2487
|
+
|
2488
|
+
def struct_fields; FIELDS; end
|
2489
|
+
|
2490
|
+
def validate
|
2491
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
|
2492
|
+
end
|
2493
|
+
|
2494
|
+
::Thrift::Struct.generate_accessors self
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
class System_add_column_family_result
|
2498
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2499
|
+
SUCCESS = 0
|
2500
|
+
IRE = 1
|
2501
|
+
SDE = 2
|
2502
|
+
|
2503
|
+
FIELDS = {
|
2504
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2505
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2506
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2507
|
+
}
|
2508
|
+
|
2509
|
+
def struct_fields; FIELDS; end
|
2510
|
+
|
2511
|
+
def validate
|
2512
|
+
end
|
2513
|
+
|
2514
|
+
::Thrift::Struct.generate_accessors self
|
2515
|
+
end
|
2516
|
+
|
2517
|
+
class System_drop_column_family_args
|
2518
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2519
|
+
COLUMN_FAMILY = 1
|
2520
|
+
|
2521
|
+
FIELDS = {
|
2522
|
+
COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'}
|
2523
|
+
}
|
2524
|
+
|
2525
|
+
def struct_fields; FIELDS; end
|
2526
|
+
|
2527
|
+
def validate
|
2528
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
|
2529
|
+
end
|
2530
|
+
|
2531
|
+
::Thrift::Struct.generate_accessors self
|
2532
|
+
end
|
2533
|
+
|
2534
|
+
class System_drop_column_family_result
|
2535
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2536
|
+
SUCCESS = 0
|
2537
|
+
IRE = 1
|
2538
|
+
SDE = 2
|
2539
|
+
|
2540
|
+
FIELDS = {
|
2541
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2542
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2543
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2544
|
+
}
|
2545
|
+
|
2546
|
+
def struct_fields; FIELDS; end
|
2547
|
+
|
2548
|
+
def validate
|
2549
|
+
end
|
2550
|
+
|
2551
|
+
::Thrift::Struct.generate_accessors self
|
2552
|
+
end
|
2553
|
+
|
2554
|
+
class System_add_keyspace_args
|
2555
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2556
|
+
KS_DEF = 1
|
2557
|
+
|
2558
|
+
FIELDS = {
|
2559
|
+
KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraCQL::Thrift::KsDef}
|
2560
|
+
}
|
2561
|
+
|
2562
|
+
def struct_fields; FIELDS; end
|
2563
|
+
|
2564
|
+
def validate
|
2565
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
|
2566
|
+
end
|
2567
|
+
|
2568
|
+
::Thrift::Struct.generate_accessors self
|
2569
|
+
end
|
2570
|
+
|
2571
|
+
class System_add_keyspace_result
|
2572
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2573
|
+
SUCCESS = 0
|
2574
|
+
IRE = 1
|
2575
|
+
SDE = 2
|
2576
|
+
|
2577
|
+
FIELDS = {
|
2578
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2579
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2580
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2581
|
+
}
|
2582
|
+
|
2583
|
+
def struct_fields; FIELDS; end
|
2584
|
+
|
2585
|
+
def validate
|
2586
|
+
end
|
2587
|
+
|
2588
|
+
::Thrift::Struct.generate_accessors self
|
2589
|
+
end
|
2590
|
+
|
2591
|
+
class System_drop_keyspace_args
|
2592
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2593
|
+
KEYSPACE = 1
|
2594
|
+
|
2595
|
+
FIELDS = {
|
2596
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
2597
|
+
}
|
2598
|
+
|
2599
|
+
def struct_fields; FIELDS; end
|
2600
|
+
|
2601
|
+
def validate
|
2602
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
::Thrift::Struct.generate_accessors self
|
2606
|
+
end
|
2607
|
+
|
2608
|
+
class System_drop_keyspace_result
|
2609
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2610
|
+
SUCCESS = 0
|
2611
|
+
IRE = 1
|
2612
|
+
SDE = 2
|
2613
|
+
|
2614
|
+
FIELDS = {
|
2615
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2616
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2617
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2618
|
+
}
|
2619
|
+
|
2620
|
+
def struct_fields; FIELDS; end
|
2621
|
+
|
2622
|
+
def validate
|
2623
|
+
end
|
2624
|
+
|
2625
|
+
::Thrift::Struct.generate_accessors self
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
class System_update_keyspace_args
|
2629
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2630
|
+
KS_DEF = 1
|
2631
|
+
|
2632
|
+
FIELDS = {
|
2633
|
+
KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraCQL::Thrift::KsDef}
|
2634
|
+
}
|
2635
|
+
|
2636
|
+
def struct_fields; FIELDS; end
|
2637
|
+
|
2638
|
+
def validate
|
2639
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
|
2640
|
+
end
|
2641
|
+
|
2642
|
+
::Thrift::Struct.generate_accessors self
|
2643
|
+
end
|
2644
|
+
|
2645
|
+
class System_update_keyspace_result
|
2646
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2647
|
+
SUCCESS = 0
|
2648
|
+
IRE = 1
|
2649
|
+
SDE = 2
|
2650
|
+
|
2651
|
+
FIELDS = {
|
2652
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2653
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2654
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2655
|
+
}
|
2656
|
+
|
2657
|
+
def struct_fields; FIELDS; end
|
2658
|
+
|
2659
|
+
def validate
|
2660
|
+
end
|
2661
|
+
|
2662
|
+
::Thrift::Struct.generate_accessors self
|
2663
|
+
end
|
2664
|
+
|
2665
|
+
class System_update_column_family_args
|
2666
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2667
|
+
CF_DEF = 1
|
2668
|
+
|
2669
|
+
FIELDS = {
|
2670
|
+
CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraCQL::Thrift::CfDef}
|
2671
|
+
}
|
2672
|
+
|
2673
|
+
def struct_fields; FIELDS; end
|
2674
|
+
|
2675
|
+
def validate
|
2676
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
|
2677
|
+
end
|
2678
|
+
|
2679
|
+
::Thrift::Struct.generate_accessors self
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
class System_update_column_family_result
|
2683
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2684
|
+
SUCCESS = 0
|
2685
|
+
IRE = 1
|
2686
|
+
SDE = 2
|
2687
|
+
|
2688
|
+
FIELDS = {
|
2689
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2690
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2691
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2692
|
+
}
|
2693
|
+
|
2694
|
+
def struct_fields; FIELDS; end
|
2695
|
+
|
2696
|
+
def validate
|
2697
|
+
end
|
2698
|
+
|
2699
|
+
::Thrift::Struct.generate_accessors self
|
2700
|
+
end
|
2701
|
+
|
2702
|
+
class Execute_cql_query_args
|
2703
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2704
|
+
QUERY = 1
|
2705
|
+
COMPRESSION = 2
|
2706
|
+
|
2707
|
+
FIELDS = {
|
2708
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
|
2709
|
+
COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraCQL::Thrift::Compression}
|
2710
|
+
}
|
2711
|
+
|
2712
|
+
def struct_fields; FIELDS; end
|
2713
|
+
|
2714
|
+
def validate
|
2715
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
|
2716
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
|
2717
|
+
unless @compression.nil? || CassandraCQL::Thrift::Compression::VALID_VALUES.include?(@compression)
|
2718
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
|
2719
|
+
end
|
2720
|
+
end
|
2721
|
+
|
2722
|
+
::Thrift::Struct.generate_accessors self
|
2723
|
+
end
|
2724
|
+
|
2725
|
+
class Execute_cql_query_result
|
2726
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2727
|
+
SUCCESS = 0
|
2728
|
+
IRE = 1
|
2729
|
+
UE = 2
|
2730
|
+
TE = 3
|
2731
|
+
SDE = 4
|
2732
|
+
|
2733
|
+
FIELDS = {
|
2734
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlResult},
|
2735
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2736
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2737
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException},
|
2738
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2739
|
+
}
|
2740
|
+
|
2741
|
+
def struct_fields; FIELDS; end
|
2742
|
+
|
2743
|
+
def validate
|
2744
|
+
end
|
2745
|
+
|
2746
|
+
::Thrift::Struct.generate_accessors self
|
2747
|
+
end
|
2748
|
+
|
2749
|
+
class Execute_cql3_query_args
|
2750
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2751
|
+
QUERY = 1
|
2752
|
+
COMPRESSION = 2
|
2753
|
+
CONSISTENCY = 3
|
2754
|
+
|
2755
|
+
FIELDS = {
|
2756
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
|
2757
|
+
COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraCQL::Thrift::Compression},
|
2758
|
+
CONSISTENCY => {:type => ::Thrift::Types::I32, :name => 'consistency', :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
2759
|
+
}
|
2760
|
+
|
2761
|
+
def struct_fields; FIELDS; end
|
2762
|
+
|
2763
|
+
def validate
|
2764
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
|
2765
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
|
2766
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency is unset!') unless @consistency
|
2767
|
+
unless @compression.nil? || CassandraCQL::Thrift::Compression::VALID_VALUES.include?(@compression)
|
2768
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
|
2769
|
+
end
|
2770
|
+
unless @consistency.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency)
|
2771
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency!')
|
2772
|
+
end
|
2773
|
+
end
|
2774
|
+
|
2775
|
+
::Thrift::Struct.generate_accessors self
|
2776
|
+
end
|
2777
|
+
|
2778
|
+
class Execute_cql3_query_result
|
2779
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2780
|
+
SUCCESS = 0
|
2781
|
+
IRE = 1
|
2782
|
+
UE = 2
|
2783
|
+
TE = 3
|
2784
|
+
SDE = 4
|
2785
|
+
|
2786
|
+
FIELDS = {
|
2787
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlResult},
|
2788
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2789
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2790
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException},
|
2791
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2792
|
+
}
|
2793
|
+
|
2794
|
+
def struct_fields; FIELDS; end
|
2795
|
+
|
2796
|
+
def validate
|
2797
|
+
end
|
2798
|
+
|
2799
|
+
::Thrift::Struct.generate_accessors self
|
2800
|
+
end
|
2801
|
+
|
2802
|
+
class Prepare_cql_query_args
|
2803
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2804
|
+
QUERY = 1
|
2805
|
+
COMPRESSION = 2
|
2806
|
+
|
2807
|
+
FIELDS = {
|
2808
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
|
2809
|
+
COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraCQL::Thrift::Compression}
|
2810
|
+
}
|
2811
|
+
|
2812
|
+
def struct_fields; FIELDS; end
|
2813
|
+
|
2814
|
+
def validate
|
2815
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
|
2816
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
|
2817
|
+
unless @compression.nil? || CassandraCQL::Thrift::Compression::VALID_VALUES.include?(@compression)
|
2818
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
|
2819
|
+
end
|
2820
|
+
end
|
2821
|
+
|
2822
|
+
::Thrift::Struct.generate_accessors self
|
2823
|
+
end
|
2824
|
+
|
2825
|
+
class Prepare_cql_query_result
|
2826
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2827
|
+
SUCCESS = 0
|
2828
|
+
IRE = 1
|
2829
|
+
|
2830
|
+
FIELDS = {
|
2831
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlPreparedResult},
|
2832
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2833
|
+
}
|
2834
|
+
|
2835
|
+
def struct_fields; FIELDS; end
|
2836
|
+
|
2837
|
+
def validate
|
2838
|
+
end
|
2839
|
+
|
2840
|
+
::Thrift::Struct.generate_accessors self
|
2841
|
+
end
|
2842
|
+
|
2843
|
+
class Prepare_cql3_query_args
|
2844
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2845
|
+
QUERY = 1
|
2846
|
+
COMPRESSION = 2
|
2847
|
+
|
2848
|
+
FIELDS = {
|
2849
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
|
2850
|
+
COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraCQL::Thrift::Compression}
|
2851
|
+
}
|
2852
|
+
|
2853
|
+
def struct_fields; FIELDS; end
|
2854
|
+
|
2855
|
+
def validate
|
2856
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
|
2857
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
|
2858
|
+
unless @compression.nil? || CassandraCQL::Thrift::Compression::VALID_VALUES.include?(@compression)
|
2859
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
|
2860
|
+
end
|
2861
|
+
end
|
2862
|
+
|
2863
|
+
::Thrift::Struct.generate_accessors self
|
2864
|
+
end
|
2865
|
+
|
2866
|
+
class Prepare_cql3_query_result
|
2867
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2868
|
+
SUCCESS = 0
|
2869
|
+
IRE = 1
|
2870
|
+
|
2871
|
+
FIELDS = {
|
2872
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlPreparedResult},
|
2873
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2874
|
+
}
|
2875
|
+
|
2876
|
+
def struct_fields; FIELDS; end
|
2877
|
+
|
2878
|
+
def validate
|
2879
|
+
end
|
2880
|
+
|
2881
|
+
::Thrift::Struct.generate_accessors self
|
2882
|
+
end
|
2883
|
+
|
2884
|
+
class Execute_prepared_cql_query_args
|
2885
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2886
|
+
ITEMID = 1
|
2887
|
+
VALUES = 2
|
2888
|
+
|
2889
|
+
FIELDS = {
|
2890
|
+
ITEMID => {:type => ::Thrift::Types::I32, :name => 'itemId'},
|
2891
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
|
2892
|
+
}
|
2893
|
+
|
2894
|
+
def struct_fields; FIELDS; end
|
2895
|
+
|
2896
|
+
def validate
|
2897
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field itemId is unset!') unless @itemId
|
2898
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
|
2899
|
+
end
|
2900
|
+
|
2901
|
+
::Thrift::Struct.generate_accessors self
|
2902
|
+
end
|
2903
|
+
|
2904
|
+
class Execute_prepared_cql_query_result
|
2905
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2906
|
+
SUCCESS = 0
|
2907
|
+
IRE = 1
|
2908
|
+
UE = 2
|
2909
|
+
TE = 3
|
2910
|
+
SDE = 4
|
2911
|
+
|
2912
|
+
FIELDS = {
|
2913
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlResult},
|
2914
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2915
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2916
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException},
|
2917
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2918
|
+
}
|
2919
|
+
|
2920
|
+
def struct_fields; FIELDS; end
|
2921
|
+
|
2922
|
+
def validate
|
2923
|
+
end
|
2924
|
+
|
2925
|
+
::Thrift::Struct.generate_accessors self
|
2926
|
+
end
|
2927
|
+
|
2928
|
+
class Execute_prepared_cql3_query_args
|
2929
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2930
|
+
ITEMID = 1
|
2931
|
+
VALUES = 2
|
2932
|
+
CONSISTENCY = 3
|
2933
|
+
|
2934
|
+
FIELDS = {
|
2935
|
+
ITEMID => {:type => ::Thrift::Types::I32, :name => 'itemId'},
|
2936
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
2937
|
+
CONSISTENCY => {:type => ::Thrift::Types::I32, :name => 'consistency', :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
2938
|
+
}
|
2939
|
+
|
2940
|
+
def struct_fields; FIELDS; end
|
2941
|
+
|
2942
|
+
def validate
|
2943
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field itemId is unset!') unless @itemId
|
2944
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
|
2945
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency is unset!') unless @consistency
|
2946
|
+
unless @consistency.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency)
|
2947
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency!')
|
2948
|
+
end
|
2949
|
+
end
|
2950
|
+
|
2951
|
+
::Thrift::Struct.generate_accessors self
|
2952
|
+
end
|
2953
|
+
|
2954
|
+
class Execute_prepared_cql3_query_result
|
2955
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2956
|
+
SUCCESS = 0
|
2957
|
+
IRE = 1
|
2958
|
+
UE = 2
|
2959
|
+
TE = 3
|
2960
|
+
SDE = 4
|
2961
|
+
|
2962
|
+
FIELDS = {
|
2963
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlResult},
|
2964
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2965
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2966
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException},
|
2967
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2968
|
+
}
|
2969
|
+
|
2970
|
+
def struct_fields; FIELDS; end
|
2971
|
+
|
2972
|
+
def validate
|
2973
|
+
end
|
2974
|
+
|
2975
|
+
::Thrift::Struct.generate_accessors self
|
2976
|
+
end
|
2977
|
+
|
2978
|
+
class Set_cql_version_args
|
2979
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2980
|
+
VERSION = 1
|
2981
|
+
|
2982
|
+
FIELDS = {
|
2983
|
+
VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'}
|
2984
|
+
}
|
2985
|
+
|
2986
|
+
def struct_fields; FIELDS; end
|
2987
|
+
|
2988
|
+
def validate
|
2989
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field version is unset!') unless @version
|
2990
|
+
end
|
2991
|
+
|
2992
|
+
::Thrift::Struct.generate_accessors self
|
2993
|
+
end
|
2994
|
+
|
2995
|
+
class Set_cql_version_result
|
2996
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2997
|
+
IRE = 1
|
2998
|
+
|
2999
|
+
FIELDS = {
|
3000
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
3001
|
+
}
|
3002
|
+
|
3003
|
+
def struct_fields; FIELDS; end
|
3004
|
+
|
3005
|
+
def validate
|
3006
|
+
end
|
3007
|
+
|
3008
|
+
::Thrift::Struct.generate_accessors self
|
3009
|
+
end
|
3010
|
+
|
3011
|
+
end
|
3012
|
+
|
3013
|
+
end
|