#include "PartMetadataManagerOrdinary.h" #include #include #include #include namespace DB { std::unique_ptr PartMetadataManagerOrdinary::read(const String & file_name) const { size_t file_size = part->getDataPartStorage().getFileSize(file_name); auto res = part->getDataPartStorage().readFile(file_name, ReadSettings().adjustBufferSize(file_size), file_size, std::nullopt); if (isCompressedFromFileName(file_name)) return std::make_unique(std::move(res)); return res; } bool PartMetadataManagerOrdinary::exists(const String & file_name) const { return part->getDataPartStorage().exists(file_name); } }