mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
31 lines
526 B
C++
31 lines
526 B
C++
#pragma once
|
|
|
|
#include <Poco/SharedPtr.h>
|
|
|
|
#include <DB/IO/ReadBuffer.h>
|
|
#include <DB/DataTypes/IDataType.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;
|
|
};
|
|
|
|
}
|