|
@@ -403,7 +403,7 @@ public class FeatureService {
|
|
|
return feature.getUserFeature().getOrDefault("alg_recsys_user_social_recall_feature_day", new HashMap<>());
|
|
return feature.getUserFeature().getOrDefault("alg_recsys_user_social_recall_feature_day", new HashMap<>());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Feature getFeatureByProto(List<FeatureKeyProto> protos) {
|
|
|
|
|
|
|
+ private Feature getFeatureByProto(List<FeatureKeyProto> protos) {
|
|
|
Map<String, String> result = remoteService.getFeature(protos);
|
|
Map<String, String> result = remoteService.getFeature(protos);
|
|
|
Feature feature = new Feature();
|
|
Feature feature = new Feature();
|
|
|
result.forEach((key, value) -> {
|
|
result.forEach((key, value) -> {
|
|
@@ -504,7 +504,7 @@ public class FeatureService {
|
|
|
.build();
|
|
.build();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public FeatureKeyProto genWithKeyMap(String table, String uniqKey, Map<String, String> map) {
|
|
|
|
|
|
|
+ private FeatureKeyProto genWithKeyMap(String table, String uniqKey, Map<String, String> map) {
|
|
|
FeatureKeyProto.Builder builder = FeatureKeyProto.newBuilder()
|
|
FeatureKeyProto.Builder builder = FeatureKeyProto.newBuilder()
|
|
|
.setUniqueKey(String.format(kvUkFormat, table, uniqKey))
|
|
.setUniqueKey(String.format(kvUkFormat, table, uniqKey))
|
|
|
.setTableName(table);
|
|
.setTableName(table);
|