aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/common/i_gid_to_lid_mapper_factory.h
blob: b463590da82caa1c4e91968383af0929db3da6fe (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 <memory>

namespace search {

class IGidToLidMapper;

/*
 * Interface to factory class for creating classes mapping from gid to lid.
 */
class IGidToLidMapperFactory
{
public:
    using SP = std::shared_ptr<IGidToLidMapperFactory>;
    virtual ~IGidToLidMapperFactory() = default;
    virtual std::unique_ptr<IGidToLidMapper> getMapper() const = 0;
};

} // namespace search