Project
Loading...
Searching...
No Matches
o2::framework::TableBuilderHelpers Struct Reference

#include <TableBuilder.h>

Static Public Member Functions

template<typename... ARGS, size_t NCOLUMNS>
static std::array< arrow::DataType, NCOLUMNS > makeArrowColumnTypes ()
 
template<typename... ARGS, size_t NCOLUMNS = sizeof...(ARGS)>
static std::vector< std::shared_ptr< arrow::Field > > makeFields (std::array< char const *, NCOLUMNS > const &names)
 
template<typename... Ts, typename VALUES >
static bool append (std::tuple< Ts... > &holders, VALUES &&values)
 Invokes the append method for each entry in the tuple.
 
template<typename... Ts, typename VALUES >
static void unsafeAppend (std::tuple< Ts... > &holders, VALUES &&values)
 
template<typename... Ts, typename PTRS >
static bool bulkAppend (std::tuple< Ts... > &holders, size_t bulkSize, PTRS ptrs)
 
template<typename... Ts, typename INFOS >
static bool bulkAppendChunked (std::tuple< Ts... > &holders, INFOS infos)
 Return true if all columns are done.
 
template<typename... Ts>
static bool finalize (std::vector< std::shared_ptr< arrow::Array > > &arrays, std::tuple< Ts... > &holders)
 Invokes the append method for each entry in the tuple.
 
template<typename HOLDER >
static bool finalize (std::shared_ptr< arrow::Array > &array, HOLDER &holder)
 

Detailed Description

Definition at line 508 of file TableBuilder.h.

Member Function Documentation

◆ append()

template<typename... Ts, typename VALUES >
static bool o2::framework::TableBuilderHelpers::append ( std::tuple< Ts... > &  holders,
VALUES &&  values 
)
inlinestatic

Invokes the append method for each entry in the tuple.

Definition at line 525 of file TableBuilder.h.

◆ bulkAppend()

template<typename... Ts, typename PTRS >
static bool o2::framework::TableBuilderHelpers::bulkAppend ( std::tuple< Ts... > &  holders,
size_t  bulkSize,
PTRS  ptrs 
)
inlinestatic

Definition at line 540 of file TableBuilder.h.

◆ bulkAppendChunked()

template<typename... Ts, typename INFOS >
static bool o2::framework::TableBuilderHelpers::bulkAppendChunked ( std::tuple< Ts... > &  holders,
INFOS  infos 
)
inlinestatic

Return true if all columns are done.

Definition at line 547 of file TableBuilder.h.

◆ finalize() [1/2]

template<typename HOLDER >
static bool o2::framework::TableBuilderHelpers::finalize ( std::shared_ptr< arrow::Array > &  array,
HOLDER &  holder 
)
inlinestatic

Definition at line 560 of file TableBuilder.h.

◆ finalize() [2/2]

template<typename... Ts>
static bool o2::framework::TableBuilderHelpers::finalize ( std::vector< std::shared_ptr< arrow::Array > > &  arrays,
std::tuple< Ts... > &  holders 
)
inlinestatic

Invokes the append method for each entry in the tuple.

Definition at line 554 of file TableBuilder.h.

◆ makeArrowColumnTypes()

template<typename... ARGS, size_t NCOLUMNS>
static std::array< arrow::DataType, NCOLUMNS > o2::framework::TableBuilderHelpers::makeArrowColumnTypes ( )
inlinestatic

Definition at line 510 of file TableBuilder.h.

◆ makeFields()

template<typename... ARGS, size_t NCOLUMNS = sizeof...(ARGS)>
static std::vector< std::shared_ptr< arrow::Field > > o2::framework::TableBuilderHelpers::makeFields ( std::array< char const *, NCOLUMNS > const &  names)
inlinestatic

Definition at line 516 of file TableBuilder.h.

◆ unsafeAppend()

template<typename... Ts, typename VALUES >
static void o2::framework::TableBuilderHelpers::unsafeAppend ( std::tuple< Ts... > &  holders,
VALUES &&  values 
)
inlinestatic

Invokes the UnsafeAppend method for each entry in the tuple For this to be used, one should make sure the number of entries is known a-priori.

Definition at line 534 of file TableBuilder.h.


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