blob: 27da1fa431d320539fcde226078534e95e10372d (
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
28
29
30
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "blueprintfactory.h"
#include "iindexenvironment.h"
#include <string>
namespace search {
namespace fef {
/**
* Verify whether a specific feature can be computed. If the feature
* can not be computed, log a reason why, including feature
* dependencies.
*
* @return true if the feature can be computed, false otherwise
* @param factory blueprint factory
* @param indexEnv index environment
* @param featureName name of feature to verify
* @param desc external description of the feature
**/
bool verifyFeature(const BlueprintFactory &factory,
const IIndexEnvironment &indexEnv,
const std::string &featureName,
const std::string &desc);
} // namespace fef
} // namespace search
|