aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Storages/DataLakes/S3MetadataReader.h
blob: 31f94ff9f76b83d8dcb6a484fb3c228432c79884 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <clickhouse_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