ClickHouse/dbms/Storages/MergeTree/checkDataPart.h

23 lines
612 B
C++
Raw Normal View History

#pragma once
#include <Storages/MergeTree/MergeTreeData.h>
namespace DB
{
2020-01-13 14:53:32 +00:00
/// Calculates checksums and compares them with checksums.txt.
IMergeTreeDataPart::Checksums checkDataPart(
2019-03-20 16:18:13 +00:00
MergeTreeData::DataPartPtr data_part,
bool require_checksums,
std::function<bool()> is_cancelled = []{ return false; });
2020-01-13 14:53:32 +00:00
IMergeTreeDataPart::Checksums checkDataPart(
2020-02-28 17:14:55 +00:00
const DiskPtr & disk,
2020-03-10 16:57:54 +00:00
const String & full_relative_path,
2020-01-13 14:53:32 +00:00
const NamesAndTypesList & columns_list,
const MergeTreeDataPartType & part_type,
2019-03-20 16:18:13 +00:00
bool require_checksums,
std::function<bool()> is_cancelled = []{ return false; });
}