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