stat-analysis-query 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93c7dc92b963ea3628d17a00efe86c68935c3667
4
- data.tar.gz: cb71309c5bcdbb9913ef0b0a5887f8cad13b3d95
3
+ metadata.gz: 75c7b569584d266cb1bfa7589d381f0f682121d3
4
+ data.tar.gz: 6caa3689584daac683828ae5616ac9c3c97356b3
5
5
  SHA512:
6
- metadata.gz: 5499a54d8371172bf6bd73e7115a5c11fdff5c836e849abd9a6f72f5e973bef8875b347245ec1175820a2a8eecfd128d9f83d67ed9551e4859631a3b098b574b
7
- data.tar.gz: 2b574da31385e9e75f6fca8c42a732bf5ba58290f539fc85fec970377eff47f288c13a49af95f246fe912798f694c7fd94f2762010ba879df9b3c7e038554b6a
6
+ metadata.gz: 7610354ed01c4a1ddc4bb200e961bd0da9c420e5ce8252d42efa490ad7f66cdc24c32a7bcfcf79072486b8d77071b77166d53c1e7da2f784827515adc8801457
7
+ data.tar.gz: cf8803a2320ba80b40385babf9b83d353193812c8d24db35f1c1501200e089587938b0dbc37ae7ebd9ffe842f6026fc15f878b3bc1a060abee8a7eeef0f211b7
@@ -80,10 +80,12 @@ module Stat
80
80
  include ::Thrift::Struct, ::Thrift::Struct_Union
81
81
  NAME = 1
82
82
  POSITION = 2
83
+ COVER = 3
83
84
 
84
85
  FIELDS = {
85
86
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
86
- POSITION => {:type => ::Thrift::Types::I32, :name => 'position'}
87
+ POSITION => {:type => ::Thrift::Types::I32, :name => 'position'},
88
+ COVER => {:type => ::Thrift::Types::STRING, :name => 'cover', :optional => true}
87
89
  }
88
90
 
89
91
  def struct_fields; FIELDS; end
@@ -170,6 +170,36 @@ module Stat
170
170
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'selectMobileTrackTag failed: unknown result')
171
171
  end
172
172
 
173
+ def selectMobileAlbumTagWithCover(categoryId, device, scale)
174
+ send_selectMobileAlbumTagWithCover(categoryId, device, scale)
175
+ return recv_selectMobileAlbumTagWithCover()
176
+ end
177
+
178
+ def send_selectMobileAlbumTagWithCover(categoryId, device, scale)
179
+ send_message('selectMobileAlbumTagWithCover', SelectMobileAlbumTagWithCover_args, :categoryId => categoryId, :device => device, :scale => scale)
180
+ end
181
+
182
+ def recv_selectMobileAlbumTagWithCover()
183
+ result = receive_message(SelectMobileAlbumTagWithCover_result)
184
+ return result.success unless result.success.nil?
185
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'selectMobileAlbumTagWithCover failed: unknown result')
186
+ end
187
+
188
+ def selectMobileTrackTagWithCover(categoryId, device, scale)
189
+ send_selectMobileTrackTagWithCover(categoryId, device, scale)
190
+ return recv_selectMobileTrackTagWithCover()
191
+ end
192
+
193
+ def send_selectMobileTrackTagWithCover(categoryId, device, scale)
194
+ send_message('selectMobileTrackTagWithCover', SelectMobileTrackTagWithCover_args, :categoryId => categoryId, :device => device, :scale => scale)
195
+ end
196
+
197
+ def recv_selectMobileTrackTagWithCover()
198
+ result = receive_message(SelectMobileTrackTagWithCover_result)
199
+ return result.success unless result.success.nil?
200
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'selectMobileTrackTagWithCover failed: unknown result')
201
+ end
202
+
173
203
  def selectMobileMultiCategories(categoryIdAndVersions, device, scale)
174
204
  send_selectMobileMultiCategories(categoryIdAndVersions, device, scale)
175
205
  return recv_selectMobileMultiCategories()
@@ -266,6 +296,20 @@ module Stat
266
296
  write_result(result, oprot, 'selectMobileTrackTag', seqid)
267
297
  end
268
298
 
299
+ def process_selectMobileAlbumTagWithCover(seqid, iprot, oprot)
300
+ args = read_args(iprot, SelectMobileAlbumTagWithCover_args)
301
+ result = SelectMobileAlbumTagWithCover_result.new()
302
+ result.success = @handler.selectMobileAlbumTagWithCover(args.categoryId, args.device, args.scale)
303
+ write_result(result, oprot, 'selectMobileAlbumTagWithCover', seqid)
304
+ end
305
+
306
+ def process_selectMobileTrackTagWithCover(seqid, iprot, oprot)
307
+ args = read_args(iprot, SelectMobileTrackTagWithCover_args)
308
+ result = SelectMobileTrackTagWithCover_result.new()
309
+ result.success = @handler.selectMobileTrackTagWithCover(args.categoryId, args.device, args.scale)
310
+ write_result(result, oprot, 'selectMobileTrackTagWithCover', seqid)
311
+ end
312
+
269
313
  def process_selectMobileMultiCategories(seqid, iprot, oprot)
270
314
  args = read_args(iprot, SelectMobileMultiCategories_args)
271
315
  result = SelectMobileMultiCategories_result.new()
@@ -631,6 +675,78 @@ module Stat
631
675
  ::Thrift::Struct.generate_accessors self
632
676
  end
633
677
 
678
+ class SelectMobileAlbumTagWithCover_args
679
+ include ::Thrift::Struct, ::Thrift::Struct_Union
680
+ CATEGORYID = 1
681
+ DEVICE = 2
682
+ SCALE = 3
683
+
684
+ FIELDS = {
685
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
686
+ DEVICE => {:type => ::Thrift::Types::STRING, :name => 'device'},
687
+ SCALE => {:type => ::Thrift::Types::I32, :name => 'scale'}
688
+ }
689
+
690
+ def struct_fields; FIELDS; end
691
+
692
+ def validate
693
+ end
694
+
695
+ ::Thrift::Struct.generate_accessors self
696
+ end
697
+
698
+ class SelectMobileAlbumTagWithCover_result
699
+ include ::Thrift::Struct, ::Thrift::Struct_Union
700
+ SUCCESS = 0
701
+
702
+ FIELDS = {
703
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Stat::Query::Tag}}
704
+ }
705
+
706
+ def struct_fields; FIELDS; end
707
+
708
+ def validate
709
+ end
710
+
711
+ ::Thrift::Struct.generate_accessors self
712
+ end
713
+
714
+ class SelectMobileTrackTagWithCover_args
715
+ include ::Thrift::Struct, ::Thrift::Struct_Union
716
+ CATEGORYID = 1
717
+ DEVICE = 2
718
+ SCALE = 3
719
+
720
+ FIELDS = {
721
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
722
+ DEVICE => {:type => ::Thrift::Types::STRING, :name => 'device'},
723
+ SCALE => {:type => ::Thrift::Types::I32, :name => 'scale'}
724
+ }
725
+
726
+ def struct_fields; FIELDS; end
727
+
728
+ def validate
729
+ end
730
+
731
+ ::Thrift::Struct.generate_accessors self
732
+ end
733
+
734
+ class SelectMobileTrackTagWithCover_result
735
+ include ::Thrift::Struct, ::Thrift::Struct_Union
736
+ SUCCESS = 0
737
+
738
+ FIELDS = {
739
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Stat::Query::Tag}}
740
+ }
741
+
742
+ def struct_fields; FIELDS; end
743
+
744
+ def validate
745
+ end
746
+
747
+ ::Thrift::Struct.generate_accessors self
748
+ end
749
+
634
750
  class SelectMobileMultiCategories_args
635
751
  include ::Thrift::Struct, ::Thrift::Struct_Union
636
752
  CATEGORYIDANDVERSIONS = 1
@@ -17,7 +17,7 @@ class QueryTest < Test::Unit::TestCase
17
17
  'size' => 1,
18
18
  'multiplexed' => true,
19
19
  'client_class' => 'Stat::Query::TDiscoverService::Client',
20
- 'servers' => '127.0.0.1:9002'
20
+ 'servers' => '192.168.3.161:9002'
21
21
  }
22
22
 
23
23
  @client = ThriftClient.new(config)
data/test/hot_test.rb CHANGED
@@ -17,7 +17,7 @@ class QueryTest < Test::Unit::TestCase
17
17
  'size' => 1,
18
18
  'multiplexed' => true,
19
19
  'client_class' => 'Stat::Query::THotService::Client',
20
- 'servers' => '127.0.0.1:9002'
20
+ 'servers' => '192.168.3.161:9002'
21
21
  }
22
22
 
23
23
  @client = ThriftClient.new(config)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stat-analysis-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ted Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-06 00:00:00.000000000 Z
11
+ date: 2013-10-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: stat-analysis-query
14
14
  email: ted@ximalaya.com