blob: c0831f554deecc1a1da9b339b3a787fec0f0c7db (
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.
#include "gid_to_lid_mapper.h"
#include <vespa/searchlib/common/idocumentmetastore.h>
namespace proton {
GidToLidMapper::GidToLidMapper(const search::IDocumentMetaStoreContext &dmsContext)
: _guard(dmsContext.getReadGuard())
{
}
GidToLidMapper::~GidToLidMapper() = default;
void
GidToLidMapper::foreach(const search::IGidToLidMapperVisitor &visitor) const
{
_guard->get().foreach(visitor);
}
} // namespace proton
|