forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableFunctionFileCluster.h
More file actions
35 lines (26 loc) · 1.15 KB
/
TableFunctionFileCluster.h
File metadata and controls
35 lines (26 loc) · 1.15 KB
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
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <Storages/StorageFile.h>
#include <Storages/StorageFileCluster.h>
#include <TableFunctions/ITableFunction.h>
#include <TableFunctions/TableFunctionFile.h>
#include <TableFunctions/ITableFunctionCluster.h>
namespace DB
{
class Context;
class TableFunctionFileCluster : public ITableFunctionCluster<TableFunctionFile>
{
public:
static constexpr auto name = "fileCluster";
static constexpr auto signature = " - cluster, filename\n"
" - cluster, filename, format\n"
" - cluster, filename, format, structure\n"
" - cluster, filename, format, structure, compression_method\n";
String getName() const override { return name; }
String getSignature() const override { return signature; }
protected:
StoragePtr getStorage(
const String & source, const String & format_, const ColumnsDescription & columns, ContextPtr global_context,
const std::string & table_name, const String & compression_method_, bool) const override;
const char * getStorageTypeName() const override { return "FileCluster"; }
};
}