2019-02-19 18:41:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Core/Block.h>
|
|
|
|
#include <Processors/Formats/IRowInputFormat.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class ReadBuffer;
|
|
|
|
|
|
|
|
|
|
|
|
/** A stream for inputting data in a binary line-by-line format.
|
|
|
|
*/
|
|
|
|
class BinaryRowInputFormat : public IRowInputFormat
|
|
|
|
{
|
|
|
|
public:
|
2019-08-03 11:02:40 +00:00
|
|
|
BinaryRowInputFormat(ReadBuffer & in_, Block header, Params params_, bool with_names_, bool with_types_);
|
2019-02-19 18:41:18 +00:00
|
|
|
|
|
|
|
bool readRow(MutableColumns & columns, RowReadExtension &) override;
|
|
|
|
void readPrefix() override;
|
|
|
|
|
|
|
|
String getName() const override { return "BinaryRowInputFormat"; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool with_names;
|
|
|
|
bool with_types;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|