ClickHouse/src/Functions/GatherUtils/ArraySourceVisitor.h
2023-04-11 18:21:08 +00:00

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;
};
}