ClickHouse/src/Functions/GatherUtils/sliceFromLeftConstantOffsetBounded.cpp

32 lines
782 B
C++
Raw Normal View History

#ifndef __clang_analyzer__ // It's too hard to analyze.
2019-12-15 06:34:43 +00:00
#include "GatherUtils.h"
#include "Selectors.h"
#include "Algorithms.h"
namespace DB::GatherUtils
{
2020-09-14 14:35:57 +00:00
namespace
{
struct SliceFromLeftConstantOffsetBoundedSelectArraySource
2020-09-14 14:35:57 +00:00
: public ArraySinkSourceSelector<SliceFromLeftConstantOffsetBoundedSelectArraySource>
{
template <typename Source, typename Sink>
static void selectSourceSink(Source && source, Sink && sink, size_t & offset, ssize_t & length)
{
sliceFromLeftConstantOffsetBounded(source, sink, offset, length);
}
};
2020-09-14 14:35:57 +00:00
}
void sliceFromLeftConstantOffsetBounded(IArraySource & src, IArraySink & sink, size_t offset, ssize_t length)
{
SliceFromLeftConstantOffsetBoundedSelectArraySource::select(src, sink, offset, length);
}
}
#endif