mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
32 lines
635 B
C++
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;
|
|
};
|
|
|
|
}
|
|
|