sparrow 0.9.0
|
#include <array_bitmap_base.hpp>
Public Types | |
using | base_type = std::conditional_t<is_mutable, mutable_array_base<D>, array_crtp_base<D>> |
using | size_type = std::size_t |
using | bitmap_type = typename base_type::bitmap_type |
using | bitmap_iterator = typename base_type::bitmap_iterator |
using | const_bitmap_iterator = typename base_type::const_bitmap_iterator |
using | bitmap_const_reference = typename base_type::bitmap_const_reference |
using | difference_type = typename base_type::difference_type |
using | const_bitmap_range = typename base_type::const_bitmap_range |
using | iterator_tag = typename base_type::iterator_tag |
Public Member Functions | |
template<std::input_iterator InputIt> requires std::same_as<typename std::iterator_traits<InputIt>::value_type, bool> | |
constexpr auto | insert_bitmap (const_bitmap_iterator pos, InputIt first, InputIt last) -> bitmap_iterator is_mutable |
Protected Member Functions | |
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. | |
template<std::input_iterator InputIt> requires std::same_as<typename std::iterator_traits<InputIt>::value_type, bool> | |
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 52 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::base_type = std::conditional_t<is_mutable, mutable_array_base<D>, array_crtp_base<D>> |
Definition at line 57 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::bitmap_const_reference = typename base_type::bitmap_const_reference |
Definition at line 65 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::bitmap_iterator = typename base_type::bitmap_iterator |
Definition at line 62 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::bitmap_type = typename base_type::bitmap_type |
Definition at line 61 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::const_bitmap_iterator = typename base_type::const_bitmap_iterator |
Definition at line 63 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::const_bitmap_range = typename base_type::const_bitmap_range |
Definition at line 68 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::difference_type = typename base_type::difference_type |
Definition at line 66 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::iterator_tag = typename base_type::iterator_tag |
Definition at line 70 of file array_bitmap_base.hpp.
using sparrow::array_bitmap_base_impl< D, is_mutable >::size_type = std::size_t |
Definition at line 59 of file array_bitmap_base.hpp.
|
protected |
Constructs array bitmap base from Arrow proxy.
proxy | Arrow proxy containing array data and schema with validity bitmap |
Definition at line 313 of file array_bitmap_base.hpp.
|
constexprprotected |
Copy constructor.
rhs | Source array to copy from |
Definition at line 320 of file array_bitmap_base.hpp.
|
constexprprotecteddefaultnoexcept |
|
constexprprotected |
Erases validity bits starting at specified position.
pos | Iterator position where to start erasing validity bits |
count | Number of bits to erase |
Definition at line 402 of file array_bitmap_base.hpp.
|
nodiscardconstexprprotected |
Gets mutable reference to the validity bitmap.
Definition at line 336 of file array_bitmap_base.hpp.
|
nodiscardconstexprprotected |
Gets const reference to the validity bitmap.
Definition at line 343 of file array_bitmap_base.hpp.
|
nodiscardconstexprprotected |
Gets non-owning view of the bitmap as dynamic bitset.
|
constexprprotected |
Inserts validity bits at specified position.
pos | Iterator position where to insert validity bits |
value | Validity value for inserted bits (true = valid, false = null) |
count | Number of bits to insert |
Definition at line 369 of file array_bitmap_base.hpp.
|
constexpr |
Definition at line 386 of file array_bitmap_base.hpp.
|
constexprprotected |
Inserts range of validity bits at specified position.
InputIt | Input iterator type for boolean values |
pos | Iterator position where to insert validity bits |
first | Iterator to beginning of range to insert |
last | Iterator to end of range to insert |
|
nodiscardconstexprprotected |
Creates bitmap wrapper from current Arrow validity buffer.
Definition at line 349 of file array_bitmap_base.hpp.
|
constexprprotecteddefaultnoexcept |
|
constexprprotected |
Copy assignment operator.
rhs | Source array to copy from |
Definition at line 328 of file array_bitmap_base.hpp.
|
constexprprotected |
Resizes the validity bitmap to accommodate new array length.
new_length | New length for the array |
value | Default validity value for new elements (true = valid, false = null) |
Definition at line 359 of file array_bitmap_base.hpp.
|
constexprprotected |
Updates internal bitmap after external modifications to Arrow data.
This method should be called after any direct modifications to the underlying Arrow buffers to ensure the bitmap wrapper reflects the current state.
Definition at line 415 of file array_bitmap_base.hpp.