sparrow ..
|
A run-end encoded array. More...
#include <run_end_encoded_array.hpp>
Public Types | |
using | self_type = run_end_encoded_array |
using | size_type = std::size_t |
using | inner_value_type = array_traits::inner_value_type |
using | value_type = array_traits::value_type |
using | const_reference = array_traits::const_reference |
using | iterator = run_encoded_array_iterator<false> |
using | const_iterator = run_encoded_array_iterator<true> |
using | reverse_iterator = std::reverse_iterator<iterator> |
using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
Public Member Functions | |
SPARROW_API | run_end_encoded_array (arrow_proxy proxy) |
Constructs run-end encoded array from Arrow proxy. | |
template<class... Args> requires (mpl::excludes_copy_and_move_ctor_v<run_end_encoded_array, Args...>) | |
run_end_encoded_array (Args &&... args) | |
Generic constructor for creating run-end encoded array. | |
SPARROW_API | run_end_encoded_array (const self_type &) |
Copy constructor. | |
SPARROW_API self_type & | operator= (const self_type &) |
Copy assignment operator. | |
run_end_encoded_array (self_type &&)=default | |
self_type & | operator= (self_type &&)=default |
SPARROW_API array_traits::const_reference | operator[] (std::uint64_t i) const |
Constant access operator for getting element at index. | |
SPARROW_API iterator | begin () |
Gets an iterator to the beginning of the array. | |
SPARROW_API iterator | end () |
Gets an iterator to the end of the array. | |
SPARROW_API const_iterator | begin () const |
Gets a constant iterator to the beginning of the array. | |
SPARROW_API const_iterator | end () const |
Gets a constant iterator to the end of the array. | |
SPARROW_API const_iterator | cbegin () const |
Gets a constant iterator to the beginning of the array. | |
SPARROW_API const_iterator | cend () const |
Gets a constant iterator to the end of the array. | |
SPARROW_API reverse_iterator | rbegin () |
Gets a reverse iterator to the beginning of the reversed array. | |
SPARROW_API reverse_iterator | rend () |
Gets a reverse iterator to the end of the reversed array. | |
SPARROW_API const_reverse_iterator | rbegin () const |
Gets a constant reverse iterator to the beginning of reversed the array. | |
SPARROW_API const_reverse_iterator | rend () const |
Gets a constant reverse iterator to the end of the reversed array. | |
SPARROW_API const_reverse_iterator | crbegin () const |
Gets a constant reverse iterator to the beginning of reversed the array. | |
SPARROW_API const_reverse_iterator | crend () const |
Gets a constant reverse iterator to the end of the reversed array. | |
SPARROW_API array_traits::const_reference | front () const |
Gets a constant reference to the first element. | |
SPARROW_API array_traits::const_reference | back () const |
Gets a reference to the last element. | |
SPARROW_API bool | empty () const |
Checks if the array is empty. | |
SPARROW_API size_type | size () const |
Gets the number of elements in the array. | |
std::optional< std::string_view > | name () const |
Gets the name of the array. | |
std::optional< key_value_view > | metadata () const |
Gets the metadata of the array. | |
Friends | |
class | run_encoded_array_iterator< false > |
class | run_encoded_array_iterator< true > |
class | detail::array_access |
A run-end encoded array.
To use for data with long runs of identical values
This array is used to store data in a run-length encoded format, where each run is represented by a length and a value. Compresses data by storing run lengths for consecutive identical values.
Related Apache Arrow description and specification:
Definition at line 57 of file run_end_encoded_array.hpp.
Definition at line 67 of file run_end_encoded_array.hpp.
Definition at line 65 of file run_end_encoded_array.hpp.
using sparrow::run_end_encoded_array::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 69 of file run_end_encoded_array.hpp.
Definition at line 63 of file run_end_encoded_array.hpp.
Definition at line 66 of file run_end_encoded_array.hpp.
using sparrow::run_end_encoded_array::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 68 of file run_end_encoded_array.hpp.
Definition at line 61 of file run_end_encoded_array.hpp.
using sparrow::run_end_encoded_array::size_type = std::size_t |
Definition at line 62 of file run_end_encoded_array.hpp.
Definition at line 64 of file run_end_encoded_array.hpp.
|
explicit |
Constructs run-end encoded array from Arrow proxy.
proxy | Arrow proxy containing run-end encoded array data and schema |
|
inlineexplicit |
Generic constructor for creating run-end encoded array.
Creates a run-end encoded array from various input types. Arguments are forwarded to compatible create_proxy() functions.
Args | Parameter pack for constructor arguments |
args | Constructor arguments (data ranges, validity, metadata, etc.) |
Definition at line 97 of file run_end_encoded_array.hpp.
SPARROW_API sparrow::run_end_encoded_array::run_end_encoded_array | ( | const self_type & | ) |
Copy constructor.
rhs | Source array to copy from |
|
default |
|
nodiscard |
Gets a reference to the last element.
|
nodiscard |
Gets an iterator to the beginning of the array.
|
nodiscard |
Gets a constant iterator to the beginning of the array.
|
nodiscard |
Gets a constant iterator to the beginning of the array.
|
nodiscard |
Gets a constant iterator to the end of the array.
|
nodiscard |
Gets a constant reverse iterator to the beginning of reversed the array.
|
nodiscard |
Gets a constant reverse iterator to the end of the reversed array.
|
nodiscard |
Checks if the array is empty.
|
nodiscard |
Gets an iterator to the end of the array.
|
nodiscard |
Gets a constant iterator to the end of the array.
|
nodiscard |
Gets a constant reference to the first element.
|
nodiscard |
Gets the metadata of the array.
|
nodiscard |
Gets the name of the array.
SPARROW_API self_type & sparrow::run_end_encoded_array::operator= | ( | const self_type & | ) |
Copy assignment operator.
rhs | Source array to copy from |
|
nodiscard |
Constant access operator for getting element at index.
i | The index of the element to access. |
|
nodiscard |
Gets a reverse iterator to the beginning of the reversed array.
|
nodiscard |
Gets a constant reverse iterator to the beginning of reversed the array.
|
nodiscard |
Gets a reverse iterator to the end of the reversed array.
|
nodiscard |
Gets a constant reverse iterator to the end of the reversed array.
|
nodiscard |
Gets the number of elements in the array.
|
friend |
Definition at line 343 of file run_end_encoded_array.hpp.
|
friend |
Definition at line 338 of file run_end_encoded_array.hpp.
|
friend |
Definition at line 338 of file run_end_encoded_array.hpp.