/** * Get the name of the table in an API-visible form. * * @return the Api name of the table */ public String asName() { return this.name().toLowerCase(Locale.getDefault()); } }
@Override public void loadTableDictionary(ResourceDictionaries dictionaries) { Map<String, TableGroup> logicalTableTableGroup = new LinkedHashMap<>(); for (TestLogicalTableName logicalTableName : TestLogicalTableName.values()) { TableGroup tableGroup = buildDimensionSpanningTableGroup( TestApiMetricName.getByLogicalTable(logicalTableName), dictionaries ); logicalTableTableGroup.put(logicalTableName.asName(), tableGroup); TestLogicalTableName.HOURLY.asName(), logicalTableTableGroup.get(TestLogicalTableName.HOURLY.asName()) ); loadLogicalTablesWithGranularities( TestLogicalTableName.HOURLY_MONTHLY.asName(), logicalTableTableGroup.get(TestLogicalTableName.HOURLY_MONTHLY.asName()) ); loadLogicalTablesWithGranularities(
@Override public void loadTableDictionary(ResourceDictionaries dictionaries) { Map<String, TableGroup> logicalTableTableGroup = new LinkedHashMap<>(); for (TestLogicalTableName logicalTableName : TestLogicalTableName.values()) { TableGroup tableGroup = buildDimensionSpanningTableGroup( TestApiMetricName.getByLogicalTable(logicalTableName), dictionaries ); logicalTableTableGroup.put(logicalTableName.asName(), tableGroup); TestLogicalTableName.HOURLY.asName(), logicalTableTableGroup.get(TestLogicalTableName.HOURLY.asName()) ); loadLogicalTablesWithGranularities( TestLogicalTableName.HOURLY_MONTHLY.asName(), logicalTableTableGroup.get(TestLogicalTableName.HOURLY_MONTHLY.asName()) ); loadLogicalTablesWithGranularities(
/** * Get the name of the table in an API-visible form. * * @return the Api name of the table */ public String asName() { return this.name().toLowerCase(Locale.getDefault()); } }