File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
src/main/scala/ldbc/snb/datagen Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ class ActivityOutputStream(
82
82
post.getDeletionDate,
83
83
post.isExplicitlyDeleted,
84
84
post.getMessageId,
85
- " " ,
85
+ None ,
86
86
post.getIpAddress.toString,
87
87
Dictionaries .browsers.getName(post.getBrowserId),
88
- Dictionaries .languages.getLanguageName(post.getLanguage),
89
- post.getContent,
88
+ Some ( Dictionaries .languages.getLanguageName(post.getLanguage) ),
89
+ Some ( post.getContent) ,
90
90
post.getContent.length,
91
91
post.getAuthor.getAccountId,
92
92
post.getForumId,
@@ -136,11 +136,11 @@ class ActivityOutputStream(
136
136
photo.getDeletionDate,
137
137
photo.isExplicitlyDeleted,
138
138
photo.getMessageId,
139
- photo.getContent,
139
+ Some ( photo.getContent) ,
140
140
photo.getIpAddress.toString,
141
141
Dictionaries .browsers.getName(photo.getBrowserId),
142
- " " ,
143
- " " ,
142
+ None ,
143
+ None ,
144
144
0 ,
145
145
photo.getAuthor.getAccountId,
146
146
photo.getForumId,
Original file line number Diff line number Diff line change @@ -98,11 +98,11 @@ trait CsvRowEncoderInstances {
98
98
t.deletionDate.toString,
99
99
t.explicitlyDeleted.toString,
100
100
t.id.toString,
101
- t.imageFile,
101
+ t.imageFile.fold( " " )(_.toString) ,
102
102
t.locationIP,
103
103
t.browserUsed,
104
- t.language,
105
- t.content,
104
+ t.language.fold( " " )(_.toString) ,
105
+ t.content.fold( " " )(_.toString) ,
106
106
t.length.toString,
107
107
t.`CreatorPersonId`.toString,
108
108
t.`ContainerForumId`.toString,
Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ object raw {
105
105
deletionDate : Long ,
106
106
explicitlyDeleted : Boolean ,
107
107
id : Long ,
108
- imageFile : String ,
108
+ imageFile : Option [ String ] ,
109
109
locationIP : String ,
110
110
browserUsed : String ,
111
- language : String ,
112
- content : String ,
111
+ language : Option [ String ] ,
112
+ content : Option [ String ] ,
113
113
length : Int ,
114
114
`CreatorPersonId` : Long ,
115
115
`ContainerForumId` : Long ,
You can’t perform that action at this time.
0 commit comments