ClickHouse/dbms/src/Storages/MergeTree/MarkRange.h

26 lines
460 B
C++
Raw Normal View History

2015-06-24 11:03:53 +00:00
#pragma once
#include <cstddef>
#include <vector>
2015-06-24 11:03:53 +00:00
namespace DB
{
2017-04-16 15:00:33 +00:00
/** A pair of marks that defines the range of rows in a part. Specifically, the range has the form [begin * index_granularity, end * index_granularity).
2015-06-24 11:03:53 +00:00
*/
struct MarkRange
{
std::size_t begin;
std::size_t end;
2015-06-24 11:03:53 +00:00
MarkRange() = default;
MarkRange(const std::size_t begin, const std::size_t end) : begin{begin}, end{end} {}
2015-06-24 11:03:53 +00:00
};
using MarkRanges = std::vector<MarkRange>;
}