aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/vespa/eval/eval/feature_name_extractor.h
blob: 7ff44375193e9e339adaf789300efdf7c06672b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "function.h"

namespace vespalib::eval {

/**
 * Custom symbol extractor used to extract ranking feature names when
 * parsing ranking expressions.
 **/
struct FeatureNameExtractor : public vespalib::eval::SymbolExtractor {
    void extract_symbol(const char *pos_in, const char *end_in,
                        const char *&pos_out, vespalib::string &symbol_out) const override;
};

}