mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
33 lines
751 B
C++
33 lines
751 B
C++
#pragma once
|
|
|
|
#include <Common/config.h>
|
|
|
|
#if USE_HDFS
|
|
|
|
#include <TableFunctions/ITableFunctionFileLike.h>
|
|
#include <Interpreters/Context.h>
|
|
|
|
|
|
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
|