ClickHouse/dbms/include/DB/DataStreams/ValuesRowOutputStream.h
2016-08-13 04:57:35 +03:00

32 lines
635 B
C++

#pragma once
#include <DB/DataStreams/IRowOutputStream.h>
namespace DB
{
class WriteBuffer;
/** Поток для вывода данных в формате VALUES (как в INSERT запросе).
*/
class ValuesRowOutputStream : public IRowOutputStream
{
public:
ValuesRowOutputStream(WriteBuffer & ostr_);
void writeField(const IColumn & column, const IDataType & type, size_t row_num) override;
void writeFieldDelimiter() override;
void writeRowStartDelimiter() override;
void writeRowEndDelimiter() override;
void writeRowBetweenDelimiter() override;
void flush() override;
private:
WriteBuffer & ostr;
};
}