cassandra_client 0.2.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,15 +5,15 @@
5
5
  #
6
6
 
7
7
 
8
- class Column_t
8
+ class Column
9
9
  include ::Thrift::Struct
10
- COLUMNNAME = 1
10
+ NAME = 1
11
11
  VALUE = 2
12
12
  TIMESTAMP = 3
13
13
 
14
- ::Thrift::Struct.field_accessor self, :columnName, :value, :timestamp
14
+ ::Thrift::Struct.field_accessor self, :name, :value, :timestamp
15
15
  FIELDS = {
16
- COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
16
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
17
17
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
18
18
  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
19
19
  }
@@ -25,17 +25,15 @@ class Column_t
25
25
 
26
26
  end
27
27
 
28
- class Batch_mutation_t
28
+ class BatchMutation
29
29
  include ::Thrift::Struct
30
- TABLE = 1
31
- KEY = 2
32
- CFMAP = 3
30
+ KEY = 1
31
+ CFMAP = 2
33
32
 
34
- ::Thrift::Struct.field_accessor self, :table, :key, :cfmap
33
+ ::Thrift::Struct.field_accessor self, :key, :cfmap
35
34
  FIELDS = {
36
- TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
37
35
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
38
- CFMAP => {:type => ::Thrift::Types::MAP, :name => 'cfmap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => Column_t}}}
36
+ CFMAP => {:type => ::Thrift::Types::MAP, :name => 'cfmap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => Column}}}
39
37
  }
40
38
 
41
39
  def struct_fields; FIELDS; end
@@ -45,7 +43,7 @@ class Batch_mutation_t
45
43
 
46
44
  end
47
45
 
48
- class SuperColumn_t
46
+ class SuperColumn
49
47
  include ::Thrift::Struct
50
48
  NAME = 1
51
49
  COLUMNS = 2
@@ -53,7 +51,7 @@ class SuperColumn_t
53
51
  ::Thrift::Struct.field_accessor self, :name, :columns
54
52
  FIELDS = {
55
53
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
56
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => Column_t}}
54
+ COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => Column}}
57
55
  }
58
56
 
59
57
  def struct_fields; FIELDS; end
@@ -63,17 +61,15 @@ class SuperColumn_t
63
61
 
64
62
  end
65
63
 
66
- class Batch_mutation_super_t
64
+ class BatchMutationSuper
67
65
  include ::Thrift::Struct
68
- TABLE = 1
69
- KEY = 2
70
- CFMAP = 3
66
+ KEY = 1
67
+ CFMAP = 2
71
68
 
72
- ::Thrift::Struct.field_accessor self, :table, :key, :cfmap
69
+ ::Thrift::Struct.field_accessor self, :key, :cfmap
73
70
  FIELDS = {
74
- TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
75
71
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
76
- CFMAP => {:type => ::Thrift::Types::MAP, :name => 'cfmap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => SuperColumn_t}}}
72
+ CFMAP => {:type => ::Thrift::Types::MAP, :name => 'cfmap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => SuperColumn}}}
77
73
  }
78
74
 
79
75
  def struct_fields; FIELDS; end
@@ -83,17 +79,17 @@ class Batch_mutation_super_t
83
79
 
84
80
  end
85
81
 
86
- class CqlResult_t
82
+ class CqlResult
87
83
  include ::Thrift::Struct
88
- ERRORCODE = 1
89
- ERRORTXT = 2
90
- RESULTSET = 3
84
+ ERROR_CODE = 1
85
+ ERROR_TXT = 2
86
+ RESULT_SET = 3
91
87
 
92
- ::Thrift::Struct.field_accessor self, :errorCode, :errorTxt, :resultSet
88
+ ::Thrift::Struct.field_accessor self, :error_code, :error_txt, :result_set
93
89
  FIELDS = {
94
- ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode'},
95
- ERRORTXT => {:type => ::Thrift::Types::STRING, :name => 'errorTxt'},
96
- RESULTSET => {:type => ::Thrift::Types::LIST, :name => 'resultSet', :element => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}}
90
+ ERROR_CODE => {:type => ::Thrift::Types::I32, :name => 'error_code'},
91
+ ERROR_TXT => {:type => ::Thrift::Types::STRING, :name => 'error_txt'},
92
+ RESULT_SET => {:type => ::Thrift::Types::LIST, :name => 'result_set', :element => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}}
97
93
  }
98
94
 
99
95
  def struct_fields; FIELDS; end
@@ -154,3 +150,79 @@ class UnavailableException < ::Thrift::Exception
154
150
 
155
151
  end
156
152
 
153
+ class ColumnParent
154
+ include ::Thrift::Struct
155
+ COLUMN_FAMILY = 3
156
+ SUPER_COLUMN = 4
157
+
158
+ ::Thrift::Struct.field_accessor self, :column_family, :super_column
159
+ FIELDS = {
160
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
161
+ SUPER_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'super_column', :optional => true}
162
+ }
163
+
164
+ def struct_fields; FIELDS; end
165
+
166
+ def validate
167
+ end
168
+
169
+ end
170
+
171
+ class ColumnPath
172
+ include ::Thrift::Struct
173
+ COLUMN_FAMILY = 3
174
+ SUPER_COLUMN = 4
175
+ COLUMN = 5
176
+
177
+ ::Thrift::Struct.field_accessor self, :column_family, :super_column, :column
178
+ FIELDS = {
179
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
180
+ SUPER_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'super_column', :optional => true},
181
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column'}
182
+ }
183
+
184
+ def struct_fields; FIELDS; end
185
+
186
+ def validate
187
+ end
188
+
189
+ end
190
+
191
+ class SuperColumnPath
192
+ include ::Thrift::Struct
193
+ COLUMN_FAMILY = 3
194
+ SUPER_COLUMN = 4
195
+
196
+ ::Thrift::Struct.field_accessor self, :column_family, :super_column
197
+ FIELDS = {
198
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
199
+ SUPER_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'super_column'}
200
+ }
201
+
202
+ def struct_fields; FIELDS; end
203
+
204
+ def validate
205
+ end
206
+
207
+ end
208
+
209
+ class ColumnPathOrParent
210
+ include ::Thrift::Struct
211
+ COLUMN_FAMILY = 3
212
+ SUPER_COLUMN = 4
213
+ COLUMN = 5
214
+
215
+ ::Thrift::Struct.field_accessor self, :column_family, :super_column, :column
216
+ FIELDS = {
217
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
218
+ SUPER_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'super_column', :optional => true},
219
+ COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :optional => true}
220
+ }
221
+
222
+ def struct_fields; FIELDS; end
223
+
224
+ def validate
225
+ end
226
+
227
+ end
228
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandra_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Weaver
@@ -30,7 +30,7 @@ cert_chain:
30
30
  yZ0=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-07-06 00:00:00 -07:00
33
+ date: 2009-07-16 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- #���pd��w2F�='��H.�1 w3P[H��a�M�<�
1
+ �ܐnJ��� ���w�o"���!`��V��DC$���T�-!�Ip1�&�?԰fWg9'q;Arx�CE��S�/S�.�$�E�~8�U�Ŷ����:���Q<o�l
2
+ )�Uw$��