mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
34 lines
631 B
C++
34 lines
631 B
C++
#ifndef DBMS_DATA_STREAMS_TABSEPARATEDROWINPUTSTREAM_H
|
|
#define DBMS_DATA_STREAMS_TABSEPARATEDROWINPUTSTREAM_H
|
|
|
|
#include <Poco/SharedPtr.h>
|
|
|
|
#include <DB/IO/ReadBuffer.h>
|
|
#include <DB/DataTypes/DataTypes.h>
|
|
#include <DB/DataStreams/IRowInputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using Poco::SharedPtr;
|
|
|
|
|
|
/** Интерфейс потока для ввода данных в формате tsv.
|
|
*/
|
|
class TabSeparatedRowInputStream : public IRowInputStream
|
|
{
|
|
public:
|
|
TabSeparatedRowInputStream(ReadBuffer & istr_, SharedPtr<DataTypes> data_types_);
|
|
|
|
Row read();
|
|
|
|
private:
|
|
ReadBuffer & istr;
|
|
SharedPtr<DataTypes> data_types;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|