31 typename T::inner_value_type;
48 template <
class ARRAY>
57 template <
class ARRAY>
60 [[nodiscard]]
static constexpr bool get()
122 [[nodiscard]]
constexpr enum data_type get_data_type()
const;
128 [[nodiscard]] wrapper_ptr
clone_impl()
const override;
130 using storage_type = std::variant<value_ptr<T>, std::shared_ptr<T>, T*>;
131 storage_type m_storage;
198 , m_storage(
std::move(ar))
199 , p_array(
std::get<
std::shared_ptr<T>>(m_storage).get())
216 constexpr enum data_type array_wrapper_impl<T>::get_data_type()
const
224 , m_storage(value_ptr<T>(T(rhs.get_wrapped())))
226 p_array = std::visit(
229 using U = std::decay_t<
decltype(arg)>;
230 if constexpr (std::is_same_v<U, T*>)
array_wrapper_impl(T &&ar)
wrapper_ptr clone_impl() const override
~array_wrapper_impl() override=default
arrow_proxy & get_arrow_proxy_impl() override
bool is_dictionary_impl() const override
Base class for array type erasure.
wrapper_ptr clone() const
std::unique_ptr< array_wrapper > wrapper_ptr
arrow_proxy & get_arrow_proxy()
virtual const arrow_proxy & get_arrow_proxy_impl() const =0
array_wrapper & operator=(array_wrapper &&)=delete
array_wrapper & operator=(const array_wrapper &)=delete
virtual ~array_wrapper()=default
bool is_dictionary() const
virtual arrow_proxy & get_arrow_proxy_impl()=0
virtual bool is_dictionary_impl() const =0
array_wrapper(array_wrapper &&)=delete
enum data_type data_type() const
array_wrapper(const array_wrapper &)=default
virtual wrapper_ptr clone_impl() const =0
Proxy class over ArrowArray and ArrowSchema.
static const sparrow::arrow_proxy & get_arrow_proxy(const ARRAY &array)
A value_ptr is a smart pointer that behaves like a value.
T & unwrap_array(array_wrapper &)
data_type
Runtime identifier of arrow data types, usually associated with raw bytes with the associated value.
Provides compile-time information about Arrow data types.
static constexpr sparrow::data_type get()
static constexpr bool get()