fixed id prefix creation for the fosnodoi records, again

This commit is contained in:
Claudio Atzori 2024-05-03 15:53:52 +02:00
parent 0486227185
commit 26363060ed
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ public class PrepareFOSSparkJob implements Serializable {
.groupByKey((MapFunction<FOSDataModel, String>) v -> v.getOaid().toLowerCase(), Encoders.STRING())
.mapGroups(
(MapGroupsFunction<String, FOSDataModel, Result>) (k,
it) -> getResult(ModelSupport.entityIdPrefix.get(Result.class.getSimpleName()) + "|" + k, it),
it) -> getResult(
ModelSupport.entityIdPrefix.get(Result.class.getSimpleName().toLowerCase()) + "|" + k, it),
Encoders.bean(Result.class))
.write()
.mode(SaveMode.Overwrite)