2012-11-10 04:43:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-10 19:22:49 +00:00
|
|
|
#include <Formats/IRowInputStream.h>
|
2017-12-26 19:00:20 +00:00
|
|
|
#include <Core/Block.h>
|
2012-11-10 04:43:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-02-16 16:39:39 +00:00
|
|
|
class ReadBuffer;
|
|
|
|
|
|
|
|
|
2017-05-13 22:19:04 +00:00
|
|
|
/** A stream for inputting data in a binary line-by-line format.
|
2012-11-10 04:43:53 +00:00
|
|
|
*/
|
|
|
|
class BinaryRowInputStream : public IRowInputStream
|
|
|
|
{
|
|
|
|
public:
|
2017-12-14 20:58:18 +00:00
|
|
|
BinaryRowInputStream(ReadBuffer & istr_, const Block & header_);
|
2012-11-10 04:43:53 +00:00
|
|
|
|
2017-12-14 20:58:18 +00:00
|
|
|
bool read(MutableColumns & columns) override;
|
2012-11-10 04:43:53 +00:00
|
|
|
|
|
|
|
private:
|
2017-04-01 07:20:54 +00:00
|
|
|
ReadBuffer & istr;
|
2017-12-18 02:43:40 +00:00
|
|
|
Block header;
|
2012-11-10 04:43:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|