ClickHouse/src/Compression/getCompressionCodecForFile.h
2022-10-23 15:24:20 +00:00

17 lines
521 B
C++

#pragma once
#include <Compression/ICompressionCodec.h>
#include <Disks/IDisk.h>
#include <Storages/MergeTree/IDataPartStorage.h>
namespace DB
{
/// Return compression codec with default parameters for file compressed in
/// clickhouse fashion (with checksums, headers for each block, etc). This
/// method should be used as fallback when we cannot deduce compression codec
/// from metadata.
CompressionCodecPtr getCompressionCodecForFile(const IDataPartStorage & data_part_storage, const String & relative_path);
}