Project

General

Profile

« Previous | Next » 

Revision 29530

Added by Eri Katsari over 10 years ago

View differences:

modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/utils/ContextTransformer.java
10 10
import javax.xml.transform.stream.StreamSource;
11 11

  
12 12
import org.apache.log4j.Logger;
13
import org.junit.Test;
14 13

  
15 14
public class ContextTransformer {
16 15

  
......
20 19
		Transformer transformer;
21 20
		TransformerFactory tFactory = TransformerFactory.newInstance();
22 21

  
23
		if (xml == null || xml.isEmpty()) {
22
		if (xml == null) {
24 23

  
25
			throw new Exception("NULL XML ENTITY CONFIGURATION   : ");
24
			throw new Exception("NULL XML ENTITY CONFIGURATION   ");
26 25
		}
26
		
27 27
		InputStream inputStream = null;
28 28
		ByteArrayInputStream readerStream = null;
29 29
		ByteArrayOutputStream writerStream = null;
modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/utils/ContextExporter.java
21 21
			log.error("Context Resources file is empty.");
22 22
			throw new Exception("Context Resources file is empty.");
23 23
		}
24
		log.info(this.contextMap);
25
		
24 26
		this.readFromURL = readFromURL;
25 27
		contextTransformer = new ContextTransformer();
26 28
		if (!outputPath.endsWith("/")) {
modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/drivers/DBDriver.java
4 4

  
5 5
import eu.dnetlib.data.mapreduce.hbase.statsExport.daos.SqlDAO;
6 6
import eu.dnetlib.data.mapreduce.hbase.statsExport.daos.SqlStore;
7
import eu.dnetlib.data.mapreduce.hbase.statsExport.utils.ContextExporter;
8 7

  
9 8
public class DBDriver {
10 9

  

Also available in: Unified diff