ClickHouse/src/Storages/DataLakes/S3MetadataReader.h
2024-03-18 08:00:09 +00:00

26 lines
579 B
C++

#pragma once
#include <config.h>
#if USE_AWS_S3
#include <Storages/StorageS3.h>
namespace DB
{
class ReadBuffer;
struct S3DataLakeMetadataReadHelper
{
static std::shared_ptr<ReadBuffer> createReadBuffer(
const String & key, ContextPtr context, const StorageS3::Configuration & base_configuration);
static bool exists(const String & key, const StorageS3::Configuration & configuration);
static std::vector<String> listFiles(const StorageS3::Configuration & configuration, const std::string & prefix = "", const std::string & suffix = "");
};
}
#endif