aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_initializer_result.h
blob: 5d43d2925cfe439769d24f4b91312f5f12d2a805 (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
35
36
37
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/common/tunefileinfo.h>

namespace proton {

class DocumentMetaStore;

/**
 * The result after initializing document meta store component in a
 * document sub database.
 */
class DocumentMetaStoreInitializerResult
{
private:
    std::shared_ptr<DocumentMetaStore> _documentMetaStore;
    const search::TuneFileAttributes _tuneFile;

public:
    using SP = std::shared_ptr<DocumentMetaStoreInitializerResult>;

    DocumentMetaStoreInitializerResult(std::shared_ptr<DocumentMetaStore> documentMetaStore_in,
                                       const search::TuneFileAttributes & tuneFile_in);

    virtual ~DocumentMetaStoreInitializerResult();

    std::shared_ptr<DocumentMetaStore> documentMetaStore() const {
        return _documentMetaStore;
    }
    const search::TuneFileAttributes &tuneFile() const { return _tuneFile; }
};



} // namespace proton