blob: ec3c00c95fd2b0f5372db34c3f7843ace1b86e93 (
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 Vespa.ai. 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
|