Search in sources :

Example 1 with SearchQueryBuilder

use of io.druid.query.Druids.SearchQueryBuilder in project druid by druid-io.

the class SearchBenchmark method setupQueries.

private void setupQueries() {
    // queries for the basic schema
    final Map<String, SearchQueryBuilder> basicQueries = new LinkedHashMap<>();
    final BenchmarkSchemaInfo basicSchema = BenchmarkSchemas.SCHEMA_MAP.get("basic");
    final List<String> queryTypes = ImmutableList.of("A", "B", "C", "D");
    for (final String eachType : queryTypes) {
        basicQueries.put(eachType, makeQuery(eachType, basicSchema));
    }
    SCHEMA_QUERY_MAP.put("basic", basicQueries);
}
Also used : BenchmarkSchemaInfo(io.druid.benchmark.datagen.BenchmarkSchemaInfo) SearchQueryBuilder(io.druid.query.Druids.SearchQueryBuilder) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

BenchmarkSchemaInfo (io.druid.benchmark.datagen.BenchmarkSchemaInfo)1 SearchQueryBuilder (io.druid.query.Druids.SearchQueryBuilder)1 LinkedHashMap (java.util.LinkedHashMap)1