Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RNTupleAttrMergeActionsDefault Class Referencefinal

Merge Actions used internally to merge attributes.

These may in turn call user-defined actions that implement the similarly-named interface RNTupleAttrMergeActions.

Definition at line 1044 of file RNTupleMerger.cxx.

Public Member Functions

 RNTupleAttrMergeActionsDefault (const RNTupleMergeStrategy &parentStrategy, ROOT::NTupleSize_t initialStartOffset, std::unique_ptr< RNTupleAttrMergeActions > userActions)
 
ENTupleMergeActionResult BeforeCommit (ROOT::REntry &, const RNTupleMergeActionContext &ctx) final
 Invoked at the end of the merge process, right before committing the dataset.
 
ENTupleMergeActionResult OnFill (ROOT::REntry &metaEntry, const RNTupleMergeActionContext &ctx) final
 Invoked every time an entry is merged from a source RNTuple to the destination RNTuple.
 
void OnSourceBegin (ROOT::REntry &, const RNTupleMergeActionContext &) final
 Invoked at the start of each sources's merging process.
 
ENTupleMergeActionResult OnSourceEnd (ROOT::REntry &metaEntry, const RNTupleMergeActionContext &ctx) final
 Invoked at the end of each source's merging process.
 

Private Types

using UserAction_t
 

Private Member Functions

ENTupleMergeActionResult CallUserAction (UserAction_t method, const RNTupleMergeActionContext &ctx)
 
void InitSource (ROOT::REntry &metaEntry, const RNTupleMergeActionContext &ctx)
 

Private Attributes

ROOT::NTupleSize_t fAttrEntryStartOffset = 0
 How much do we need to shift the _rangeStart field by.
 
ROOT::NTupleSize_t fLatestEntryLoaded = std::numeric_limits<ROOT::NTupleSize_t>::max()
 
const RNTupleMergeStrategy & fParentStrategy
 
std::shared_ptr< ROOT::NTupleSize_t > fRangeLenPtr
 
std::shared_ptr< ROOT::NTupleSize_t > fRangeStartPtr
 
std::unique_ptr< ROOT::REntry > fScopedEntry
 
std::unique_ptr< RNTupleAttrMergeActions > fUserActions
 
std::unique_ptr< ROOT::RNTupleModel > fUserModel
 
Inheritance diagram for ROOT::Internal::RNTupleAttrMergeActionsDefault:
[legend]

Member Typedef Documentation

◆ UserAction_t

Initial value:
ENTupleMergeActionResult (RNTupleAttrMergeActions::*)(ROOT::REntry &, ROOT::RNTupleAttrRange &,
const RNTupleMergeActionContext &)

Definition at line 1056 of file RNTupleMerger.cxx.

Constructor & Destructor Documentation

◆ RNTupleAttrMergeActionsDefault()

ROOT::Internal::RNTupleAttrMergeActionsDefault::RNTupleAttrMergeActionsDefault ( const RNTupleMergeStrategy & parentStrategy,
ROOT::NTupleSize_t initialStartOffset,
std::unique_ptr< RNTupleAttrMergeActions > userActions )
inline

Definition at line 1103 of file RNTupleMerger.cxx.

Member Function Documentation

◆ BeforeCommit()

ENTupleMergeActionResult ROOT::Internal::RNTupleAttrMergeActionsDefault::BeforeCommit ( ROOT::REntry & ,
const RNTupleMergeActionContext &  )
inlinefinalvirtual

Invoked at the end of the merge process, right before committing the dataset.

The first time this function is invoked the given entry contains unspecified values. During subsequent calls (caused by kEmitMulti), the entry will contain the previously-emitted values. This allows appending more entries at the end of the merge.

Reimplemented from ROOT::Internal::RNTupleMergeActions.

Definition at line 1154 of file RNTupleMerger.cxx.

◆ CallUserAction()

ENTupleMergeActionResult ROOT::Internal::RNTupleAttrMergeActionsDefault::CallUserAction ( UserAction_t method,
const RNTupleMergeActionContext & ctx )
inlineprivate

Definition at line 1059 of file RNTupleMerger.cxx.

◆ InitSource()

void ROOT::Internal::RNTupleAttrMergeActionsDefault::InitSource ( ROOT::REntry & metaEntry,
const RNTupleMergeActionContext & ctx )
inlineprivate

Definition at line 1076 of file RNTupleMerger.cxx.

◆ OnFill()

ENTupleMergeActionResult ROOT::Internal::RNTupleAttrMergeActionsDefault::OnFill ( ROOT::REntry & ,
const RNTupleMergeActionContext &  )
inlinefinalvirtual

Invoked every time an entry is merged from a source RNTuple to the destination RNTuple.

Reimplemented from ROOT::Internal::RNTupleMergeActions.

Definition at line 1118 of file RNTupleMerger.cxx.

◆ OnSourceBegin()

void ROOT::Internal::RNTupleAttrMergeActionsDefault::OnSourceBegin ( ROOT::REntry & ,
const RNTupleMergeActionContext &  )
inlinefinalvirtual

Invoked at the start of each sources's merging process.

Reimplemented from ROOT::Internal::RNTupleMergeActions.

Definition at line 1109 of file RNTupleMerger.cxx.

◆ OnSourceEnd()

ENTupleMergeActionResult ROOT::Internal::RNTupleAttrMergeActionsDefault::OnSourceEnd ( ROOT::REntry & ,
const RNTupleMergeActionContext &  )
inlinefinalvirtual

Invoked at the end of each source's merging process.

The first time this function is invoked per source the given entry contains the value of the latest entry read (which may be undefined if this source had no entries). During subsequent calls (caused by kEmitMulti), the entry will contain the previously-emitted values.

Reimplemented from ROOT::Internal::RNTupleMergeActions.

Definition at line 1139 of file RNTupleMerger.cxx.

Member Data Documentation

◆ fAttrEntryStartOffset

ROOT::NTupleSize_t ROOT::Internal::RNTupleAttrMergeActionsDefault::fAttrEntryStartOffset = 0
private

How much do we need to shift the _rangeStart field by.

This changes on each new source (and is equal to the total number of entries committed at the end of the previous source).

Definition at line 1047 of file RNTupleMerger.cxx.

◆ fLatestEntryLoaded

ROOT::NTupleSize_t ROOT::Internal::RNTupleAttrMergeActionsDefault::fLatestEntryLoaded = std::numeric_limits<ROOT::NTupleSize_t>::max()
private

Definition at line 1054 of file RNTupleMerger.cxx.

◆ fParentStrategy

const RNTupleMergeStrategy& ROOT::Internal::RNTupleAttrMergeActionsDefault::fParentStrategy
private

Definition at line 1048 of file RNTupleMerger.cxx.

◆ fRangeLenPtr

std::shared_ptr<ROOT::NTupleSize_t> ROOT::Internal::RNTupleAttrMergeActionsDefault::fRangeLenPtr
private

Definition at line 1050 of file RNTupleMerger.cxx.

◆ fRangeStartPtr

std::shared_ptr<ROOT::NTupleSize_t> ROOT::Internal::RNTupleAttrMergeActionsDefault::fRangeStartPtr
private

Definition at line 1049 of file RNTupleMerger.cxx.

◆ fScopedEntry

std::unique_ptr<ROOT::REntry> ROOT::Internal::RNTupleAttrMergeActionsDefault::fScopedEntry
private

Definition at line 1053 of file RNTupleMerger.cxx.

◆ fUserActions

std::unique_ptr<RNTupleAttrMergeActions> ROOT::Internal::RNTupleAttrMergeActionsDefault::fUserActions
private

Definition at line 1051 of file RNTupleMerger.cxx.

◆ fUserModel

std::unique_ptr<ROOT::RNTupleModel> ROOT::Internal::RNTupleAttrMergeActionsDefault::fUserModel
private

Definition at line 1052 of file RNTupleMerger.cxx.

  • tree/ntuple/src/RNTupleMerger.cxx