stat-analysis-query 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 93c7dc92b963ea3628d17a00efe86c68935c3667
4
+ data.tar.gz: cb71309c5bcdbb9913ef0b0a5887f8cad13b3d95
5
+ SHA512:
6
+ metadata.gz: 5499a54d8371172bf6bd73e7115a5c11fdff5c836e849abd9a6f72f5e973bef8875b347245ec1175820a2a8eecfd128d9f83d67ed9551e4859631a3b098b574b
7
+ data.tar.gz: 2b574da31385e9e75f6fca8c42a732bf5ba58290f539fc85fec970377eff47f288c13a49af95f246fe912798f694c7fd94f2762010ba879df9b3c7e038554b6a
@@ -0,0 +1,13 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'query_types'
9
+
10
+ module Stat
11
+ module Query
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'querymodel_types'
9
+
10
+
11
+ module Stat
12
+ module Query
13
+ end
14
+ end
@@ -0,0 +1,13 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'querymodel_types'
9
+
10
+ module Stat
11
+ module Query
12
+ end
13
+ end
@@ -0,0 +1,98 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Stat
10
+ module Query
11
+ class IndirectFollowResult
12
+ include ::Thrift::Struct, ::Thrift::Struct_Union
13
+ FID = 1
14
+ COUNT = 2
15
+ MIDS = 3
16
+
17
+ FIELDS = {
18
+ FID => {:type => ::Thrift::Types::I64, :name => 'fid'},
19
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count'},
20
+ MIDS => {:type => ::Thrift::Types::STRING, :name => 'mids'}
21
+ }
22
+
23
+ def struct_fields; FIELDS; end
24
+
25
+ def validate
26
+ end
27
+
28
+ ::Thrift::Struct.generate_accessors self
29
+ end
30
+
31
+ class HotResult
32
+ include ::Thrift::Struct, ::Thrift::Struct_Union
33
+ RETCODE = 1
34
+ COUNT = 2
35
+ IDS = 3
36
+
37
+ FIELDS = {
38
+ RETCODE => {:type => ::Thrift::Types::I32, :name => 'retCode'},
39
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count'},
40
+ IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::I64}}
41
+ }
42
+
43
+ def struct_fields; FIELDS; end
44
+
45
+ def validate
46
+ end
47
+
48
+ ::Thrift::Struct.generate_accessors self
49
+ end
50
+
51
+ class Category
52
+ include ::Thrift::Struct, ::Thrift::Struct_Union
53
+ ID = 1
54
+ NAME = 2
55
+ TITLE = 3
56
+ IS_CHECKED = 4
57
+ ORDER_NUM = 5
58
+ COVER = 6
59
+ TAGS = 7
60
+
61
+ FIELDS = {
62
+ ID => {:type => ::Thrift::Types::I32, :name => 'id'},
63
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
64
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
65
+ IS_CHECKED => {:type => ::Thrift::Types::BOOL, :name => 'is_checked', :optional => true},
66
+ ORDER_NUM => {:type => ::Thrift::Types::I32, :name => 'order_num', :optional => true},
67
+ COVER => {:type => ::Thrift::Types::STRING, :name => 'cover', :optional => true},
68
+ TAGS => {:type => ::Thrift::Types::LIST, :name => 'tags', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
69
+ }
70
+
71
+ def struct_fields; FIELDS; end
72
+
73
+ def validate
74
+ end
75
+
76
+ ::Thrift::Struct.generate_accessors self
77
+ end
78
+
79
+ class Tag
80
+ include ::Thrift::Struct, ::Thrift::Struct_Union
81
+ NAME = 1
82
+ POSITION = 2
83
+
84
+ FIELDS = {
85
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
86
+ POSITION => {:type => ::Thrift::Types::I32, :name => 'position'}
87
+ }
88
+
89
+ def struct_fields; FIELDS; end
90
+
91
+ def validate
92
+ end
93
+
94
+ ::Thrift::Struct.generate_accessors self
95
+ end
96
+
97
+ end
98
+ end
@@ -0,0 +1,9 @@
1
+ #encoding: UTF-8
2
+ require 'query_constants'
3
+ require 'query_types'
4
+ require 'querymodel_constants'
5
+ require 'query_types'
6
+ require 't_backend_service'
7
+ require 't_recommend_service'
8
+ require 't_discover_service'
9
+ require 't_hot_service'
@@ -0,0 +1,452 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'query_types'
9
+
10
+ module Stat
11
+ module Query
12
+ module TBackendService
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def delHotRadio(id, radios)
17
+ send_delHotRadio(id, radios)
18
+ end
19
+
20
+ def send_delHotRadio(id, radios)
21
+ send_message('delHotRadio', DelHotRadio_args, :id => id, :radios => radios)
22
+ end
23
+ def delHotSound(id, tagName, sounds)
24
+ send_delHotSound(id, tagName, sounds)
25
+ end
26
+
27
+ def send_delHotSound(id, tagName, sounds)
28
+ send_message('delHotSound', DelHotSound_args, :id => id, :tagName => tagName, :sounds => sounds)
29
+ end
30
+ def delNewv(id, newvs)
31
+ send_delNewv(id, newvs)
32
+ end
33
+
34
+ def send_delNewv(id, newvs)
35
+ send_message('delNewv', DelNewv_args, :id => id, :newvs => newvs)
36
+ end
37
+ def delMostFollowedUser(id, users)
38
+ send_delMostFollowedUser(id, users)
39
+ end
40
+
41
+ def send_delMostFollowedUser(id, users)
42
+ send_message('delMostFollowedUser', DelMostFollowedUser_args, :id => id, :users => users)
43
+ end
44
+ def delMostFavoritSound(id, tagName, sounds)
45
+ send_delMostFavoritSound(id, tagName, sounds)
46
+ end
47
+
48
+ def send_delMostFavoritSound(id, tagName, sounds)
49
+ send_message('delMostFavoritSound', DelMostFavoritSound_args, :id => id, :tagName => tagName, :sounds => sounds)
50
+ end
51
+ def delRecentVTrack(id, tagName, sounds)
52
+ send_delRecentVTrack(id, tagName, sounds)
53
+ end
54
+
55
+ def send_delRecentVTrack(id, tagName, sounds)
56
+ send_message('delRecentVTrack', DelRecentVTrack_args, :id => id, :tagName => tagName, :sounds => sounds)
57
+ end
58
+ def delDayHotRadio(id, radios)
59
+ send_delDayHotRadio(id, radios)
60
+ end
61
+
62
+ def send_delDayHotRadio(id, radios)
63
+ send_message('delDayHotRadio', DelDayHotRadio_args, :id => id, :radios => radios)
64
+ end
65
+ def delDayHotSound(id, tagName, sounds)
66
+ send_delDayHotSound(id, tagName, sounds)
67
+ end
68
+
69
+ def send_delDayHotSound(id, tagName, sounds)
70
+ send_message('delDayHotSound', DelDayHotSound_args, :id => id, :tagName => tagName, :sounds => sounds)
71
+ end
72
+ def delHotAlbum(id, tagName, albums)
73
+ send_delHotAlbum(id, tagName, albums)
74
+ end
75
+
76
+ def send_delHotAlbum(id, tagName, albums)
77
+ send_message('delHotAlbum', DelHotAlbum_args, :id => id, :tagName => tagName, :albums => albums)
78
+ end
79
+ end
80
+
81
+ class Processor
82
+ include ::Thrift::Processor
83
+
84
+ def process_delHotRadio(seqid, iprot, oprot)
85
+ args = read_args(iprot, DelHotRadio_args)
86
+ @handler.delHotRadio(args.id, args.radios)
87
+ return
88
+ end
89
+
90
+ def process_delHotSound(seqid, iprot, oprot)
91
+ args = read_args(iprot, DelHotSound_args)
92
+ @handler.delHotSound(args.id, args.tagName, args.sounds)
93
+ return
94
+ end
95
+
96
+ def process_delNewv(seqid, iprot, oprot)
97
+ args = read_args(iprot, DelNewv_args)
98
+ @handler.delNewv(args.id, args.newvs)
99
+ return
100
+ end
101
+
102
+ def process_delMostFollowedUser(seqid, iprot, oprot)
103
+ args = read_args(iprot, DelMostFollowedUser_args)
104
+ @handler.delMostFollowedUser(args.id, args.users)
105
+ return
106
+ end
107
+
108
+ def process_delMostFavoritSound(seqid, iprot, oprot)
109
+ args = read_args(iprot, DelMostFavoritSound_args)
110
+ @handler.delMostFavoritSound(args.id, args.tagName, args.sounds)
111
+ return
112
+ end
113
+
114
+ def process_delRecentVTrack(seqid, iprot, oprot)
115
+ args = read_args(iprot, DelRecentVTrack_args)
116
+ @handler.delRecentVTrack(args.id, args.tagName, args.sounds)
117
+ return
118
+ end
119
+
120
+ def process_delDayHotRadio(seqid, iprot, oprot)
121
+ args = read_args(iprot, DelDayHotRadio_args)
122
+ @handler.delDayHotRadio(args.id, args.radios)
123
+ return
124
+ end
125
+
126
+ def process_delDayHotSound(seqid, iprot, oprot)
127
+ args = read_args(iprot, DelDayHotSound_args)
128
+ @handler.delDayHotSound(args.id, args.tagName, args.sounds)
129
+ return
130
+ end
131
+
132
+ def process_delHotAlbum(seqid, iprot, oprot)
133
+ args = read_args(iprot, DelHotAlbum_args)
134
+ @handler.delHotAlbum(args.id, args.tagName, args.albums)
135
+ return
136
+ end
137
+
138
+ end
139
+
140
+ # HELPER FUNCTIONS AND STRUCTURES
141
+
142
+ class DelHotRadio_args
143
+ include ::Thrift::Struct, ::Thrift::Struct_Union
144
+ ID = 1
145
+ RADIOS = 2
146
+
147
+ FIELDS = {
148
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
149
+ RADIOS => {:type => ::Thrift::Types::LIST, :name => 'radios', :element => {:type => ::Thrift::Types::I64}}
150
+ }
151
+
152
+ def struct_fields; FIELDS; end
153
+
154
+ def validate
155
+ end
156
+
157
+ ::Thrift::Struct.generate_accessors self
158
+ end
159
+
160
+ class DelHotRadio_result
161
+ include ::Thrift::Struct, ::Thrift::Struct_Union
162
+
163
+ FIELDS = {
164
+
165
+ }
166
+
167
+ def struct_fields; FIELDS; end
168
+
169
+ def validate
170
+ end
171
+
172
+ ::Thrift::Struct.generate_accessors self
173
+ end
174
+
175
+ class DelHotSound_args
176
+ include ::Thrift::Struct, ::Thrift::Struct_Union
177
+ ID = 1
178
+ TAGNAME = 2
179
+ SOUNDS = 3
180
+
181
+ FIELDS = {
182
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
183
+ TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
184
+ SOUNDS => {:type => ::Thrift::Types::LIST, :name => 'sounds', :element => {:type => ::Thrift::Types::I64}}
185
+ }
186
+
187
+ def struct_fields; FIELDS; end
188
+
189
+ def validate
190
+ end
191
+
192
+ ::Thrift::Struct.generate_accessors self
193
+ end
194
+
195
+ class DelHotSound_result
196
+ include ::Thrift::Struct, ::Thrift::Struct_Union
197
+
198
+ FIELDS = {
199
+
200
+ }
201
+
202
+ def struct_fields; FIELDS; end
203
+
204
+ def validate
205
+ end
206
+
207
+ ::Thrift::Struct.generate_accessors self
208
+ end
209
+
210
+ class DelNewv_args
211
+ include ::Thrift::Struct, ::Thrift::Struct_Union
212
+ ID = 1
213
+ NEWVS = 2
214
+
215
+ FIELDS = {
216
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
217
+ NEWVS => {:type => ::Thrift::Types::LIST, :name => 'newvs', :element => {:type => ::Thrift::Types::I64}}
218
+ }
219
+
220
+ def struct_fields; FIELDS; end
221
+
222
+ def validate
223
+ end
224
+
225
+ ::Thrift::Struct.generate_accessors self
226
+ end
227
+
228
+ class DelNewv_result
229
+ include ::Thrift::Struct, ::Thrift::Struct_Union
230
+
231
+ FIELDS = {
232
+
233
+ }
234
+
235
+ def struct_fields; FIELDS; end
236
+
237
+ def validate
238
+ end
239
+
240
+ ::Thrift::Struct.generate_accessors self
241
+ end
242
+
243
+ class DelMostFollowedUser_args
244
+ include ::Thrift::Struct, ::Thrift::Struct_Union
245
+ ID = 1
246
+ USERS = 2
247
+
248
+ FIELDS = {
249
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
250
+ USERS => {:type => ::Thrift::Types::LIST, :name => 'users', :element => {:type => ::Thrift::Types::I64}}
251
+ }
252
+
253
+ def struct_fields; FIELDS; end
254
+
255
+ def validate
256
+ end
257
+
258
+ ::Thrift::Struct.generate_accessors self
259
+ end
260
+
261
+ class DelMostFollowedUser_result
262
+ include ::Thrift::Struct, ::Thrift::Struct_Union
263
+
264
+ FIELDS = {
265
+
266
+ }
267
+
268
+ def struct_fields; FIELDS; end
269
+
270
+ def validate
271
+ end
272
+
273
+ ::Thrift::Struct.generate_accessors self
274
+ end
275
+
276
+ class DelMostFavoritSound_args
277
+ include ::Thrift::Struct, ::Thrift::Struct_Union
278
+ ID = 1
279
+ TAGNAME = 2
280
+ SOUNDS = 3
281
+
282
+ FIELDS = {
283
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
284
+ TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
285
+ SOUNDS => {:type => ::Thrift::Types::LIST, :name => 'sounds', :element => {:type => ::Thrift::Types::I64}}
286
+ }
287
+
288
+ def struct_fields; FIELDS; end
289
+
290
+ def validate
291
+ end
292
+
293
+ ::Thrift::Struct.generate_accessors self
294
+ end
295
+
296
+ class DelMostFavoritSound_result
297
+ include ::Thrift::Struct, ::Thrift::Struct_Union
298
+
299
+ FIELDS = {
300
+
301
+ }
302
+
303
+ def struct_fields; FIELDS; end
304
+
305
+ def validate
306
+ end
307
+
308
+ ::Thrift::Struct.generate_accessors self
309
+ end
310
+
311
+ class DelRecentVTrack_args
312
+ include ::Thrift::Struct, ::Thrift::Struct_Union
313
+ ID = 1
314
+ TAGNAME = 2
315
+ SOUNDS = 3
316
+
317
+ FIELDS = {
318
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
319
+ TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
320
+ SOUNDS => {:type => ::Thrift::Types::LIST, :name => 'sounds', :element => {:type => ::Thrift::Types::I64}}
321
+ }
322
+
323
+ def struct_fields; FIELDS; end
324
+
325
+ def validate
326
+ end
327
+
328
+ ::Thrift::Struct.generate_accessors self
329
+ end
330
+
331
+ class DelRecentVTrack_result
332
+ include ::Thrift::Struct, ::Thrift::Struct_Union
333
+
334
+ FIELDS = {
335
+
336
+ }
337
+
338
+ def struct_fields; FIELDS; end
339
+
340
+ def validate
341
+ end
342
+
343
+ ::Thrift::Struct.generate_accessors self
344
+ end
345
+
346
+ class DelDayHotRadio_args
347
+ include ::Thrift::Struct, ::Thrift::Struct_Union
348
+ ID = 1
349
+ RADIOS = 2
350
+
351
+ FIELDS = {
352
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
353
+ RADIOS => {:type => ::Thrift::Types::LIST, :name => 'radios', :element => {:type => ::Thrift::Types::I64}}
354
+ }
355
+
356
+ def struct_fields; FIELDS; end
357
+
358
+ def validate
359
+ end
360
+
361
+ ::Thrift::Struct.generate_accessors self
362
+ end
363
+
364
+ class DelDayHotRadio_result
365
+ include ::Thrift::Struct, ::Thrift::Struct_Union
366
+
367
+ FIELDS = {
368
+
369
+ }
370
+
371
+ def struct_fields; FIELDS; end
372
+
373
+ def validate
374
+ end
375
+
376
+ ::Thrift::Struct.generate_accessors self
377
+ end
378
+
379
+ class DelDayHotSound_args
380
+ include ::Thrift::Struct, ::Thrift::Struct_Union
381
+ ID = 1
382
+ TAGNAME = 2
383
+ SOUNDS = 3
384
+
385
+ FIELDS = {
386
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
387
+ TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
388
+ SOUNDS => {:type => ::Thrift::Types::LIST, :name => 'sounds', :element => {:type => ::Thrift::Types::I64}}
389
+ }
390
+
391
+ def struct_fields; FIELDS; end
392
+
393
+ def validate
394
+ end
395
+
396
+ ::Thrift::Struct.generate_accessors self
397
+ end
398
+
399
+ class DelDayHotSound_result
400
+ include ::Thrift::Struct, ::Thrift::Struct_Union
401
+
402
+ FIELDS = {
403
+
404
+ }
405
+
406
+ def struct_fields; FIELDS; end
407
+
408
+ def validate
409
+ end
410
+
411
+ ::Thrift::Struct.generate_accessors self
412
+ end
413
+
414
+ class DelHotAlbum_args
415
+ include ::Thrift::Struct, ::Thrift::Struct_Union
416
+ ID = 1
417
+ TAGNAME = 2
418
+ ALBUMS = 3
419
+
420
+ FIELDS = {
421
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
422
+ TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
423
+ ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
424
+ }
425
+
426
+ def struct_fields; FIELDS; end
427
+
428
+ def validate
429
+ end
430
+
431
+ ::Thrift::Struct.generate_accessors self
432
+ end
433
+
434
+ class DelHotAlbum_result
435
+ include ::Thrift::Struct, ::Thrift::Struct_Union
436
+
437
+ FIELDS = {
438
+
439
+ }
440
+
441
+ def struct_fields; FIELDS; end
442
+
443
+ def validate
444
+ end
445
+
446
+ ::Thrift::Struct.generate_accessors self
447
+ end
448
+
449
+ end
450
+
451
+ end
452
+ end