aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/fef/featureexecutor.cpp
blob: d500f9c7a870aebb6729c8b9b5c6907e823d6dd9 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "featureexecutor.h"
#include <vespa/vespalib/util/classname.h>

namespace search::fef {

FeatureExecutor::FeatureExecutor() = default;


vespalib::string
FeatureExecutor::getClassName() const
{
    return vespalib::getClassName(*this);
}

bool
FeatureExecutor::isPure()
{
    return false;
}

void
FeatureExecutor::handle_bind_inputs(vespalib::ConstArrayRef<LazyValue>)
{
}

void
FeatureExecutor::handle_bind_outputs(vespalib::ArrayRef<NumberOrObject>)
{
}

void
FeatureExecutor::handle_bind_match_data(const MatchData &)
{
}

void
FeatureExecutor::bind_inputs(vespalib::ConstArrayRef<LazyValue> inputs)
{
    _inputs.bind(inputs);
    handle_bind_inputs(inputs);
}

void
FeatureExecutor::bind_outputs(vespalib::ArrayRef<NumberOrObject> outputs)
{
    _outputs.bind(outputs);
    handle_bind_outputs(outputs);
}

void
FeatureExecutor::bind_match_data(const MatchData &md)
{
    handle_bind_match_data(md);
}

}