ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::ArrowColumn< T > Class Template Reference

a column of Arrow of numbers of type \( T \), taken without copy: its values stay in the memory of its producer, which this object releases when destroyed More...

#include <ADS/interop/arrow/Arrow.h>

Public member functions

 ArrowColumn (ArrowArray *a, const ArrowSchema &s)
 the column \( *a \) of type \( s \), moved here: \( *a \) is left released, and \( s \) is only read
 ArrowColumn (const ArrowColumn &)=delete
 no copy, since the column has one owner
ArrowColumn & operator= (const ArrowColumn &)=delete
 no copy, since the column has one owner
 ArrowColumn (ArrowColumn &&o) noexcept
 the column of \( o \), which is left with none
ArrowColumn & operator= (ArrowColumn &&o) noexcept
 the column of \( o \), which is left with none, this one released
 ~ArrowColumn (void)
 the column released by its producer
std::span< const T > values (void) const
 the values, in the memory of the producer
std::size_t size (void) const
 the number of the values
T operator[] (std::size_t i) const
 the value \( i \)
const T * begin (void) const
 the first value
const T * end (void) const
 past the last value

Detailed description

template<ArrowNumber T>
class ADS::ArrowColumn< T >

a column of Arrow of numbers of type \( T \), taken without copy: its values stay in the memory of its producer, which this object releases when destroyed

Constructor and destructor documentation

◆ ArrowColumn() [1/3]

template<ArrowNumber T>
ADS::ArrowColumn< T >::ArrowColumn ( ArrowArray * a,
const ArrowSchema & s )
inline

the column \( *a \) of type \( s \), moved here: \( *a \) is left released, and \( s \) is only read

Exceptions
std::invalid_argumentif the column is released, has nulls or children, or is not of the format of \( T \)

◆ ArrowColumn() [2/3]

template<ArrowNumber T>
ADS::ArrowColumn< T >::ArrowColumn ( const ArrowColumn< T > & )
delete

no copy, since the column has one owner

◆ ArrowColumn() [3/3]

template<ArrowNumber T>
ADS::ArrowColumn< T >::ArrowColumn ( ArrowColumn< T > && o)
inlinenoexcept

the column of \( o \), which is left with none

◆ ~ArrowColumn()

template<ArrowNumber T>
ADS::ArrowColumn< T >::~ArrowColumn ( void )
inline

the column released by its producer

Member function documentation

◆ begin()

template<ArrowNumber T>
const T * ADS::ArrowColumn< T >::begin ( void ) const
inlinenodiscard

the first value

◆ end()

template<ArrowNumber T>
const T * ADS::ArrowColumn< T >::end ( void ) const
inlinenodiscard

past the last value

◆ operator=() [1/2]

template<ArrowNumber T>
ArrowColumn & ADS::ArrowColumn< T >::operator= ( ArrowColumn< T > && o)
inlinenoexcept

the column of \( o \), which is left with none, this one released

◆ operator=() [2/2]

template<ArrowNumber T>
ArrowColumn & ADS::ArrowColumn< T >::operator= ( const ArrowColumn< T > & )
delete

no copy, since the column has one owner

◆ operator[]()

template<ArrowNumber T>
T ADS::ArrowColumn< T >::operator[] ( std::size_t i) const
inlinenodiscard

the value \( i \)

Precondition
\( i < \) size()

◆ size()

template<ArrowNumber T>
std::size_t ADS::ArrowColumn< T >::size ( void ) const
inlinenodiscard

the number of the values

◆ values()

template<ArrowNumber T>
std::span< const T > ADS::ArrowColumn< T >::values ( void ) const
inlinenodiscard

the values, in the memory of the producer


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