[ChangeMeasure] semplified workflow

This commit is contained in:
Miriam Baglioni 2022-12-22 09:54:21 +01:00
parent 447af1a851
commit 62d8180891
2 changed files with 10 additions and 9 deletions

View File

@ -78,7 +78,8 @@ public class SparkCollectAndSave implements Serializable {
.union(Utils.readPath(spark, inputPath + "/result/dataset", GraphResult.class))
.union(Utils.readPath(spark, inputPath + "/result/otherresearchproduct", GraphResult.class))
.union(Utils.readPath(spark, inputPath + "/result/software", GraphResult.class))
.map((MapFunction<GraphResult, String>) r -> new ObjectMapper().writeValueAsString(r), Encoders.STRING() )
.map(
(MapFunction<GraphResult, String>) r -> new ObjectMapper().writeValueAsString(r), Encoders.STRING())
.write()
.option("compression", "gzip")
.mode(SaveMode.Overwrite)

View File

@ -53,14 +53,14 @@
<name>depositionType</name>
<description>the type of deposition we want to perform. "new" for brand new deposition, "version" for a new version of a published deposition (in this case the concept record id must be provided), "upload" to upload content to an open deposition for which we already have the deposition id (in this case the deposition id should be provided)</description>
</property>
<property>
<name>conceptRecordId</name>
<description>for new version, the id of the record for the old deposition</description>
</property>
<property>
<name>depositionId</name>
<description>the depositionId of a deposition open that has to be added content</description>
</property>
<!-- <property>-->
<!-- <name>conceptRecordId</name>-->
<!-- <description>for new version, the id of the record for the old deposition</description>-->
<!-- </property>-->
<!-- <property>-->
<!-- <name>depositionId</name>-->
<!-- <description>the depositionId of a deposition open that has to be added content</description>-->
<!-- </property>-->
<property>
<name>organizationCommunityMap</name>
<description>the organization community map</description>