summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/iterator_benchmark/benchmark_searchable.h
blob: 5fce2570febfed0b258da6c9c1e83a539964d066 (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 <memory>

namespace search::query { class Node; }

namespace search::queryeval {
class Blueprint;
class FieldSpec;
class IRequestContext;
}

namespace search::queryeval::test {

/**
 * Simplified interface used to create a Blueprint, similar to search::queryeval::Searchable.
 */
class BenchmarkSearchable {
public:
    virtual ~BenchmarkSearchable() = default;
    virtual std::unique_ptr<Blueprint> create_blueprint(const FieldSpec& field,
                                                        const search::query::Node& term) = 0;
};

}