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