blob: 0e8d5936d314989200ec855f1e915b72e64ef64c (
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
|
// 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::bitcompression { class DecodeContext64Base; }
namespace search::diskindex {
struct Zc4PostingParams;
/*
* Struct containing the decoded header for a word.
*/
struct Zc4PostingHeader {
bool _has_more;
uint32_t _doc_id_k;
uint32_t _num_docs;
uint32_t _doc_ids_size;
uint32_t _l1_skip_size;
uint32_t _l2_skip_size;
uint32_t _l3_skip_size;
uint32_t _l4_skip_size;
uint64_t _features_size;
uint32_t _last_doc_id;
Zc4PostingHeader();
void
read(bitcompression::DecodeContext64Base &decode_context, const Zc4PostingParams ¶ms);
};
}
|