ClickHouse/dbms/include/DB/DataStreams/ValuesRowInputStream.h

29 lines
467 B
C++
Raw Normal View History

2011-10-30 05:19:41 +00:00
#pragma once
#include <DB/DataStreams/IRowInputStream.h>
namespace DB
{
class Block;
class Context;
class ReadBuffer;
2011-10-30 05:19:41 +00:00
2012-11-10 04:43:04 +00:00
/** Поток для чтения данных в формате VALUES (как в INSERT запросе).
2011-10-30 05:19:41 +00:00
*/
class ValuesRowInputStream : public IRowInputStream
{
public:
ValuesRowInputStream(ReadBuffer & istr_, const Context & context_);
2011-10-30 05:19:41 +00:00
bool read(Block & block) override;
2011-10-30 05:19:41 +00:00
private:
ReadBuffer & istr;
const Context & context;
2011-10-30 05:19:41 +00:00
};
}