ClickHouse/dbms/include/DB/DataStreams/NativeBlockOutputStream.h
2011-08-19 19:18:15 +00:00

26 lines
577 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
{
/** Сериализует поток блоков в родном бинарном формате (с именами и типами столбцов).
* Предназначено для взаимодействия между серверами.
*/
class NativeBlockOutputStream : public IBlockOutputStream
{
public:
NativeBlockOutputStream(WriteBuffer & ostr_) : ostr(ostr_) {}
/** Записать блок.
*/
void write(const Block & block);
private:
WriteBuffer & ostr;
};
}