blob: 0554056100e505f8d4f742bda03248b3cc1bec57 (
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
33
34
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchlib/common/serialnum.h>
#include <memory>
namespace proton {
class Matchers;
/**
* Class representing the result of the prepare step of a IDocumentSubDB reconfig.
*/
class DocumentSubDBReconfig {
private:
std::shared_ptr<Matchers> _old_matchers;
std::shared_ptr<Matchers> _new_matchers;
public:
DocumentSubDBReconfig(std::shared_ptr<Matchers> matchers_in);
~DocumentSubDBReconfig();
void set_matchers(std::shared_ptr<Matchers> value) {
_new_matchers = std::move(value);
}
bool has_matchers_changed() const noexcept {
return _old_matchers != _new_matchers;
}
std::shared_ptr<Matchers> matchers() const { return _new_matchers; }
void complete(uint32_t docid_limit, search::SerialNum serial_num);
};
}
|