mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
fafecb3c25
* Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development): removed very old tests #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447
34 lines
744 B
C++
34 lines
744 B
C++
#pragma once
|
|
|
|
#include <Formats/FormatSettings.h>
|
|
#include <Formats/IRowOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class WriteBuffer;
|
|
|
|
|
|
/** A stream for outputting data in the VALUES format (as in the INSERT request).
|
|
*/
|
|
class ValuesRowOutputStream : public IRowOutputStream
|
|
{
|
|
public:
|
|
ValuesRowOutputStream(WriteBuffer & ostr_, const FormatSettings & format_settings);
|
|
|
|
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;
|
|
const FormatSettings format_settings;
|
|
};
|
|
|
|
}
|
|
|