package eu.dnetlib.iis.wf.affmatching.read;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import eu.dnetlib.iis.wf.affmatching.model.AffMatchAffiliation;
import eu.dnetlib.iis.wf.affmatching.model.AffMatchOrganization;
/**
* Reader of affiliations that will be used in affiliation matching.
*
* @author Ćukasz Dumiszewski
*/
public interface AffiliationReader {
/**
* Reads organizations that are in <code>inputPath</code>. The organizations that are in <code>inputPath</code>
* can be in any format. The implementation of the reader, however, must return them as rdd of {@link AffMatchOrganization}.
*/
JavaRDD<AffMatchAffiliation> readAffiliations(JavaSparkContext sc, String inputPath);
}