mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
36 lines
755 B
C++
36 lines
755 B
C++
#pragma once
|
|
#include <Common/Visitor.h>
|
|
#include <base/TypeLists.h>
|
|
|
|
namespace DB::GatherUtils
|
|
{
|
|
|
|
template <typename T>
|
|
struct NumericArraySource;
|
|
|
|
struct GenericArraySource;
|
|
|
|
template <typename ArraySource>
|
|
struct NullableArraySource;
|
|
|
|
template <typename Base>
|
|
struct ConstSource;
|
|
|
|
using NumericArraySources = TypeListMap<NumericArraySource, TypeListNumberWithUUID>;
|
|
using BasicArraySources = TypeListAppend<GenericArraySource, NumericArraySources>;
|
|
|
|
class ArraySourceVisitor : public TypeListChangeRoot<Visitor, BasicArraySources>
|
|
{
|
|
protected:
|
|
~ArraySourceVisitor() = default;
|
|
};
|
|
|
|
template <typename Derived>
|
|
class ArraySourceVisitorImpl : public VisitorImpl<Derived, ArraySourceVisitor>
|
|
{
|
|
protected:
|
|
~ArraySourceVisitorImpl() = default;
|
|
};
|
|
|
|
}
|