summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/features/tensor_factory_blueprint.h
blob: 26fcc79b6f53c5f9847f894a98af45ec027c83cf (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/fef/blueprint.h>
#include <vespa/vespalib/stllike/string.h>

namespace search::features {

/**
 * Factory class for tensor rank features.
 */
class TensorFactoryBlueprint : public fef::Blueprint
{
protected:
    static vespalib::string ATTRIBUTE_SOURCE;
    static vespalib::string QUERY_SOURCE;

    vespalib::string _sourceType;
    vespalib::string _sourceParam;
    vespalib::string _dimension;

    bool extractSource(const vespalib::string &source);
    TensorFactoryBlueprint(const vespalib::string &baseName);
    ~TensorFactoryBlueprint();

public:
    void visitDumpFeatures(const fef::IIndexEnvironment &,
                           fef::IDumpFeatureVisitor &) const override {}
};

}