Project
Loading...
Searching...
No Matches
o2::soa::FilteredBase< T > Class Template Reference

#include <ASoA.h>

Inherits T.

Inherited by o2::soa::Filtered< T >.

Public Types

using self_t = FilteredBase< T >
 
using table_t = typename T::table_t
 
using columns_t = typename T::columns_t
 
using persistent_columns_t = typename T::persistent_columns_t
 
using external_index_columns_t = typename T::external_index_columns_t
 
using iterator = T::template iterator_template_o< FilteredIndexPolicy, self_t >
 
using unfiltered_iterator = T::template iterator_template_o< DefaultIndexPolicy, self_t >
 
using const_iterator = iterator
 

Public Member Functions

 FilteredBase (std::vector< std::shared_ptr< arrow::Table > > &&tables, gandiva::Selection const &selection, uint64_t offset=0)
 
 FilteredBase (std::vector< std::shared_ptr< arrow::Table > > &&tables, SelectionVector &&selection, uint64_t offset=0)
 
 FilteredBase (std::vector< std::shared_ptr< arrow::Table > > &&tables, gsl::span< int64_t const > const &selection, uint64_t offset=0)
 
iterator begin ()
 
const_iterator begin () const
 
unfiltered_iterator rawIteratorAt (uint64_t i) const
 
RowViewSentinel end () const
 
auto & cached_begin ()
 
auto const & cached_begin () const
 
iterator iteratorAt (uint64_t i) const
 
int64_t size () const
 
int64_t tableSize () const
 
auto const & getSelectedRows () const
 
auto rawSlice (uint64_t start, uint64_t end) const
 
auto emptySlice () const
 
template<typename... TA>
void bindExternalIndices (TA *... current)
 
void bindExternalIndicesRaw (std::vector< o2::soa::Binding > &&ptrs)
 
template<typename I >
void bindInternalIndicesTo (I const *ptr)
 
template<typename T1 , typename... Cs>
void doCopyIndexBindings (framework::pack< Cs... >, T1 &dest) const
 
template<typename T1 >
void copyIndexBindings (T1 &dest) const
 
template<typename T1 >
auto rawSliceBy (o2::framework::Preslice< T1 > const &container, int value) const
 
auto sliceByCached (framework::expressions::BindingNode const &node, int value, o2::framework::SliceCache &cache) const
 
auto sliceByCachedUnsorted (framework::expressions::BindingNode const &node, int value, o2::framework::SliceCache &cache) const
 
template<typename T1 , bool OPT>
auto sliceBy (o2::framework::PresliceBase< T1, framework::PreslicePolicySorted, OPT > const &container, int value) const
 
template<typename T1 , bool OPT>
auto sliceBy (o2::framework::PresliceBase< T1, framework::PreslicePolicyGeneral, OPT > const &container, int value) const
 
auto select (framework::expressions::Filter const &f) const
 
int isInSelectedRows (int i) const
 
void sumWithSelection (SelectionVector const &selection)
 
void intersectWithSelection (SelectionVector const &selection)
 
void sumWithSelection (gsl::span< int64_t const > const &selection)
 
void intersectWithSelection (gsl::span< int64_t const > const &selection)
 
bool isCached () const
 

Static Public Member Functions

static auto getSpan (gandiva::Selection const &sel)
 

Detailed Description

template<soa::is_table T>
class o2::soa::FilteredBase< T >

Definition at line 3278 of file ASoA.h.

Member Typedef Documentation

◆ columns_t

template<soa::is_table T>
using o2::soa::FilteredBase< T >::columns_t = typename T::columns_t

Definition at line 3284 of file ASoA.h.

◆ const_iterator

template<soa::is_table T>
using o2::soa::FilteredBase< T >::const_iterator = iterator

Definition at line 3290 of file ASoA.h.

◆ external_index_columns_t

template<soa::is_table T>
using o2::soa::FilteredBase< T >::external_index_columns_t = typename T::external_index_columns_t

Definition at line 3286 of file ASoA.h.

◆ iterator

template<soa::is_table T>
using o2::soa::FilteredBase< T >::iterator = T::template iterator_template_o<FilteredIndexPolicy, self_t>

Definition at line 3288 of file ASoA.h.

◆ persistent_columns_t

template<soa::is_table T>
using o2::soa::FilteredBase< T >::persistent_columns_t = typename T::persistent_columns_t

Definition at line 3285 of file ASoA.h.

◆ self_t

template<soa::is_table T>
using o2::soa::FilteredBase< T >::self_t = FilteredBase<T>

Definition at line 3281 of file ASoA.h.

◆ table_t

template<soa::is_table T>
using o2::soa::FilteredBase< T >::table_t = typename T::table_t

Definition at line 3282 of file ASoA.h.

◆ unfiltered_iterator

template<soa::is_table T>
using o2::soa::FilteredBase< T >::unfiltered_iterator = T::template iterator_template_o<DefaultIndexPolicy, self_t>

Definition at line 3289 of file ASoA.h.

Constructor & Destructor Documentation

◆ FilteredBase() [1/3]

template<soa::is_table T>
o2::soa::FilteredBase< T >::FilteredBase ( std::vector< std::shared_ptr< arrow::Table > > &&  tables,
gandiva::Selection const &  selection,
uint64_t  offset = 0 
)
inline

Definition at line 3292 of file ASoA.h.

◆ FilteredBase() [2/3]

template<soa::is_table T>
o2::soa::FilteredBase< T >::FilteredBase ( std::vector< std::shared_ptr< arrow::Table > > &&  tables,
SelectionVector &&  selection,
uint64_t  offset = 0 
)
inline

Definition at line 3303 of file ASoA.h.

◆ FilteredBase() [3/3]

template<soa::is_table T>
o2::soa::FilteredBase< T >::FilteredBase ( std::vector< std::shared_ptr< arrow::Table > > &&  tables,
gsl::span< int64_t const > const &  selection,
uint64_t  offset = 0 
)
inline

Definition at line 3316 of file ASoA.h.

Member Function Documentation

◆ begin() [1/2]

template<soa::is_table T>
iterator o2::soa::FilteredBase< T >::begin ( )
inline

Definition at line 3327 of file ASoA.h.

◆ begin() [2/2]

template<soa::is_table T>
const_iterator o2::soa::FilteredBase< T >::begin ( ) const
inline

Definition at line 3332 of file ASoA.h.

◆ bindExternalIndices()

template<soa::is_table T>
template<typename... TA>
void o2::soa::FilteredBase< T >::bindExternalIndices ( TA *...  current)
inline

Bind the columns which refer to other tables to the associated tables.

Definition at line 3406 of file ASoA.h.

◆ bindExternalIndicesRaw()

template<soa::is_table T>
void o2::soa::FilteredBase< T >::bindExternalIndicesRaw ( std::vector< o2::soa::Binding > &&  ptrs)
inline

Definition at line 3412 of file ASoA.h.

◆ bindInternalIndicesTo()

template<soa::is_table T>
template<typename I >
void o2::soa::FilteredBase< T >::bindInternalIndicesTo ( I const *  ptr)
inline

Definition at line 3418 of file ASoA.h.

◆ cached_begin() [1/2]

template<soa::is_table T>
auto & o2::soa::FilteredBase< T >::cached_begin ( )
inline

Definition at line 3349 of file ASoA.h.

◆ cached_begin() [2/2]

template<soa::is_table T>
auto const & o2::soa::FilteredBase< T >::cached_begin ( ) const
inline

Definition at line 3354 of file ASoA.h.

◆ copyIndexBindings()

template<soa::is_table T>
template<typename T1 >
void o2::soa::FilteredBase< T >::copyIndexBindings ( T1 &  dest) const
inline

Definition at line 3430 of file ASoA.h.

◆ doCopyIndexBindings()

template<soa::is_table T>
template<typename T1 , typename... Cs>
void o2::soa::FilteredBase< T >::doCopyIndexBindings ( framework::pack< Cs... >  ,
T1 &  dest 
) const
inline

Definition at line 3424 of file ASoA.h.

◆ emptySlice()

template<soa::is_table T>
auto o2::soa::FilteredBase< T >::emptySlice ( ) const
inline

Definition at line 3387 of file ASoA.h.

◆ end()

template<soa::is_table T>
RowViewSentinel o2::soa::FilteredBase< T >::end ( ) const
inline

Definition at line 3344 of file ASoA.h.

◆ getSelectedRows()

template<soa::is_table T>
auto const & o2::soa::FilteredBase< T >::getSelectedRows ( ) const
inline

Definition at line 3374 of file ASoA.h.

◆ getSpan()

template<soa::is_table T>
static auto o2::soa::FilteredBase< T >::getSpan ( gandiva::Selection const &  sel)
inlinestatic

Definition at line 3392 of file ASoA.h.

◆ intersectWithSelection() [1/2]

template<soa::is_table T>
void o2::soa::FilteredBase< T >::intersectWithSelection ( gsl::span< int64_t const > const &  selection)
inline

Definition at line 3509 of file ASoA.h.

◆ intersectWithSelection() [2/2]

template<soa::is_table T>
void o2::soa::FilteredBase< T >::intersectWithSelection ( SelectionVector const &  selection)
inline

Definition at line 3489 of file ASoA.h.

◆ isCached()

template<soa::is_table T>
bool o2::soa::FilteredBase< T >::isCached ( ) const
inline

Definition at line 3519 of file ASoA.h.

◆ isInSelectedRows()

template<soa::is_table T>
int o2::soa::FilteredBase< T >::isInSelectedRows ( int  i) const
inline

Definition at line 3470 of file ASoA.h.

◆ iteratorAt()

template<soa::is_table T>
iterator o2::soa::FilteredBase< T >::iteratorAt ( uint64_t  i) const
inline

Definition at line 3359 of file ASoA.h.

◆ rawIteratorAt()

template<soa::is_table T>
unfiltered_iterator o2::soa::FilteredBase< T >::rawIteratorAt ( uint64_t  i) const
inline

Definition at line 3337 of file ASoA.h.

◆ rawSlice()

template<soa::is_table T>
auto o2::soa::FilteredBase< T >::rawSlice ( uint64_t  start,
uint64_t  end 
) const
inline

Definition at line 3379 of file ASoA.h.

◆ rawSliceBy()

template<soa::is_table T>
template<typename T1 >
auto o2::soa::FilteredBase< T >::rawSliceBy ( o2::framework::Preslice< T1 > const &  container,
int  value 
) const
inline

Definition at line 3436 of file ASoA.h.

◆ select()

template<soa::is_table T>
auto o2::soa::FilteredBase< T >::select ( framework::expressions::Filter const &  f) const
inline

Definition at line 3463 of file ASoA.h.

◆ size()

template<soa::is_table T>
int64_t o2::soa::FilteredBase< T >::size ( ) const
inline

Definition at line 3364 of file ASoA.h.

◆ sliceBy() [1/2]

template<soa::is_table T>
template<typename T1 , bool OPT>
auto o2::soa::FilteredBase< T >::sliceBy ( o2::framework::PresliceBase< T1, framework::PreslicePolicyGeneral, OPT > const &  container,
int  value 
) const
inline

Definition at line 3458 of file ASoA.h.

◆ sliceBy() [2/2]

template<soa::is_table T>
template<typename T1 , bool OPT>
auto o2::soa::FilteredBase< T >::sliceBy ( o2::framework::PresliceBase< T1, framework::PreslicePolicySorted, OPT > const &  container,
int  value 
) const
inline

Definition at line 3452 of file ASoA.h.

◆ sliceByCached()

template<soa::is_table T>
auto o2::soa::FilteredBase< T >::sliceByCached ( framework::expressions::BindingNode const &  node,
int  value,
o2::framework::SliceCache cache 
) const
inline

Definition at line 3441 of file ASoA.h.

◆ sliceByCachedUnsorted()

template<soa::is_table T>
auto o2::soa::FilteredBase< T >::sliceByCachedUnsorted ( framework::expressions::BindingNode const &  node,
int  value,
o2::framework::SliceCache cache 
) const
inline

Definition at line 3446 of file ASoA.h.

◆ sumWithSelection() [1/2]

template<soa::is_table T>
void o2::soa::FilteredBase< T >::sumWithSelection ( gsl::span< int64_t const > const &  selection)
inline

Definition at line 3499 of file ASoA.h.

◆ sumWithSelection() [2/2]

template<soa::is_table T>
void o2::soa::FilteredBase< T >::sumWithSelection ( SelectionVector const &  selection)
inline

Definition at line 3479 of file ASoA.h.

◆ tableSize()

template<soa::is_table T>
int64_t o2::soa::FilteredBase< T >::tableSize ( ) const
inline

Definition at line 3369 of file ASoA.h.


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