mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-09 18:10:48 +00:00
31 lines
552 B
C++
31 lines
552 B
C++
#pragma once
|
|
|
|
#include <Formats/IRowInputStream.h>
|
|
#include <Core/Block.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ReadBuffer;
|
|
|
|
|
|
/** A stream for inputting data in a binary line-by-line format.
|
|
*/
|
|
class BinaryRowInputStream : public IRowInputStream
|
|
{
|
|
public:
|
|
BinaryRowInputStream(ReadBuffer & istr_, const Block & sample_, bool with_names_, bool with_types_);
|
|
|
|
bool read(MutableColumns & columns, RowReadExtension &) override;
|
|
void readPrefix() override;
|
|
|
|
private:
|
|
ReadBuffer & istr;
|
|
Block header;
|
|
bool with_names;
|
|
bool with_types;
|
|
};
|
|
|
|
}
|