public Map<String, Integer> countByStatusAndMainComponentUuids(DbSession dbSession, CeQueueDto.Status status, Set<String> projectUuids) {
    if (projectUuids.isEmpty()) {
      return emptyMap();
    }

    ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder();
    executeLargeUpdates(
      projectUuids,
      partitionOfProjectUuids -> {
        List<QueueCount> i = mapper(dbSession).countByStatusAndMainComponentUuids(status, partitionOfProjectUuids);
        i.forEach(o -> builder.put(o.getMainComponentUuid(), o.getTotal()));
      });
    return builder.build();
  }
public Map < String , Integer > countByStatusAndMainComponentUuids ( DbSession dbSession , CeQueueDto . Status status , Set < String > projectUuids ) { if ( projectUuids . isEmpty ( ) ) { return emptyMap ( ) ; } ImmutableMap . Builder < String , Integer > builder = ImmutableMap . builder ( ) ; executeLargeUpdates ( projectUuids , partitionOfProjectUuids -> { List < QueueCount > i = mapper ( dbSession ) . countByStatusAndMainComponentUuids ( status , partitionOfProjectUuids ) ; i . forEach ( o -> builder . put ( o . getMainComponentUuid ( ) , o . getTotal ( ) ) ) ; } ) ; return builder . build ( ) ; }
Counts entries in the queue with the specified status for each specified main component uuid.

The returned map doesn't contain any entry for main component uuids for which there is no entry in the queue (ie.
all entries have a value >= 0).