/** * Generates a mapping between the the data set dimension key and the count * of expected data sets to report. * * @param params the {@link DataQueryParams}. * @return a mapping between the the data set dimension key and the count of * expected data sets to report. */ private Map<String, Double> getAggregatedCompletenessTargetMap( DataQueryParams params ) { List<Function<DataQueryParams, List<DataQueryParams>>> queryGroupers = Lists.newArrayList(); queryGroupers.add( q -> queryPlanner.groupByStartEndDateRestriction( q ) ); return AnalyticsUtils.getDoubleMap( getAggregatedValueMap( params, AnalyticsTableType.COMPLETENESS_TARGET, queryGroupers ) ); }