1 | #include "GatherUtils.h" |
2 | #include "Selectors.h" |
3 | #include "Algorithms.h" |
4 | |
5 | namespace DB::GatherUtils |
6 | { |
7 | |
8 | struct ArrayResizeConstant : public ArrayAndValueSourceSelectorBySink<ArrayResizeConstant> |
9 | { |
10 | template <typename ArraySource, typename ValueSource, typename Sink> |
11 | static void selectArrayAndValueSourceBySink( |
12 | ArraySource && array_source, ValueSource && value_source, Sink && sink, ssize_t size) |
13 | { |
14 | resizeConstantSize(array_source, value_source, sink, size); |
15 | } |
16 | }; |
17 | |
18 | |
19 | void resizeConstantSize(IArraySource & array_source, IValueSource & value_source, IArraySink & sink, ssize_t size) |
20 | { |
21 | ArrayResizeConstant::select(sink, array_source, value_source, size); |
22 | } |
23 | } |
24 | |