1#pragma once
2
3#include <Storages/MergeTree/MergeTreeReaderStream.h>
4#include <Storages/MergeTree/MergeTreeIndices.h>
5#include <Storages/MergeTree/MergeTreeData.h>
6
7namespace DB
8{
9
10class MergeTreeIndexReader
11{
12public:
13 MergeTreeIndexReader(
14 MergeTreeIndexPtr index_,
15 MergeTreeData::DataPartPtr part_,
16 size_t marks_count_,
17 const MarkRanges & all_mark_ranges_);
18
19 void seek(size_t mark);
20
21 MergeTreeIndexGranulePtr read();
22
23private:
24 MergeTreeIndexPtr index;
25 MergeTreeReaderStream stream;
26};
27
28}
29