2012-08-17 19:53:11 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <DB/DataStreams/TabSeparatedRowOutputStream.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
|
{
|
|
|
|
|
|
2012-11-10 04:43:04 +00:00
|
|
|
|
/** Поток для вывода данных в формате tsv, но без эскейпинга отдельных значений.
|
2012-08-17 19:53:11 +00:00
|
|
|
|
* (То есть - вывод необратимый.)
|
|
|
|
|
*/
|
|
|
|
|
class TabSeparatedRawRowOutputStream : public TabSeparatedRowOutputStream
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
TabSeparatedRawRowOutputStream(WriteBuffer & ostr_, const Block & sample_, bool with_names_ = false, bool with_types_ = false)
|
2012-10-10 18:51:52 +00:00
|
|
|
|
: TabSeparatedRowOutputStream(ostr_, sample_, with_names_, with_types_) {}
|
2012-08-17 19:53:11 +00:00
|
|
|
|
|
2016-02-16 16:39:39 +00:00
|
|
|
|
void writeField(const IColumn & column, const IDataType & type, size_t row_num) override
|
2012-08-17 19:53:11 +00:00
|
|
|
|
{
|
2016-02-16 16:39:39 +00:00
|
|
|
|
type.serializeText(column, row_num, ostr);
|
2012-08-17 19:53:11 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|