File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
java/ldbc/snb/datagen/util
scala/ldbc/snb/datagen/generator/serializers Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ public static LocalDate utcDateOfEpochMilli(long epochMilli) {
16
16
return Instant .ofEpochMilli (epochMilli ).atZone (UTC ).toLocalDate ();
17
17
}
18
18
19
- public static String formatYear (long epochMilli ) {
20
- LocalDate date = utcDateOfEpochMilli (epochMilli );
21
- return Integer .toString (date .getYear ());
22
- }
23
-
24
19
public static boolean isTravelSeason (long epochMilli ) {
25
20
LocalDate date = utcDateOfEpochMilli (epochMilli );
26
21
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import ldbc.snb.datagen.entities.dynamic.person.Person
4
4
import ldbc .snb .datagen .generator .dictionary .Dictionaries
5
5
import ldbc .snb .datagen .io .raw .RecordOutputStream
6
6
import ldbc .snb .datagen .model .raw
7
+ import ldbc .snb .datagen .util .DateUtils
7
8
8
9
import java .util
9
10
import scala .collection .JavaConverters ._
@@ -62,7 +63,7 @@ class PersonOutputStream(
62
63
person.getDeletionDate,
63
64
person.getAccountId,
64
65
universityId,
65
- person.getClassYear.toInt
66
+ DateUtils .getYear( person.getClassYear)
66
67
)
67
68
personStudyAtUniversityStream.write(personStudyAtUniversity)
68
69
}
@@ -73,7 +74,7 @@ class PersonOutputStream(
73
74
person.getDeletionDate,
74
75
person.getAccountId,
75
76
companyId,
76
- person.getCompanies.get(companyId).toInt
77
+ DateUtils .getYear( person.getCompanies.get(companyId))
77
78
)
78
79
personWorkAtCompanyStream.write(personWorkAtCompany)
79
80
}
You can’t perform that action at this time.
0 commit comments