@@ -61,14 +61,14 @@ public void writeFileHeaders() {
61
61
62
62
List <String > dates2 = ImmutableList .of ("creationDate" , "deletionDate" );
63
63
64
- writers .get (FORUM ) .writeHeader (dates1 , ImmutableList .of ("id" , "title" , "moderator " ));
64
+ writers .get (FORUM ) .writeHeader (dates1 , ImmutableList .of ("id" , "title" , "ModeratorPerson.id " ));
65
65
writers .get (FORUM_HASTAG_TAG ) .writeHeader (dates2 , ImmutableList .of ("Forum.id" , "Tag.id" ));
66
66
writers .get (FORUM_HASMEMBER_PERSON ) .writeHeader (dates1 , ImmutableList .of ("Forum.id" , "Person.id" ));
67
67
68
- writers .get (POST ) .writeHeader (dates1 , ImmutableList .of ("id" , "imageFile" , "locationIP" , "browserUsed" , "language" , "content" , "length" , "creator " , "Forum .id" , "Country .id" ));
68
+ writers .get (POST ) .writeHeader (dates1 , ImmutableList .of ("id" , "imageFile" , "locationIP" , "browserUsed" , "language" , "content" , "length" , "CreatorPerson.id " , "ContainerForum .id" , "LocationCountry .id" ));
69
69
writers .get (POST_HASTAG_TAG ) .writeHeader (dates2 , ImmutableList .of ("Post.id" , "Tag.id" ));
70
70
71
- writers .get (COMMENT ) .writeHeader (dates1 , ImmutableList .of ("id" , "locationIP" , "browserUsed" , "content" , "length" , "creator " , "Country .id" , "replyOfPost " , "replyOfComment " ));
71
+ writers .get (COMMENT ) .writeHeader (dates1 , ImmutableList .of ("id" , "locationIP" , "browserUsed" , "content" , "length" , "CreatorPerson.id " , "LocationCountry .id" , "ParentPost.id " , "ParentComment.id " ));
72
72
writers .get (COMMENT_HASTAG_TAG ) .writeHeader (dates2 , ImmutableList .of ("Comment.id" , "Tag.id" ));
73
73
74
74
writers .get (PERSON_LIKES_POST ) .writeHeader (dates1 , ImmutableList .of ("Person.id" , "Post.id" ));
@@ -79,7 +79,7 @@ public void writeFileHeaders() {
79
79
public void serialize (final Forum forum ) {
80
80
List <String > dates = ImmutableList .of (formatDateTime (forum .getCreationDate ()), formatDateTime (forum .getDeletionDate ()), String .valueOf (forum .isExplicitlyDeleted ()));
81
81
82
- // creationDate, deletionDate, explicitlyDeleted, id, title, moderator
82
+ // creationDate, deletionDate, explicitlyDeleted, id, title, ModeratorPerson.id
83
83
writers .get (FORUM ).writeEntry (dates , ImmutableList .of (
84
84
Long .toString (forum .getId ()),
85
85
forum .getTitle (),
@@ -88,7 +88,7 @@ public void serialize(final Forum forum) {
88
88
89
89
List <String > dates2 = ImmutableList .of (formatDateTime (forum .getCreationDate ()), formatDateTime (forum .getDeletionDate ()));
90
90
for (Integer i : forum .getTags ()) {
91
- // creationDate, deletionDate Forum.id, Tag.id
91
+ // creationDate, deletionDate, Forum.id, Tag.id
92
92
writers .get (FORUM_HASTAG_TAG ).writeEntry (dates2 , ImmutableList .of (
93
93
Long .toString (forum .getId ()),
94
94
Integer .toString (i )
@@ -100,7 +100,7 @@ public void serialize(final Forum forum) {
100
100
public void serialize (final Post post ) {
101
101
List <String > dates1 = ImmutableList .of (formatDateTime (post .getCreationDate ()), formatDateTime (post .getDeletionDate ()), String .valueOf (post .isExplicitlyDeleted ()));
102
102
103
- // creationDate, deletionDate, explicitlyDeleted, id, imageFile, locationIP, browserUsed, language, content, length, creator, Forum .id, place
103
+ // creationDate, deletionDate, explicitlyDeleted, id, imageFile, locationIP, browserUsed, language, content, length, CreatorPerson.id, ContainerForum .id, LocationCountry.id
104
104
writers .get (POST ).writeEntry (dates1 , ImmutableList .of (
105
105
Long .toString (post .getMessageId ()),
106
106
"" ,
@@ -117,7 +117,7 @@ public void serialize(final Post post) {
117
117
List <String > dates2 = ImmutableList .of (formatDateTime (post .getCreationDate ()), formatDateTime (post .getDeletionDate ()));
118
118
119
119
for (Integer t : post .getTags ()) {
120
- // creationDate, deletionDate Post.id, Tag.id
120
+ // creationDate, deletionDate, Post.id, Tag.id
121
121
writers .get (POST_HASTAG_TAG ).writeEntry (dates2 , ImmutableList .of (
122
122
Long .toString (post .getMessageId ()),
123
123
Integer .toString (t )
@@ -128,7 +128,7 @@ public void serialize(final Post post) {
128
128
public void serialize (final Comment comment ) {
129
129
List <String > dates1 = ImmutableList .of (formatDateTime (comment .getCreationDate ()), formatDateTime (comment .getDeletionDate ()), String .valueOf (comment .isExplicitlyDeleted ()));
130
130
131
- // creationDate, deletionDate, explicitlyDeleted, id, locationIP, browserUsed, content, length, creator, place, parentPost, parentComment
131
+ // creationDate, deletionDate, explicitlyDeleted, id, locationIP, browserUsed, content, length, CreatorPerson.id, LocationCountry.id, ParentPost.id, ParentComment.id
132
132
writers .get (COMMENT ).writeEntry (dates1 , ImmutableList .of (
133
133
Long .toString (comment .getMessageId ()),
134
134
comment .getIpAddress ().toString (),
@@ -143,7 +143,7 @@ public void serialize(final Comment comment) {
143
143
144
144
List <String > dates2 = ImmutableList .of (formatDateTime (comment .getCreationDate ()), formatDateTime (comment .getDeletionDate ()));
145
145
for (Integer t : comment .getTags ()) {
146
- // creationDate, deletionDate Comment.id, Tag.id
146
+ // creationDate, deletionDate, Comment.id, Tag.id
147
147
writers .get (COMMENT_HASTAG_TAG ).writeEntry (dates2 , ImmutableList .of (
148
148
Long .toString (comment .getMessageId ()),
149
149
Integer .toString (t )
@@ -154,7 +154,7 @@ public void serialize(final Comment comment) {
154
154
public void serialize (final Photo photo ) {
155
155
List <String > dates1 = ImmutableList .of (formatDateTime (photo .getCreationDate ()), formatDateTime (photo .getDeletionDate ()), String .valueOf (photo .isExplicitlyDeleted ()));
156
156
157
- // creationDate, deletionDate, explicitlyDeleted, id, imageFile, locationIP, browserUsed, language, content, length, creator, Forum .id, place
157
+ // creationDate, deletionDate, explicitlyDeleted, id, imageFile, locationIP, browserUsed, language, content, length, CreatorPerson.id, ContainerForum .id, LocationCountry.id
158
158
writers .get (POST ).writeEntry (dates1 , ImmutableList .of (
159
159
Long .toString (photo .getMessageId ()),
160
160
photo .getContent (),
@@ -170,7 +170,7 @@ public void serialize(final Photo photo) {
170
170
171
171
List <String > dates2 = ImmutableList .of (formatDateTime (photo .getCreationDate ()), formatDateTime (photo .getDeletionDate ()));
172
172
for (Integer t : photo .getTags ()) {
173
- // creationDate, deletionDate Post.id, Tag.id
173
+ // creationDate, deletionDate, Post.id, Tag.id
174
174
writers .get (POST_HASTAG_TAG ).writeEntry (dates2 , ImmutableList .of (
175
175
Long .toString (photo .getMessageId ()),
176
176
Integer .toString (t )
@@ -191,7 +191,9 @@ public void serialize(final ForumMembership membership) {
191
191
public void serialize (final Like like ) {
192
192
List <String > dates = ImmutableList .of (formatDateTime (like .getCreationDate ()), formatDateTime (like .getDeletionDate ()), String .valueOf (like .isExplicitlyDeleted ()));
193
193
194
- // creationDate, deletionDate, explicitlyDeleted, Person.id, Message.id
194
+ // creationDate, deletionDate, explicitlyDeleted, Person.id, Post.id
195
+ // or
196
+ // creationDate, deletionDate, explicitlyDeleted, Person.id, Comment.id
195
197
List <String > arguments = ImmutableList .of (
196
198
Long .toString (like .getPerson ()),
197
199
Long .toString (like .getMessageId ())
@@ -203,7 +205,6 @@ public void serialize(final Like like) {
203
205
}
204
206
}
205
207
206
-
207
208
@ Override
208
209
protected boolean isDynamic () {
209
210
return true ;
0 commit comments