aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h
blob: 1459cbfe856fe342b0d4c581fe78015577aa673c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "common.h"
#include <memory>

namespace search::queryeval { class Blueprint; }

namespace search::queryeval::test {

/**
 * Interface for creating a Blueprint.
 */
class BenchmarkBlueprintFactory {
public:
    virtual ~BenchmarkBlueprintFactory() = default;
    virtual std::unique_ptr<Blueprint> make_blueprint() = 0;
};

std::unique_ptr<BenchmarkBlueprintFactory>
make_blueprint_factory(const FieldConfig& field_cfg, QueryOperator query_op,
                       uint32_t num_docs, uint32_t default_values_per_document,
                       double op_hit_ratio, uint32_t children);

}