ClickHouse/dbms/include/DB/Dictionaries/ExternalResultDescription.h
2016-12-08 05:49:04 +03:00

39 lines
523 B
C++

#pragma once
#include <DB/Core/Block.h>
namespace DB
{
/** Common part for implementation of MySQLBlockInputStream, MongoDBBlockInputStream and others.
*/
struct ExternalResultDescription
{
enum struct ValueType
{
UInt8,
UInt16,
UInt32,
UInt64,
Int8,
Int16,
Int32,
Int64,
Float32,
Float64,
String,
Date,
DateTime
};
Block sample_block;
std::vector<ValueType> types;
std::vector<std::string> names;
ConstColumnPlainPtrs sample_columns;
void init(const Block & sample_block_);
};
}