mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-22 08:20:48 +00:00
30 lines
522 B
C++
30 lines
522 B
C++
#pragma once
|
||
|
||
#include <map>
|
||
|
||
#include <Poco/RegularExpression.h>
|
||
|
||
#include <DB/DataTypes/IDataType.h>
|
||
|
||
|
||
namespace DB
|
||
{
|
||
|
||
/** Позволяет создать тип данных по его имени.
|
||
*/
|
||
class DataTypeFactory
|
||
{
|
||
public:
|
||
DataTypeFactory();
|
||
DataTypePtr get(const String & name) const;
|
||
|
||
private:
|
||
typedef std::map<String, DataTypePtr> NonParametricDataTypes;
|
||
NonParametricDataTypes non_parametric_data_types;
|
||
|
||
Poco::RegularExpression fixed_string_regexp;
|
||
Poco::RegularExpression nested_regexp;
|
||
};
|
||
|
||
}
|