Search in sources :

Example 11 with GroupByStrategySelector

use of org.apache.druid.query.groupby.strategy.GroupByStrategySelector in project druid by druid-io.

the class GroupByQueryRunnerFailureTest method makeQueryRunnerFactory.

private static GroupByQueryRunnerFactory makeQueryRunnerFactory(final ObjectMapper mapper, final GroupByQueryConfig config) {
    final Supplier<GroupByQueryConfig> configSupplier = Suppliers.ofInstance(config);
    final GroupByStrategySelector strategySelector = new GroupByStrategySelector(configSupplier, new GroupByStrategyV1(configSupplier, new GroupByQueryEngine(configSupplier, BUFFER_POOL), QueryRunnerTestHelper.NOOP_QUERYWATCHER), new GroupByStrategyV2(DEFAULT_PROCESSING_CONFIG, configSupplier, BUFFER_POOL, MERGE_BUFFER_POOL, mapper, QueryRunnerTestHelper.NOOP_QUERYWATCHER));
    final GroupByQueryQueryToolChest toolChest = new GroupByQueryQueryToolChest(strategySelector);
    return new GroupByQueryRunnerFactory(strategySelector, toolChest);
}
Also used : GroupByStrategySelector(org.apache.druid.query.groupby.strategy.GroupByStrategySelector) GroupByStrategyV1(org.apache.druid.query.groupby.strategy.GroupByStrategyV1) GroupByStrategyV2(org.apache.druid.query.groupby.strategy.GroupByStrategyV2)

Aggregations

GroupByStrategySelector (org.apache.druid.query.groupby.strategy.GroupByStrategySelector)11 GroupByStrategyV2 (org.apache.druid.query.groupby.strategy.GroupByStrategyV2)11 GroupByStrategyV1 (org.apache.druid.query.groupby.strategy.GroupByStrategyV1)10 ByteBuffer (java.nio.ByteBuffer)8 DefaultObjectMapper (org.apache.druid.jackson.DefaultObjectMapper)7 DruidProcessingConfig (org.apache.druid.query.DruidProcessingConfig)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)6 SmileFactory (com.fasterxml.jackson.dataformat.smile.SmileFactory)6 DefaultBlockingPool (org.apache.druid.collections.DefaultBlockingPool)5 StupidPool (org.apache.druid.collections.StupidPool)5 CloseableDefaultBlockingPool (org.apache.druid.collections.CloseableDefaultBlockingPool)4 CloseableStupidPool (org.apache.druid.collections.CloseableStupidPool)4 GroupByQueryConfig (org.apache.druid.query.groupby.GroupByQueryConfig)4 GroupByQueryQueryToolChest (org.apache.druid.query.groupby.GroupByQueryQueryToolChest)4 GroupByQueryRunnerFactory (org.apache.druid.query.groupby.GroupByQueryRunnerFactory)4 GroupByQueryEngine (org.apache.druid.query.groupby.GroupByQueryEngine)3 OffheapBufferGenerator (org.apache.druid.offheap.OffheapBufferGenerator)2 HyperUniquesSerde (org.apache.druid.query.aggregation.hyperloglog.HyperUniquesSerde)2 DataGenerator (org.apache.druid.segment.generator.DataGenerator)2 IncrementalIndex (org.apache.druid.segment.incremental.IncrementalIndex)2