aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/reference/gid_to_lid_mapper_factory.h
blob: 31668e8332d657b23a58c7d246675992c6b00710 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

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

namespace search { struct IDocumentMetaStoreContext; }

namespace proton {

class DocumentMetaStore;

class GidToLidMapperFactory : public search::IGidToLidMapperFactory
{
    std::shared_ptr<const search::IDocumentMetaStoreContext> _dmsContext;
public:
    GidToLidMapperFactory(std::shared_ptr<const search::IDocumentMetaStoreContext> dmsContext);
    ~GidToLidMapperFactory() override;
    std::unique_ptr<search::IGidToLidMapper> getMapper() const override;
};

} // namespace proton