aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h
blob: 899c8d35a0c70539c268a9472409047e0721fda9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/fef/featureexecutor.h>

namespace search::tensor { class ITensorAttribute; }
namespace search::features {

class DirectTensorAttributeExecutor : public fef::FeatureExecutor
{
public:
    using ITensorAttribute = search::tensor::ITensorAttribute;
    DirectTensorAttributeExecutor(const ITensorAttribute &attribute);
    void execute(uint32_t docId) override;
private:
    const ITensorAttribute &_attribute;
};

}