aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary/src/vespa/juniper/query_item.h
blob: d69ede53c923c001e766840b743b1491792bb5e8 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/stllike/string.h>

namespace search::parseitem { enum class ItemCreator; }

namespace juniper {

using ItemCreator = search::parseitem::ItemCreator;

/*
 * Interface class for juniper query items.
 */
class QueryItem {
public:
    virtual ~QueryItem() = default;
    virtual vespalib::stringref get_index() const = 0;
    virtual int get_weight() const = 0;
    virtual ItemCreator get_creator() const = 0;
};

};