mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
26 lines
763 B
C++
26 lines
763 B
C++
#pragma once
|
|
|
|
#include <Formats/TabSeparatedRowOutputStream.h>
|
|
|
|
namespace DB
|
|
{
|
|
struct FormatSettings;
|
|
|
|
/** A stream for outputting data in tsv format, but without escaping individual values.
|
|
* (That is, the output is irreversible.)
|
|
*/
|
|
class TabSeparatedRawRowOutputStream : public TabSeparatedRowOutputStream
|
|
{
|
|
public:
|
|
TabSeparatedRawRowOutputStream(WriteBuffer & ostr_, const Block & sample_, bool with_names_, bool with_types_, const FormatSettings & format_settings_)
|
|
: TabSeparatedRowOutputStream(ostr_, sample_, with_names_, with_types_, format_settings_) {}
|
|
|
|
void writeField(const IColumn & column, const IDataType & type, size_t row_num) override
|
|
{
|
|
type.serializeAsText(column, row_num, ostr, format_settings);
|
|
}
|
|
};
|
|
|
|
}
|
|
|