[DumpOpenorgs] fixed issues in path
This commit is contained in:
parent
af87da12f9
commit
7492927559
|
@ -93,7 +93,7 @@ public class SparkDumpOrganizationJob implements Serializable {
|
||||||
|
|
||||||
private static void organizationMap(SparkSession spark, String inputPath, String outputPath) {
|
private static void organizationMap(SparkSession spark, String inputPath, String outputPath) {
|
||||||
Utils
|
Utils
|
||||||
.readPath(spark, inputPath + "/organization", eu.dnetlib.dhp.schema.oaf.Organization.class)
|
.readPath(spark, inputPath , eu.dnetlib.dhp.schema.oaf.Organization.class)
|
||||||
.filter(
|
.filter(
|
||||||
(FilterFunction<eu.dnetlib.dhp.schema.oaf.Organization>) o -> !o.getDataInfo().getDeletedbyinference()
|
(FilterFunction<eu.dnetlib.dhp.schema.oaf.Organization>) o -> !o.getDataInfo().getDeletedbyinference()
|
||||||
&& o.getId().startsWith("20|openorgs"))
|
&& o.getId().startsWith("20|openorgs"))
|
||||||
|
@ -104,7 +104,7 @@ public class SparkDumpOrganizationJob implements Serializable {
|
||||||
.write()
|
.write()
|
||||||
.mode(SaveMode.Overwrite)
|
.mode(SaveMode.Overwrite)
|
||||||
.option(COMPRESSION, GZIP)
|
.option(COMPRESSION, GZIP)
|
||||||
.json(outputPath + "/openorgs");
|
.json(outputPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
private static eu.dnetlib.dhp.oa.model.graph.Organization mapOrganization(
|
private static eu.dnetlib.dhp.oa.model.graph.Organization mapOrganization(
|
||||||
|
|
Loading…
Reference in New Issue