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

#include "gid_to_lid_map_key.h"
#include <vespa/document/base/globalid.h>

using document::GlobalId;

namespace proton::documentmetastore {

GidToLidMapKey::GidToLidMapKey(uint32_t lid, const GlobalId& gid)
    : GidToLidMapKey(lid, GlobalId::BucketOrderCmp::gid_key32(gid))
{
}

GidToLidMapKey
GidToLidMapKey::make_find_key(const GlobalId& gid)
{
    return GidToLidMapKey(FIND_DOC_ID, gid);
}

}