@@ -70,6 +70,7 @@ public enum DataFormat {
70
70
private HashMap <Long , ReducedUserProfile .Counts > factorTable ;
71
71
private int startMonth , startYear ;
72
72
private int reducerId = 0 ;
73
+ private long deltaTime = 0 ;
73
74
GregorianCalendar c ;
74
75
75
76
public DataExporter ( DataFormat format ,
@@ -79,6 +80,7 @@ public DataExporter( DataFormat format,
79
80
boolean exportText ,
80
81
boolean compressed ,
81
82
int numPartitions ,
83
+ long deltaTime ,
82
84
TagDictionary tagDic ,
83
85
BrowserDictionary browsers ,
84
86
CompanyDictionary companyDic ,
@@ -90,6 +92,7 @@ public DataExporter( DataFormat format,
90
92
HashMap <Long , ReducedUserProfile .Counts > factorTable ,
91
93
int startMonth , int startYear ,
92
94
Statistics statistics ) {
95
+ this .deltaTime = deltaTime ;
93
96
this .locationDic = locationDic ;
94
97
this .companyDic = companyDic ;
95
98
this .universityDic = universityDic ;
@@ -276,7 +279,7 @@ public void export( UserInfo userInfo ) {
276
279
277
280
Group group = new Group ();
278
281
//The forums of the user
279
- group .setCreatedDate (userInfo .user .getCreationDate ());
282
+ group .setCreatedDate (userInfo .user .getCreationDate ()+ deltaTime );
280
283
group .setGroupName ("Wall of " + userInfo .extraInfo .getFirstName () + " " + userInfo .extraInfo .getLastName ());
281
284
group .setGroupId (userInfo .user .getForumWallId ());
282
285
group .setModeratorId (userInfo .user .getAccountId ());
@@ -301,7 +304,7 @@ public void export( UserInfo userInfo ) {
301
304
if (friends [i ] != null && friends [i ].getCreatedTime () != -1 ){
302
305
GroupMemberShip membership = new GroupMemberShip ();
303
306
membership .setGroupId (group .getGroupId ());
304
- membership .setJoinDate (friends [i ].getCreatedTime ());
307
+ membership .setJoinDate (friends [i ].getCreatedTime ()+ deltaTime );
305
308
membership .setUserId (friends [i ].getFriendAcc ());
306
309
if ( membership .getJoinDate () <= dateThreshold ) {
307
310
staticSerializer .serialize (membership );
0 commit comments