mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
d93b9a57f6
Now after changing Context.h 488 modules will be recompiled instead of 582.
36 lines
752 B
C++
36 lines
752 B
C++
#pragma once
|
|
|
|
#include <Common/config.h>
|
|
|
|
#if USE_HDFS
|
|
|
|
#include <TableFunctions/ITableFunctionFileLike.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
/* 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;
|
|
const char * getStorageTypeName() const override { return "HDFS"; }
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|