1 | #include "GatherUtils.h" |
2 | #include "Selectors.h" |
3 | #include "Algorithms.h" |
4 | |
5 | namespace DB::GatherUtils |
6 | { |
7 | struct SliceDynamicOffsetBoundedSelectArraySource : public ArraySinkSourceSelector<SliceDynamicOffsetBoundedSelectArraySource> |
8 | { |
9 | template <typename Source, typename Sink> |
10 | static void selectSourceSink(Source && source, Sink && sink, const IColumn & offset_column, const IColumn & length_column) |
11 | { |
12 | sliceDynamicOffsetBounded(source, sink, offset_column, length_column); |
13 | } |
14 | }; |
15 | |
16 | void sliceDynamicOffsetBounded(IArraySource & src, IArraySink & sink, const IColumn & offset_column, const IColumn & length_column) |
17 | { |
18 | SliceDynamicOffsetBoundedSelectArraySource::select(src, sink, offset_column, length_column); |
19 | } |
20 | } |
21 | |