forked from D-Net/dnet-hadoop
[BULK TAGGING] changed to fix issue that should have been fixed already
This commit is contained in:
parent
8eb75ca169
commit
dce7f5fea8
|
@ -95,14 +95,14 @@ public class ResultTagger implements Serializable {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result
|
// result
|
||||||
.getInstance()
|
// .getInstance()
|
||||||
.stream()
|
// .stream()
|
||||||
.map(i -> new Pair<>(i.getCollectedfrom().getKey(), i.getHostedby().getKey()))
|
// .map(i -> new Pair<>(i.getCollectedfrom().getKey(), i.getHostedby().getKey()))
|
||||||
.flatMap(p -> Stream.of(p.getFst(), p.getSnd()))
|
// .flatMap(p -> Stream.of(p.getFst(), p.getSnd()))
|
||||||
.map(s -> StringUtils.substringAfter(s, "|"))
|
// .map(s -> StringUtils.substringAfter(s, "|"))
|
||||||
.collect(Collectors.toCollection(HashSet::new))
|
// .collect(Collectors.toCollection(HashSet::new))
|
||||||
.forEach(
|
tmp.forEach(
|
||||||
dsId -> datasources
|
dsId -> datasources
|
||||||
.addAll(
|
.addAll(
|
||||||
conf.getCommunityForDatasource(dsId, param)));
|
conf.getCommunityForDatasource(dsId, param)));
|
||||||
|
|
Loading…
Reference in New Issue