1
0
Fork 0

now the commission give us the framework programme (FP7 - H2020) so use this information to filter out programmes not associated to H2020

This commit is contained in:
Miriam Baglioni 2020-09-24 15:19:31 +02:00
parent b66f930466
commit 609ff17cfc
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class PrepareProgramme {
JavaRDD<CSVProgramme> h2020Programmes = programme
.toJavaRDD()
.filter(p -> !p.getCode().contains("FP7"))
.filter(p -> p.getFrameworkProgramme().trim().equalsIgnoreCase("H2020"))
.mapToPair(csvProgramme -> new Tuple2<>(csvProgramme.getCode(), csvProgramme))
.reduceByKey((a, b) -> {
if (!a.getLanguage().equals("en")) {