blob: 46ea5fd66b6f2bbf5821398e9fe8e1dcb8f8ce45 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "emptysearch.h"
namespace search::queryeval {
void
EmptySearch::doSeek(uint32_t)
{
}
void
EmptySearch::doUnpack(uint32_t)
{
}
void
EmptySearch::or_hits_into(BitVector &, uint32_t)
{
// nop
}
void
EmptySearch::and_hits_into(BitVector &result, uint32_t begin_id)
{
result.clearInterval(begin_id, getEndId());
}
BitVector::UP
EmptySearch::get_hits(uint32_t begin_id)
{
auto result = BitVector::create(begin_id, getEndId());
return result;
}
EmptySearch::Trinary
EmptySearch::is_strict() const
{
return Trinary::True;
}
EmptySearch::EmptySearch()
: SearchIterator()
{
}
EmptySearch::~EmptySearch()
{
}
} // namespace
|