Revision 29342
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 | ||
---|---|---|
97 | 97 |
case result: |
98 | 98 |
HashMap<String, List<String>> relations = new HashMap<String, List<String>>(); |
99 | 99 |
|
100 |
// relations.putAll(getResultLanguages(valueEntity));
|
|
101 |
// relations.putAll(getResultTopics(valueEntity));
|
|
100 |
// relations.putAll(getResultLanguages(valueEntity));
|
|
101 |
// relations.putAll(getResultTopics(valueEntity));
|
|
102 | 102 |
relations.putAll(getResultClassifications(valueEntity)); |
103 |
// relations.putAll(getResultDatasources(valueEntity));
|
|
104 |
// relations.putAll(getResultConcepts(valueEntity));
|
|
103 |
// relations.putAll(getResultDatasources(valueEntity));
|
|
104 |
// relations.putAll(getResultConcepts(valueEntity));
|
|
105 | 105 |
return relations; |
106 | 106 |
default: |
107 | 107 |
|
... | ... | |
211 | 211 |
// TODOs |
212 | 212 |
String buff = new String(); |
213 | 213 |
if (topic.getValue() != null && !topic.getValue().isEmpty()) { |
214 |
buff += topic.getValue() ;
|
|
214 |
buff += topic.getValue();
|
|
215 | 215 |
buffs.add(getStringField(buff)); |
216 | 216 |
} |
217 | 217 |
} |
... | ... | |
385 | 385 |
buff += getStringField("1"); |
386 | 386 |
|
387 | 387 |
// TODO check if valid or empty protobuff |
388 |
//TODO do it in all protos? |
|
388 |
// TODO do it in all protos?
|
|
389 | 389 |
if (isValid(buff, full_id)) { |
390 |
return buff; }
|
|
391 |
else {
|
|
390 |
return buff; |
|
391 |
} else {
|
|
392 | 392 |
return null; |
393 | 393 |
} |
394 | 394 |
|
395 | 395 |
} |
396 | 396 |
|
397 | 397 |
private boolean isValid(String buff, String id) { |
398 |
return !buff.endsWith(id);
|
|
398 |
return !buff.endsWith(getStringField(id));
|
|
399 | 399 |
} |
400 | 400 |
|
401 | 401 |
private String getBestLicense(Result result) { |
Also available in: Unified diff