/** * Load several logical tables into the logicalDictionary, each with their own scoped metric dictionary. * <p> * Note: This builds the logical tables as well. * * @param nameGroupMap A map of logical table name to table group information * @param validGrains The accepted grains for the logical table * @param tableDictionary The logical table dictionary to be populated * @param scopedMetrics A mapping from table name to the scoped MetricDictionary to use for that table */ public void loadLogicalTablesWithGranularities( Map<String, TableGroup> nameGroupMap, Set<? extends Granularity> validGrains, LogicalTableDictionary tableDictionary, Map<String, MetricDictionary> scopedMetrics ) { for (Map.Entry<String, TableGroup> entry : nameGroupMap.entrySet()) { String logicalTableName = entry.getKey(); TableGroup group = entry.getValue(); loadLogicalTableWithGranularities( logicalTableName, group, validGrains, tableDictionary, scopedMetrics.get(logicalTableName) ); } }
/** * Load a logical table into the logicalDictionary. * <p> * Note: This builds the logical table as well. * * @param logicalTableName The logical table name * @param nameGroup The table group information for the logical table * @param validGrains The accepted grains for the logical table * @param dictionaries The resource dictionaries for reading and storing configuration */ public void loadLogicalTableWithGranularities( String logicalTableName, TableGroup nameGroup, Set<? extends Granularity> validGrains, ResourceDictionaries dictionaries ) { loadLogicalTableWithGranularities( logicalTableName, nameGroup, validGrains, dictionaries.getLogicalDictionary(), dictionaries.getMetricDictionary() ); }