#pragma once #include #include namespace DB { /// Implementation of IMergingTransform via MergingSortedAlgorithm. class MergingSortedTransform final : public IMergingTransform { public: MergingSortedTransform( const Block & header, size_t num_inputs, const SortDescription & description, size_t max_block_size_rows, size_t max_block_size_bytes, SortingQueueStrategy sorting_queue_strategy, UInt64 limit_ = 0, bool always_read_till_end_ = false, WriteBuffer * out_row_sources_buf_ = nullptr, bool use_average_block_sizes = false, bool have_all_inputs_ = true); String getName() const override { return "MergingSortedTransform"; } protected: void onNewInput() override; void onFinish() override; }; }