Package io.druid.query.groupby

Examples of io.druid.query.groupby.GroupByQueryQueryToolChest


    final GroupByQueryRunnerFactory factory = new GroupByQueryRunnerFactory(
        engine,
        QueryRunnerTestHelper.NOOP_QUERYWATCHER,
        configSupplier,
        new GroupByQueryQueryToolChest(configSupplier, mapper, engine, pool),
        pool
    );

    GroupByQueryConfig singleThreadedConfig = new GroupByQueryConfig()
    {
      @Override
      public boolean isSingleThreaded()
      {
        return true;
      }
    };
    singleThreadedConfig.setMaxIntermediateRows(10000);

    final Supplier<GroupByQueryConfig> singleThreadedConfigSupplier = Suppliers.ofInstance(singleThreadedConfig);
    final GroupByQueryEngine singleThreadEngine = new GroupByQueryEngine(singleThreadedConfigSupplier, pool);

    final GroupByQueryRunnerFactory singleThreadFactory = new GroupByQueryRunnerFactory(
        singleThreadEngine,
        QueryRunnerTestHelper.NOOP_QUERYWATCHER,
        singleThreadedConfigSupplier,
        new GroupByQueryQueryToolChest(singleThreadedConfigSupplier, mapper, singleThreadEngine, pool),
        pool
    );


    Function<Object, Object> function = new Function<Object, Object>()
View Full Code Here


        return new GroupByQueryConfig();
      }
    };
    QueryRunner runner = new FinalizeResultsQueryRunner(
        client,
        new GroupByQueryQueryToolChest(
            configSupplier,
            jsonMapper,
            new GroupByQueryEngine(
                configSupplier,
                new StupidPool<>(
View Full Code Here

                            SelectQuery.class,
                            new SelectQueryQueryToolChest(new QueryConfig(), jsonMapper)
                        )
                        .put(
                            GroupByQuery.class,
                            new GroupByQueryQueryToolChest(
                                groupByQueryConfigSupplier,
                                jsonMapper,
                                new GroupByQueryEngine(
                                    groupByQueryConfigSupplier,
                                    new StupidPool<>(
View Full Code Here

TOP

Related Classes of io.druid.query.groupby.GroupByQueryQueryToolChest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.