mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-11 19:10:50 +00:00
33 lines
525 B
C++
33 lines
525 B
C++
#pragma once
|
||
|
||
#include <Processors/ISource.h>
|
||
|
||
|
||
namespace DB
|
||
{
|
||
|
||
class ReadBuffer;
|
||
|
||
/** Input format is a source, that reads data from ReadBuffer.
|
||
*/
|
||
class IInputFormat : public ISource
|
||
{
|
||
protected:
|
||
|
||
/// Skip GCC warning: ‘maybe_unused’ attribute ignored
|
||
#pragma GCC diagnostic push
|
||
#pragma GCC diagnostic ignored "-Wattributes"
|
||
|
||
ReadBuffer & in [[maybe_unused]];
|
||
|
||
#pragma GCC diagnostic pop
|
||
|
||
public:
|
||
IInputFormat(Block header, ReadBuffer & in)
|
||
: ISource(std::move(header)), in(in)
|
||
{
|
||
}
|
||
};
|
||
|
||
}
|