/** * Build the hourly table definitions. * * @param testDimensions Dimensions to build the tables with * @param metricNames The field name of metrics to build with * * @return the hourly table definitions */ public static LinkedHashSet<PhysicalTableDefinition> buildHourlyTableDefinitions( TestDimensions testDimensions, Set<FieldName> metricNames ) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( HOURLY, HOUR.buildZonedTimeGrain(DateTimeZone.UTC), new LinkedHashSet<>(Arrays.asList(TestDruidMetricName.values())), testDimensions.getDimensionConfigurationsByApiName(OTHER) ) ); }
/** * Build the monthly table definitions. * * @param testDimensions Dimensions to build the tables with * @param metricNames The field name of metrics to build with * * @return the monthly table definitions */ public static LinkedHashSet<PhysicalTableDefinition> buildMonthlyTableDefinitions( TestDimensions testDimensions, Set<FieldName> metricNames ) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( MONTHLY, MONTH.buildZonedTimeGrain(DateTimeZone.UTC), new LinkedHashSet<>(Arrays.asList(TestDruidMetricName.values())), testDimensions.getDimensionConfigurationsByApiName(OTHER) ) ); }
/** * Build the hourly table definitions. * * @param testDimensions Dimensions to build the tables with * @param metricNames The field name of metrics to build with * * @return the hourly table definitions */ public static LinkedHashSet<PhysicalTableDefinition> buildHourlyTableDefinitions( TestDimensions testDimensions, Set<FieldName> metricNames ) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( HOURLY, HOUR.buildZonedTimeGrain(DateTimeZone.UTC), new LinkedHashSet<>(Arrays.asList(TestDruidMetricName.values())), testDimensions.getDimensionConfigurationsByApiName(OTHER) ) ); }
/** * Build the monthly table definitions. * * @param testDimensions Dimensions to build the tables with * @param metricNames The field name of metrics to build with * * @return the monthly table definitions */ public static LinkedHashSet<PhysicalTableDefinition> buildMonthlyTableDefinitions( TestDimensions testDimensions, Set<FieldName> metricNames ) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( MONTHLY, MONTH.buildZonedTimeGrain(DateTimeZone.UTC), new LinkedHashSet<>(Arrays.asList(TestDruidMetricName.values())), testDimensions.getDimensionConfigurationsByApiName(OTHER) ) ); }