37 struct get_data_type_from_array;
61 template <
class... Args>
92 [[nodiscard]] std::optional<std::string_view>
name()
const;
93 [[nodiscard]] std::optional<std::string_view>
metadata()
const;
99 array&& encoded_values,
100 std::optional<std::string_view>
name = std::nullopt,
101 std::optional<std::string_view>
metadata = std::nullopt
104 using acc_length_ptr_variant_type = std::variant<const std::uint16_t*, const std::uint32_t*, const std::uint64_t*>;
106 [[nodiscard]]
SPARROW_API static std::pair<std::int64_t, std::int64_t>
107 extract_length_and_null_count(
const array&,
const array&);
108 [[nodiscard]]
SPARROW_API static acc_length_ptr_variant_type
110 [[nodiscard]]
SPARROW_API std::uint64_t get_run_length(std::uint64_t run_index)
const;
116 std::uint64_t m_encoded_length;
120 acc_length_ptr_variant_type m_acc_lengths;
132#if defined(__cpp_lib_format)
135struct std::formatter<
sparrow::run_end_encoded_array>
137 constexpr auto parse(std::format_parse_context& ctx)
142 SPARROW_API auto format(
const sparrow::run_end_encoded_array& ar, std::format_context& ctx)
const
143 ->
decltype(ctx.out());
Base class for array type erasure.
Dynamically typed array encapsulating an Arrow layout.
Proxy class over ArrowArray and ArrowSchema.
Smart pointer behaving like a copiable std::unique_ptr.
SPARROW_API const_iterator end() const
SPARROW_API array_traits::const_reference operator[](std::uint64_t i)
run_encoded_array_iterator< true > const_iterator
array_traits::inner_value_type inner_value_type
SPARROW_API size_type size() const
SPARROW_API array_traits::const_reference back() const
SPARROW_API bool empty() const
SPARROW_API iterator end()
SPARROW_API iterator begin()
SPARROW_API const_iterator begin() const
self_type & operator=(self_type &&)=default
SPARROW_API array_traits::const_reference operator[](std::uint64_t i) const
SPARROW_API run_end_encoded_array(const self_type &)
run_end_encoded_array(self_type &&)=default
std::optional< std::string_view > metadata() const
SPARROW_API run_end_encoded_array(arrow_proxy proxy)
std::optional< std::string_view > name() const
SPARROW_API array_traits::const_reference front() const
SPARROW_API const_iterator cend() const
SPARROW_API self_type & operator=(const self_type &)
run_end_encoded_array self_type
run_end_encoded_array(Args &&... args)
SPARROW_API const_iterator cbegin() const
run_encoded_array_iterator< false > iterator
constexpr bool excludes_copy_and_move_ctor_v
SPARROW_API bool operator==(const array &lhs, const array &rhs)
Compares the content of two arrays.
constexpr bool is_run_end_encoded_array_v
Checks whether T is a run_end_encoded_array type.
std::ostream & operator<<(std::ostream &stream, T n)
data_type
Runtime identifier of arrow data types, usually associated with raw bytes with the associated value.
mpl::rename< mpl::transform< detail::array_const_reference_t, all_base_types_t >, nullable_variant > const_reference
mpl::rename< all_base_types_t, std::variant > inner_value_type
static constexpr sparrow::data_type get()