ソースを参照

并行获取特征

丁云鹏 10 ヶ月 前
コミット
283ccea38d

+ 22 - 1
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/FeatureService.java

@@ -30,10 +30,31 @@ public class FeatureService {
         List<FeatureKeyProto> protos = new ArrayList<>();
 
         for (String vid : vidList) {
+            // TODO 补充其他特征
             protos.add(genWithVid("alg_vid_feature_all_exp", vid));
+            protos.add(genWithVid("alg_vid_feature_all_return", vid));
+            protos.add(genWithVid("alg_vid_feature_all_share", vid));
+            protos.add(genWithVid("alg_vid_feature_exp2share", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_flow_exp", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_flow_root_return", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_flow_root_share", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_noflow_exp", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_noflow_root_return", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_noflow_root_share", vid));
+            protos.add(genWithVid("alg_vid_feature_feed_play", vid));
+            protos.add(genWithVid("alg_vid_feature_head_play", vid));
+            protos.add(genWithVid("alg_vid_feature_share2return", vid));
+
+
+            protos.add(genWithVidAndAppType("alg_vid_feature_feed_apptype_exp", vid, apptype));
             protos.add(genWithVidAndAppType("alg_vid_feature_feed_apptype_root_return", vid, apptype));
+            protos.add(genWithVidAndAppType("alg_vid_feature_feed_apptype_root_share", vid, apptype));
+
+
             protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_exp", vid, province));
-            // TODO 补充其他特征
+            protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_root_return", vid, province));
+            protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_root_share", vid, province));
+
         }
 
         Map<String, String> result = remoteService.getFeature(protos);