blob: 42da5855c23422952db3d4edf7a4b0b46e446625 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <map>
#include <vespa/vespalib/stllike/string.h>
namespace search::index {
class PostingListParams {
using Map = std::map<vespalib::string, vespalib::string>;
Map _map;
public:
template <typename TYPE>
void set(const vespalib::string &key, const TYPE &val);
template <typename TYPE>
void get(const vespalib::string &key, TYPE &val) const;
bool isSet(const vespalib::string &key) const;
void setStr(const vespalib::string &key, const vespalib::string &val);
const vespalib::string & getStr(const vespalib::string &key) const;
void clear();
void erase(const vespalib::string &key);
bool operator!=(const PostingListParams &rhs) const;
void add(const PostingListParams & toAdd);
};
}
|