|
@@ -31,6 +31,7 @@ public class FeatureService {
|
|
|
|
|
|
for (String vid : vidList) {
|
|
for (String vid : vidList) {
|
|
|
|
|
|
|
|
+
|
|
protos.add(genWithVid("alg_vid_feature_all_exp", vid));
|
|
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_return", vid));
|
|
protos.add(genWithVid("alg_vid_feature_all_share", vid));
|
|
protos.add(genWithVid("alg_vid_feature_all_share", vid));
|
|
@@ -44,17 +45,29 @@ public class FeatureService {
|
|
protos.add(genWithVid("alg_vid_feature_feed_play", 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_head_play", vid));
|
|
protos.add(genWithVid("alg_vid_feature_share2return", 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_exp", vid, appType));
|
|
protos.add(genWithVidAndAppType("alg_vid_feature_feed_apptype_root_return", 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(genWithVidAndAppType("alg_vid_feature_feed_apptype_root_share", vid, appType));
|
|
|
|
|
|
|
|
+
|
|
protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_exp", vid, province));
|
|
protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_exp", vid, province));
|
|
protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_root_return", vid, province));
|
|
protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_root_return", vid, province));
|
|
protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_root_share", vid, province));
|
|
protos.add(genWithVidAndProvince("alg_vid_feature_feed_province_root_share", vid, province));
|
|
|
|
|
|
|
|
+
|
|
|
|
+ protos.add(genWithVidAndHeadVid("", vid, headVid));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ protos.add(genWithVidAndProvince("", mid));
|
|
|
|
+ protos.add(genWithVidAndProvince("", mid));
|
|
|
|
+ protos.add(genWithVidAndProvince("", mid));
|
|
|
|
+ protos.add(genWithVidAndProvince("", mid));
|
|
|
|
+ protos.add(genWithVidAndProvince("", mid));
|
|
|
|
+
|
|
|
|
+
|
|
Map<String, String> result = remoteService.getFeature(protos);
|
|
Map<String, String> result = remoteService.getFeature(protos);
|
|
|
|
|
|
Map<String, Map<String, Map<String, String>>> data = new HashMap<>();
|
|
Map<String, Map<String, Map<String, String>>> data = new HashMap<>();
|
|
@@ -105,5 +118,22 @@ public class FeatureService {
|
|
.build();
|
|
.build();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private FeatureKeyProto genWithVidAndHeadVid(String table, String vid, String headVid) {
|
|
|
|
+ return FeatureKeyProto.newBuilder()
|
|
|
|
+ .setUniqueKey(String.format(ukFormat, table, vid))
|
|
|
|
+ .setTableName(table)
|
|
|
|
+ .putFieldValue("vid", vid)
|
|
|
|
+ .putFieldValue("headVid", )
|
|
|
|
+ .build();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private FeatureKeyProto genWithMid(String table, String mid) {
|
|
|
|
+ return FeatureKeyProto.newBuilder()
|
|
|
|
+ .setUniqueKey(String.format(ukFormat, table, mid))
|
|
|
|
+ .setTableName(table)
|
|
|
|
+ .putFieldValue("mid", )
|
|
|
|
+ .build();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|