mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
35 lines
751 B
C++
35 lines
751 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <Storages/MergeTree/MergeTreeReaderStream.h>
|
|
#include <Storages/MergeTree/MergeTreeIndices.h>
|
|
#include <Storages/MergeTree/MergeTreeData.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class MergeTreeIndexReader
|
|
{
|
|
public:
|
|
MergeTreeIndexReader(
|
|
MergeTreeIndexPtr index_,
|
|
MergeTreeData::DataPartPtr part_,
|
|
size_t marks_count_,
|
|
const MarkRanges & all_mark_ranges_,
|
|
MarkCache * mark_cache,
|
|
UncompressedCache * uncompressed_cache,
|
|
MergeTreeReaderSettings settings);
|
|
~MergeTreeIndexReader();
|
|
|
|
void seek(size_t mark);
|
|
|
|
MergeTreeIndexGranulePtr read();
|
|
|
|
private:
|
|
MergeTreeIndexPtr index;
|
|
std::unique_ptr<MergeTreeReaderStream> stream;
|
|
uint8_t version = 0;
|
|
};
|
|
|
|
}
|