aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.h
blob: aa7b7a2094e9faff2e63f9efd608e783bba127ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "isearchcontext.h"
#include <vespa/searchlib/query/tree/node.h>
#include <vespa/searchlib/queryeval/blueprint.h>

namespace search::queryeval { class IRequestContext; }

namespace proton::matching {

struct BlueprintBuilder {
    /**
     * Build a tree of blueprints from the query tree and inject
     * blueprint meta-data back into corresponding query tree nodes.
     */
    static search::queryeval::Blueprint::UP
    build(const search::queryeval::IRequestContext & requestContext, search::query::Node &node, ISearchContext &context);
};

}