ClickHouse/src/Storages/DataLakes/S3MetadataReader.h
2023-04-04 22:40:05 +02:00

26 lines
579 B
C++

#pragma once
#include <config.h>
#if USE_AWS_S3
#include <Storages/StorageS3.h>
class ReadBuffer;
namespace DB
{
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