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