|
@@ -1,5 +1,5 @@
|
|
|
package com.tzld.piaoquan.recommend.feature.domain.video;
|
|
|
-import io.lettuce.core.StrAlgoArgs;
|
|
|
+
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.util.HashMap;
|
|
@@ -8,7 +8,7 @@ import java.util.Map;
|
|
|
@Data
|
|
|
public class UserBytesFeature {
|
|
|
|
|
|
- private final byte[] uid;
|
|
|
+ private final byte[] uid;
|
|
|
|
|
|
// 当天统计量信息
|
|
|
private Map<String, byte[]> day1_cnt_features;
|
|
@@ -19,9 +19,9 @@ public class UserBytesFeature {
|
|
|
// 3个月统计量
|
|
|
private Map<String, byte[]> month3_cnt_features;
|
|
|
// 用户行为周期
|
|
|
- private final byte[] user_cycle_bucket_7days;
|
|
|
- private final byte[] user_cycle_bucket_30days;
|
|
|
- private final byte[] user_share_bucket_30days;
|
|
|
+ private final byte[] user_cycle_bucket_7days;
|
|
|
+ private final byte[] user_cycle_bucket_30days;
|
|
|
+ private final byte[] user_share_bucket_30days;
|
|
|
|
|
|
|
|
|
public UserBytesFeature(UserFeature feature) {
|
|
@@ -42,7 +42,6 @@ public class UserBytesFeature {
|
|
|
this.day1_cnt_features.put("ros", String.valueOf(feature.getDay1_cnt_features().getRos()).getBytes());
|
|
|
|
|
|
|
|
|
-
|
|
|
// 3 day statistic
|
|
|
this.day3_cnt_features = new HashMap<String, byte[]>();
|
|
|
day3_cnt_features.put("exp", String.valueOf(feature.getDay3_cnt_features().getExp_cnt()).getBytes());
|
|
@@ -67,7 +66,6 @@ public class UserBytesFeature {
|
|
|
day7_cnt_features.put("ros", String.valueOf(feature.getDay7_cnt_features().getRos()).getBytes());
|
|
|
|
|
|
|
|
|
-
|
|
|
// 3 month statisic
|
|
|
this.month3_cnt_features = new HashMap<String, byte[]>();
|
|
|
month3_cnt_features.put("exp", String.valueOf(feature.getMonth3_cnt_features().getExp_cnt()).getBytes());
|
|
@@ -83,5 +81,4 @@ public class UserBytesFeature {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
}
|