cassandra-cql 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +14 -0
- data/README.md +81 -0
- data/cassandra-cql.gemspec +7 -2
- data/lib/cassandra-cql.rb +1 -1
- data/lib/cassandra-cql/1.1.rb +7 -0
- data/lib/cassandra-cql/1.1/result.rb +6 -0
- data/lib/cassandra-cql/1.1/statement.rb +6 -0
- data/lib/cassandra-cql/database.rb +2 -0
- data/lib/cassandra-cql/result.rb +7 -5
- data/lib/cassandra-cql/row.rb +21 -4
- data/lib/cassandra-cql/statement.rb +1 -1
- data/lib/cassandra-cql/types/abstract_type.rb +15 -0
- data/lib/cassandra-cql/types/ascii_type.rb +3 -1
- data/lib/cassandra-cql/types/boolean_type.rb +5 -0
- data/lib/cassandra-cql/types/date_type.rb +2 -0
- data/lib/cassandra-cql/types/decimal_type.rb +2 -0
- data/lib/cassandra-cql/types/double_type.rb +5 -0
- data/lib/cassandra-cql/types/float_type.rb +5 -0
- data/lib/cassandra-cql/types/utf8_type.rb +2 -0
- data/lib/cassandra-cql/types/uuid_type.rb +2 -0
- data/lib/cassandra-cql/version.rb +1 -1
- data/spec/column_family_spec.rb +2 -2
- data/spec/misc_spec.rb +68 -0
- data/spec/result_spec.rb +6 -1
- data/spec/spec_helper.rb +8 -2
- data/spec/uuid_spec.rb +3 -1
- data/spec/validation_spec.rb +71 -21
- data/vendor/1.1/gen-rb/cassandra.rb +2511 -0
- data/vendor/1.1/gen-rb/cassandra_constants.rb +13 -0
- data/vendor/1.1/gen-rb/cassandra_types.rb +928 -0
- metadata +67 -21
- data/README.rdoc +0 -71
data/spec/result_spec.rb
CHANGED
@@ -158,6 +158,11 @@ describe "row results" do
|
|
158
158
|
hash.should be_kind_of(Hash)
|
159
159
|
hash.should eq(row.to_hash)
|
160
160
|
end
|
161
|
+
|
162
|
+
it "should return nil where there is no row to fetch" do
|
163
|
+
2.times { @result.fetch }
|
164
|
+
@result.fetch_hash.should be_nil
|
165
|
+
end
|
161
166
|
end
|
162
167
|
|
163
168
|
context "fetch_hash_with a block" do
|
@@ -170,4 +175,4 @@ describe "row results" do
|
|
170
175
|
counter.should eq(@result.rows)
|
171
176
|
end
|
172
177
|
end
|
173
|
-
end
|
178
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
+
if RUBY_VERSION >= "1.9"
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start
|
4
|
+
end
|
5
|
+
|
6
|
+
require 'rubygems'
|
1
7
|
require 'yaml'
|
2
8
|
require 'rspec'
|
3
9
|
|
4
|
-
CASSANDRA_VERSION = ENV['CASSANDRA_VERSION'] || '1.
|
10
|
+
CASSANDRA_VERSION = ENV['CASSANDRA_VERSION'] || '1.1' unless defined?(CASSANDRA_VERSION)
|
5
11
|
|
6
12
|
$LOAD_PATH << "#{File.expand_path(File.dirname(__FILE__))}/../lib"
|
7
13
|
require "cassandra-cql/#{CASSANDRA_VERSION}"
|
@@ -16,7 +22,7 @@ def yaml_fixture(file)
|
|
16
22
|
end
|
17
23
|
|
18
24
|
def setup_cassandra_connection
|
19
|
-
connection = CassandraCQL::Database.new(["127.0.0.1:9160"], {}, :retries =>
|
25
|
+
connection = CassandraCQL::Database.new(["127.0.0.1:9160"], {}, :retries => 5, :timeout => 1, :connect_timeout => 5)
|
20
26
|
if !connection.keyspaces.map(&:name).include?("CassandraCQLTestKeyspace")
|
21
27
|
connection.execute("CREATE KEYSPACE CassandraCQLTestKeyspace WITH strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor=1")
|
22
28
|
end
|
data/spec/uuid_spec.rb
CHANGED
@@ -16,7 +16,9 @@ describe "UUID" do
|
|
16
16
|
|
17
17
|
it "should instantiate from a Time object" do
|
18
18
|
ts = Time.new
|
19
|
-
|
19
|
+
# Nanosecond precision is available on some platforms but not in UUIDv1 so they may not match, just be v.close
|
20
|
+
# Note that the time returned from two UUIDs using these two timestamps will still be the same
|
21
|
+
(UUID.new(ts).to_time - ts).should < 0.000001
|
20
22
|
end
|
21
23
|
|
22
24
|
it "should turn have a to_time class method that takes bytes" do
|
data/spec/validation_spec.rb
CHANGED
@@ -8,20 +8,30 @@ describe "Validation Roundtrip tests" do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def create_and_fetch_column(column_family, value)
|
11
|
-
@connection.execute("
|
12
|
-
res = @connection.execute("
|
11
|
+
@connection.execute("INSERT INTO #{column_family} (id, test_column) VALUES (?, ?)", 'test', value)
|
12
|
+
res = @connection.execute("SELECT test_column FROM #{column_family} WHERE id = ?", 'test')
|
13
13
|
return res.fetch[0]
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
if
|
18
|
-
@connection.execute("
|
16
|
+
def reset_column_family(name, test_column_type, opts="")
|
17
|
+
if @connection.schema.column_family_names.include?(name)
|
18
|
+
@connection.execute("DROP COLUMNFAMILY #{name}")
|
19
19
|
end
|
20
|
+
|
21
|
+
@connection.execute("CREATE COLUMNFAMILY #{name} (id text PRIMARY KEY, test_column #{test_column_type}) #{opts}")
|
22
|
+
end
|
23
|
+
|
24
|
+
def change_column_type_and_raise_exception(cf_name, type, value)
|
25
|
+
@connection.execute("INSERT INTO #{cf_name} (id, broken_column) values (?, ?)", 'test', value)
|
26
|
+
@connection.execute("ALTER COLUMNFAMILY #{cf_name} ADD broken_column #{type}")
|
27
|
+
expect {
|
28
|
+
@connection.execute("SELECT id, broken_column FROM #{cf_name} WHERE id=?", 'test').fetch['broken_column']
|
29
|
+
}.to raise_error CassandraCQL::Error::CastException
|
20
30
|
end
|
21
31
|
|
22
32
|
context "with ascii validation" do
|
23
33
|
let(:cf_name) { "validation_cf_ascii" }
|
24
|
-
before(:each) {
|
34
|
+
before(:each) { reset_column_family(cf_name, 'ascii') }
|
25
35
|
|
26
36
|
it "should return an ascii string" do
|
27
37
|
create_and_fetch_column(cf_name, "test string").should eq("test string")
|
@@ -30,7 +40,7 @@ describe "Validation Roundtrip tests" do
|
|
30
40
|
|
31
41
|
context "with bigint validation" do
|
32
42
|
let(:cf_name) { "validation_cf_bigint" }
|
33
|
-
before(:each) {
|
43
|
+
before(:each) { reset_column_family(cf_name, 'bigint') }
|
34
44
|
|
35
45
|
def test_for_value(value)
|
36
46
|
create_and_fetch_column(cf_name, value).should eq(value)
|
@@ -52,14 +62,18 @@ describe "Validation Roundtrip tests" do
|
|
52
62
|
it "should properly convert integer values that fit into 5 bytes" do
|
53
63
|
test_for_value(2**32 + 618387)
|
54
64
|
end
|
65
|
+
|
66
|
+
it "should raise a CastException" do
|
67
|
+
change_column_type_and_raise_exception(cf_name, 'bigint', nil)
|
68
|
+
end
|
55
69
|
end
|
56
70
|
|
57
71
|
context "with blob validation" do
|
58
72
|
let(:cf_name) { "validation_cf_blob" }
|
59
73
|
if CASSANDRA_VERSION.to_f == 0.8
|
60
|
-
before(:each) {
|
74
|
+
before(:each) { reset_column_family(cf_name, 'bytea') }
|
61
75
|
else
|
62
|
-
before(:each) {
|
76
|
+
before(:each) { reset_column_family(cf_name, 'blob') }
|
63
77
|
end
|
64
78
|
|
65
79
|
it "should return a blob" do
|
@@ -71,7 +85,7 @@ describe "Validation Roundtrip tests" do
|
|
71
85
|
|
72
86
|
context "with boolean validation" do
|
73
87
|
let(:cf_name) { "validation_cf_boolean" }
|
74
|
-
before(:each) {
|
88
|
+
before(:each) { reset_column_family(cf_name, 'boolean') }
|
75
89
|
|
76
90
|
it "should return true" do
|
77
91
|
create_and_fetch_column(cf_name, true).should be_true
|
@@ -80,6 +94,10 @@ describe "Validation Roundtrip tests" do
|
|
80
94
|
it "should return false" do
|
81
95
|
create_and_fetch_column(cf_name, false).should be_false
|
82
96
|
end
|
97
|
+
|
98
|
+
it "should raise a CastException" do
|
99
|
+
change_column_type_and_raise_exception(cf_name, 'boolean', nil)
|
100
|
+
end
|
83
101
|
end
|
84
102
|
|
85
103
|
context "with counter validation" do
|
@@ -109,7 +127,7 @@ describe "Validation Roundtrip tests" do
|
|
109
127
|
if CASSANDRA_VERSION.to_f >= 1.0
|
110
128
|
context "with decimal validation" do
|
111
129
|
let(:cf_name) { "validation_cf_decimal" }
|
112
|
-
before(:each) {
|
130
|
+
before(:each) { reset_column_family(cf_name, 'decimal') }
|
113
131
|
|
114
132
|
def test_for_value(value)
|
115
133
|
create_and_fetch_column(cf_name, value).should eq(value)
|
@@ -122,12 +140,16 @@ describe "Validation Roundtrip tests" do
|
|
122
140
|
it "should return a huge decimal" do
|
123
141
|
test_for_value(BigDecimal.new('129182739481237481341234123411.1029348102934810293481039'))
|
124
142
|
end
|
143
|
+
|
144
|
+
it "should raise a CastException" do
|
145
|
+
change_column_type_and_raise_exception(cf_name, 'decimal', nil)
|
146
|
+
end
|
125
147
|
end
|
126
148
|
end
|
127
149
|
|
128
150
|
context "with double validation" do
|
129
151
|
let(:cf_name) { "validation_cf_double" }
|
130
|
-
before(:each) {
|
152
|
+
before(:each) { reset_column_family(cf_name, 'double') }
|
131
153
|
|
132
154
|
def test_for_value(value)
|
133
155
|
create_and_fetch_column(cf_name, value).should be_within(0.1).of(value)
|
@@ -141,11 +163,15 @@ describe "Validation Roundtrip tests" do
|
|
141
163
|
test_for_value(16777217.125)
|
142
164
|
test_for_value(1099511627776.125)
|
143
165
|
end
|
166
|
+
|
167
|
+
it "should raise a CastException" do
|
168
|
+
change_column_type_and_raise_exception(cf_name, 'double', nil)
|
169
|
+
end
|
144
170
|
end
|
145
171
|
|
146
172
|
context "with float validation" do
|
147
173
|
let(:cf_name) { "validation_cf_float" }
|
148
|
-
before(:each) {
|
174
|
+
before(:each) { reset_column_family(cf_name, 'float') }
|
149
175
|
|
150
176
|
def test_for_value(value)
|
151
177
|
create_and_fetch_column(cf_name, value*-1).should eq(value*-1)
|
@@ -157,11 +183,15 @@ describe "Validation Roundtrip tests" do
|
|
157
183
|
test_for_value(384.125)
|
158
184
|
test_for_value(65540.125)
|
159
185
|
end
|
186
|
+
|
187
|
+
it "should raise a CastException" do
|
188
|
+
change_column_type_and_raise_exception(cf_name, 'float', nil)
|
189
|
+
end
|
160
190
|
end
|
161
191
|
|
162
192
|
context "with int validation" do
|
163
193
|
let(:cf_name) { "validation_cf_int" }
|
164
|
-
before(:each) {
|
194
|
+
before(:each) { reset_column_family(cf_name, 'int') }
|
165
195
|
|
166
196
|
def test_for_value(value)
|
167
197
|
create_and_fetch_column(cf_name, value).should eq(value)
|
@@ -180,11 +210,15 @@ describe "Validation Roundtrip tests" do
|
|
180
210
|
it "should properly convert integer values that fit into 4 bytes" do
|
181
211
|
test_for_value(2**24 + 45820)
|
182
212
|
end
|
213
|
+
|
214
|
+
it "should raise a CastException" do
|
215
|
+
change_column_type_and_raise_exception(cf_name, 'int', nil)
|
216
|
+
end
|
183
217
|
end
|
184
218
|
|
185
219
|
context "with text validation" do
|
186
220
|
let(:cf_name) { "validation_cf_text" }
|
187
|
-
before(:each) {
|
221
|
+
before(:each) { reset_column_family(cf_name, 'varchar') }
|
188
222
|
|
189
223
|
it "should return a non-multibyte string" do
|
190
224
|
create_and_fetch_column(cf_name, "snark").should eq("snark")
|
@@ -202,10 +236,10 @@ describe "Validation Roundtrip tests" do
|
|
202
236
|
context "with timestamp validation" do
|
203
237
|
let(:cf_name) { "validation_cf_timestamp" }
|
204
238
|
if CASSANDRA_VERSION.to_f == 0.8
|
205
|
-
before(:each) {
|
239
|
+
before(:each) { reset_column_family(cf_name, 'date') }
|
206
240
|
else
|
207
|
-
before(:each) {
|
208
|
-
|
241
|
+
before(:each) { reset_column_family(cf_name, 'timestamp') }
|
242
|
+
end
|
209
243
|
|
210
244
|
it "should return a timestamp" do
|
211
245
|
ts = Time.new
|
@@ -222,21 +256,33 @@ describe "Validation Roundtrip tests" do
|
|
222
256
|
end
|
223
257
|
res.class.should eq(Time)
|
224
258
|
end
|
259
|
+
|
260
|
+
it "should raise a CastException" do
|
261
|
+
if CASSANDRA_VERSION.to_f == 0.8
|
262
|
+
change_column_type_and_raise_exception(cf_name, 'date', nil)
|
263
|
+
else
|
264
|
+
change_column_type_and_raise_exception(cf_name, 'timestamp', nil)
|
265
|
+
end
|
266
|
+
end
|
225
267
|
end
|
226
268
|
|
227
269
|
context "with uuid validation" do
|
228
270
|
let(:cf_name) { "validation_cf_uuid" }
|
229
|
-
before(:each) {
|
271
|
+
before(:each) { reset_column_family(cf_name, 'uuid') }
|
230
272
|
|
231
273
|
it "should return a uuid" do
|
232
274
|
uuid = UUID.new
|
233
275
|
create_and_fetch_column(cf_name, uuid).should eq(uuid)
|
234
276
|
end
|
277
|
+
|
278
|
+
it "should raise a CastException" do
|
279
|
+
change_column_type_and_raise_exception(cf_name, 'uuid', nil)
|
280
|
+
end
|
235
281
|
end
|
236
282
|
|
237
283
|
context "with varchar validation" do
|
238
284
|
let(:cf_name) { "validation_cf_varchar" }
|
239
|
-
before(:each) {
|
285
|
+
before(:each) { reset_column_family(cf_name, 'varchar') }
|
240
286
|
|
241
287
|
it "should return a non-multibyte string" do
|
242
288
|
create_and_fetch_column(cf_name, "snark").should eq("snark")
|
@@ -249,7 +295,7 @@ describe "Validation Roundtrip tests" do
|
|
249
295
|
|
250
296
|
context "with varint validation" do
|
251
297
|
let(:cf_name) { "validation_cf_varint" }
|
252
|
-
before(:each) {
|
298
|
+
before(:each) { reset_column_family(cf_name, 'varint') }
|
253
299
|
|
254
300
|
def test_for_value(value)
|
255
301
|
create_and_fetch_column(cf_name, value).should eq(value)
|
@@ -268,5 +314,9 @@ describe "Validation Roundtrip tests" do
|
|
268
314
|
it "should properly convert integer values that fit into more than 8 bytes" do
|
269
315
|
test_for_value(2**256)
|
270
316
|
end
|
317
|
+
|
318
|
+
it "should raise a CastException" do
|
319
|
+
change_column_type_and_raise_exception(cf_name, 'varint', nil)
|
320
|
+
end
|
271
321
|
end
|
272
322
|
end
|
@@ -0,0 +1,2511 @@
|
|
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 truncate(cfname)
|
277
|
+
send_truncate(cfname)
|
278
|
+
recv_truncate()
|
279
|
+
end
|
280
|
+
|
281
|
+
def send_truncate(cfname)
|
282
|
+
send_message('truncate', Truncate_args, :cfname => cfname)
|
283
|
+
end
|
284
|
+
|
285
|
+
def recv_truncate()
|
286
|
+
result = receive_message(Truncate_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 describe_schema_versions()
|
294
|
+
send_describe_schema_versions()
|
295
|
+
return recv_describe_schema_versions()
|
296
|
+
end
|
297
|
+
|
298
|
+
def send_describe_schema_versions()
|
299
|
+
send_message('describe_schema_versions', Describe_schema_versions_args)
|
300
|
+
end
|
301
|
+
|
302
|
+
def recv_describe_schema_versions()
|
303
|
+
result = receive_message(Describe_schema_versions_result)
|
304
|
+
return result.success unless result.success.nil?
|
305
|
+
raise result.ire unless result.ire.nil?
|
306
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_schema_versions failed: unknown result')
|
307
|
+
end
|
308
|
+
|
309
|
+
def describe_keyspaces()
|
310
|
+
send_describe_keyspaces()
|
311
|
+
return recv_describe_keyspaces()
|
312
|
+
end
|
313
|
+
|
314
|
+
def send_describe_keyspaces()
|
315
|
+
send_message('describe_keyspaces', Describe_keyspaces_args)
|
316
|
+
end
|
317
|
+
|
318
|
+
def recv_describe_keyspaces()
|
319
|
+
result = receive_message(Describe_keyspaces_result)
|
320
|
+
return result.success unless result.success.nil?
|
321
|
+
raise result.ire unless result.ire.nil?
|
322
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspaces failed: unknown result')
|
323
|
+
end
|
324
|
+
|
325
|
+
def describe_cluster_name()
|
326
|
+
send_describe_cluster_name()
|
327
|
+
return recv_describe_cluster_name()
|
328
|
+
end
|
329
|
+
|
330
|
+
def send_describe_cluster_name()
|
331
|
+
send_message('describe_cluster_name', Describe_cluster_name_args)
|
332
|
+
end
|
333
|
+
|
334
|
+
def recv_describe_cluster_name()
|
335
|
+
result = receive_message(Describe_cluster_name_result)
|
336
|
+
return result.success unless result.success.nil?
|
337
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_cluster_name failed: unknown result')
|
338
|
+
end
|
339
|
+
|
340
|
+
def describe_version()
|
341
|
+
send_describe_version()
|
342
|
+
return recv_describe_version()
|
343
|
+
end
|
344
|
+
|
345
|
+
def send_describe_version()
|
346
|
+
send_message('describe_version', Describe_version_args)
|
347
|
+
end
|
348
|
+
|
349
|
+
def recv_describe_version()
|
350
|
+
result = receive_message(Describe_version_result)
|
351
|
+
return result.success unless result.success.nil?
|
352
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_version failed: unknown result')
|
353
|
+
end
|
354
|
+
|
355
|
+
def describe_ring(keyspace)
|
356
|
+
send_describe_ring(keyspace)
|
357
|
+
return recv_describe_ring()
|
358
|
+
end
|
359
|
+
|
360
|
+
def send_describe_ring(keyspace)
|
361
|
+
send_message('describe_ring', Describe_ring_args, :keyspace => keyspace)
|
362
|
+
end
|
363
|
+
|
364
|
+
def recv_describe_ring()
|
365
|
+
result = receive_message(Describe_ring_result)
|
366
|
+
return result.success unless result.success.nil?
|
367
|
+
raise result.ire unless result.ire.nil?
|
368
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_ring failed: unknown result')
|
369
|
+
end
|
370
|
+
|
371
|
+
def describe_partitioner()
|
372
|
+
send_describe_partitioner()
|
373
|
+
return recv_describe_partitioner()
|
374
|
+
end
|
375
|
+
|
376
|
+
def send_describe_partitioner()
|
377
|
+
send_message('describe_partitioner', Describe_partitioner_args)
|
378
|
+
end
|
379
|
+
|
380
|
+
def recv_describe_partitioner()
|
381
|
+
result = receive_message(Describe_partitioner_result)
|
382
|
+
return result.success unless result.success.nil?
|
383
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_partitioner failed: unknown result')
|
384
|
+
end
|
385
|
+
|
386
|
+
def describe_snitch()
|
387
|
+
send_describe_snitch()
|
388
|
+
return recv_describe_snitch()
|
389
|
+
end
|
390
|
+
|
391
|
+
def send_describe_snitch()
|
392
|
+
send_message('describe_snitch', Describe_snitch_args)
|
393
|
+
end
|
394
|
+
|
395
|
+
def recv_describe_snitch()
|
396
|
+
result = receive_message(Describe_snitch_result)
|
397
|
+
return result.success unless result.success.nil?
|
398
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_snitch failed: unknown result')
|
399
|
+
end
|
400
|
+
|
401
|
+
def describe_keyspace(keyspace)
|
402
|
+
send_describe_keyspace(keyspace)
|
403
|
+
return recv_describe_keyspace()
|
404
|
+
end
|
405
|
+
|
406
|
+
def send_describe_keyspace(keyspace)
|
407
|
+
send_message('describe_keyspace', Describe_keyspace_args, :keyspace => keyspace)
|
408
|
+
end
|
409
|
+
|
410
|
+
def recv_describe_keyspace()
|
411
|
+
result = receive_message(Describe_keyspace_result)
|
412
|
+
return result.success unless result.success.nil?
|
413
|
+
raise result.nfe unless result.nfe.nil?
|
414
|
+
raise result.ire unless result.ire.nil?
|
415
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspace failed: unknown result')
|
416
|
+
end
|
417
|
+
|
418
|
+
def describe_splits(cfName, start_token, end_token, keys_per_split)
|
419
|
+
send_describe_splits(cfName, start_token, end_token, keys_per_split)
|
420
|
+
return recv_describe_splits()
|
421
|
+
end
|
422
|
+
|
423
|
+
def send_describe_splits(cfName, start_token, end_token, keys_per_split)
|
424
|
+
send_message('describe_splits', Describe_splits_args, :cfName => cfName, :start_token => start_token, :end_token => end_token, :keys_per_split => keys_per_split)
|
425
|
+
end
|
426
|
+
|
427
|
+
def recv_describe_splits()
|
428
|
+
result = receive_message(Describe_splits_result)
|
429
|
+
return result.success unless result.success.nil?
|
430
|
+
raise result.ire unless result.ire.nil?
|
431
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_splits failed: unknown result')
|
432
|
+
end
|
433
|
+
|
434
|
+
def system_add_column_family(cf_def)
|
435
|
+
send_system_add_column_family(cf_def)
|
436
|
+
return recv_system_add_column_family()
|
437
|
+
end
|
438
|
+
|
439
|
+
def send_system_add_column_family(cf_def)
|
440
|
+
send_message('system_add_column_family', System_add_column_family_args, :cf_def => cf_def)
|
441
|
+
end
|
442
|
+
|
443
|
+
def recv_system_add_column_family()
|
444
|
+
result = receive_message(System_add_column_family_result)
|
445
|
+
return result.success unless result.success.nil?
|
446
|
+
raise result.ire unless result.ire.nil?
|
447
|
+
raise result.sde unless result.sde.nil?
|
448
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_column_family failed: unknown result')
|
449
|
+
end
|
450
|
+
|
451
|
+
def system_drop_column_family(column_family)
|
452
|
+
send_system_drop_column_family(column_family)
|
453
|
+
return recv_system_drop_column_family()
|
454
|
+
end
|
455
|
+
|
456
|
+
def send_system_drop_column_family(column_family)
|
457
|
+
send_message('system_drop_column_family', System_drop_column_family_args, :column_family => column_family)
|
458
|
+
end
|
459
|
+
|
460
|
+
def recv_system_drop_column_family()
|
461
|
+
result = receive_message(System_drop_column_family_result)
|
462
|
+
return result.success unless result.success.nil?
|
463
|
+
raise result.ire unless result.ire.nil?
|
464
|
+
raise result.sde unless result.sde.nil?
|
465
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_column_family failed: unknown result')
|
466
|
+
end
|
467
|
+
|
468
|
+
def system_add_keyspace(ks_def)
|
469
|
+
send_system_add_keyspace(ks_def)
|
470
|
+
return recv_system_add_keyspace()
|
471
|
+
end
|
472
|
+
|
473
|
+
def send_system_add_keyspace(ks_def)
|
474
|
+
send_message('system_add_keyspace', System_add_keyspace_args, :ks_def => ks_def)
|
475
|
+
end
|
476
|
+
|
477
|
+
def recv_system_add_keyspace()
|
478
|
+
result = receive_message(System_add_keyspace_result)
|
479
|
+
return result.success unless result.success.nil?
|
480
|
+
raise result.ire unless result.ire.nil?
|
481
|
+
raise result.sde unless result.sde.nil?
|
482
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_keyspace failed: unknown result')
|
483
|
+
end
|
484
|
+
|
485
|
+
def system_drop_keyspace(keyspace)
|
486
|
+
send_system_drop_keyspace(keyspace)
|
487
|
+
return recv_system_drop_keyspace()
|
488
|
+
end
|
489
|
+
|
490
|
+
def send_system_drop_keyspace(keyspace)
|
491
|
+
send_message('system_drop_keyspace', System_drop_keyspace_args, :keyspace => keyspace)
|
492
|
+
end
|
493
|
+
|
494
|
+
def recv_system_drop_keyspace()
|
495
|
+
result = receive_message(System_drop_keyspace_result)
|
496
|
+
return result.success unless result.success.nil?
|
497
|
+
raise result.ire unless result.ire.nil?
|
498
|
+
raise result.sde unless result.sde.nil?
|
499
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_keyspace failed: unknown result')
|
500
|
+
end
|
501
|
+
|
502
|
+
def system_update_keyspace(ks_def)
|
503
|
+
send_system_update_keyspace(ks_def)
|
504
|
+
return recv_system_update_keyspace()
|
505
|
+
end
|
506
|
+
|
507
|
+
def send_system_update_keyspace(ks_def)
|
508
|
+
send_message('system_update_keyspace', System_update_keyspace_args, :ks_def => ks_def)
|
509
|
+
end
|
510
|
+
|
511
|
+
def recv_system_update_keyspace()
|
512
|
+
result = receive_message(System_update_keyspace_result)
|
513
|
+
return result.success unless result.success.nil?
|
514
|
+
raise result.ire unless result.ire.nil?
|
515
|
+
raise result.sde unless result.sde.nil?
|
516
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_keyspace failed: unknown result')
|
517
|
+
end
|
518
|
+
|
519
|
+
def system_update_column_family(cf_def)
|
520
|
+
send_system_update_column_family(cf_def)
|
521
|
+
return recv_system_update_column_family()
|
522
|
+
end
|
523
|
+
|
524
|
+
def send_system_update_column_family(cf_def)
|
525
|
+
send_message('system_update_column_family', System_update_column_family_args, :cf_def => cf_def)
|
526
|
+
end
|
527
|
+
|
528
|
+
def recv_system_update_column_family()
|
529
|
+
result = receive_message(System_update_column_family_result)
|
530
|
+
return result.success unless result.success.nil?
|
531
|
+
raise result.ire unless result.ire.nil?
|
532
|
+
raise result.sde unless result.sde.nil?
|
533
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_column_family failed: unknown result')
|
534
|
+
end
|
535
|
+
|
536
|
+
def execute_cql_query(query, compression)
|
537
|
+
send_execute_cql_query(query, compression)
|
538
|
+
return recv_execute_cql_query()
|
539
|
+
end
|
540
|
+
|
541
|
+
def send_execute_cql_query(query, compression)
|
542
|
+
send_message('execute_cql_query', Execute_cql_query_args, :query => query, :compression => compression)
|
543
|
+
end
|
544
|
+
|
545
|
+
def recv_execute_cql_query()
|
546
|
+
result = receive_message(Execute_cql_query_result)
|
547
|
+
return result.success unless result.success.nil?
|
548
|
+
raise result.ire unless result.ire.nil?
|
549
|
+
raise result.ue unless result.ue.nil?
|
550
|
+
raise result.te unless result.te.nil?
|
551
|
+
raise result.sde unless result.sde.nil?
|
552
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_cql_query failed: unknown result')
|
553
|
+
end
|
554
|
+
|
555
|
+
def prepare_cql_query(query, compression)
|
556
|
+
send_prepare_cql_query(query, compression)
|
557
|
+
return recv_prepare_cql_query()
|
558
|
+
end
|
559
|
+
|
560
|
+
def send_prepare_cql_query(query, compression)
|
561
|
+
send_message('prepare_cql_query', Prepare_cql_query_args, :query => query, :compression => compression)
|
562
|
+
end
|
563
|
+
|
564
|
+
def recv_prepare_cql_query()
|
565
|
+
result = receive_message(Prepare_cql_query_result)
|
566
|
+
return result.success unless result.success.nil?
|
567
|
+
raise result.ire unless result.ire.nil?
|
568
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'prepare_cql_query failed: unknown result')
|
569
|
+
end
|
570
|
+
|
571
|
+
def execute_prepared_cql_query(itemId, values)
|
572
|
+
send_execute_prepared_cql_query(itemId, values)
|
573
|
+
return recv_execute_prepared_cql_query()
|
574
|
+
end
|
575
|
+
|
576
|
+
def send_execute_prepared_cql_query(itemId, values)
|
577
|
+
send_message('execute_prepared_cql_query', Execute_prepared_cql_query_args, :itemId => itemId, :values => values)
|
578
|
+
end
|
579
|
+
|
580
|
+
def recv_execute_prepared_cql_query()
|
581
|
+
result = receive_message(Execute_prepared_cql_query_result)
|
582
|
+
return result.success unless result.success.nil?
|
583
|
+
raise result.ire unless result.ire.nil?
|
584
|
+
raise result.ue unless result.ue.nil?
|
585
|
+
raise result.te unless result.te.nil?
|
586
|
+
raise result.sde unless result.sde.nil?
|
587
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_prepared_cql_query failed: unknown result')
|
588
|
+
end
|
589
|
+
|
590
|
+
def set_cql_version(version)
|
591
|
+
send_set_cql_version(version)
|
592
|
+
recv_set_cql_version()
|
593
|
+
end
|
594
|
+
|
595
|
+
def send_set_cql_version(version)
|
596
|
+
send_message('set_cql_version', Set_cql_version_args, :version => version)
|
597
|
+
end
|
598
|
+
|
599
|
+
def recv_set_cql_version()
|
600
|
+
result = receive_message(Set_cql_version_result)
|
601
|
+
raise result.ire unless result.ire.nil?
|
602
|
+
return
|
603
|
+
end
|
604
|
+
|
605
|
+
end
|
606
|
+
|
607
|
+
class Processor
|
608
|
+
include ::Thrift::Processor
|
609
|
+
|
610
|
+
def process_login(seqid, iprot, oprot)
|
611
|
+
args = read_args(iprot, Login_args)
|
612
|
+
result = Login_result.new()
|
613
|
+
begin
|
614
|
+
@handler.login(args.auth_request)
|
615
|
+
rescue CassandraCQL::Thrift::AuthenticationException => authnx
|
616
|
+
result.authnx = authnx
|
617
|
+
rescue CassandraCQL::Thrift::AuthorizationException => authzx
|
618
|
+
result.authzx = authzx
|
619
|
+
end
|
620
|
+
write_result(result, oprot, 'login', seqid)
|
621
|
+
end
|
622
|
+
|
623
|
+
def process_set_keyspace(seqid, iprot, oprot)
|
624
|
+
args = read_args(iprot, Set_keyspace_args)
|
625
|
+
result = Set_keyspace_result.new()
|
626
|
+
begin
|
627
|
+
@handler.set_keyspace(args.keyspace)
|
628
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
629
|
+
result.ire = ire
|
630
|
+
end
|
631
|
+
write_result(result, oprot, 'set_keyspace', seqid)
|
632
|
+
end
|
633
|
+
|
634
|
+
def process_get(seqid, iprot, oprot)
|
635
|
+
args = read_args(iprot, Get_args)
|
636
|
+
result = Get_result.new()
|
637
|
+
begin
|
638
|
+
result.success = @handler.get(args.key, args.column_path, args.consistency_level)
|
639
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
640
|
+
result.ire = ire
|
641
|
+
rescue CassandraCQL::Thrift::NotFoundException => nfe
|
642
|
+
result.nfe = nfe
|
643
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
644
|
+
result.ue = ue
|
645
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
646
|
+
result.te = te
|
647
|
+
end
|
648
|
+
write_result(result, oprot, 'get', seqid)
|
649
|
+
end
|
650
|
+
|
651
|
+
def process_get_slice(seqid, iprot, oprot)
|
652
|
+
args = read_args(iprot, Get_slice_args)
|
653
|
+
result = Get_slice_result.new()
|
654
|
+
begin
|
655
|
+
result.success = @handler.get_slice(args.key, args.column_parent, args.predicate, args.consistency_level)
|
656
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
657
|
+
result.ire = ire
|
658
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
659
|
+
result.ue = ue
|
660
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
661
|
+
result.te = te
|
662
|
+
end
|
663
|
+
write_result(result, oprot, 'get_slice', seqid)
|
664
|
+
end
|
665
|
+
|
666
|
+
def process_get_count(seqid, iprot, oprot)
|
667
|
+
args = read_args(iprot, Get_count_args)
|
668
|
+
result = Get_count_result.new()
|
669
|
+
begin
|
670
|
+
result.success = @handler.get_count(args.key, args.column_parent, args.predicate, args.consistency_level)
|
671
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
672
|
+
result.ire = ire
|
673
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
674
|
+
result.ue = ue
|
675
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
676
|
+
result.te = te
|
677
|
+
end
|
678
|
+
write_result(result, oprot, 'get_count', seqid)
|
679
|
+
end
|
680
|
+
|
681
|
+
def process_multiget_slice(seqid, iprot, oprot)
|
682
|
+
args = read_args(iprot, Multiget_slice_args)
|
683
|
+
result = Multiget_slice_result.new()
|
684
|
+
begin
|
685
|
+
result.success = @handler.multiget_slice(args.keys, args.column_parent, args.predicate, args.consistency_level)
|
686
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
687
|
+
result.ire = ire
|
688
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
689
|
+
result.ue = ue
|
690
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
691
|
+
result.te = te
|
692
|
+
end
|
693
|
+
write_result(result, oprot, 'multiget_slice', seqid)
|
694
|
+
end
|
695
|
+
|
696
|
+
def process_multiget_count(seqid, iprot, oprot)
|
697
|
+
args = read_args(iprot, Multiget_count_args)
|
698
|
+
result = Multiget_count_result.new()
|
699
|
+
begin
|
700
|
+
result.success = @handler.multiget_count(args.keys, args.column_parent, args.predicate, args.consistency_level)
|
701
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
702
|
+
result.ire = ire
|
703
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
704
|
+
result.ue = ue
|
705
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
706
|
+
result.te = te
|
707
|
+
end
|
708
|
+
write_result(result, oprot, 'multiget_count', seqid)
|
709
|
+
end
|
710
|
+
|
711
|
+
def process_get_range_slices(seqid, iprot, oprot)
|
712
|
+
args = read_args(iprot, Get_range_slices_args)
|
713
|
+
result = Get_range_slices_result.new()
|
714
|
+
begin
|
715
|
+
result.success = @handler.get_range_slices(args.column_parent, args.predicate, args.range, args.consistency_level)
|
716
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
717
|
+
result.ire = ire
|
718
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
719
|
+
result.ue = ue
|
720
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
721
|
+
result.te = te
|
722
|
+
end
|
723
|
+
write_result(result, oprot, 'get_range_slices', seqid)
|
724
|
+
end
|
725
|
+
|
726
|
+
def process_get_paged_slice(seqid, iprot, oprot)
|
727
|
+
args = read_args(iprot, Get_paged_slice_args)
|
728
|
+
result = Get_paged_slice_result.new()
|
729
|
+
begin
|
730
|
+
result.success = @handler.get_paged_slice(args.column_family, args.range, args.start_column, args.consistency_level)
|
731
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
732
|
+
result.ire = ire
|
733
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
734
|
+
result.ue = ue
|
735
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
736
|
+
result.te = te
|
737
|
+
end
|
738
|
+
write_result(result, oprot, 'get_paged_slice', seqid)
|
739
|
+
end
|
740
|
+
|
741
|
+
def process_get_indexed_slices(seqid, iprot, oprot)
|
742
|
+
args = read_args(iprot, Get_indexed_slices_args)
|
743
|
+
result = Get_indexed_slices_result.new()
|
744
|
+
begin
|
745
|
+
result.success = @handler.get_indexed_slices(args.column_parent, args.index_clause, args.column_predicate, args.consistency_level)
|
746
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
747
|
+
result.ire = ire
|
748
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
749
|
+
result.ue = ue
|
750
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
751
|
+
result.te = te
|
752
|
+
end
|
753
|
+
write_result(result, oprot, 'get_indexed_slices', seqid)
|
754
|
+
end
|
755
|
+
|
756
|
+
def process_insert(seqid, iprot, oprot)
|
757
|
+
args = read_args(iprot, Insert_args)
|
758
|
+
result = Insert_result.new()
|
759
|
+
begin
|
760
|
+
@handler.insert(args.key, args.column_parent, args.column, args.consistency_level)
|
761
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
762
|
+
result.ire = ire
|
763
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
764
|
+
result.ue = ue
|
765
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
766
|
+
result.te = te
|
767
|
+
end
|
768
|
+
write_result(result, oprot, 'insert', seqid)
|
769
|
+
end
|
770
|
+
|
771
|
+
def process_add(seqid, iprot, oprot)
|
772
|
+
args = read_args(iprot, Add_args)
|
773
|
+
result = Add_result.new()
|
774
|
+
begin
|
775
|
+
@handler.add(args.key, args.column_parent, args.column, args.consistency_level)
|
776
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
777
|
+
result.ire = ire
|
778
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
779
|
+
result.ue = ue
|
780
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
781
|
+
result.te = te
|
782
|
+
end
|
783
|
+
write_result(result, oprot, 'add', seqid)
|
784
|
+
end
|
785
|
+
|
786
|
+
def process_remove(seqid, iprot, oprot)
|
787
|
+
args = read_args(iprot, Remove_args)
|
788
|
+
result = Remove_result.new()
|
789
|
+
begin
|
790
|
+
@handler.remove(args.key, args.column_path, args.timestamp, args.consistency_level)
|
791
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
792
|
+
result.ire = ire
|
793
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
794
|
+
result.ue = ue
|
795
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
796
|
+
result.te = te
|
797
|
+
end
|
798
|
+
write_result(result, oprot, 'remove', seqid)
|
799
|
+
end
|
800
|
+
|
801
|
+
def process_remove_counter(seqid, iprot, oprot)
|
802
|
+
args = read_args(iprot, Remove_counter_args)
|
803
|
+
result = Remove_counter_result.new()
|
804
|
+
begin
|
805
|
+
@handler.remove_counter(args.key, args.path, args.consistency_level)
|
806
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
807
|
+
result.ire = ire
|
808
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
809
|
+
result.ue = ue
|
810
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
811
|
+
result.te = te
|
812
|
+
end
|
813
|
+
write_result(result, oprot, 'remove_counter', seqid)
|
814
|
+
end
|
815
|
+
|
816
|
+
def process_batch_mutate(seqid, iprot, oprot)
|
817
|
+
args = read_args(iprot, Batch_mutate_args)
|
818
|
+
result = Batch_mutate_result.new()
|
819
|
+
begin
|
820
|
+
@handler.batch_mutate(args.mutation_map, args.consistency_level)
|
821
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
822
|
+
result.ire = ire
|
823
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
824
|
+
result.ue = ue
|
825
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
826
|
+
result.te = te
|
827
|
+
end
|
828
|
+
write_result(result, oprot, 'batch_mutate', seqid)
|
829
|
+
end
|
830
|
+
|
831
|
+
def process_truncate(seqid, iprot, oprot)
|
832
|
+
args = read_args(iprot, Truncate_args)
|
833
|
+
result = Truncate_result.new()
|
834
|
+
begin
|
835
|
+
@handler.truncate(args.cfname)
|
836
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
837
|
+
result.ire = ire
|
838
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
839
|
+
result.ue = ue
|
840
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
841
|
+
result.te = te
|
842
|
+
end
|
843
|
+
write_result(result, oprot, 'truncate', seqid)
|
844
|
+
end
|
845
|
+
|
846
|
+
def process_describe_schema_versions(seqid, iprot, oprot)
|
847
|
+
args = read_args(iprot, Describe_schema_versions_args)
|
848
|
+
result = Describe_schema_versions_result.new()
|
849
|
+
begin
|
850
|
+
result.success = @handler.describe_schema_versions()
|
851
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
852
|
+
result.ire = ire
|
853
|
+
end
|
854
|
+
write_result(result, oprot, 'describe_schema_versions', seqid)
|
855
|
+
end
|
856
|
+
|
857
|
+
def process_describe_keyspaces(seqid, iprot, oprot)
|
858
|
+
args = read_args(iprot, Describe_keyspaces_args)
|
859
|
+
result = Describe_keyspaces_result.new()
|
860
|
+
begin
|
861
|
+
result.success = @handler.describe_keyspaces()
|
862
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
863
|
+
result.ire = ire
|
864
|
+
end
|
865
|
+
write_result(result, oprot, 'describe_keyspaces', seqid)
|
866
|
+
end
|
867
|
+
|
868
|
+
def process_describe_cluster_name(seqid, iprot, oprot)
|
869
|
+
args = read_args(iprot, Describe_cluster_name_args)
|
870
|
+
result = Describe_cluster_name_result.new()
|
871
|
+
result.success = @handler.describe_cluster_name()
|
872
|
+
write_result(result, oprot, 'describe_cluster_name', seqid)
|
873
|
+
end
|
874
|
+
|
875
|
+
def process_describe_version(seqid, iprot, oprot)
|
876
|
+
args = read_args(iprot, Describe_version_args)
|
877
|
+
result = Describe_version_result.new()
|
878
|
+
result.success = @handler.describe_version()
|
879
|
+
write_result(result, oprot, 'describe_version', seqid)
|
880
|
+
end
|
881
|
+
|
882
|
+
def process_describe_ring(seqid, iprot, oprot)
|
883
|
+
args = read_args(iprot, Describe_ring_args)
|
884
|
+
result = Describe_ring_result.new()
|
885
|
+
begin
|
886
|
+
result.success = @handler.describe_ring(args.keyspace)
|
887
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
888
|
+
result.ire = ire
|
889
|
+
end
|
890
|
+
write_result(result, oprot, 'describe_ring', seqid)
|
891
|
+
end
|
892
|
+
|
893
|
+
def process_describe_partitioner(seqid, iprot, oprot)
|
894
|
+
args = read_args(iprot, Describe_partitioner_args)
|
895
|
+
result = Describe_partitioner_result.new()
|
896
|
+
result.success = @handler.describe_partitioner()
|
897
|
+
write_result(result, oprot, 'describe_partitioner', seqid)
|
898
|
+
end
|
899
|
+
|
900
|
+
def process_describe_snitch(seqid, iprot, oprot)
|
901
|
+
args = read_args(iprot, Describe_snitch_args)
|
902
|
+
result = Describe_snitch_result.new()
|
903
|
+
result.success = @handler.describe_snitch()
|
904
|
+
write_result(result, oprot, 'describe_snitch', seqid)
|
905
|
+
end
|
906
|
+
|
907
|
+
def process_describe_keyspace(seqid, iprot, oprot)
|
908
|
+
args = read_args(iprot, Describe_keyspace_args)
|
909
|
+
result = Describe_keyspace_result.new()
|
910
|
+
begin
|
911
|
+
result.success = @handler.describe_keyspace(args.keyspace)
|
912
|
+
rescue CassandraCQL::Thrift::NotFoundException => nfe
|
913
|
+
result.nfe = nfe
|
914
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
915
|
+
result.ire = ire
|
916
|
+
end
|
917
|
+
write_result(result, oprot, 'describe_keyspace', seqid)
|
918
|
+
end
|
919
|
+
|
920
|
+
def process_describe_splits(seqid, iprot, oprot)
|
921
|
+
args = read_args(iprot, Describe_splits_args)
|
922
|
+
result = Describe_splits_result.new()
|
923
|
+
begin
|
924
|
+
result.success = @handler.describe_splits(args.cfName, args.start_token, args.end_token, args.keys_per_split)
|
925
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
926
|
+
result.ire = ire
|
927
|
+
end
|
928
|
+
write_result(result, oprot, 'describe_splits', seqid)
|
929
|
+
end
|
930
|
+
|
931
|
+
def process_system_add_column_family(seqid, iprot, oprot)
|
932
|
+
args = read_args(iprot, System_add_column_family_args)
|
933
|
+
result = System_add_column_family_result.new()
|
934
|
+
begin
|
935
|
+
result.success = @handler.system_add_column_family(args.cf_def)
|
936
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
937
|
+
result.ire = ire
|
938
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
939
|
+
result.sde = sde
|
940
|
+
end
|
941
|
+
write_result(result, oprot, 'system_add_column_family', seqid)
|
942
|
+
end
|
943
|
+
|
944
|
+
def process_system_drop_column_family(seqid, iprot, oprot)
|
945
|
+
args = read_args(iprot, System_drop_column_family_args)
|
946
|
+
result = System_drop_column_family_result.new()
|
947
|
+
begin
|
948
|
+
result.success = @handler.system_drop_column_family(args.column_family)
|
949
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
950
|
+
result.ire = ire
|
951
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
952
|
+
result.sde = sde
|
953
|
+
end
|
954
|
+
write_result(result, oprot, 'system_drop_column_family', seqid)
|
955
|
+
end
|
956
|
+
|
957
|
+
def process_system_add_keyspace(seqid, iprot, oprot)
|
958
|
+
args = read_args(iprot, System_add_keyspace_args)
|
959
|
+
result = System_add_keyspace_result.new()
|
960
|
+
begin
|
961
|
+
result.success = @handler.system_add_keyspace(args.ks_def)
|
962
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
963
|
+
result.ire = ire
|
964
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
965
|
+
result.sde = sde
|
966
|
+
end
|
967
|
+
write_result(result, oprot, 'system_add_keyspace', seqid)
|
968
|
+
end
|
969
|
+
|
970
|
+
def process_system_drop_keyspace(seqid, iprot, oprot)
|
971
|
+
args = read_args(iprot, System_drop_keyspace_args)
|
972
|
+
result = System_drop_keyspace_result.new()
|
973
|
+
begin
|
974
|
+
result.success = @handler.system_drop_keyspace(args.keyspace)
|
975
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
976
|
+
result.ire = ire
|
977
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
978
|
+
result.sde = sde
|
979
|
+
end
|
980
|
+
write_result(result, oprot, 'system_drop_keyspace', seqid)
|
981
|
+
end
|
982
|
+
|
983
|
+
def process_system_update_keyspace(seqid, iprot, oprot)
|
984
|
+
args = read_args(iprot, System_update_keyspace_args)
|
985
|
+
result = System_update_keyspace_result.new()
|
986
|
+
begin
|
987
|
+
result.success = @handler.system_update_keyspace(args.ks_def)
|
988
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
989
|
+
result.ire = ire
|
990
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
991
|
+
result.sde = sde
|
992
|
+
end
|
993
|
+
write_result(result, oprot, 'system_update_keyspace', seqid)
|
994
|
+
end
|
995
|
+
|
996
|
+
def process_system_update_column_family(seqid, iprot, oprot)
|
997
|
+
args = read_args(iprot, System_update_column_family_args)
|
998
|
+
result = System_update_column_family_result.new()
|
999
|
+
begin
|
1000
|
+
result.success = @handler.system_update_column_family(args.cf_def)
|
1001
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1002
|
+
result.ire = ire
|
1003
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1004
|
+
result.sde = sde
|
1005
|
+
end
|
1006
|
+
write_result(result, oprot, 'system_update_column_family', seqid)
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
def process_execute_cql_query(seqid, iprot, oprot)
|
1010
|
+
args = read_args(iprot, Execute_cql_query_args)
|
1011
|
+
result = Execute_cql_query_result.new()
|
1012
|
+
begin
|
1013
|
+
result.success = @handler.execute_cql_query(args.query, args.compression)
|
1014
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1015
|
+
result.ire = ire
|
1016
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
1017
|
+
result.ue = ue
|
1018
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
1019
|
+
result.te = te
|
1020
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1021
|
+
result.sde = sde
|
1022
|
+
end
|
1023
|
+
write_result(result, oprot, 'execute_cql_query', seqid)
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
def process_prepare_cql_query(seqid, iprot, oprot)
|
1027
|
+
args = read_args(iprot, Prepare_cql_query_args)
|
1028
|
+
result = Prepare_cql_query_result.new()
|
1029
|
+
begin
|
1030
|
+
result.success = @handler.prepare_cql_query(args.query, args.compression)
|
1031
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1032
|
+
result.ire = ire
|
1033
|
+
end
|
1034
|
+
write_result(result, oprot, 'prepare_cql_query', seqid)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
def process_execute_prepared_cql_query(seqid, iprot, oprot)
|
1038
|
+
args = read_args(iprot, Execute_prepared_cql_query_args)
|
1039
|
+
result = Execute_prepared_cql_query_result.new()
|
1040
|
+
begin
|
1041
|
+
result.success = @handler.execute_prepared_cql_query(args.itemId, args.values)
|
1042
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1043
|
+
result.ire = ire
|
1044
|
+
rescue CassandraCQL::Thrift::UnavailableException => ue
|
1045
|
+
result.ue = ue
|
1046
|
+
rescue CassandraCQL::Thrift::TimedOutException => te
|
1047
|
+
result.te = te
|
1048
|
+
rescue CassandraCQL::Thrift::SchemaDisagreementException => sde
|
1049
|
+
result.sde = sde
|
1050
|
+
end
|
1051
|
+
write_result(result, oprot, 'execute_prepared_cql_query', seqid)
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
def process_set_cql_version(seqid, iprot, oprot)
|
1055
|
+
args = read_args(iprot, Set_cql_version_args)
|
1056
|
+
result = Set_cql_version_result.new()
|
1057
|
+
begin
|
1058
|
+
@handler.set_cql_version(args.version)
|
1059
|
+
rescue CassandraCQL::Thrift::InvalidRequestException => ire
|
1060
|
+
result.ire = ire
|
1061
|
+
end
|
1062
|
+
write_result(result, oprot, 'set_cql_version', seqid)
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
1068
|
+
|
1069
|
+
class Login_args
|
1070
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1071
|
+
AUTH_REQUEST = 1
|
1072
|
+
|
1073
|
+
FIELDS = {
|
1074
|
+
AUTH_REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'auth_request', :class => CassandraCQL::Thrift::AuthenticationRequest}
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
def struct_fields; FIELDS; end
|
1078
|
+
|
1079
|
+
def validate
|
1080
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field auth_request is unset!') unless @auth_request
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
::Thrift::Struct.generate_accessors self
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
class Login_result
|
1087
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1088
|
+
AUTHNX = 1
|
1089
|
+
AUTHZX = 2
|
1090
|
+
|
1091
|
+
FIELDS = {
|
1092
|
+
AUTHNX => {:type => ::Thrift::Types::STRUCT, :name => 'authnx', :class => CassandraCQL::Thrift::AuthenticationException},
|
1093
|
+
AUTHZX => {:type => ::Thrift::Types::STRUCT, :name => 'authzx', :class => CassandraCQL::Thrift::AuthorizationException}
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
def struct_fields; FIELDS; end
|
1097
|
+
|
1098
|
+
def validate
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
::Thrift::Struct.generate_accessors self
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
class Set_keyspace_args
|
1105
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1106
|
+
KEYSPACE = 1
|
1107
|
+
|
1108
|
+
FIELDS = {
|
1109
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
1110
|
+
}
|
1111
|
+
|
1112
|
+
def struct_fields; FIELDS; end
|
1113
|
+
|
1114
|
+
def validate
|
1115
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
::Thrift::Struct.generate_accessors self
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
class Set_keyspace_result
|
1122
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1123
|
+
IRE = 1
|
1124
|
+
|
1125
|
+
FIELDS = {
|
1126
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
1127
|
+
}
|
1128
|
+
|
1129
|
+
def struct_fields; FIELDS; end
|
1130
|
+
|
1131
|
+
def validate
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
::Thrift::Struct.generate_accessors self
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
class Get_args
|
1138
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1139
|
+
KEY = 1
|
1140
|
+
COLUMN_PATH = 2
|
1141
|
+
CONSISTENCY_LEVEL = 3
|
1142
|
+
|
1143
|
+
FIELDS = {
|
1144
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1145
|
+
COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraCQL::Thrift::ColumnPath},
|
1146
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
def struct_fields; FIELDS; end
|
1150
|
+
|
1151
|
+
def validate
|
1152
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1153
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
|
1154
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1155
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1156
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
::Thrift::Struct.generate_accessors self
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
class Get_result
|
1164
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1165
|
+
SUCCESS = 0
|
1166
|
+
IRE = 1
|
1167
|
+
NFE = 2
|
1168
|
+
UE = 3
|
1169
|
+
TE = 4
|
1170
|
+
|
1171
|
+
FIELDS = {
|
1172
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::ColumnOrSuperColumn},
|
1173
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1174
|
+
NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraCQL::Thrift::NotFoundException},
|
1175
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1176
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
def struct_fields; FIELDS; end
|
1180
|
+
|
1181
|
+
def validate
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
::Thrift::Struct.generate_accessors self
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
class Get_slice_args
|
1188
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1189
|
+
KEY = 1
|
1190
|
+
COLUMN_PARENT = 2
|
1191
|
+
PREDICATE = 3
|
1192
|
+
CONSISTENCY_LEVEL = 4
|
1193
|
+
|
1194
|
+
FIELDS = {
|
1195
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1196
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1197
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1198
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1199
|
+
}
|
1200
|
+
|
1201
|
+
def struct_fields; FIELDS; end
|
1202
|
+
|
1203
|
+
def validate
|
1204
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1205
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1206
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1207
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1208
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1209
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1210
|
+
end
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
::Thrift::Struct.generate_accessors self
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
class Get_slice_result
|
1217
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1218
|
+
SUCCESS = 0
|
1219
|
+
IRE = 1
|
1220
|
+
UE = 2
|
1221
|
+
TE = 3
|
1222
|
+
|
1223
|
+
FIELDS = {
|
1224
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::ColumnOrSuperColumn}},
|
1225
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1226
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1227
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
def struct_fields; FIELDS; end
|
1231
|
+
|
1232
|
+
def validate
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
::Thrift::Struct.generate_accessors self
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
class Get_count_args
|
1239
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1240
|
+
KEY = 1
|
1241
|
+
COLUMN_PARENT = 2
|
1242
|
+
PREDICATE = 3
|
1243
|
+
CONSISTENCY_LEVEL = 4
|
1244
|
+
|
1245
|
+
FIELDS = {
|
1246
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1247
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1248
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1249
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1250
|
+
}
|
1251
|
+
|
1252
|
+
def struct_fields; FIELDS; end
|
1253
|
+
|
1254
|
+
def validate
|
1255
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1256
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1257
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1258
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1259
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1260
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1261
|
+
end
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
::Thrift::Struct.generate_accessors self
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
class Get_count_result
|
1268
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1269
|
+
SUCCESS = 0
|
1270
|
+
IRE = 1
|
1271
|
+
UE = 2
|
1272
|
+
TE = 3
|
1273
|
+
|
1274
|
+
FIELDS = {
|
1275
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
|
1276
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1277
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1278
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1279
|
+
}
|
1280
|
+
|
1281
|
+
def struct_fields; FIELDS; end
|
1282
|
+
|
1283
|
+
def validate
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
::Thrift::Struct.generate_accessors self
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
class Multiget_slice_args
|
1290
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1291
|
+
KEYS = 1
|
1292
|
+
COLUMN_PARENT = 2
|
1293
|
+
PREDICATE = 3
|
1294
|
+
CONSISTENCY_LEVEL = 4
|
1295
|
+
|
1296
|
+
FIELDS = {
|
1297
|
+
KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1298
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1299
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1300
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1301
|
+
}
|
1302
|
+
|
1303
|
+
def struct_fields; FIELDS; end
|
1304
|
+
|
1305
|
+
def validate
|
1306
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
|
1307
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1308
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1309
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1310
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1311
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1312
|
+
end
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
::Thrift::Struct.generate_accessors self
|
1316
|
+
end
|
1317
|
+
|
1318
|
+
class Multiget_slice_result
|
1319
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1320
|
+
SUCCESS = 0
|
1321
|
+
IRE = 1
|
1322
|
+
UE = 2
|
1323
|
+
TE = 3
|
1324
|
+
|
1325
|
+
FIELDS = {
|
1326
|
+
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}}},
|
1327
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1328
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1329
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
def struct_fields; FIELDS; end
|
1333
|
+
|
1334
|
+
def validate
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
::Thrift::Struct.generate_accessors self
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
class Multiget_count_args
|
1341
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1342
|
+
KEYS = 1
|
1343
|
+
COLUMN_PARENT = 2
|
1344
|
+
PREDICATE = 3
|
1345
|
+
CONSISTENCY_LEVEL = 4
|
1346
|
+
|
1347
|
+
FIELDS = {
|
1348
|
+
KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
|
1349
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1350
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1351
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1352
|
+
}
|
1353
|
+
|
1354
|
+
def struct_fields; FIELDS; end
|
1355
|
+
|
1356
|
+
def validate
|
1357
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
|
1358
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1359
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1360
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1361
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1362
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1363
|
+
end
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
::Thrift::Struct.generate_accessors self
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
class Multiget_count_result
|
1370
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1371
|
+
SUCCESS = 0
|
1372
|
+
IRE = 1
|
1373
|
+
UE = 2
|
1374
|
+
TE = 3
|
1375
|
+
|
1376
|
+
FIELDS = {
|
1377
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::I32}},
|
1378
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1379
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1380
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1381
|
+
}
|
1382
|
+
|
1383
|
+
def struct_fields; FIELDS; end
|
1384
|
+
|
1385
|
+
def validate
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
::Thrift::Struct.generate_accessors self
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
class Get_range_slices_args
|
1392
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1393
|
+
COLUMN_PARENT = 1
|
1394
|
+
PREDICATE = 2
|
1395
|
+
RANGE = 3
|
1396
|
+
CONSISTENCY_LEVEL = 4
|
1397
|
+
|
1398
|
+
FIELDS = {
|
1399
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1400
|
+
PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1401
|
+
RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraCQL::Thrift::KeyRange},
|
1402
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1403
|
+
}
|
1404
|
+
|
1405
|
+
def struct_fields; FIELDS; end
|
1406
|
+
|
1407
|
+
def validate
|
1408
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1409
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
|
1410
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
|
1411
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1412
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1413
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1414
|
+
end
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
::Thrift::Struct.generate_accessors self
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
class Get_range_slices_result
|
1421
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1422
|
+
SUCCESS = 0
|
1423
|
+
IRE = 1
|
1424
|
+
UE = 2
|
1425
|
+
TE = 3
|
1426
|
+
|
1427
|
+
FIELDS = {
|
1428
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KeySlice}},
|
1429
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1430
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1431
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1432
|
+
}
|
1433
|
+
|
1434
|
+
def struct_fields; FIELDS; end
|
1435
|
+
|
1436
|
+
def validate
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
::Thrift::Struct.generate_accessors self
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
class Get_paged_slice_args
|
1443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1444
|
+
COLUMN_FAMILY = 1
|
1445
|
+
RANGE = 2
|
1446
|
+
START_COLUMN = 3
|
1447
|
+
CONSISTENCY_LEVEL = 4
|
1448
|
+
|
1449
|
+
FIELDS = {
|
1450
|
+
COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
|
1451
|
+
RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraCQL::Thrift::KeyRange},
|
1452
|
+
START_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'start_column', :binary => true},
|
1453
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1454
|
+
}
|
1455
|
+
|
1456
|
+
def struct_fields; FIELDS; end
|
1457
|
+
|
1458
|
+
def validate
|
1459
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
|
1460
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
|
1461
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_column is unset!') unless @start_column
|
1462
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1463
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1464
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1465
|
+
end
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
::Thrift::Struct.generate_accessors self
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
class Get_paged_slice_result
|
1472
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1473
|
+
SUCCESS = 0
|
1474
|
+
IRE = 1
|
1475
|
+
UE = 2
|
1476
|
+
TE = 3
|
1477
|
+
|
1478
|
+
FIELDS = {
|
1479
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KeySlice}},
|
1480
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1481
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1482
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1483
|
+
}
|
1484
|
+
|
1485
|
+
def struct_fields; FIELDS; end
|
1486
|
+
|
1487
|
+
def validate
|
1488
|
+
end
|
1489
|
+
|
1490
|
+
::Thrift::Struct.generate_accessors self
|
1491
|
+
end
|
1492
|
+
|
1493
|
+
class Get_indexed_slices_args
|
1494
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1495
|
+
COLUMN_PARENT = 1
|
1496
|
+
INDEX_CLAUSE = 2
|
1497
|
+
COLUMN_PREDICATE = 3
|
1498
|
+
CONSISTENCY_LEVEL = 4
|
1499
|
+
|
1500
|
+
FIELDS = {
|
1501
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1502
|
+
INDEX_CLAUSE => {:type => ::Thrift::Types::STRUCT, :name => 'index_clause', :class => CassandraCQL::Thrift::IndexClause},
|
1503
|
+
COLUMN_PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'column_predicate', :class => CassandraCQL::Thrift::SlicePredicate},
|
1504
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1505
|
+
}
|
1506
|
+
|
1507
|
+
def struct_fields; FIELDS; end
|
1508
|
+
|
1509
|
+
def validate
|
1510
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1511
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field index_clause is unset!') unless @index_clause
|
1512
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_predicate is unset!') unless @column_predicate
|
1513
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1514
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1515
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1516
|
+
end
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
::Thrift::Struct.generate_accessors self
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
class Get_indexed_slices_result
|
1523
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1524
|
+
SUCCESS = 0
|
1525
|
+
IRE = 1
|
1526
|
+
UE = 2
|
1527
|
+
TE = 3
|
1528
|
+
|
1529
|
+
FIELDS = {
|
1530
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KeySlice}},
|
1531
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1532
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1533
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1534
|
+
}
|
1535
|
+
|
1536
|
+
def struct_fields; FIELDS; end
|
1537
|
+
|
1538
|
+
def validate
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
::Thrift::Struct.generate_accessors self
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
class Insert_args
|
1545
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1546
|
+
KEY = 1
|
1547
|
+
COLUMN_PARENT = 2
|
1548
|
+
COLUMN = 3
|
1549
|
+
CONSISTENCY_LEVEL = 4
|
1550
|
+
|
1551
|
+
FIELDS = {
|
1552
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1553
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1554
|
+
COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraCQL::Thrift::Column},
|
1555
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
def struct_fields; FIELDS; end
|
1559
|
+
|
1560
|
+
def validate
|
1561
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1562
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1563
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
|
1564
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1565
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1566
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1567
|
+
end
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
::Thrift::Struct.generate_accessors self
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
class Insert_result
|
1574
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1575
|
+
IRE = 1
|
1576
|
+
UE = 2
|
1577
|
+
TE = 3
|
1578
|
+
|
1579
|
+
FIELDS = {
|
1580
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1581
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1582
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
def struct_fields; FIELDS; end
|
1586
|
+
|
1587
|
+
def validate
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
::Thrift::Struct.generate_accessors self
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
class Add_args
|
1594
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1595
|
+
KEY = 1
|
1596
|
+
COLUMN_PARENT = 2
|
1597
|
+
COLUMN = 3
|
1598
|
+
CONSISTENCY_LEVEL = 4
|
1599
|
+
|
1600
|
+
FIELDS = {
|
1601
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1602
|
+
COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraCQL::Thrift::ColumnParent},
|
1603
|
+
COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraCQL::Thrift::CounterColumn},
|
1604
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1605
|
+
}
|
1606
|
+
|
1607
|
+
def struct_fields; FIELDS; end
|
1608
|
+
|
1609
|
+
def validate
|
1610
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1611
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
|
1612
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
|
1613
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1614
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1615
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1616
|
+
end
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
::Thrift::Struct.generate_accessors self
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
class Add_result
|
1623
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1624
|
+
IRE = 1
|
1625
|
+
UE = 2
|
1626
|
+
TE = 3
|
1627
|
+
|
1628
|
+
FIELDS = {
|
1629
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1630
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1631
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1632
|
+
}
|
1633
|
+
|
1634
|
+
def struct_fields; FIELDS; end
|
1635
|
+
|
1636
|
+
def validate
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
::Thrift::Struct.generate_accessors self
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
class Remove_args
|
1643
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1644
|
+
KEY = 1
|
1645
|
+
COLUMN_PATH = 2
|
1646
|
+
TIMESTAMP = 3
|
1647
|
+
CONSISTENCY_LEVEL = 4
|
1648
|
+
|
1649
|
+
FIELDS = {
|
1650
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1651
|
+
COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraCQL::Thrift::ColumnPath},
|
1652
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
|
1653
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
def struct_fields; FIELDS; end
|
1657
|
+
|
1658
|
+
def validate
|
1659
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1660
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
|
1661
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field timestamp is unset!') unless @timestamp
|
1662
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1663
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1664
|
+
end
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
::Thrift::Struct.generate_accessors self
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
class Remove_result
|
1671
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1672
|
+
IRE = 1
|
1673
|
+
UE = 2
|
1674
|
+
TE = 3
|
1675
|
+
|
1676
|
+
FIELDS = {
|
1677
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1678
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1679
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1680
|
+
}
|
1681
|
+
|
1682
|
+
def struct_fields; FIELDS; end
|
1683
|
+
|
1684
|
+
def validate
|
1685
|
+
end
|
1686
|
+
|
1687
|
+
::Thrift::Struct.generate_accessors self
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
class Remove_counter_args
|
1691
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1692
|
+
KEY = 1
|
1693
|
+
PATH = 2
|
1694
|
+
CONSISTENCY_LEVEL = 3
|
1695
|
+
|
1696
|
+
FIELDS = {
|
1697
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
|
1698
|
+
PATH => {:type => ::Thrift::Types::STRUCT, :name => 'path', :class => CassandraCQL::Thrift::ColumnPath},
|
1699
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1700
|
+
}
|
1701
|
+
|
1702
|
+
def struct_fields; FIELDS; end
|
1703
|
+
|
1704
|
+
def validate
|
1705
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
|
1706
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field path is unset!') unless @path
|
1707
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1708
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1709
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1710
|
+
end
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
::Thrift::Struct.generate_accessors self
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
class Remove_counter_result
|
1717
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1718
|
+
IRE = 1
|
1719
|
+
UE = 2
|
1720
|
+
TE = 3
|
1721
|
+
|
1722
|
+
FIELDS = {
|
1723
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1724
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1725
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1726
|
+
}
|
1727
|
+
|
1728
|
+
def struct_fields; FIELDS; end
|
1729
|
+
|
1730
|
+
def validate
|
1731
|
+
end
|
1732
|
+
|
1733
|
+
::Thrift::Struct.generate_accessors self
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
class Batch_mutate_args
|
1737
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1738
|
+
MUTATION_MAP = 1
|
1739
|
+
CONSISTENCY_LEVEL = 2
|
1740
|
+
|
1741
|
+
FIELDS = {
|
1742
|
+
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}}}},
|
1743
|
+
CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraCQL::Thrift::ConsistencyLevel}
|
1744
|
+
}
|
1745
|
+
|
1746
|
+
def struct_fields; FIELDS; end
|
1747
|
+
|
1748
|
+
def validate
|
1749
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field mutation_map is unset!') unless @mutation_map
|
1750
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
|
1751
|
+
unless @consistency_level.nil? || CassandraCQL::Thrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
|
1752
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
|
1753
|
+
end
|
1754
|
+
end
|
1755
|
+
|
1756
|
+
::Thrift::Struct.generate_accessors self
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
class Batch_mutate_result
|
1760
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1761
|
+
IRE = 1
|
1762
|
+
UE = 2
|
1763
|
+
TE = 3
|
1764
|
+
|
1765
|
+
FIELDS = {
|
1766
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1767
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1768
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1769
|
+
}
|
1770
|
+
|
1771
|
+
def struct_fields; FIELDS; end
|
1772
|
+
|
1773
|
+
def validate
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
::Thrift::Struct.generate_accessors self
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
class Truncate_args
|
1780
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1781
|
+
CFNAME = 1
|
1782
|
+
|
1783
|
+
FIELDS = {
|
1784
|
+
CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfname'}
|
1785
|
+
}
|
1786
|
+
|
1787
|
+
def struct_fields; FIELDS; end
|
1788
|
+
|
1789
|
+
def validate
|
1790
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfname is unset!') unless @cfname
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
::Thrift::Struct.generate_accessors self
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
class Truncate_result
|
1797
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1798
|
+
IRE = 1
|
1799
|
+
UE = 2
|
1800
|
+
TE = 3
|
1801
|
+
|
1802
|
+
FIELDS = {
|
1803
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
1804
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
1805
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException}
|
1806
|
+
}
|
1807
|
+
|
1808
|
+
def struct_fields; FIELDS; end
|
1809
|
+
|
1810
|
+
def validate
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
::Thrift::Struct.generate_accessors self
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
class Describe_schema_versions_args
|
1817
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1818
|
+
|
1819
|
+
FIELDS = {
|
1820
|
+
|
1821
|
+
}
|
1822
|
+
|
1823
|
+
def struct_fields; FIELDS; end
|
1824
|
+
|
1825
|
+
def validate
|
1826
|
+
end
|
1827
|
+
|
1828
|
+
::Thrift::Struct.generate_accessors self
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
class Describe_schema_versions_result
|
1832
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1833
|
+
SUCCESS = 0
|
1834
|
+
IRE = 1
|
1835
|
+
|
1836
|
+
FIELDS = {
|
1837
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
|
1838
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
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 Describe_keyspaces_args
|
1850
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1851
|
+
|
1852
|
+
FIELDS = {
|
1853
|
+
|
1854
|
+
}
|
1855
|
+
|
1856
|
+
def struct_fields; FIELDS; end
|
1857
|
+
|
1858
|
+
def validate
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
::Thrift::Struct.generate_accessors self
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
class Describe_keyspaces_result
|
1865
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1866
|
+
SUCCESS = 0
|
1867
|
+
IRE = 1
|
1868
|
+
|
1869
|
+
FIELDS = {
|
1870
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::KsDef}},
|
1871
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
1872
|
+
}
|
1873
|
+
|
1874
|
+
def struct_fields; FIELDS; end
|
1875
|
+
|
1876
|
+
def validate
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
::Thrift::Struct.generate_accessors self
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
class Describe_cluster_name_args
|
1883
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1884
|
+
|
1885
|
+
FIELDS = {
|
1886
|
+
|
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 Describe_cluster_name_result
|
1898
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1899
|
+
SUCCESS = 0
|
1900
|
+
|
1901
|
+
FIELDS = {
|
1902
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
1903
|
+
}
|
1904
|
+
|
1905
|
+
def struct_fields; FIELDS; end
|
1906
|
+
|
1907
|
+
def validate
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
::Thrift::Struct.generate_accessors self
|
1911
|
+
end
|
1912
|
+
|
1913
|
+
class Describe_version_args
|
1914
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1915
|
+
|
1916
|
+
FIELDS = {
|
1917
|
+
|
1918
|
+
}
|
1919
|
+
|
1920
|
+
def struct_fields; FIELDS; end
|
1921
|
+
|
1922
|
+
def validate
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
::Thrift::Struct.generate_accessors self
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
class Describe_version_result
|
1929
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1930
|
+
SUCCESS = 0
|
1931
|
+
|
1932
|
+
FIELDS = {
|
1933
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
1934
|
+
}
|
1935
|
+
|
1936
|
+
def struct_fields; FIELDS; end
|
1937
|
+
|
1938
|
+
def validate
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
::Thrift::Struct.generate_accessors self
|
1942
|
+
end
|
1943
|
+
|
1944
|
+
class Describe_ring_args
|
1945
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1946
|
+
KEYSPACE = 1
|
1947
|
+
|
1948
|
+
FIELDS = {
|
1949
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
1950
|
+
}
|
1951
|
+
|
1952
|
+
def struct_fields; FIELDS; end
|
1953
|
+
|
1954
|
+
def validate
|
1955
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
::Thrift::Struct.generate_accessors self
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
class Describe_ring_result
|
1962
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1963
|
+
SUCCESS = 0
|
1964
|
+
IRE = 1
|
1965
|
+
|
1966
|
+
FIELDS = {
|
1967
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraCQL::Thrift::TokenRange}},
|
1968
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
def struct_fields; FIELDS; end
|
1972
|
+
|
1973
|
+
def validate
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
::Thrift::Struct.generate_accessors self
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
class Describe_partitioner_args
|
1980
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1981
|
+
|
1982
|
+
FIELDS = {
|
1983
|
+
|
1984
|
+
}
|
1985
|
+
|
1986
|
+
def struct_fields; FIELDS; end
|
1987
|
+
|
1988
|
+
def validate
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
::Thrift::Struct.generate_accessors self
|
1992
|
+
end
|
1993
|
+
|
1994
|
+
class Describe_partitioner_result
|
1995
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1996
|
+
SUCCESS = 0
|
1997
|
+
|
1998
|
+
FIELDS = {
|
1999
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
2000
|
+
}
|
2001
|
+
|
2002
|
+
def struct_fields; FIELDS; end
|
2003
|
+
|
2004
|
+
def validate
|
2005
|
+
end
|
2006
|
+
|
2007
|
+
::Thrift::Struct.generate_accessors self
|
2008
|
+
end
|
2009
|
+
|
2010
|
+
class Describe_snitch_args
|
2011
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2012
|
+
|
2013
|
+
FIELDS = {
|
2014
|
+
|
2015
|
+
}
|
2016
|
+
|
2017
|
+
def struct_fields; FIELDS; end
|
2018
|
+
|
2019
|
+
def validate
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
::Thrift::Struct.generate_accessors self
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
class Describe_snitch_result
|
2026
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2027
|
+
SUCCESS = 0
|
2028
|
+
|
2029
|
+
FIELDS = {
|
2030
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
2031
|
+
}
|
2032
|
+
|
2033
|
+
def struct_fields; FIELDS; end
|
2034
|
+
|
2035
|
+
def validate
|
2036
|
+
end
|
2037
|
+
|
2038
|
+
::Thrift::Struct.generate_accessors self
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
class Describe_keyspace_args
|
2042
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2043
|
+
KEYSPACE = 1
|
2044
|
+
|
2045
|
+
FIELDS = {
|
2046
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
2047
|
+
}
|
2048
|
+
|
2049
|
+
def struct_fields; FIELDS; end
|
2050
|
+
|
2051
|
+
def validate
|
2052
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
2053
|
+
end
|
2054
|
+
|
2055
|
+
::Thrift::Struct.generate_accessors self
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
class Describe_keyspace_result
|
2059
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2060
|
+
SUCCESS = 0
|
2061
|
+
NFE = 1
|
2062
|
+
IRE = 2
|
2063
|
+
|
2064
|
+
FIELDS = {
|
2065
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::KsDef},
|
2066
|
+
NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraCQL::Thrift::NotFoundException},
|
2067
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2068
|
+
}
|
2069
|
+
|
2070
|
+
def struct_fields; FIELDS; end
|
2071
|
+
|
2072
|
+
def validate
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
::Thrift::Struct.generate_accessors self
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
class Describe_splits_args
|
2079
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2080
|
+
CFNAME = 1
|
2081
|
+
START_TOKEN = 2
|
2082
|
+
END_TOKEN = 3
|
2083
|
+
KEYS_PER_SPLIT = 4
|
2084
|
+
|
2085
|
+
FIELDS = {
|
2086
|
+
CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfName'},
|
2087
|
+
START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
|
2088
|
+
END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
|
2089
|
+
KEYS_PER_SPLIT => {:type => ::Thrift::Types::I32, :name => 'keys_per_split'}
|
2090
|
+
}
|
2091
|
+
|
2092
|
+
def struct_fields; FIELDS; end
|
2093
|
+
|
2094
|
+
def validate
|
2095
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfName is unset!') unless @cfName
|
2096
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_token is unset!') unless @start_token
|
2097
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field end_token is unset!') unless @end_token
|
2098
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys_per_split is unset!') unless @keys_per_split
|
2099
|
+
end
|
2100
|
+
|
2101
|
+
::Thrift::Struct.generate_accessors self
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
class Describe_splits_result
|
2105
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2106
|
+
SUCCESS = 0
|
2107
|
+
IRE = 1
|
2108
|
+
|
2109
|
+
FIELDS = {
|
2110
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
2111
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2112
|
+
}
|
2113
|
+
|
2114
|
+
def struct_fields; FIELDS; end
|
2115
|
+
|
2116
|
+
def validate
|
2117
|
+
end
|
2118
|
+
|
2119
|
+
::Thrift::Struct.generate_accessors self
|
2120
|
+
end
|
2121
|
+
|
2122
|
+
class System_add_column_family_args
|
2123
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2124
|
+
CF_DEF = 1
|
2125
|
+
|
2126
|
+
FIELDS = {
|
2127
|
+
CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraCQL::Thrift::CfDef}
|
2128
|
+
}
|
2129
|
+
|
2130
|
+
def struct_fields; FIELDS; end
|
2131
|
+
|
2132
|
+
def validate
|
2133
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
|
2134
|
+
end
|
2135
|
+
|
2136
|
+
::Thrift::Struct.generate_accessors self
|
2137
|
+
end
|
2138
|
+
|
2139
|
+
class System_add_column_family_result
|
2140
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2141
|
+
SUCCESS = 0
|
2142
|
+
IRE = 1
|
2143
|
+
SDE = 2
|
2144
|
+
|
2145
|
+
FIELDS = {
|
2146
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2147
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2148
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2149
|
+
}
|
2150
|
+
|
2151
|
+
def struct_fields; FIELDS; end
|
2152
|
+
|
2153
|
+
def validate
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
::Thrift::Struct.generate_accessors self
|
2157
|
+
end
|
2158
|
+
|
2159
|
+
class System_drop_column_family_args
|
2160
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2161
|
+
COLUMN_FAMILY = 1
|
2162
|
+
|
2163
|
+
FIELDS = {
|
2164
|
+
COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'}
|
2165
|
+
}
|
2166
|
+
|
2167
|
+
def struct_fields; FIELDS; end
|
2168
|
+
|
2169
|
+
def validate
|
2170
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
|
2171
|
+
end
|
2172
|
+
|
2173
|
+
::Thrift::Struct.generate_accessors self
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
class System_drop_column_family_result
|
2177
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2178
|
+
SUCCESS = 0
|
2179
|
+
IRE = 1
|
2180
|
+
SDE = 2
|
2181
|
+
|
2182
|
+
FIELDS = {
|
2183
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2184
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2185
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2186
|
+
}
|
2187
|
+
|
2188
|
+
def struct_fields; FIELDS; end
|
2189
|
+
|
2190
|
+
def validate
|
2191
|
+
end
|
2192
|
+
|
2193
|
+
::Thrift::Struct.generate_accessors self
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
class System_add_keyspace_args
|
2197
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2198
|
+
KS_DEF = 1
|
2199
|
+
|
2200
|
+
FIELDS = {
|
2201
|
+
KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraCQL::Thrift::KsDef}
|
2202
|
+
}
|
2203
|
+
|
2204
|
+
def struct_fields; FIELDS; end
|
2205
|
+
|
2206
|
+
def validate
|
2207
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
::Thrift::Struct.generate_accessors self
|
2211
|
+
end
|
2212
|
+
|
2213
|
+
class System_add_keyspace_result
|
2214
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2215
|
+
SUCCESS = 0
|
2216
|
+
IRE = 1
|
2217
|
+
SDE = 2
|
2218
|
+
|
2219
|
+
FIELDS = {
|
2220
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2221
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2222
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2223
|
+
}
|
2224
|
+
|
2225
|
+
def struct_fields; FIELDS; end
|
2226
|
+
|
2227
|
+
def validate
|
2228
|
+
end
|
2229
|
+
|
2230
|
+
::Thrift::Struct.generate_accessors self
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
class System_drop_keyspace_args
|
2234
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2235
|
+
KEYSPACE = 1
|
2236
|
+
|
2237
|
+
FIELDS = {
|
2238
|
+
KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
|
2239
|
+
}
|
2240
|
+
|
2241
|
+
def struct_fields; FIELDS; end
|
2242
|
+
|
2243
|
+
def validate
|
2244
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
|
2245
|
+
end
|
2246
|
+
|
2247
|
+
::Thrift::Struct.generate_accessors self
|
2248
|
+
end
|
2249
|
+
|
2250
|
+
class System_drop_keyspace_result
|
2251
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2252
|
+
SUCCESS = 0
|
2253
|
+
IRE = 1
|
2254
|
+
SDE = 2
|
2255
|
+
|
2256
|
+
FIELDS = {
|
2257
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2258
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2259
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
def struct_fields; FIELDS; end
|
2263
|
+
|
2264
|
+
def validate
|
2265
|
+
end
|
2266
|
+
|
2267
|
+
::Thrift::Struct.generate_accessors self
|
2268
|
+
end
|
2269
|
+
|
2270
|
+
class System_update_keyspace_args
|
2271
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2272
|
+
KS_DEF = 1
|
2273
|
+
|
2274
|
+
FIELDS = {
|
2275
|
+
KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraCQL::Thrift::KsDef}
|
2276
|
+
}
|
2277
|
+
|
2278
|
+
def struct_fields; FIELDS; end
|
2279
|
+
|
2280
|
+
def validate
|
2281
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
::Thrift::Struct.generate_accessors self
|
2285
|
+
end
|
2286
|
+
|
2287
|
+
class System_update_keyspace_result
|
2288
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2289
|
+
SUCCESS = 0
|
2290
|
+
IRE = 1
|
2291
|
+
SDE = 2
|
2292
|
+
|
2293
|
+
FIELDS = {
|
2294
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2295
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2296
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2297
|
+
}
|
2298
|
+
|
2299
|
+
def struct_fields; FIELDS; end
|
2300
|
+
|
2301
|
+
def validate
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
::Thrift::Struct.generate_accessors self
|
2305
|
+
end
|
2306
|
+
|
2307
|
+
class System_update_column_family_args
|
2308
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2309
|
+
CF_DEF = 1
|
2310
|
+
|
2311
|
+
FIELDS = {
|
2312
|
+
CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraCQL::Thrift::CfDef}
|
2313
|
+
}
|
2314
|
+
|
2315
|
+
def struct_fields; FIELDS; end
|
2316
|
+
|
2317
|
+
def validate
|
2318
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
::Thrift::Struct.generate_accessors self
|
2322
|
+
end
|
2323
|
+
|
2324
|
+
class System_update_column_family_result
|
2325
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2326
|
+
SUCCESS = 0
|
2327
|
+
IRE = 1
|
2328
|
+
SDE = 2
|
2329
|
+
|
2330
|
+
FIELDS = {
|
2331
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
2332
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2333
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2334
|
+
}
|
2335
|
+
|
2336
|
+
def struct_fields; FIELDS; end
|
2337
|
+
|
2338
|
+
def validate
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
::Thrift::Struct.generate_accessors self
|
2342
|
+
end
|
2343
|
+
|
2344
|
+
class Execute_cql_query_args
|
2345
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2346
|
+
QUERY = 1
|
2347
|
+
COMPRESSION = 2
|
2348
|
+
|
2349
|
+
FIELDS = {
|
2350
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
|
2351
|
+
COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraCQL::Thrift::Compression}
|
2352
|
+
}
|
2353
|
+
|
2354
|
+
def struct_fields; FIELDS; end
|
2355
|
+
|
2356
|
+
def validate
|
2357
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
|
2358
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
|
2359
|
+
unless @compression.nil? || CassandraCQL::Thrift::Compression::VALID_VALUES.include?(@compression)
|
2360
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
|
2361
|
+
end
|
2362
|
+
end
|
2363
|
+
|
2364
|
+
::Thrift::Struct.generate_accessors self
|
2365
|
+
end
|
2366
|
+
|
2367
|
+
class Execute_cql_query_result
|
2368
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2369
|
+
SUCCESS = 0
|
2370
|
+
IRE = 1
|
2371
|
+
UE = 2
|
2372
|
+
TE = 3
|
2373
|
+
SDE = 4
|
2374
|
+
|
2375
|
+
FIELDS = {
|
2376
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlResult},
|
2377
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2378
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2379
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException},
|
2380
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2381
|
+
}
|
2382
|
+
|
2383
|
+
def struct_fields; FIELDS; end
|
2384
|
+
|
2385
|
+
def validate
|
2386
|
+
end
|
2387
|
+
|
2388
|
+
::Thrift::Struct.generate_accessors self
|
2389
|
+
end
|
2390
|
+
|
2391
|
+
class Prepare_cql_query_args
|
2392
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2393
|
+
QUERY = 1
|
2394
|
+
COMPRESSION = 2
|
2395
|
+
|
2396
|
+
FIELDS = {
|
2397
|
+
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
|
2398
|
+
COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraCQL::Thrift::Compression}
|
2399
|
+
}
|
2400
|
+
|
2401
|
+
def struct_fields; FIELDS; end
|
2402
|
+
|
2403
|
+
def validate
|
2404
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
|
2405
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
|
2406
|
+
unless @compression.nil? || CassandraCQL::Thrift::Compression::VALID_VALUES.include?(@compression)
|
2407
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
|
2408
|
+
end
|
2409
|
+
end
|
2410
|
+
|
2411
|
+
::Thrift::Struct.generate_accessors self
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
class Prepare_cql_query_result
|
2415
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2416
|
+
SUCCESS = 0
|
2417
|
+
IRE = 1
|
2418
|
+
|
2419
|
+
FIELDS = {
|
2420
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlPreparedResult},
|
2421
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2422
|
+
}
|
2423
|
+
|
2424
|
+
def struct_fields; FIELDS; end
|
2425
|
+
|
2426
|
+
def validate
|
2427
|
+
end
|
2428
|
+
|
2429
|
+
::Thrift::Struct.generate_accessors self
|
2430
|
+
end
|
2431
|
+
|
2432
|
+
class Execute_prepared_cql_query_args
|
2433
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2434
|
+
ITEMID = 1
|
2435
|
+
VALUES = 2
|
2436
|
+
|
2437
|
+
FIELDS = {
|
2438
|
+
ITEMID => {:type => ::Thrift::Types::I32, :name => 'itemId'},
|
2439
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
|
2440
|
+
}
|
2441
|
+
|
2442
|
+
def struct_fields; FIELDS; end
|
2443
|
+
|
2444
|
+
def validate
|
2445
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field itemId is unset!') unless @itemId
|
2446
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
::Thrift::Struct.generate_accessors self
|
2450
|
+
end
|
2451
|
+
|
2452
|
+
class Execute_prepared_cql_query_result
|
2453
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2454
|
+
SUCCESS = 0
|
2455
|
+
IRE = 1
|
2456
|
+
UE = 2
|
2457
|
+
TE = 3
|
2458
|
+
SDE = 4
|
2459
|
+
|
2460
|
+
FIELDS = {
|
2461
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraCQL::Thrift::CqlResult},
|
2462
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException},
|
2463
|
+
UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraCQL::Thrift::UnavailableException},
|
2464
|
+
TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraCQL::Thrift::TimedOutException},
|
2465
|
+
SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraCQL::Thrift::SchemaDisagreementException}
|
2466
|
+
}
|
2467
|
+
|
2468
|
+
def struct_fields; FIELDS; end
|
2469
|
+
|
2470
|
+
def validate
|
2471
|
+
end
|
2472
|
+
|
2473
|
+
::Thrift::Struct.generate_accessors self
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
class Set_cql_version_args
|
2477
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2478
|
+
VERSION = 1
|
2479
|
+
|
2480
|
+
FIELDS = {
|
2481
|
+
VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'}
|
2482
|
+
}
|
2483
|
+
|
2484
|
+
def struct_fields; FIELDS; end
|
2485
|
+
|
2486
|
+
def validate
|
2487
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field version is unset!') unless @version
|
2488
|
+
end
|
2489
|
+
|
2490
|
+
::Thrift::Struct.generate_accessors self
|
2491
|
+
end
|
2492
|
+
|
2493
|
+
class Set_cql_version_result
|
2494
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2495
|
+
IRE = 1
|
2496
|
+
|
2497
|
+
FIELDS = {
|
2498
|
+
IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraCQL::Thrift::InvalidRequestException}
|
2499
|
+
}
|
2500
|
+
|
2501
|
+
def struct_fields; FIELDS; end
|
2502
|
+
|
2503
|
+
def validate
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
::Thrift::Struct.generate_accessors self
|
2507
|
+
end
|
2508
|
+
|
2509
|
+
end
|
2510
|
+
|
2511
|
+
end
|