mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
22 lines
515 B
C++
22 lines
515 B
C++
#include "IPartMetadataManager.h"
|
|
|
|
#include <Disks/IVolume.h>
|
|
#include <Storages/MergeTree/IMergeTreeDataPart.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
IPartMetadataManager::IPartMetadataManager(const IMergeTreeDataPart * part_) : part(part_)
|
|
{
|
|
}
|
|
|
|
bool IPartMetadataManager::isCompressedFromFileName(const String & file_name)
|
|
{
|
|
std::string extension = fs::path(file_name).extension();
|
|
return (MarkType::isMarkFileExtension(extension) && MarkType(extension).compressed)
|
|
|| isCompressedFromIndexExtension(extension);
|
|
}
|
|
|
|
}
|