blob: 989d362e629543ffe4558c104a7d535f781675cf (
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 Yahoo. 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> ¶ms);
};
} // namespace search::features::rankingexpression
|