Revision 33172
Added by Eri Katsari almost 10 years ago
modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/utils/ContextExporter.java | ||
---|---|---|
102 | 102 |
|
103 | 103 |
private void processData(String data) throws Exception { |
104 | 104 |
try { |
105 |
|
|
106 | 105 |
String[] split = data.split("COPY"); |
106 |
context += split[0]; |
|
107 |
split[1] = split[1].replaceFirst("\n", ""); |
|
108 |
category += split[1].substring(0, split[1].lastIndexOf("\n") - 1)+"\n"; |
|
109 |
split[2] = split[2].replaceFirst("\n", ""); |
|
110 |
concept += split[2].substring(0, split[2].lastIndexOf("\n") - 1)+"\n"; |
|
107 | 111 |
|
108 |
split[0] = split[0].replaceFirst("\n", ""); |
|
109 |
context += split[0] + "\n"; |
|
110 |
category += split[1].substring(0, split[1].lastIndexOf("\n") - 1); |
|
111 |
concept += split[2].substring(0, split[2].lastIndexOf("\n") - 1); |
|
112 | 112 |
|
113 | 113 |
} catch (Exception e) { |
114 | 114 |
String msg = " Unable to create file with context, " + "concept and category values in output path " + outputPath + ". Reason: "; |
Also available in: Unified diff
updated xslt for concept to ommit newlines that were causing an issue with FET concept entries