mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 06:50:50 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
31 lines
602 B
C++
31 lines
602 B
C++
#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:
|
|
BinaryRowInputFormat(ReadBuffer & in_, Block header, Params params_, bool with_names_, bool with_types_);
|
|
|
|
bool readRow(MutableColumns & columns, RowReadExtension &) override;
|
|
void readPrefix() override;
|
|
|
|
String getName() const override { return "BinaryRowInputFormat"; }
|
|
|
|
private:
|
|
bool with_names;
|
|
bool with_types;
|
|
};
|
|
|
|
}
|