aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/diskindex/extposocc.h
blob: 1b463bf8f68326a726deb0cb50514732e3b41157 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/stllike/string.h>
#include <memory>

namespace search {
    class TuneFileSeqRead;
    class TuneFileSeqWrite;
}

namespace search::index {
    class FieldLengthInfo;
    class PostingListParams;
    class PostingListCountFileSeqWrite;
    class PostingListCountFileSeqRead;
    class PostingListFileSeqWrite;
    class PostingListFileSeqRead;
    class Schema;
}

namespace search::diskindex {


void
setupDefaultPosOccParameters(index::PostingListParams *countParams,
                             index::PostingListParams *params,
                             uint64_t numWordIds,
                             uint32_t docIdLimit);

std::unique_ptr<index::PostingListFileSeqWrite>
makePosOccWrite(index::PostingListCountFileSeqWrite *const posOccCountWrite,
                bool dynamicK,
                const index::PostingListParams &params,
                const index::PostingListParams &featureParams,
                const index::Schema &schema,
                uint32_t indexId,
                const index::FieldLengthInfo &field_length_info);

std::unique_ptr<index::PostingListFileSeqRead>
makePosOccRead(const vespalib::string &name,
               index::PostingListCountFileSeqRead *const posOccCountRead,
               const index::PostingListParams &featureParams,
               const TuneFileSeqRead &tuneFileRead);

}