2019-10-16 18:27:53 +00:00
|
|
|
#include <Storages/MergeTree/IMergeTreeDataPartWriter.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class MergeTreeDataPartWriterCompact : IMergeTreeDataPartWriter
|
|
|
|
{
|
|
|
|
public:
|
2019-10-21 00:28:29 +00:00
|
|
|
size_t write(const Block & block, size_t from_mark, size_t index_offset, const MergeTreeIndexGranularity & index_granularity,
|
2019-10-16 18:27:53 +00:00
|
|
|
const Block & primary_key_block, const Block & skip_indexes_block) override;
|
|
|
|
|
|
|
|
/// Write single granule of one column (rows between 2 marks)
|
|
|
|
size_t writeColumnSingleGranule(
|
|
|
|
const ColumnWithTypeAndName & column,
|
|
|
|
size_t from_row,
|
|
|
|
size_t number_of_rows);
|
2019-10-21 00:28:29 +00:00
|
|
|
|
2019-10-16 18:27:53 +00:00
|
|
|
private:
|
2019-10-21 00:28:29 +00:00
|
|
|
ColumnStreamPtr stream;
|
2019-10-16 18:27:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|