#pragma once #include #if USE_HDFS #include #include namespace DB { /* hdfs(name_node_ip:name_node_port, format, structure) - creates a temporary storage from hdfs file * */ class TableFunctionHDFS : public ITableFunctionFileLike { public: static constexpr auto name = "hdfs"; std::string getName() const override { return name; } private: StoragePtr getStorage( const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const String & compression_method) const override; AccessType getRequiredAccessType() const override; }; } #endif