2018-05-23 20:19:33 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <Processors/IProcessor.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void IProcessor::dump() const
|
|
|
|
{
|
|
|
|
std::cerr << getName() << "\n";
|
|
|
|
|
|
|
|
std::cerr << "inputs:\n";
|
|
|
|
for (const auto & port : inputs)
|
2019-02-08 16:10:57 +00:00
|
|
|
std::cerr << "\t" << port.hasData() << " " << port.isFinished() << "\n";
|
2018-05-23 20:19:33 +00:00
|
|
|
|
|
|
|
std::cerr << "outputs:\n";
|
|
|
|
for (const auto & port : outputs)
|
|
|
|
std::cerr << "\t" << port.hasData() << " " << port.isNeeded() << "\n";
|
|
|
|
}
|
|
|
|
|
2019-02-08 16:10:57 +00:00
|
|
|
|
|
|
|
std::string IProcessor::statusToName(Status status)
|
|
|
|
{
|
|
|
|
switch (status)
|
|
|
|
{
|
|
|
|
case Status::NeedData:
|
|
|
|
return "NeedData";
|
|
|
|
case Status::PortFull:
|
|
|
|
return "PortFull";
|
|
|
|
case Status::Finished:
|
|
|
|
return "Finished";
|
|
|
|
case Status::Ready:
|
|
|
|
return "Ready";
|
|
|
|
case Status::Async:
|
|
|
|
return "Async";
|
|
|
|
case Status::Wait:
|
|
|
|
return "Wait";
|
2019-02-27 11:24:14 +00:00
|
|
|
case Status::ExpandPipeline:
|
|
|
|
return "ExpandPipeline";
|
2019-02-08 16:10:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
__builtin_unreachable();
|
|
|
|
}
|
|
|
|
|
2018-05-23 20:19:33 +00:00
|
|
|
}
|
|
|
|
|