ClickHouse/dbms/include/DB/DataStreams/TabSeparatedRowInputStream.h
2011-08-09 19:19:00 +00:00

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;
};
}