Project
Loading...
Searching...
No Matches
ROOT::RDF::RCombinedDSFriendIndex 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 inner join on the row number for two tables, i.e. putting the rows of one next to the rows of other.

Definition at line 54 of file RCombinedDS.h.

Member Function Documentation

◆ BuildIndex()

std::vector< std::pair< ULong64_t, ULong64_t > > ROOT::RDF::RCombinedDSFriendIndex::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 90 of file RCombinedDS.cxx.

◆ GetAssociatedEntries()

std::pair< ULong64_t, ULong64_t > ROOT::RDF::RCombinedDSFriendIndex::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 57 of file RCombinedDS.h.


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