aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/diskindex/zc4_posting_params.h
blob: 770d506574a84e3e005d51ac5af48456dd0e99e4 (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
// 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::diskindex {

/*
 * Struct containing parameters for posting list.
 */
struct Zc4PostingParams {
    uint32_t _min_skip_docs;
    uint32_t _min_chunk_docs;
    uint32_t _doc_id_limit;
    bool     _dynamic_k;
    bool     _encode_features;
    bool     _encode_interleaved_features;

    Zc4PostingParams(uint32_t min_skip_docs, uint32_t min_chunk_docs, uint32_t doc_id_limit, bool dynamic_k, bool encode_features, bool encode_interleaved_features)
        : _min_skip_docs(min_skip_docs),
          _min_chunk_docs(min_chunk_docs),
          _doc_id_limit(doc_id_limit),
          _dynamic_k(dynamic_k),
          _encode_features(encode_features),
          _encode_interleaved_features(encode_interleaved_features)
    {
    }
};

}