#pragma once #include "config.h" #if USE_AWS_S3 #include #include #include "Client/Connection.h" #include #include #include #include namespace DB { class Context; class StorageS3Cluster : public IStorageCluster { public: StorageS3Cluster( const StorageS3ClusterConfiguration & configuration_, const StorageID & table_id_, const ColumnsDescription & columns_, const ConstraintsDescription & constraints_, ContextPtr context_); std::string getName() const override { return "S3Cluster"; } Pipe read(const Names &, const StorageSnapshotPtr &, SelectQueryInfo &, ContextPtr, QueryProcessingStage::Enum, size_t /*max_block_size*/, unsigned /*num_streams*/) override; QueryProcessingStage::Enum getQueryProcessingStage(ContextPtr, QueryProcessingStage::Enum, const StorageSnapshotPtr &, SelectQueryInfo &) const override; NamesAndTypesList getVirtuals() const override; RemoteQueryExecutor::Extension getTaskIteratorExtension(ASTPtr query, ContextPtr context) const override; ClusterPtr getCluster(ContextPtr context) const override; private: StorageS3::S3Configuration s3_configuration; String filename; String cluster_name; String format_name; String compression_method; NamesAndTypesList virtual_columns; Block virtual_block; }; } #endif