adding short description

This commit is contained in:
Miriam Baglioni 2020-10-05 11:39:55 +02:00
parent ae08b3c0dd
commit 0c12d7bdd8
7 changed files with 22 additions and 0 deletions

View File

@ -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 <R> List<R> parse(String csvFile, String classForName)

View File

@ -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;

View File

@ -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;

View File

@ -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 <R> List<R> parse(InputStream file, String classForName)

View File

@ -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;

View File

@ -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;

View File

@ -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;