Revision 29346
Added by Eri Katsari over 10 years ago
modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/utils/Serializer.java | ||
---|---|---|
98 | 98 |
HashMap<String, List<String>> relations = new HashMap<String, List<String>>(); |
99 | 99 |
|
100 | 100 |
// relations.putAll(getResultLanguages(valueEntity)); |
101 |
// relations.putAll(getResultTopics(valueEntity));
|
|
102 |
relations.putAll(getResultClassifications(valueEntity));
|
|
101 |
relations.putAll(getResultTopics(valueEntity)); |
|
102 |
// relations.putAll(getResultClassifications(valueEntity));
|
|
103 | 103 |
// relations.putAll(getResultDatasources(valueEntity)); |
104 | 104 |
// relations.putAll(getResultConcepts(valueEntity)); |
105 | 105 |
return relations; |
... | ... | |
395 | 395 |
} |
396 | 396 |
|
397 | 397 |
private boolean isValid(String buff, String id) { |
398 |
return !buff.endsWith(getStringField(id)); |
|
398 |
if (buff.endsWith(getStringField(id)) || (buff.endsWith(getStringField(id) + ENCLOSED))) { |
|
399 |
return false; |
|
400 |
|
|
401 |
} |
|
402 |
return true; |
|
399 | 403 |
} |
400 | 404 |
|
401 | 405 |
private String getBestLicense(Result result) { |
Also available in: Unified diff