/** * Get the query signing service for the test. * * @return the query signing service */ public QuerySigningService<?> getQuerySigningService() { return buildQuerySigningService( getConfigurationLoader().getPhysicalTableDictionary(), getDataSourceMetadataService() ); }
/** * Get the query signing service for the test. * * @return the query signing service */ public QuerySigningService<?> getQuerySigningService() { return buildQuerySigningService( getConfigurationLoader().getPhysicalTableDictionary(), getDataSourceMetadataService() ); }
@Override protected VolatileIntervalsService getVolatileIntervalsService() { PhysicalTableDictionary physicalTableDictionary = getConfigurationLoader().getPhysicalTableDictionary(); Map<PhysicalTable, VolatileIntervalsFunction> hourlyMonthlyVolatileIntervals = new LinkedHashMap<>(); if (physicalTableDictionary.containsKey(HOURLY.asName())) { hourlyMonthlyVolatileIntervals.put( getConfigurationLoader().getPhysicalTableDictionary().get(HOURLY.asName()), () -> new SimplifiedIntervalList( Collections.singleton( new Interval(new DateTime(2016, 8, 15, 0, 0), new DateTime(2016, 8, 16, 0, 0)) ) ) ); } if (physicalTableDictionary.containsKey(MONTHLY.asName())) { hourlyMonthlyVolatileIntervals.put( getConfigurationLoader().getPhysicalTableDictionary().get(MONTHLY.asName()), () -> new SimplifiedIntervalList( Collections.singleton( new Interval(new DateTime(2016, 8, 1, 0, 0), new DateTime(2016, 9, 1, 0, 0)) ) ) ); } return new DefaultingVolatileIntervalsService( NoVolatileIntervalsFunction.INSTANCE, hourlyMonthlyVolatileIntervals ); }
@Override protected VolatileIntervalsService getVolatileIntervalsService() { PhysicalTableDictionary physicalTableDictionary = getConfigurationLoader().getPhysicalTableDictionary(); Map<PhysicalTable, VolatileIntervalsFunction> hourlyMonthlyVolatileIntervals = new LinkedHashMap<>(); if (physicalTableDictionary.containsKey(HOURLY.asName())) { hourlyMonthlyVolatileIntervals.put( getConfigurationLoader().getPhysicalTableDictionary().get(HOURLY.asName()), () -> new SimplifiedIntervalList( Collections.singleton( new Interval(new DateTime(2016, 8, 15, 0, 0), new DateTime(2016, 8, 16, 0, 0)) ) ) ); } if (physicalTableDictionary.containsKey(MONTHLY.asName())) { hourlyMonthlyVolatileIntervals.put( getConfigurationLoader().getPhysicalTableDictionary().get(MONTHLY.asName()), () -> new SimplifiedIntervalList( Collections.singleton( new Interval(new DateTime(2016, 8, 1, 0, 0), new DateTime(2016, 9, 1, 0, 0)) ) ) ); } return new DefaultingVolatileIntervalsService( NoVolatileIntervalsFunction.INSTANCE, hourlyMonthlyVolatileIntervals ); }
/** * Binds all the resource dictionaries. * * @param binder The binder to bind the dictionaries to. */ private void bindDictionaries(AbstractBinder binder) { // Bind the configuration dictionaries binder.bind(loader.getDimensionDictionary()).to(DimensionDictionary.class); binder.bind(loader.getMetricDictionary()).to(MetricDictionary.class); binder.bind(loader.getLogicalTableDictionary()).to(LogicalTableDictionary.class); binder.bind(loader.getPhysicalTableDictionary()).to(PhysicalTableDictionary.class); binder.bind(loader.getDictionaries()).to(ResourceDictionaries.class); }
loader.getPhysicalTableDictionary(), dataSourceMetadataService ); DataSourceMetadataLoadTask dataSourceMetadataLoader = buildDataSourceMetadataLoader( metadataDruidWebService, loader.getPhysicalTableDictionary(), dataSourceMetadataService, getMappers().getMapper() DimensionValueLoadTask dimensionLoader = buildDruidDimensionsLoader( druidWebService, loader.getPhysicalTableDictionary(), loader.getDimensionDictionary() );