summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h
blob: da8ae163fb54d19e991a2c74bd09a80b88b12020 (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 <vespa/searchlib/common/serialnum.h>
#include <memory>
#include <optional>

namespace proton {

class AttributeManager;
class SequentialAttributesInitializer;

/**
 * Class representing the result of the prepare step of an AttributeManager
 * reconfig.
 */
class AttributeManagerReconfig {
    std::shared_ptr<AttributeManager>                _mgr;
    std::unique_ptr<SequentialAttributesInitializer> _initializer;
public:
    AttributeManagerReconfig(std::shared_ptr<AttributeManager> mgr,
                             std::unique_ptr<SequentialAttributesInitializer> initializer);
    ~AttributeManagerReconfig();
    std::shared_ptr<AttributeManager> create(std::optional<uint32_t> docid_limit, std::optional<search::SerialNum> serial_num);
};

}