sparrow 0.3.0
Loading...
Searching...
No Matches
arrow_schema.hpp File Reference
#include <cstdint>
#include <memory>
#include "sparrow/arrow_interface/arrow_schema/private_data.hpp"
#include "sparrow/config/config.hpp"
#include "sparrow/utils/contracts.hpp"
Include dependency graph for arrow_schema.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 F, class N, class M>
requires std::constructible_from<arrow_schema_private_data::FormatType, F> && std::constructible_from<arrow_schema_private_data::NameType, N> && std::constructible_from<arrow_schema_private_data::MetadataType, M>
ArrowSchema sparrow::make_arrow_schema (F format, N name, M metadata, std::optional< ArrowFlag > flags, int64_t n_children, ArrowSchema **children, ArrowSchema *dictionary)
 Creates an ArrowSchema owned by a unique_ptr and holding the provided data.
 
SPARROW_API void sparrow::release_arrow_schema (ArrowSchema *schema)
 Release function to use for the ArrowSchema.release member.
 
SPARROW_API void sparrow::empty_release_arrow_schema (ArrowSchema *schema)
 Empty release function to use for the ArrowSchema.release member.
 
template<class F, class N, class M>
requires std::constructible_from<arrow_schema_private_data::FormatType, F> && std::constructible_from<arrow_schema_private_data::NameType, N> && std::constructible_from<arrow_schema_private_data::MetadataType, M>
void sparrow::fill_arrow_schema (ArrowSchema &schema, F format, N name, M metadata, std::optional< ArrowFlag > flags, int64_t n_children, ArrowSchema **children, ArrowSchema *dictionary)
 
ArrowSchema sparrow::make_empty_arrow_schema ()
 
SPARROW_API void sparrow::swap (ArrowSchema &lhs, ArrowSchema &rhs)
 Swaps the contents of the two ArrowSchema objects.
 
SPARROW_API void sparrow::copy_schema (const ArrowSchema &source, ArrowSchema &target)
 Fills the target ArrowSchema with a deep copy of the data from the source ArrowSchema.
 
ArrowSchema sparrow::copy_schema (const ArrowSchema &source)
 Deep copy an ArrowSchema.
 
ArrowSchema sparrow::move_schema (ArrowSchema &&source)
 Moves the content of source into a stack-allocated array, and reset the source to an empty ArrowSchema.
 
ArrowSchema sparrow::move_schema (ArrowSchema &source)
 Moves the content of source into a stack-allocated array, and reset the source to an empty ArrowSchema.