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

#include "dbdocumentid.h"

namespace proton {

vespalib::nbostream &
operator<<(vespalib::nbostream &os, const DbDocumentId &dbdId)
{
    os << dbdId._subDbId;
    os << dbdId._lid;
    return os;
}


vespalib::nbostream &
operator>>(vespalib::nbostream &is, DbDocumentId &dbdId)
{
    is >> dbdId._subDbId;
    is >> dbdId._lid;
    return is;
}

} // namespace proton