sparrow 0.3.0
Loading...
Searching...
No Matches
arrow_array.hpp File Reference
#include <cstddef>
#include <cstdint>
#include "sparrow/arrow_interface/arrow_array/private_data.hpp"
#include "sparrow/c_interface.hpp"
#include "sparrow/config/config.hpp"
Include dependency graph for arrow_array.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sparrow
 

Functions

template<class B>
requires std::constructible_from<arrow_array_private_data::BufferType, B>
ArrowArray sparrow::make_arrow_array (int64_t length, int64_t null_count, int64_t offset, B buffers, size_t n_children, ArrowArray **children, ArrowArray *dictionary)
 Creates an ArrowArray.
 
SPARROW_API void sparrow::release_arrow_array (ArrowArray *array)
 Release function to use for the ArrowArray.release member.
 
SPARROW_API void sparrow::empty_release_arrow_array (ArrowArray *array)
 Empty release function to use for the ArrowArray.release member.
 
template<class B>
requires std::constructible_from<arrow_array_private_data::BufferType, B>
void sparrow::fill_arrow_array (ArrowArray &array, int64_t length, int64_t null_count, int64_t offset, B buffers, size_t n_children, ArrowArray **children, ArrowArray *dictionary)
 Fill an ArrowArray object.
 
ArrowArray sparrow::make_empty_arrow_array ()
 
SPARROW_API sparrow::buffer_view< uint8_t > sparrow::get_bitmap_buffer (const ArrowArray &array)
 
SPARROW_API std::vector< sparrow::buffer_view< uint8_t > > sparrow::get_arrow_array_buffers (const ArrowArray &array, const ArrowSchema &schema)
 
SPARROW_API void sparrow::swap (ArrowArray &lhs, ArrowArray &rhs)
 Swaps the contents of the two ArrowArray objects.
 
SPARROW_API void sparrow::copy_array (const ArrowArray &source_array, const ArrowSchema &source_schema, ArrowArray &target)
 Fill the target ArrowArray with a deep copy of the data from the source ArrowArray.
 
ArrowArray sparrow::copy_array (const ArrowArray &source_array, const ArrowSchema &source_schema)
 Create a deep copy of the source ArrowArray.
 
ArrowArray sparrow::move_array (ArrowArray &&source)
 Moves the content of source into a stack-allocated array, and reset the source to an empty ArrowArray.
 
ArrowArray sparrow::move_array (ArrowArray &source)
 Moves the content of source into a stack-allocated array, and reset the source to an empty ArrowArray.