sparrow ..
|
#include <map_array.hpp>
Public Member Functions | |
SPARROW_API | map_array (arrow_proxy proxy) |
Constructs map array from Arrow proxy. | |
template<class... Args> requires (mpl::excludes_copy_and_move_ctor_v<map_array, Args...>) | |
map_array (Args &&... args) | |
Generic constructor for creating map array from various inputs. | |
SPARROW_API | map_array (const self_type &rhs) |
Copy constructor. | |
SPARROW_API map_array & | operator= (const self_type &rhs) |
Copy assignment operator. | |
map_array (map_array &&) noexcept=default | |
map_array & | operator= (map_array &&) noexcept=default |
SPARROW_API const array_wrapper * | raw_keys_array () const |
Gets read-only access to the keys array. | |
SPARROW_API array_wrapper * | raw_keys_array () |
Gets mutable access to the keys array. | |
SPARROW_API const array_wrapper * | raw_items_array () const |
Gets read-only access to the values array. | |
SPARROW_API array_wrapper * | raw_items_array () |
Gets mutable access to the values array. | |
![]() | |
constexpr auto | insert_bitmap (const_bitmap_iterator pos, InputIt first, InputIt last) -> bitmap_iterator is_mutable |
constexpr auto | insert_bitmap (const_bitmap_iterator pos, InputIt first, InputIt last) -> bitmap_iterator is_mutable |
Static Public Member Functions | |
template<std::ranges::range SIZES_RANGE> | |
static auto | offset_from_sizes (SIZES_RANGE &&sizes) -> offset_buffer_type |
Creates offset buffer from map sizes. | |
Friends | |
class | array_crtp_base< map_array > |
class | detail::layout_value_functor< const map_array, map_value > |
Additional Inherited Members | |
![]() | |
array_bitmap_base_impl (arrow_proxy proxy) | |
Constructs array bitmap base from Arrow proxy. | |
constexpr | array_bitmap_base_impl (const array_bitmap_base_impl &) |
Copy constructor. | |
constexpr array_bitmap_base_impl & | operator= (const array_bitmap_base_impl &) |
Copy assignment operator. | |
constexpr | array_bitmap_base_impl (array_bitmap_base_impl &&) noexcept=default |
constexpr array_bitmap_base_impl & | operator= (array_bitmap_base_impl &&) noexcept=default |
constexpr bitmap_type & | get_bitmap () |
Gets mutable reference to the validity bitmap. | |
constexpr const bitmap_type & | get_bitmap () const |
Gets const reference to the validity bitmap. | |
constexpr void | resize_bitmap (size_type new_length, bool value) |
Resizes the validity bitmap to accommodate new array length. | |
constexpr bitmap_iterator | insert_bitmap (const_bitmap_iterator pos, bool value, size_type count) |
Inserts validity bits at specified position. | |
constexpr bitmap_iterator | insert_bitmap (const_bitmap_iterator pos, InputIt first, InputIt last) is_mutable |
Inserts range of validity bits at specified position. | |
constexpr bitmap_iterator | erase_bitmap (const_bitmap_iterator pos, size_type count) |
Erases validity bits starting at specified position. | |
constexpr void | update () |
Updates internal bitmap after external modifications to Arrow data. | |
constexpr non_owning_dynamic_bitset< uint8_t > | get_non_owning_dynamic_bitset () |
Gets non-owning view of the bitmap as dynamic bitset. | |
constexpr bitmap_type | make_bitmap () |
Creates bitmap wrapper from current Arrow validity buffer. | |
array_bitmap_base_impl (arrow_proxy proxy) | |
Constructs array bitmap base from Arrow proxy. | |
constexpr | array_bitmap_base_impl (const array_bitmap_base_impl &) |
Copy constructor. | |
constexpr | array_bitmap_base_impl (array_bitmap_base_impl &&) noexcept=default |
constexpr array_bitmap_base_impl & | operator= (const array_bitmap_base_impl &) |
Copy assignment operator. | |
constexpr array_bitmap_base_impl & | operator= (array_bitmap_base_impl &&) noexcept=default |
constexpr bitmap_type & | get_bitmap () |
Gets mutable reference to the validity bitmap. | |
constexpr const bitmap_type & | get_bitmap () const |
Gets const reference to the validity bitmap. | |
constexpr void | resize_bitmap (size_type new_length, bool value) |
Resizes the validity bitmap to accommodate new array length. | |
constexpr bitmap_iterator | insert_bitmap (const_bitmap_iterator pos, bool value, size_type count) |
Inserts validity bits at specified position. | |
constexpr bitmap_iterator | insert_bitmap (const_bitmap_iterator pos, InputIt first, InputIt last) is_mutable |
Inserts range of validity bits at specified position. | |
constexpr bitmap_iterator | erase_bitmap (const_bitmap_iterator pos, size_type count) |
Erases validity bits starting at specified position. | |
constexpr void | update () |
Updates internal bitmap after external modifications to Arrow data. | |
constexpr non_owning_dynamic_bitset< uint8_t > | get_non_owning_dynamic_bitset () |
Gets non-owning view of the bitmap as dynamic bitset. | |
constexpr bitmap_type | make_bitmap () |
Creates bitmap wrapper from current Arrow validity buffer. | |
Definition at line 87 of file map_array.hpp.
Definition at line 92 of file map_array.hpp.
Definition at line 101 of file map_array.hpp.
using sparrow::map_array::bitmap_type = typename base_type::bitmap_type |
Definition at line 100 of file map_array.hpp.
using sparrow::map_array::const_bitmap_range = typename base_type::const_bitmap_range |
Definition at line 103 of file map_array.hpp.
Definition at line 110 of file map_array.hpp.
using sparrow::map_array::const_value_iterator = inner_types::const_value_iterator |
Definition at line 95 of file map_array.hpp.
using sparrow::map_array::inner_const_reference = inner_types::inner_const_reference |
Definition at line 107 of file map_array.hpp.
using sparrow::map_array::inner_reference = inner_types::inner_reference |
Definition at line 106 of file map_array.hpp.
Definition at line 93 of file map_array.hpp.
using sparrow::map_array::inner_value_type = inner_types::inner_value_type |
Definition at line 105 of file map_array.hpp.
using sparrow::map_array::iterator_tag = typename base_type::iterator_tag |
Definition at line 111 of file map_array.hpp.
using sparrow::map_array::offset_buffer_type = u8_buffer<std::remove_const_t<offset_type>> |
Definition at line 98 of file map_array.hpp.
using sparrow::map_array::offset_type = const std::int32_t |
Definition at line 97 of file map_array.hpp.
Definition at line 91 of file map_array.hpp.
using sparrow::map_array::size_type = typename base_type::size_type |
Definition at line 96 of file map_array.hpp.
using sparrow::map_array::value_iterator = inner_types::value_iterator |
Definition at line 94 of file map_array.hpp.
Definition at line 109 of file map_array.hpp.
|
explicit |
Constructs map array from Arrow proxy.
proxy | Arrow proxy containing map array data and schema |
|
inlineexplicit |
Generic constructor for creating map array from various inputs.
Creates a map array from different input combinations. Arguments are forwarded to compatible create_proxy() functions based on their types.
Args | Parameter pack for constructor arguments |
args | Constructor arguments (keys, values, offsets, validity, metadata, etc.) |
Definition at line 145 of file map_array.hpp.
SPARROW_API sparrow::map_array::map_array | ( | const self_type & | rhs | ) |
Copy constructor.
rhs | Source array to copy from |
|
defaultnoexcept |
|
staticnodiscard |
Creates offset buffer from map sizes.
Converts a range of map sizes (number of key-value pairs per map) into cumulative offsets. The resulting offset buffer has size = sizes.size() + 1, with the first element being 0 and subsequent elements being cumulative sums.
SIZES_RANGE | Type of input range containing map sizes |
sizes | Range of map sizes (number of pairs per map) |
Definition at line 514 of file map_array.hpp.
SPARROW_API map_array & sparrow::map_array::operator= | ( | const self_type & | rhs | ) |
Copy assignment operator.
rhs | Source array to copy from |
|
nodiscard |
Gets mutable access to the values array.
|
nodiscard |
Gets read-only access to the values array.
|
nodiscard |
Gets mutable access to the keys array.
|
nodiscard |
Gets read-only access to the keys array.
|
friend |
Definition at line 506 of file map_array.hpp.
|
friend |
Definition at line 506 of file map_array.hpp.