|
| | primitive_array_impl (arrow_proxy) |
| | Constructs a primitive array from an existing Arrow proxy.
|
| |
template<class... Args>
requires (mpl::excludes_copy_and_move_ctor_v<primitive_array_impl<T, Ext, T2>, Args...>) |
| | primitive_array_impl (Args &&... args) |
| | Constructs an array of trivial copyable type with values and optional bitmap.
|
| |
| template<input_metadata_container METADATA_RANGE = std::vector<metadata_pair>> |
| | primitive_array_impl (std::initializer_list< inner_value_type > init, bool nullable=true, std::optional< std::string_view > name=std::nullopt, std::optional< METADATA_RANGE > metadata=std::nullopt) |
| | Constructs a primitive array from an initializer list of raw values.
|
| |
| constexpr | primitive_array_impl (const primitive_array_impl &) |
| | Copy constructor.
|
| |
| constexpr primitive_array_impl & | operator= (const primitive_array_impl &) |
| | Copy assignment operator.
|
| |
| constexpr | primitive_array_impl (primitive_array_impl &&) noexcept |
| | Move constructor.
|
| |
| constexpr primitive_array_impl & | operator= (primitive_array_impl &&) noexcept |
| | Move assignment operator.
|
| |
template<std::ranges::input_range VALUE_RANGE, validity_bitmap_input VALIDITY_RANGE, input_metadata_container METADATA_RANGE>
requires (std::convertible_to<std::ranges::range_value_t<VALUE_RANGE>, T2>) |
| arrow_proxy | create_proxy (VALUE_RANGE &&values, VALIDITY_RANGE &&validity_input, std::optional< std::string_view > name, std::optional< METADATA_RANGE > metadata) |
| |
| template<validity_bitmap_input VALIDITY_RANGE, input_metadata_container METADATA_RANGE> |
| arrow_proxy | create_proxy (u8_buffer< T2 > &&data_buffer, size_t size, bool nullable, std::optional< std::string_view > name, std::optional< METADATA_RANGE > metadata) |
| |
template<std::ranges::input_range R, input_metadata_container METADATA_RANGE>
requires (std::convertible_to<std::ranges::range_value_t<R>, T2> && !mpl::is_type_instance_of_v<R, u8_buffer>) |
| arrow_proxy | create_proxy (R &&range, bool nullable, std::optional< std::string_view > name, std::optional< METADATA_RANGE > metadata) |
| |
| 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 |
| |
|
| | 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.
|
| |
template<trivial_copyable_type T, typename Ext, trivial_copyable_type T2>
class sparrow::primitive_array_impl< T, Ext, T2 >
Definition at line 111 of file primitive_array_impl.hpp.
template<trivial_copyable_type T, typename Ext, trivial_copyable_type T2>
Constructs an array of trivial copyable type with values and optional bitmap.
The first argument can be any range of values as long as its value type is convertible to T. The second argument can be:
- a bitmap range, i.e. a range of boolean-like values indicating the non-missing values. The bitmap range and the value range must have the same size.
- a range of indices indicating the missing values.
- omitted: this is equivalent as passing a bitmap range full of
true.
- Template Parameters
-
| Args | Parameter pack for constructor arguments |
- Parameters
-
| args | Constructor arguments (values, optional validity bitmap, optional metadata) |
- Precondition
- First argument must be convertible to a range of T values
-
If bitmap is provided, it must have the same size as the value range
- Postcondition
- Array contains copies of the provided values
-
Validity bitmap is set according to the provided bitmap or defaults to all valid
Definition at line 167 of file primitive_array_impl.hpp.
template<trivial_copyable_type T, typename Ext, trivial_copyable_type T2>
template<input_metadata_container METADATA_RANGE = std::vector<metadata_pair>>
| sparrow::primitive_array_impl< T, Ext, T2 >::primitive_array_impl |
( |
std::initializer_list< inner_value_type > | init, |
|
|
bool | nullable = true, |
|
|
std::optional< std::string_view > | name = std::nullopt, |
|
|
std::optional< METADATA_RANGE > | metadata = std::nullopt ) |
|
inline |
Constructs a primitive array from an initializer list of raw values.
- Template Parameters
-
| METADATA_RANGE | Type of metadata container |
- Parameters
-
| init | Initializer list of values |
| nullable | Whether the array should support null values |
| name | Optional name for the array |
| metadata | Optional metadata for the array |
- Precondition
- All values in init must be valid instances of inner_value_type
- Postcondition
- Array contains copies of all values from the initializer list
-
If nullable is true, array supports null values (though none are set)
-
If nullable is false, array does not support null values
Definition at line 188 of file primitive_array_impl.hpp.
template<trivial_copyable_type T, typename Ext, trivial_copyable_type T2>
template<std::ranges::input_range VALUE_RANGE, validity_bitmap_input VALIDITY_RANGE, input_metadata_container METADATA_RANGE>
requires (std::convertible_to<std::ranges::range_value_t<VALUE_RANGE>, T2>)
| arrow_proxy sparrow::primitive_array_impl< T, Ext, T2 >::create_proxy |
( |
VALUE_RANGE && | values, |
|
|
VALIDITY_RANGE && | validity_input, |
|
|
std::optional< std::string_view > | name, |
|
|
std::optional< METADATA_RANGE > | metadata ) |