cassandra 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +0,0 @@
1
- #
2
- # Autogenerated by Thrift
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'cassandra_types'
8
-
9
- module CassandraThrift
10
- end
@@ -1,225 +0,0 @@
1
- #
2
- # Autogenerated by Thrift
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
-
8
- module CassandraThrift
9
- module ConsistencyLevel
10
- ZERO = 0
11
- ONE = 1
12
- QUORUM = 2
13
- ALL = 3
14
- VALUE_MAP = {0 => "ZERO", 1 => "ONE", 2 => "QUORUM", 3 => "ALL"}
15
- VALID_VALUES = Set.new([ZERO, ONE, QUORUM, ALL]).freeze
16
- end
17
-
18
- class Column
19
- include ::Thrift::Struct
20
- NAME = 1
21
- VALUE = 2
22
- TIMESTAMP = 3
23
-
24
- ::Thrift::Struct.field_accessor self, :name, :value, :timestamp
25
- FIELDS = {
26
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
27
- VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
28
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
29
- }
30
-
31
- def struct_fields; FIELDS; end
32
-
33
- def validate
34
- end
35
-
36
- end
37
-
38
- class SuperColumn
39
- include ::Thrift::Struct
40
- NAME = 1
41
- COLUMNS = 2
42
-
43
- ::Thrift::Struct.field_accessor self, :name, :columns
44
- FIELDS = {
45
- NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
46
- COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::Column}}
47
- }
48
-
49
- def struct_fields; FIELDS; end
50
-
51
- def validate
52
- end
53
-
54
- end
55
-
56
- class ColumnOrSuperColumn
57
- include ::Thrift::Struct
58
- COLUMN = 1
59
- SUPER_COLUMN = 2
60
-
61
- ::Thrift::Struct.field_accessor self, :column, :super_column
62
- FIELDS = {
63
- COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraThrift::Column, :optional => true},
64
- SUPER_COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'super_column', :class => CassandraThrift::SuperColumn, :optional => true}
65
- }
66
-
67
- def struct_fields; FIELDS; end
68
-
69
- def validate
70
- end
71
-
72
- end
73
-
74
- class NotFoundException < ::Thrift::Exception
75
- include ::Thrift::Struct
76
-
77
- FIELDS = {
78
-
79
- }
80
-
81
- def struct_fields; FIELDS; end
82
-
83
- def validate
84
- end
85
-
86
- end
87
-
88
- class InvalidRequestException < ::Thrift::Exception
89
- include ::Thrift::Struct
90
- def initialize(message=nil)
91
- super()
92
- self.why = message
93
- end
94
-
95
- def message; why end
96
-
97
- WHY = 1
98
-
99
- ::Thrift::Struct.field_accessor self, :why
100
- FIELDS = {
101
- WHY => {:type => ::Thrift::Types::STRING, :name => 'why'}
102
- }
103
-
104
- def struct_fields; FIELDS; end
105
-
106
- def validate
107
- end
108
-
109
- end
110
-
111
- class UnavailableException < ::Thrift::Exception
112
- include ::Thrift::Struct
113
-
114
- FIELDS = {
115
-
116
- }
117
-
118
- def struct_fields; FIELDS; end
119
-
120
- def validate
121
- end
122
-
123
- end
124
-
125
- class ColumnParent
126
- include ::Thrift::Struct
127
- COLUMN_FAMILY = 3
128
- SUPER_COLUMN = 4
129
-
130
- ::Thrift::Struct.field_accessor self, :column_family, :super_column
131
- FIELDS = {
132
- COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
133
- SUPER_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'super_column', :optional => true}
134
- }
135
-
136
- def struct_fields; FIELDS; end
137
-
138
- def validate
139
- end
140
-
141
- end
142
-
143
- class ColumnPath
144
- include ::Thrift::Struct
145
- COLUMN_FAMILY = 3
146
- SUPER_COLUMN = 4
147
- COLUMN = 5
148
- TIMESTAMP = 6
149
-
150
- ::Thrift::Struct.field_accessor self, :column_family, :super_column, :column, :timestamp
151
- FIELDS = {
152
- COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
153
- SUPER_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'super_column', :optional => true},
154
- COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column', :optional => true},
155
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true}
156
- }
157
-
158
- def struct_fields; FIELDS; end
159
-
160
- def validate
161
- end
162
-
163
- end
164
-
165
- class SliceRange
166
- include ::Thrift::Struct
167
- START = 1
168
- FINISH = 2
169
- REVERSED = 3
170
- COUNT = 4
171
-
172
- ::Thrift::Struct.field_accessor self, :start, :finish, :reversed, :count
173
- FIELDS = {
174
- START => {:type => ::Thrift::Types::STRING, :name => 'start'},
175
- FINISH => {:type => ::Thrift::Types::STRING, :name => 'finish'},
176
- REVERSED => {:type => ::Thrift::Types::BOOL, :name => 'reversed', :default => false},
177
- COUNT => {:type => ::Thrift::Types::I32, :name => 'count', :default => 100}
178
- }
179
-
180
- def struct_fields; FIELDS; end
181
-
182
- def validate
183
- end
184
-
185
- end
186
-
187
- class SlicePredicate
188
- include ::Thrift::Struct
189
- COLUMN_NAMES = 1
190
- SLICE_RANGE = 2
191
-
192
- ::Thrift::Struct.field_accessor self, :column_names, :slice_range
193
- FIELDS = {
194
- COLUMN_NAMES => {:type => ::Thrift::Types::LIST, :name => 'column_names', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
195
- SLICE_RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'slice_range', :class => CassandraThrift::SliceRange, :optional => true}
196
- }
197
-
198
- def struct_fields; FIELDS; end
199
-
200
- def validate
201
- end
202
-
203
- end
204
-
205
- class BatchMutation
206
- include ::Thrift::Struct
207
- KEY = 1
208
- CFMAP = 2
209
- COLUMN_PATHS = 3
210
-
211
- ::Thrift::Struct.field_accessor self, :key, :cfmap, :column_paths
212
- FIELDS = {
213
- KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
214
- CFMAP => {:type => ::Thrift::Types::MAP, :name => 'cfmap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}}},
215
- COLUMN_PATHS => {:type => ::Thrift::Types::LIST, :name => 'column_paths', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnPath}}
216
- }
217
-
218
- def struct_fields; FIELDS; end
219
-
220
- def validate
221
- end
222
-
223
- end
224
-
225
- end