Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
Map<TestEntity, Set<MetricEntity> > com.griddynamics.jagger.engine.e1.services.DefaultDataService.getMetricsByTests ( Collection< TestEntity tests)

Returns map, where key is test entity and value is a list of all test metrics.

Parameters
tests- tests
Returns
map of <test entity, list of metric entity> pairs
Author
Gribov Kirill

Implements com.griddynamics.jagger.engine.e1.services.DataService.

Definition at line 229 of file DefaultDataService.java.

References com.griddynamics.jagger.engine.e1.services.DefaultDataService.getMetricsByTestIds().

Referenced by com.griddynamics.jagger.engine.e1.services.DefaultDataService.getMetrics().

229  {
230  Map<Long, TestEntity> map = new HashMap<Long, TestEntity>(tests.size());
231  Set<Long> ids = new HashSet<Long>(tests.size());
232 
233  for (TestEntity test : tests) {
234  map.put(test.getId(), test);
235  ids.add(test.getId());
236  }
237 
238  Map<Long, Set<MetricEntity>> metrics = getMetricsByTestIds(ids);
239 
240  Map<TestEntity, Set<MetricEntity>> result = new HashMap<TestEntity, Set<MetricEntity>>();
241 
242  for (Long key : map.keySet()) {
243  result.put(map.get(key), metrics.get(key));
244  }
245 
246  return result;
247  }

Here is the call graph for this function:

Here is the caller graph for this function: