blob: 2d1f8fb46292c0c31de137c90b0a043833ddc56d (
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 Vespa.ai. 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);
};
}
|