|
@@ -96,7 +96,7 @@ public class FeatureConstructor {
|
|
|
|
|
|
public static UserFeature constructUserFeature(Record record) {
|
|
|
UserFeature userFeature = new UserFeature();
|
|
|
- userFeature.setUid(record.getString("uid"));
|
|
|
+ userFeature.setUid(record.get("uid").toString());
|
|
|
userFeature.setUser_cycle_bucket_7days(record.getString("u_cycle_bucket_7days"));
|
|
|
userFeature.setUser_cycle_bucket_30days(record.getString("u_cycle_bucket_30days"));
|
|
|
userFeature.setUser_share_bucket_30days(record.getString("u_share_bucket_30days"));
|
|
@@ -156,12 +156,12 @@ public class FeatureConstructor {
|
|
|
|
|
|
public static ItemFeature constructItemFeature(Record record){
|
|
|
ItemFeature itemFeature = new ItemFeature();
|
|
|
- itemFeature.setVideoId(record.getString("videoid"));
|
|
|
- itemFeature.setUpId(record.getString("i_up_id"));
|
|
|
- itemFeature.setTitleLength(record.getString("i_title_len"));
|
|
|
- itemFeature.setPlayLength(record.getString("i_play_len"));
|
|
|
- itemFeature.setTotalTime(record.getString("total_time"));
|
|
|
- itemFeature.setDaysSinceUpload(record.getString("i_days_since_upload"));
|
|
|
+ itemFeature.setVideoId(record.get("videoid").toString());
|
|
|
+ itemFeature.setUpId(record.get("uid").toString());
|
|
|
+ itemFeature.setTitleLength(record.get("play_count").toString());
|
|
|
+ itemFeature.setPlayLength(record.get("total_time").toString());
|
|
|
+ itemFeature.setTotalTime(record.get("total_time").toString());
|
|
|
+ itemFeature.setDaysSinceUpload(record.get("existence_days").toString());
|
|
|
|
|
|
UserActionFeature user1dayActionFeature = new UserActionFeature();
|
|
|
user1dayActionFeature.setExp_cnt(record.getString("i_1day_exp_cnt"));
|