mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
33 lines
648 B
C++
33 lines
648 B
C++
#pragma once
|
|
|
|
#include <Processors/IProcessor.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Has arbitrary non zero number of inputs and one output.
|
|
* All of them have the same structure.
|
|
*
|
|
* Pulls all data from first input, then all data from second input, etc...
|
|
* Doesn't do any heavy calculations.
|
|
* Preserves an order of data.
|
|
*/
|
|
class ConcatProcessor : public IProcessor
|
|
{
|
|
public:
|
|
ConcatProcessor(const Block & header, size_t num_inputs);
|
|
|
|
String getName() const override { return "Concat"; }
|
|
|
|
Status prepare() override;
|
|
|
|
OutputPort & getOutputPort() { return outputs.front(); }
|
|
|
|
private:
|
|
InputPorts::iterator current_input;
|
|
};
|
|
|
|
}
|
|
|