aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/test/diskindex/pagedict4_encoders.h
blob: f0e3811231becd4268dc6d5090d4fcedbcfb3a64 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/bitcompression/countcompression.h>

namespace search::diskindex::test {

/*
 * Class for writing to memory based pagedict4 structure
 */
struct PageDict4Encoders
{
    using EC = search::bitcompression::PostingListCountFileEncodeContext;

    EC sse;
    EC spe;
    EC pe;

    PageDict4Encoders(uint32_t chunkSize, uint64_t numWordIds);
    ~PageDict4Encoders();
};

}