From 0c12d7bdd83e2b2035958bc267c3e32a28dfcc66 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Mon, 5 Oct 2020 11:39:55 +0200 Subject: [PATCH] adding short description --- .../eu/dnetlib/dhp/actionmanager/project/utils/CSVParser.java | 3 +++ .../dnetlib/dhp/actionmanager/project/utils/CSVProgramme.java | 3 +++ .../dnetlib/dhp/actionmanager/project/utils/CSVProject.java | 3 +++ .../dnetlib/dhp/actionmanager/project/utils/EXCELParser.java | 3 +++ .../dnetlib/dhp/actionmanager/project/utils/EXCELTopic.java | 3 +++ .../eu/dnetlib/dhp/actionmanager/project/utils/ReadCSV.java | 3 +++ .../eu/dnetlib/dhp/actionmanager/project/utils/ReadExcel.java | 4 ++++ 7 files changed, 22 insertions(+) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVParser.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVParser.java index 2fe2ef1ce..8bdce903b 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVParser.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVParser.java @@ -10,6 +10,9 @@ import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVRecord; import org.apache.commons.lang.reflect.FieldUtils; +/** + * Reads a generic csv and maps it into classes that mirror its schema + */ public class CSVParser { public List parse(String csvFile, String classForName) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProgramme.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProgramme.java index fed17e3b5..6f9a59087 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProgramme.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProgramme.java @@ -3,6 +3,9 @@ package eu.dnetlib.dhp.actionmanager.project.utils; import java.io.Serializable; +/** + * The model for the programme csv file + */ public class CSVProgramme implements Serializable { private String parentProgramme; private String frameworkProgramme; diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProject.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProject.java index 4fe9c4986..268d5f28c 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProject.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/CSVProject.java @@ -3,6 +3,9 @@ package eu.dnetlib.dhp.actionmanager.project.utils; import java.io.Serializable; +/** + * the mmodel for the projects csv file + */ public class CSVProject implements Serializable { private String rcn; private String id; diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELParser.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELParser.java index ed70ea076..0f83499e4 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELParser.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELParser.java @@ -17,6 +17,9 @@ import org.apache.poi.ss.usermodel.Row; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; +/** + * Reads a generic excel file and maps it into classes that mirror its schema + */ public class EXCELParser { public List parse(InputStream file, String classForName) diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELTopic.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELTopic.java index cc317e037..5607df118 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELTopic.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/EXCELTopic.java @@ -3,6 +3,9 @@ package eu.dnetlib.dhp.actionmanager.project.utils; import java.io.Serializable; +/** + * the model class for the topic excel file + */ public class EXCELTopic implements Serializable { private String rcn; private String language; diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadCSV.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadCSV.java index 503106ee8..9dac34a15 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadCSV.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadCSV.java @@ -20,6 +20,9 @@ import com.fasterxml.jackson.databind.ObjectMapper; import eu.dnetlib.dhp.actionmanager.project.httpconnector.HttpConnector; import eu.dnetlib.dhp.application.ArgumentApplicationParser; +/** + * Applies the parsing of a csv file and writes the Serialization of it in hdfs + */ public class ReadCSV implements Closeable { private static final Log log = LogFactory.getLog(ReadCSV.class); private final Configuration conf; diff --git a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadExcel.java b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadExcel.java index d65b433a6..23b58f2a0 100644 --- a/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadExcel.java +++ b/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/project/utils/ReadExcel.java @@ -17,6 +17,10 @@ import com.fasterxml.jackson.databind.ObjectMapper; import eu.dnetlib.dhp.actionmanager.project.httpconnector.HttpConnector; import eu.dnetlib.dhp.application.ArgumentApplicationParser; +/** + * Applies the parsing of an excel file and writes the Serialization of it in hdfs + */ + public class ReadExcel implements Closeable { private static final Log log = LogFactory.getLog(ReadCSV.class); private final Configuration conf;