1
0
Fork 0

Removed filter of datacite items from the raw graph merging phase, Datacite is not an actionset anymore in beta

This commit is contained in:
Sandro La Bruzzo 2021-10-26 17:52:20 +02:00
parent 4acfa8fa2e
commit 1be9aa0a5f
1 changed files with 0 additions and 7 deletions

View File

@ -127,13 +127,6 @@ public class MergeGraphTableSparkJob {
}
}, Encoders.bean(p_clazz))
.filter((FilterFunction<P>) Objects::nonNull)
.filter((FilterFunction<P>) o -> {
HashSet<String> collectedFromNames = Optional
.ofNullable(o.getCollectedfrom())
.map(c -> c.stream().map(KeyValue::getValue).collect(Collectors.toCollection(HashSet::new)))
.orElse(new HashSet<>());
return !collectedFromNames.contains("Datacite");
})
.write()
.mode(SaveMode.Overwrite)
.option("compression", "gzip")