blob: 6d34ff4e6686e4b7febd9b606749b7996a2101a2 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "fakeposting.h"
namespace search::fakedata {
FakePosting::FakePosting(const std::string &name)
: _name(name)
{
}
FakePosting::~FakePosting()
{
}
size_t
FakePosting::skipBitSize() const
{
return l1SkipBitSize() + l2SkipBitSize() + l3SkipBitSize() +
l4SkipBitSize();
}
size_t
FakePosting::l1SkipBitSize() const
{
return 0;
}
size_t
FakePosting::l2SkipBitSize() const
{
return 0;
}
size_t
FakePosting::l3SkipBitSize() const
{
return 0;
}
size_t
FakePosting::l4SkipBitSize() const
{
return 0;
}
bool
FakePosting::has_interleaved_features() const
{
return false;
}
bool
FakePosting::enable_unpack_normal_features() const
{
return true;
}
bool
FakePosting::enable_unpack_interleaved_features() const
{
return true;
}
}
|