ClickHouse/src/Processors/Merges/SummingSortedTransform.h
Nikolai Kochetov fc42851186 Move comments.
2020-04-14 12:43:17 +03:00

34 lines
923 B
C++

#pragma once
#include <Processors/Merges/IMergingTransform.h>
#include <Processors/Merges/Algorithms/SummingSortedAlgorithm.h>
namespace DB
{
/// Implementation of IMergingTransform via SummingSortedAlgorithm.
class SummingSortedTransform final : public IMergingTransform<SummingSortedAlgorithm>
{
public:
SummingSortedTransform(
const Block & header, size_t num_inputs,
SortDescription description_,
/// List of columns to be summed. If empty, all numeric columns that are not in the description are taken.
const Names & column_names_to_sum,
size_t max_block_size)
: IMergingTransform(
num_inputs, header, header, true,
header,
num_inputs,
std::move(description_),
column_names_to_sum,
max_block_size)
{
}
String getName() const override { return "SummingSortedTransform"; }
};
}