ClickHouse/dbms/include/DB/DataStreams/BinaryRowInputStream.h

29 lines
502 B
C
Raw Normal View History

#pragma once
#include <Poco/SharedPtr.h>
#include <DB/Core/Block.h>
#include <DB/IO/ReadBuffer.h>
#include <DB/DataStreams/IRowInputStream.h>
namespace DB
{
/** Поток для ввода данных в бинарном построчном формате.
*/
class BinaryRowInputStream : public IRowInputStream
{
public:
BinaryRowInputStream(ReadBuffer & istr_, const Block & sample_);
bool read(Row & row);
private:
ReadBuffer & istr;
const Block sample;
DataTypes data_types;
};
}