ClickHouse/dbms/src/Storages/MergeTree/MergeTreeIndexReader.h
2019-01-10 16:50:41 +03:00

26 lines
531 B
C++

#pragma once
#include <Storages/MergeTree/MergeTreeReader.h>
#include <Storages/MergeTree/MergeTreeIndexes.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);
void seek(size_t mark);
MergeTreeIndexGranulePtr read();
private:
MergeTreeIndexPtr index;
MergeTreeReader::Stream stream;
};
}