blob: 954c6a1f75c11c2f817f4205ee84fba309241e2b (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
namespace search::fakedata {
class FakePosting;
/**
* Implementations of fake match loops used for testing and benchmarking.
*/
class FakeMatchLoop {
public:
static int direct_posting_scan(const FakePosting& posting, uint32_t doc_id_limit);
static int direct_posting_scan_with_unpack(const FakePosting& posting, uint32_t doc_id_limit);
static int and_pair_posting_scan(const FakePosting& posting_1, const FakePosting& posting_2, uint32_t doc_id_limit);
static int and_pair_posting_scan_with_unpack(const FakePosting& posting_1, const FakePosting& posting_2, uint32_t doc_id_limit);
static int or_pair_posting_scan(const FakePosting& posting_1, const FakePosting& posting_2, uint32_t doc_id_limit);
static int or_pair_posting_scan_with_unpack(const FakePosting& posting_1, const FakePosting& posting_2, uint32_t doc_id_limit);
};
}
|