Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RNTupleSingleProcessor Class Reference

Processor specializiation for processing a single RNTuple.

Definition at line 284 of file RNTupleProcessor.hxx.

Public Member Functions

void LoadEntry ()
 Fill the entry with values belonging to the current entry number.
 
- Public Member Functions inherited from ROOT::Experimental::RNTupleProcessor
 RNTupleProcessor (const RNTupleProcessor &)=delete
 
 RNTupleProcessor (RNTupleProcessor &&)=delete
 
virtual ~RNTupleProcessor ()=default
 
RIterator begin ()
 
RIterator end ()
 
std::size_t GetCurrentNTupleNumber () const
 Get the index to the RNTuple currently being processed, according to the sources specified upon creation.
 
const REntryGetEntry () const
 Returns a reference to the entry used by the processor.
 
NTupleSize_t GetLocalEntryNumber () const
 Get the entry number local to the RNTuple that is currently being processed.
 
NTupleSize_t GetNEntriesProcessed () const
 Get the total number of entries processed so far.
 
RNTupleProcessoroperator= (const RNTupleProcessor &)=delete
 
RNTupleProcessoroperator= (RNTupleProcessor &&)=delete
 

Private Member Functions

 RNTupleSingleProcessor (const RNTupleOpenSpec &ntuple, RNTupleModel &model)
 Constructs a new RNTupleProcessor for processing a single RNTuple.
 
NTupleSize_t Advance () final
 Advance the processor to the next available entry.
 

Friends

class RNTupleProcessor
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::RNTupleProcessor
static std::unique_ptr< RNTupleProcessorCreate (const RNTupleOpenSpec &ntuple)
 
static std::unique_ptr< RNTupleProcessorCreate (const RNTupleOpenSpec &ntuple, RNTupleModel &model)
 
static std::unique_ptr< RNTupleProcessorCreateChain (const std::vector< RNTupleOpenSpec > &ntuples, std::unique_ptr< RNTupleModel > model=nullptr)
 Create a new RNTuple processor chain for vertical concatenation of RNTuples.
 
static std::unique_ptr< RNTupleProcessorCreateJoin (const std::vector< RNTupleOpenSpec > &ntuples, const std::vector< std::string > &joinFields, std::vector< std::unique_ptr< RNTupleModel > > models={})
 Create a new RNTuple processor for horizontallly concatenated RNTuples.
 
- Protected Member Functions inherited from ROOT::Experimental::RNTupleProcessor
 RNTupleProcessor (const std::vector< RNTupleOpenSpec > &ntuples)
 
void ConnectField (RFieldContext &fieldContext, Internal::RPageSource &pageSource, REntry &entry)
 Creates and connects a concrete field to the current page source, based on its proto field.
 
void SetLocalEntryNumber (NTupleSize_t entryNumber)
 Set the local (i.e.
 
- Protected Attributes inherited from ROOT::Experimental::RNTupleProcessor
std::size_t fCurrentNTupleNumber
 
std::unique_ptr< REntryfEntry
 
std::unordered_map< std::string, RFieldContextfFieldContexts
 
NTupleSize_t fLocalEntryNumber
 
NTupleSize_t fNEntriesProcessed
 
std::vector< RNTupleOpenSpecfNTuples
 
std::unique_ptr< Internal::RPageSourcefPageSource
 

#include <ROOT/RNTupleProcessor.hxx>

Inheritance diagram for ROOT::Experimental::RNTupleSingleProcessor:
[legend]

Constructor & Destructor Documentation

◆ RNTupleSingleProcessor()

ROOT::Experimental::RNTupleSingleProcessor::RNTupleSingleProcessor ( const RNTupleOpenSpec ntuple,
RNTupleModel model 
)
private

Constructs a new RNTupleProcessor for processing a single RNTuple.

Parameters
[in]ntupleThe source specification (name and storage location) for the RNTuple to process.
[in]modelThe model that specifies which fields should be read by the processor.

Definition at line 122 of file RNTupleProcessor.cxx.

Member Function Documentation

◆ Advance()

ROOT::Experimental::NTupleSize_t ROOT::Experimental::RNTupleSingleProcessor::Advance ( )
finalprivatevirtual

Advance the processor to the next available entry.

Returns
The number of the entry loaded after advancing, or kInvalidNTupleIndex if there was no entry to advance to.

Checks if the end of the currently connected RNTuple is reached. If this is the case, either the next RNTuple is connected or the iterator has reached the end.

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 149 of file RNTupleProcessor.cxx.

◆ LoadEntry()

void ROOT::Experimental::RNTupleSingleProcessor::LoadEntry ( )
inlinevirtual

Fill the entry with values belonging to the current entry number.

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 298 of file RNTupleProcessor.hxx.

Friends And Related Symbol Documentation

◆ RNTupleProcessor

friend class RNTupleProcessor
friend

Definition at line 285 of file RNTupleProcessor.hxx.

Libraries for ROOT::Experimental::RNTupleSingleProcessor:

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