@Override public ConfigPhysicalTable build(ResourceDictionaries dictionaries, DataSourceMetadataService metadataService) { return new StrictPhysicalTable( getName(), getTimeGrain(), buildColumns(dictionaries.getDimensionDictionary()), getLogicalToPhysicalNames(), metadataService, getExpectedStartDate(), getExpectedEndDate() ); } }
/** * 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 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) ) ); }
) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( ALL_SHAPES, DAY.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR, SIZE, SHAPE, OTHER, MODEL) ), new ConcretePhysicalTableDefinition( COLOR_SHAPES_HOURLY, HOUR.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR) ), new ConcretePhysicalTableDefinition( COLOR_SHAPES, DAY.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR) ), new ConcretePhysicalTableDefinition( COLOR_SHAPES_MONTHLY, MONTH.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR) ), new ConcretePhysicalTableDefinition( COLOR_SIZE_SHAPES, DAY.buildZonedTimeGrain(DateTimeZone.UTC),
/** * Build the pet table definitions. * * @param testDimensions Dimensions to build the tables with * @param metricNames The field name of metrics to build with * * @return the pet table definitions */ public static LinkedHashSet<PhysicalTableDefinition> buildPetTableDefinitions( TestDimensions testDimensions, Set<FieldName> metricNames ) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( ALL_PETS, DAY.buildZonedTimeGrain(DateTimeZone.UTC), metricNames, testDimensions.getDimensionConfigurationsByApiName(BREED, SEX, SPECIES) ) ); }
/** * Build the pet table definitions. * * @param testDimensions Dimensions to build the tables with * @param metricNames The field name of metrics to build with * * @return the pet table definitions */ public static LinkedHashSet<PhysicalTableDefinition> buildPetTableDefinitions( TestDimensions testDimensions, Set<FieldName> metricNames ) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( ALL_PETS, DAY.buildZonedTimeGrain(DateTimeZone.UTC), metricNames, testDimensions.getDimensionConfigurationsByApiName(BREED, SEX, SPECIES) ) ); }
) { return Utils.asLinkedHashSet( new ConcretePhysicalTableDefinition( ALL_SHAPES, DAY.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR, SIZE, SHAPE, OTHER, MODEL) ), new ConcretePhysicalTableDefinition( COLOR_SHAPES_HOURLY, HOUR.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR) ), new ConcretePhysicalTableDefinition( COLOR_SHAPES, DAY.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR) ), new ConcretePhysicalTableDefinition( COLOR_SHAPES_MONTHLY, MONTH.buildZonedTimeGrain(DateTimeZone.UTC), testDimensions.getDimensionConfigurationsByApiName(COLOR) ), new ConcretePhysicalTableDefinition( COLOR_SIZE_SHAPES, DAY.buildZonedTimeGrain(DateTimeZone.UTC),