blob: 03fa3e3309ee955d0a2e055d5c52fc66696d85c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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);
}
}
|