Can be done less expensively (and perhaps more simply) by using built-ins:

```
Map<StackId, Set<String>> mpackServices = topology.getComponents().collect(
  groupingBy(ResolvedComponent::stackId,
    mapping(comp -> comp.serviceInfo().getName(), toSet())));
```

[ Full content available at: https://github.com/apache/ambari/pull/2259 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to