ClickHouse/src/Processors/PipelineResourcesHolder.cpp
2021-09-08 21:29:38 +03:00

26 lines
940 B
C++

#include <Processors/PipelineResourcesHolder.h>
#include <Processors/QueryPlan/QueryPlan.h>
namespace DB
{
PipelineResourcesHolder::PipelineResourcesHolder() = default;
PipelineResourcesHolder::PipelineResourcesHolder(PipelineResourcesHolder &&) = default;
PipelineResourcesHolder::~PipelineResourcesHolder() = default;
PipelineResourcesHolder & PipelineResourcesHolder::operator=(PipelineResourcesHolder && rhs)
{
table_locks.insert(table_locks.end(), rhs.table_locks.begin(), rhs.table_locks.end());
storage_holders.insert(storage_holders.end(), rhs.storage_holders.begin(), rhs.storage_holders.end());
interpreter_context.insert(interpreter_context.end(),
rhs.interpreter_context.begin(), rhs.interpreter_context.end());
for (auto & plan : rhs.query_plans)
query_plans.emplace_back(std::move(plan));
query_id_holder = std::move(rhs.query_id_holder);
return *this;
}
}