blob: 42e446aac00e6b79da2c8dd1e277e17afd833438 (
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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "pagedict4_decoders.h"
#include "threelevelcountbuffers.h"
#include <vespa/searchlib/bitcompression/pagedict4.h>
namespace search::diskindex::test {
/*
* Class for performing sequential reads in memory based pagedict4 structure
*/
class PageDict4MemSeqReader
{
public:
using PageDict4SSReader = search::bitcompression::PageDict4SSReader;
using PageDict4Reader = search::bitcompression::PageDict4Reader;
using PostingListCounts = search::index::PostingListCounts;
PageDict4Decoders _decoders;
ThreeLevelCountReadBuffers _buffers;
PageDict4SSReader _ssr;
PageDict4Reader _pr;
PageDict4MemSeqReader(uint32_t chunkSize, uint64_t numWordIds,
ThreeLevelCountWriteBuffers &wb);
~PageDict4MemSeqReader();
void readCounts(vespalib::string &word,
uint64_t &wordNum,
PostingListCounts &counts);
};
}
|