forked from D-Net/dnet-hadoop
fixed id prefix creation for the fosnodoi records, again
This commit is contained in:
parent
0486227185
commit
26363060ed
|
@ -82,7 +82,8 @@ public class PrepareFOSSparkJob implements Serializable {
|
||||||
.groupByKey((MapFunction<FOSDataModel, String>) v -> v.getOaid().toLowerCase(), Encoders.STRING())
|
.groupByKey((MapFunction<FOSDataModel, String>) v -> v.getOaid().toLowerCase(), Encoders.STRING())
|
||||||
.mapGroups(
|
.mapGroups(
|
||||||
(MapGroupsFunction<String, FOSDataModel, Result>) (k,
|
(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))
|
Encoders.bean(Result.class))
|
||||||
.write()
|
.write()
|
||||||
.mode(SaveMode.Overwrite)
|
.mode(SaveMode.Overwrite)
|
||||||
|
|
Loading…
Reference in New Issue