Project
Loading...
Searching...
No Matches
o2::framework::Builds< T > Struct Template Reference

#include <AnalysisHelpers.h>

Inherits decltypetransformBase< T >.

Public Types

using buildable_t = T
 
using metadata = decltype(transformBase< T >())::metadata
 
using Key = metadata::Key
 
using H = typename T::first_t
 
using Ts = typename T::rest_t
 
using index_pack_t = metadata::index_pack_t
 

Public Member Functions

T * operator-> ()
 
T const & operator* () const
 
auto asArrowTable ()
 
constexpr auto pack ()
 
auto build (std::vector< std::shared_ptr< arrow::Table > > &&tables)
 

Public Attributes

std::shared_ptr< arrow::Schema > outputSchema = []() { return std::make_shared<arrow::Schema>(soa::createFieldsFromColumns(index_pack_t{}))->WithMetadata(std::make_shared<arrow::KeyValueMetadata>(std::vector{std::string{"label"}}, std::vector{std::string{o2::aod::label<T::ref>()}})); }()
 
std::vector< soa::IndexRecordmap = soa::getIndexMapping<metadata>()
 
std::vector< framework::IndexColumnBuilderbuilders
 
std::shared_ptr< T > table = nullptr
 

Detailed Description

template<soa::is_index_table T>
struct o2::framework::Builds< T >

Definition at line 712 of file AnalysisHelpers.h.

Member Typedef Documentation

◆ buildable_t

template<soa::is_index_table T>
using o2::framework::Builds< T >::buildable_t = T

Definition at line 713 of file AnalysisHelpers.h.

◆ H

template<soa::is_index_table T>
using o2::framework::Builds< T >::H = typename T::first_t

Definition at line 716 of file AnalysisHelpers.h.

◆ index_pack_t

template<soa::is_index_table T>
using o2::framework::Builds< T >::index_pack_t = metadata::index_pack_t

Definition at line 718 of file AnalysisHelpers.h.

◆ Key

template<soa::is_index_table T>
using o2::framework::Builds< T >::Key = metadata::Key

Definition at line 715 of file AnalysisHelpers.h.

◆ metadata

template<soa::is_index_table T>
using o2::framework::Builds< T >::metadata = decltype(transformBase<T>())::metadata

Definition at line 714 of file AnalysisHelpers.h.

◆ Ts

template<soa::is_index_table T>
using o2::framework::Builds< T >::Ts = typename T::rest_t

Definition at line 717 of file AnalysisHelpers.h.

Member Function Documentation

◆ asArrowTable()

template<soa::is_index_table T>
auto o2::framework::Builds< T >::asArrowTable ( )
inline

Definition at line 735 of file AnalysisHelpers.h.

◆ build()

template<soa::is_index_table T>
auto o2::framework::Builds< T >::build ( std::vector< std::shared_ptr< arrow::Table > > &&  tables)
inline

Definition at line 746 of file AnalysisHelpers.h.

◆ operator*()

template<soa::is_index_table T>
T const & o2::framework::Builds< T >::operator* ( ) const
inline

Definition at line 730 of file AnalysisHelpers.h.

◆ operator->()

template<soa::is_index_table T>
T * o2::framework::Builds< T >::operator-> ( )
inline

Definition at line 726 of file AnalysisHelpers.h.

◆ pack()

template<soa::is_index_table T>
constexpr auto o2::framework::Builds< T >::pack ( )
inlineconstexpr

Definition at line 741 of file AnalysisHelpers.h.

Member Data Documentation

◆ builders

template<soa::is_index_table T>
std::vector<framework::IndexColumnBuilder> o2::framework::Builds< T >::builders

Definition at line 724 of file AnalysisHelpers.h.

◆ map

template<soa::is_index_table T>
std::vector<soa::IndexRecord> o2::framework::Builds< T >::map = soa::getIndexMapping<metadata>()

Definition at line 722 of file AnalysisHelpers.h.

◆ outputSchema

template<soa::is_index_table T>
std::shared_ptr<arrow::Schema> o2::framework::Builds< T >::outputSchema = []() { return std::make_shared<arrow::Schema>(soa::createFieldsFromColumns(index_pack_t{}))->WithMetadata(std::make_shared<arrow::KeyValueMetadata>(std::vector{std::string{"label"}}, std::vector{std::string{o2::aod::label<T::ref>()}})); }()

Definition at line 720 of file AnalysisHelpers.h.

◆ table

template<soa::is_index_table T>
std::shared_ptr<T> o2::framework::Builds< T >::table = nullptr

Definition at line 739 of file AnalysisHelpers.h.


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