|
sparrow 1.3.0
|
A variable-size binary array. More...
#include <variable_size_binary_array.hpp>
Public Types | |
| using | self_type = variable_size_binary_array_impl<T, CR, OT, Ext> |
| using | base_type = mutable_array_bitmap_base<self_type> |
| using | inner_types = array_inner_types<self_type> |
| using | inner_value_type = typename inner_types::inner_value_type |
| using | inner_reference = typename inner_types::inner_reference |
| using | inner_const_reference = typename inner_types::inner_const_reference |
| using | offset_type = typename inner_types::offset_type |
| using | offset_buffer_type = u8_buffer<std::remove_const_t<offset_type>> |
| using | char_buffer_type = u8_buffer<char> |
| using | byte_buffer_type = u8_buffer<std::byte> |
| using | uint8_buffer_type = u8_buffer<std::uint8_t> |
| using | bitmap_type = typename base_type::bitmap_type |
| using | bitmap_reference = typename base_type::bitmap_reference |
| using | bitmap_const_reference = typename base_type::bitmap_const_reference |
| using | const_bitmap_range = typename base_type::const_bitmap_range |
| using | value_type = nullable<inner_value_type> |
| using | reference = nullable<inner_reference, bitmap_reference> |
| using | const_reference = nullable<inner_const_reference, bitmap_const_reference> |
| using | offset_iterator = typename inner_types::offset_iterator |
| using | const_offset_iterator = typename inner_types::const_offset_iterator |
| using | size_type = typename base_type::size_type |
| using | difference_type = typename base_type::difference_type |
| using | iterator_tag = typename base_type::iterator_tag |
| using | data_iterator = typename inner_types::data_iterator |
| using | const_data_iterator = typename inner_types::const_data_iterator |
| using | data_value_type = typename inner_types::data_value_type |
| using | value_iterator = typename inner_types::value_iterator |
| using | const_value_iterator = typename inner_types::const_value_iterator |
Public Types inherited from sparrow::array_bitmap_base_impl< D, true > | |
| using | base_type |
| using | size_type |
| using | bitmap_type |
| using | bitmap_iterator |
| using | const_bitmap_iterator |
| using | bitmap_const_reference |
| using | difference_type |
| using | const_bitmap_range |
| using | iterator_tag |
Public Member Functions | |
| variable_size_binary_array_impl (arrow_proxy) | |
| Constructs array from Arrow proxy. | |
| template<class... ARGS> requires (mpl::excludes_copy_and_move_ctor_v<variable_size_binary_array_impl<T, CR, OT>, ARGS...>) | |
| variable_size_binary_array_impl (ARGS &&... args) | |
| Generic constructor for creating array from various inputs. | |
| constexpr inner_reference | value (size_type i) |
| Gets mutable reference to element at specified index. | |
| constexpr inner_const_reference | value (size_type i) const |
| Gets const reference to element at specified index. | |
| template<std::ranges::sized_range U> requires mpl::convertible_ranges<U, T> | |
| constexpr auto | insert_value (const_value_iterator pos, U value, size_type count) -> value_iterator |
| template<mpl::iterator_of_type< T > InputIt> | |
| constexpr auto | insert_values (const_value_iterator pos, InputIt first, InputIt last) -> value_iterator |
| template<mpl::iterator_of_type< OT > InputIt> | |
| constexpr auto | insert_offsets (const_offset_iterator pos, InputIt first_sizes, InputIt last_sizes) -> offset_iterator |
Public Member Functions inherited from sparrow::array_bitmap_base_impl< D, true > | |
| 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 constexpr auto | offset_from_sizes (SIZES_RANGE &&sizes) -> offset_buffer_type |
| Creates offset buffer from a range of sizes. | |
Friends | |
| class | variable_size_binary_reference< self_type > |
Additional Inherited Members | |
Protected Member Functions inherited from sparrow::array_bitmap_base_impl< D, true > | |
| 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. | |
A variable-size binary array.
This array is used to store variable-length binary data.
Related Apache Arrow description and specification:
Definition at line 278 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::base_type = mutable_array_bitmap_base<self_type> |
Definition at line 292 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::bitmap_const_reference = typename base_type::bitmap_const_reference |
Definition at line 307 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::bitmap_reference = typename base_type::bitmap_reference |
Definition at line 306 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::bitmap_type = typename base_type::bitmap_type |
Definition at line 305 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::byte_buffer_type = u8_buffer<std::byte> |
Definition at line 302 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::char_buffer_type = u8_buffer<char> |
Definition at line 301 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::const_bitmap_range = typename base_type::const_bitmap_range |
Definition at line 308 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::const_data_iterator = typename inner_types::const_data_iterator |
Definition at line 322 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::const_offset_iterator = typename inner_types::const_offset_iterator |
Definition at line 315 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::const_reference = nullable<inner_const_reference, bitmap_const_reference> |
Definition at line 312 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::const_value_iterator = typename inner_types::const_value_iterator |
Definition at line 326 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::data_iterator = typename inner_types::data_iterator |
Definition at line 320 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::data_value_type = typename inner_types::data_value_type |
Definition at line 323 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::difference_type = typename base_type::difference_type |
Definition at line 318 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::inner_const_reference = typename inner_types::inner_const_reference |
Definition at line 297 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::inner_reference = typename inner_types::inner_reference |
Definition at line 296 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::inner_types = array_inner_types<self_type> |
Definition at line 294 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::inner_value_type = typename inner_types::inner_value_type |
Definition at line 295 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::iterator_tag = typename base_type::iterator_tag |
Definition at line 319 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::offset_buffer_type = u8_buffer<std::remove_const_t<offset_type>> |
Definition at line 300 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::offset_iterator = typename inner_types::offset_iterator |
Definition at line 314 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::offset_type = typename inner_types::offset_type |
Definition at line 299 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::reference = nullable<inner_reference, bitmap_reference> |
Definition at line 311 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::self_type = variable_size_binary_array_impl<T, CR, OT, Ext> |
Definition at line 291 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::size_type = typename base_type::size_type |
Definition at line 317 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::uint8_buffer_type = u8_buffer<std::uint8_t> |
Definition at line 303 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::value_iterator = typename inner_types::value_iterator |
Definition at line 325 of file variable_size_binary_array.hpp.
| using sparrow::variable_size_binary_array_impl< T, CR, OT, Ext >::value_type = nullable<inner_value_type> |
Definition at line 310 of file variable_size_binary_array.hpp.
|
explicit |
Constructs array from Arrow proxy.
| proxy | Arrow proxy containing variable-size binary array data and schema |
Definition at line 874 of file variable_size_binary_array.hpp.
|
inline |
Generic constructor for creating array from various inputs.
Creates a variable-size binary array from different input combinations. Arguments are forwarded to compatible create_proxy() functions.
| ARGS | Parameter pack for constructor arguments |
| args | Constructor arguments (data, offsets, validity, metadata, etc.) |
Definition at line 361 of file variable_size_binary_array.hpp.
|
constexpr |
Definition at line 1403 of file variable_size_binary_array.hpp.
|
constexpr |
Definition at line 1300 of file variable_size_binary_array.hpp.
|
constexpr |
Definition at line 1354 of file variable_size_binary_array.hpp.
|
staticnodiscardconstexpr |
Creates offset buffer from a range of sizes.
Converts a range of element sizes into cumulative offsets suitable for the variable-size binary format. The resulting buffer starts with 0 and contains cumulative sums of the input sizes.
| SIZES_RANGE | Type of the sizes range |
| sizes | Range of individual element sizes |
Definition at line 891 of file variable_size_binary_array.hpp.
|
nodiscardconstexpr |
Gets mutable reference to element at specified index.
| i | Index of the element to access |
Definition at line 1230 of file variable_size_binary_array.hpp.
|
nodiscardconstexpr |
Gets const reference to element at specified index.
| i | Index of the element to access |
Definition at line 1237 of file variable_size_binary_array.hpp.
|
friend |
Definition at line 860 of file variable_size_binary_array.hpp.