2015-06-24 11:03:53 +00:00
# pragma once
# include <cstddef>
2017-01-31 12:17:42 +00:00
# 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
{
2017-04-01 07:20:54 +00:00
std : : size_t begin ;
std : : size_t end ;
2015-06-24 11:03:53 +00:00
2017-04-01 07:20:54 +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 > ;
}