mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 20:53:27 +00:00
31 lines
571 B
C++
31 lines
571 B
C++
#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_);
|
|
|
|
Row read();
|
|
|
|
RowInputStreamPtr clone() { return new BinaryRowInputStream(istr, sample); }
|
|
|
|
private:
|
|
ReadBuffer & istr;
|
|
const Block sample;
|
|
DataTypes data_types;
|
|
};
|
|
|
|
}
|