forked from D-Net/dnet-hadoop
Aggiornare 'dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/ResultMapper.java'
Removing the dump of Measure at the level of the result. We decided not to map it
This commit is contained in:
parent
10a32f287f
commit
793b5a8e5f
|
@ -43,15 +43,15 @@ public class ResultMapper implements Serializable {
|
|||
try {
|
||||
|
||||
addTypeSpecificInformation(out, input, ort);
|
||||
Optional<List<Measure>> mes = Optional.ofNullable(input.getMeasures());
|
||||
if (mes.isPresent()) {
|
||||
List<KeyValue> measure = new ArrayList<>();
|
||||
mes
|
||||
.get()
|
||||
.forEach(
|
||||
m -> m.getUnit().forEach(u -> measure.add(KeyValue.newInstance(m.getId(), u.getValue()))));
|
||||
out.setMeasures(measure);
|
||||
}
|
||||
// Optional<List<Measure>> mes = Optional.ofNullable(input.getMeasures());
|
||||
// if (mes.isPresent()) {
|
||||
// List<KeyValue> measure = new ArrayList<>();
|
||||
// mes
|
||||
// .get()
|
||||
// .forEach(
|
||||
// m -> m.getUnit().forEach(u -> measure.add(KeyValue.newInstance(m.getId(), u.getValue()))));
|
||||
// out.setMeasures(measure);
|
||||
// }
|
||||
|
||||
Optional
|
||||
.ofNullable(input.getAuthor())
|
||||
|
|
Loading…
Reference in New Issue