blob: 5ac4fd14802225d49d70c44873e4cb1e3f07de37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/eval/eval/value_cache/constant_value.h>
namespace proton {
namespace matching {
/**
* Interface for retrieving a named constant rank value to be used by features in the rank framework.
* If the given value is not found a nullptr should be returned.
*/
struct IConstantValueRepo {
virtual vespalib::eval::ConstantValue::UP getConstant(const vespalib::string &name) const = 0;
virtual ~IConstantValueRepo() {}
};
}
}
|