Project
Loading...
Searching...
No Matches
ROOT::RDF::RCombinedDSCrossJoinIndex Class Reference

#include <RCombinedDS.h>

Inherits ROOT::RDF::RCombinedDSIndex.

Public Member Functions

std::pair< ULong64_t, ULong64_t > GetAssociatedEntries (ULong64_t entry) final
 
std::vector< std::pair< ULong64_t, ULong64_t > > BuildIndex (std::unique_ptr< RDataFrame > &left, std::unique_ptr< RDataFrame > &right) final
 
- Public Member Functions inherited from ROOT::RDF::RCombinedDSIndex
virtual ~RCombinedDSIndex ()=default
 

Detailed Description

An index which allows doing a cross join between two tables. I.e. all the entries of one coupled with all the entries of the other

Definition at line 67 of file RCombinedDS.h.

Member Function Documentation

◆ BuildIndex()

std::vector< std::pair< ULong64_t, ULong64_t > > ROOT::RDF::RCombinedDSCrossJoinIndex::BuildIndex ( std::unique_ptr< RDataFrame > &  left,
std::unique_ptr< RDataFrame > &  right 
)
finalvirtual

This is invoked on every Inititialise of the RCombinedDS to allow constructing the index associated to it.

Parameters
[in]

is the dataframe constructed on top of the left input.

Parameters
[in]

is the dataframe constructed on top of the right input.

Returns
the vector with the ranges of the combined dataset.

Implements ROOT::RDF::RCombinedDSIndex.

Definition at line 76 of file RCombinedDS.cxx.

◆ GetAssociatedEntries()

std::pair< ULong64_t, ULong64_t > ROOT::RDF::RCombinedDSCrossJoinIndex::GetAssociatedEntries ( ULong64_t  entry)
inlinefinalvirtual

This is invoked on every GetEntry() of the RCombinedDS and it's used to effectively enumerate all the pairs of the combination.

Parameters
[in]

is the entry in the combined table

Returns
a pair where first is the entry in the associated left table, while right is an entry in the associated right table.

Implements ROOT::RDF::RCombinedDSIndex.

Definition at line 70 of file RCombinedDS.h.


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