blob: 869d26e54d0da98c5386ea2a2aecaa49f66dcf64 (
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
25
26
27
28
29
30
31
32
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace search::index {
struct BitVectorWordSingleKey {
uint64_t _wordNum;
uint32_t _numDocs;
uint32_t _pad;
BitVectorWordSingleKey() noexcept
: _wordNum(0),
_numDocs(0),
_pad(0)
{
}
bool
operator<(const BitVectorWordSingleKey &rhs) const
{
return _wordNum < rhs._wordNum;
}
bool
operator==(const BitVectorWordSingleKey &rhs) const
{
return _wordNum == rhs._wordNum;
}
};
}
|