ClickHouse/dbms/include/DB/DataStreams/TabSeparatedBlockOutputStream.h
2013-05-04 04:05:15 +00:00

24 lines
569 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <DB/DataStreams/IBlockOutputStream.h>
namespace DB
{
/** Пишет данные в tab-separated файл, но по столбцам, блоками.
* Блоки разделены двойным переводом строки.
* На каждой строке блока - данные одного столбца.
*/
class TabSeparatedBlockOutputStream : public IBlockOutputStream
{
public:
TabSeparatedBlockOutputStream(WriteBuffer & ostr_) : ostr(ostr_) {}
void write(const Block & block);
private:
WriteBuffer & ostr;
};
}