sparrow 0.3.0
Loading...
Searching...
No Matches
sparrow::arrow_array_private_data Class Reference

Private data for ArrowArray. More...

#include <private_data.hpp>

Inheritance diagram for sparrow::arrow_array_private_data:
[legend]
Collaboration diagram for sparrow::arrow_array_private_data:
[legend]

Public Types

using BufferType = std::vector<buffer<std::uint8_t>>
 

Public Member Functions

constexpr arrow_array_private_data (BufferType buffers, std::size_t children_size=0)
 
constexpr BufferTypebuffers () noexcept
 
constexpr const BufferTypebuffers () const noexcept
 
constexpr void resize_buffers (std::size_t size)
 
void set_buffer (std::size_t index, buffer< std::uint8_t > &&buffer)
 
void set_buffer (std::size_t index, const buffer_view< std::uint8_t > &buffer)
 
constexpr void resize_buffer (std::size_t index, std::size_t size, std::uint8_t value)
 
constexpr void update_buffers_ptrs ()
 
template<class T>
constexpr const T ** buffers_ptrs () noexcept
 
- Public Member Functions inherited from sparrow::children_ownership
constexpr std::size_t children_size () const noexcept
 
constexpr void set_child_ownership (std::size_t child, bool ownership)
 
constexpr bool has_child_ownership (std::size_t child) const
 
constexpr void resize_children (std::size_t size)
 

Additional Inherited Members

- Protected Member Functions inherited from sparrow::children_ownership
constexpr children_ownership (std::size_t size=0)
 

Detailed Description

Private data for ArrowArray.

Holds and own buffers, children, and dictionary. It is used in the Sparrow library.

Definition at line 34 of file private_data.hpp.

Member Typedef Documentation

◆ BufferType

using sparrow::arrow_array_private_data::BufferType = std::vector<buffer<std::uint8_t>>

Definition at line 38 of file private_data.hpp.

Constructor & Destructor Documentation

◆ arrow_array_private_data()

sparrow::arrow_array_private_data::arrow_array_private_data ( BufferType buffers,
std::size_t children_size = 0 )
explicitconstexpr

Definition at line 60 of file private_data.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ buffers() [1/2]

const std::vector< buffer< std::uint8_t > > & sparrow::arrow_array_private_data::buffers ( ) const
nodiscardconstexprnoexcept

Definition at line 73 of file private_data.hpp.

◆ buffers() [2/2]

std::vector< buffer< std::uint8_t > > & sparrow::arrow_array_private_data::buffers ( )
nodiscardconstexprnoexcept

Definition at line 67 of file private_data.hpp.

Here is the caller graph for this function:

◆ buffers_ptrs()

template<class T>
const T ** sparrow::arrow_array_private_data::buffers_ptrs ( )
nodiscardconstexprnoexcept

Definition at line 107 of file private_data.hpp.

◆ resize_buffer()

void sparrow::arrow_array_private_data::resize_buffer ( std::size_t index,
std::size_t size,
std::uint8_t value )
constexpr

Definition at line 99 of file private_data.hpp.

◆ resize_buffers()

void sparrow::arrow_array_private_data::resize_buffers ( std::size_t size)
constexpr

Definition at line 78 of file private_data.hpp.

Here is the call graph for this function:

◆ set_buffer() [1/2]

void sparrow::arrow_array_private_data::set_buffer ( std::size_t index,
buffer< std::uint8_t > && buffer )
inline

Definition at line 84 of file private_data.hpp.

◆ set_buffer() [2/2]

void sparrow::arrow_array_private_data::set_buffer ( std::size_t index,
const buffer_view< std::uint8_t > & buffer )
inline

Definition at line 91 of file private_data.hpp.

Here is the call graph for this function:

◆ update_buffers_ptrs()

void sparrow::arrow_array_private_data::update_buffers_ptrs ( )
constexpr

Definition at line 112 of file private_data.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: