ClickHouse/src/Processors/Formats/IInputFormat.cpp

25 lines
502 B
C++
Raw Normal View History

#include <Processors/Formats/IInputFormat.h>
#include <IO/ReadBuffer.h>
namespace DB
{
IInputFormat::IInputFormat(Block header, ReadBuffer & in_)
: ISource(std::move(header)), in(in_)
{
2021-03-01 19:58:55 +00:00
column_mapping = std::make_shared<ColumnMapping>();
}
void IInputFormat::resetParser()
{
2021-03-31 14:25:51 +00:00
in.ignoreAll();
2019-12-03 00:49:05 +00:00
// those are protected attributes from ISource (I didn't want to propagate resetParser up there)
finished = false;
got_exception = false;
getPort().getInputPort().reopen();
}
}