ClickHouse/src/Storages/MergeTree/IPartMetadataManager.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
515 B
C++
Raw Normal View History

#include "IPartMetadataManager.h"
#include <Disks/IVolume.h>
#include <Storages/MergeTree/IMergeTreeDataPart.h>
namespace DB
{
2022-04-22 16:58:09 +00:00
IPartMetadataManager::IPartMetadataManager(const IMergeTreeDataPart * part_) : part(part_)
{
}
2022-05-29 07:28:02 +00:00
bool IPartMetadataManager::isCompressedFromFileName(const String & file_name)
2022-05-29 07:28:02 +00:00
{
2022-09-05 04:31:19 +00:00
std::string extension = fs::path(file_name).extension();
2022-09-05 05:31:29 +00:00
return (MarkType::isMarkFileExtension(extension) && MarkType(extension).compressed)
|| isCompressedFromIndexExtension(extension);
2022-05-29 07:28:02 +00:00
}
}