aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/features/rankingexpression/intrinsic_blueprint_adapter.h
blob: 44bc0635e502f061a389b4b4fc37f0307ba3942f (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "intrinsic_expression.h"
#include <vespa/vespalib/stllike/string.h>
#include <vector>

namespace search::fef { class Blueprint; }
namespace search::fef { class IIndexEnvironment; }

namespace search::features::rankingexpression {

/**
 * Adapt a Blueprint with no inputs and a single output to the
 * IntrinsicExpression interface.
 **/
struct IntrinsicBlueprintAdapter
{
    static IntrinsicExpression::UP try_create(const search::fef::Blueprint &proto,
                                              const search::fef::IIndexEnvironment &env,
                                              const std::vector<vespalib::string> &params);
};

} // namespace search::features::rankingexpression