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

Processor specialization for processing a single RNTuple.

Definition at line 558 of file RNTupleProcessor.hxx.

Public Member Functions

 RNTupleSingleProcessor (const RNTupleSingleProcessor &)=delete
 
 RNTupleSingleProcessor (RNTupleSingleProcessor &&)=delete
 
 ~RNTupleSingleProcessor () override
 
RNTupleSingleProcessoroperator= (const RNTupleSingleProcessor &)=delete
 
RNTupleSingleProcessoroperator= (RNTupleSingleProcessor &&)=delete
 
- Public Member Functions inherited from ROOT::Experimental::RNTupleProcessor
 RNTupleProcessor (const RNTupleProcessor &)=delete
 
 RNTupleProcessor (RNTupleProcessor &&)=delete
 
virtual ~RNTupleProcessor ()=default
 
RIterator begin ()
 
RIterator end ()
 
ROOT::NTupleSize_t GetCurrentEntryNumber () const
 Get the entry number that is currently being processed.
 
std::size_t GetCurrentProcessorNumber () const
 Get the number of the inner processor currently being read.
 
ROOT::NTupleSize_t GetNEntriesProcessed () const
 Get the total number of entries processed so far.
 
const std::string & GetProcessorName () const
 Get the name of the processor.
 
RNTupleProcessoroperator= (const RNTupleProcessor &)=delete
 
RNTupleProcessoroperator= (RNTupleProcessor &&)=delete
 
void PrintStructure (std::ostream &output=std::cout)
 Print a graphical representation of the processor composition.
 
template<typename T >
RNTupleProcessorOptionalPtr< T > RequestField (std::string_view fieldName, void *valuePtr=nullptr)
 Request access to a field for reading during processing.
 

Private Member Functions

 RNTupleSingleProcessor (RNTupleOpenSpec ntuple, std::string_view processorName)
 Construct a new RNTupleProcessor for processing a single RNTuple.
 
void AddEntriesToJoinTable (Internal::RNTupleJoinTable &joinTable, ROOT::NTupleSize_t entryOffset=0) final
 Add the entry mappings for this processor to the provided join table.
 
ROOT::RResult< Internal::RNTupleProcessorEntry::FieldIndex_tAddFieldToEntry (std::string_view fieldName, void *valuePtr=nullptr, const Internal::RNTupleProcessorProvenance &provenance=Internal::RNTupleProcessorProvenance()) final
 Add a field to the entry.
 
bool CanReadFieldFromDisk (std::string_view fieldName) final
 Check if a field exists on-disk and can be read by the processor.
 
void Connect (const std::unordered_set< Internal::RNTupleProcessorEntry::FieldIndex_t > &fieldIdxs, const Internal::RNTupleProcessorProvenance &provenance=Internal::RNTupleProcessorProvenance(), bool updateFields=false) final
 Connect the provided fields indices in the entry to their on-disk fields.
 
ROOT::NTupleSize_t GetNEntries () final
 Get the total number of entries in this processor.
 
void Initialize (std::shared_ptr< Internal::RNTupleProcessorEntry > entry=nullptr) final
 Initialize the processor, by setting fProtoModel and creating an (initially empty) fEntry, or setting an existing one.
 
ROOT::NTupleSize_t LoadEntry (ROOT::NTupleSize_t entryNumber) final
 Load the entry identified by the provided (global) entry number (i.e., considering all RNTuples in this processor).
 
void PrintStructureImpl (std::ostream &output) const final
 Processor-specific implementation for printing its structure, called by PrintStructure().
 

Private Attributes

RNTupleOpenSpec fNTupleSpec
 
std::unique_ptr< ROOT::Internal::RPageSourcefPageSource
 

Friends

class RNTupleProcessor
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::RNTupleProcessor
static std::unique_ptr< RNTupleProcessorCreate (RNTupleOpenSpec ntuple, std::string_view processorName="")
 Create an RNTupleProcessor for a single RNTuple.
 
static std::unique_ptr< RNTupleProcessorCreateChain (std::vector< RNTupleOpenSpec > ntuples, std::string_view processorName="")
 Create an RNTupleProcessor for a chain (i.e., a vertical combination) of RNTuples.
 
static std::unique_ptr< RNTupleProcessorCreateChain (std::vector< std::unique_ptr< RNTupleProcessor > > innerProcessors, std::string_view processorName="")
 Create an RNTupleProcessor for a chain (i.e., a vertical combination) of other RNTupleProcessors.
 
static std::unique_ptr< RNTupleProcessorCreateJoin (RNTupleOpenSpec primaryNTuple, RNTupleOpenSpec auxNTuple, const std::vector< std::string > &joinFields, std::string_view processorName="")
 Create an RNTupleProcessor for a join (i.e., a horizontal combination) of RNTuples.
 
static std::unique_ptr< RNTupleProcessorCreateJoin (std::unique_ptr< RNTupleProcessor > primaryProcessor, std::unique_ptr< RNTupleProcessor > auxProcessor, const std::vector< std::string > &joinFields, std::string_view processorName="")
 Create an RNTupleProcessor for a join (i.e., a horizontal combination) of RNTuples.
 
- Protected Member Functions inherited from ROOT::Experimental::RNTupleProcessor
 RNTupleProcessor (std::string_view processorName)
 Create a new base RNTupleProcessor.
 
const ROOT::RNTupleModelGetProtoModel () const
 Get the proto model used by the processor.
 
bool IsInitialized () const
 Check if the processor already has been initialized.
 
- Protected Attributes inherited from ROOT::Experimental::RNTupleProcessor
ROOT::NTupleSize_t fCurrentEntryNumber = 0
 
std::size_t fCurrentProcessorNumber = 0
 
std::shared_ptr< Internal::RNTupleProcessorEntryfEntry = nullptr
 
std::unordered_set< Internal::RNTupleProcessorEntry::FieldIndex_tfFieldIdxs
 
ROOT::NTupleSize_t fNEntries = kInvalidNTupleIndex
 Total number of entries.
 
ROOT::NTupleSize_t fNEntriesProcessed = 0
 
std::string fProcessorName
 
std::unique_ptr< ROOT::RNTupleModelfProtoModel = nullptr
 

#include <ROOT/RNTupleProcessor.hxx>

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

Constructor & Destructor Documentation

◆ RNTupleSingleProcessor() [1/3]

ROOT::Experimental::RNTupleSingleProcessor::RNTupleSingleProcessor ( RNTupleOpenSpec ntuple,
std::string_view processorName )
private

Construct a new RNTupleProcessor for processing a single RNTuple.

Parameters
[in]ntupleThe source specification (name and storage location) for the RNTuple to process.
[in]processorNameName of the processor. Unless specified otherwise in RNTupleProcessor::Create, this is the name of the underlying RNTuple.

Definition at line 109 of file RNTupleProcessor.cxx.

◆ RNTupleSingleProcessor() [2/3]

ROOT::Experimental::RNTupleSingleProcessor::RNTupleSingleProcessor ( const RNTupleSingleProcessor & )
delete

◆ RNTupleSingleProcessor() [3/3]

ROOT::Experimental::RNTupleSingleProcessor::RNTupleSingleProcessor ( RNTupleSingleProcessor && )
delete

◆ ~RNTupleSingleProcessor()

ROOT::Experimental::RNTupleSingleProcessor::~RNTupleSingleProcessor ( )
inlineoverride

Definition at line 634 of file RNTupleProcessor.hxx.

Member Function Documentation

◆ AddEntriesToJoinTable()

void ROOT::Experimental::RNTupleSingleProcessor::AddEntriesToJoinTable ( Internal::RNTupleJoinTable & joinTable,
ROOT::NTupleSize_t entryOffset = 0 )
finalprivatevirtual

Add the entry mappings for this processor to the provided join table.

See also
ROOT::Experimental::RNTupleProcessor::AddEntriesToJoinTable

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 232 of file RNTupleProcessor.cxx.

◆ AddFieldToEntry()

ROOT::RResult< ROOT::Experimental::Internal::RNTupleProcessorEntry::FieldIndex_t > ROOT::Experimental::RNTupleSingleProcessor::AddFieldToEntry ( std::string_view fieldName,
void * valuePtr = nullptr,
const Internal::RNTupleProcessorProvenance & provenance = Internal::RNTupleProcessorProvenance() )
finalprivatevirtual

Add a field to the entry.

See also
RNTupleProcessor::AddFieldToEntry()

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 149 of file RNTupleProcessor.cxx.

◆ CanReadFieldFromDisk()

bool ROOT::Experimental::RNTupleSingleProcessor::CanReadFieldFromDisk ( std::string_view fieldName)
finalprivatevirtual

Check if a field exists on-disk and can be read by the processor.

See also
RNTupleProcessor::CanReadFieldFromDisk()

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 138 of file RNTupleProcessor.cxx.

◆ Connect()

void ROOT::Experimental::RNTupleSingleProcessor::Connect ( const std::unordered_set< Internal::RNTupleProcessorEntry::FieldIndex_t > & fieldIdxs,
const Internal::RNTupleProcessorProvenance & provenance = Internal::RNTupleProcessorProvenance(),
bool updateFields = false )
finalprivatevirtual

Connect the provided fields indices in the entry to their on-disk fields.

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 186 of file RNTupleProcessor.cxx.

◆ GetNEntries()

ROOT::NTupleSize_t ROOT::Experimental::RNTupleSingleProcessor::GetNEntries ( )
inlinefinalprivatevirtual

Get the total number of entries in this processor.

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 587 of file RNTupleProcessor.hxx.

◆ Initialize()

void ROOT::Experimental::RNTupleSingleProcessor::Initialize ( std::shared_ptr< Internal::RNTupleProcessorEntry > entry = nullptr)
finalprivatevirtual

Initialize the processor, by setting fProtoModel and creating an (initially empty) fEntry, or setting an existing one.

At this point, the page source for the underlying RNTuple of the processor will be created and opened.

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 118 of file RNTupleProcessor.cxx.

◆ LoadEntry()

ROOT::NTupleSize_t ROOT::Experimental::RNTupleSingleProcessor::LoadEntry ( ROOT::NTupleSize_t entryNumber)
finalprivatevirtual

Load the entry identified by the provided (global) entry number (i.e., considering all RNTuples in this processor).

See also
ROOT::Experimental::RNTupleProcessor::LoadEntry

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 172 of file RNTupleProcessor.cxx.

◆ operator=() [1/2]

RNTupleSingleProcessor & ROOT::Experimental::RNTupleSingleProcessor::operator= ( const RNTupleSingleProcessor & )
delete

◆ operator=() [2/2]

RNTupleSingleProcessor & ROOT::Experimental::RNTupleSingleProcessor::operator= ( RNTupleSingleProcessor && )
delete

◆ PrintStructureImpl()

void ROOT::Experimental::RNTupleSingleProcessor::PrintStructureImpl ( std::ostream & output) const
finalprivatevirtual

Processor-specific implementation for printing its structure, called by PrintStructure().

See also
ROOT::Experimental::RNTupleProcessor::PrintStructureImpl

Implements ROOT::Experimental::RNTupleProcessor.

Definition at line 239 of file RNTupleProcessor.cxx.

Friends And Related Symbol Documentation

◆ RNTupleProcessor

friend class RNTupleProcessor
friend

Definition at line 559 of file RNTupleProcessor.hxx.

Member Data Documentation

◆ fNTupleSpec

RNTupleOpenSpec ROOT::Experimental::RNTupleSingleProcessor::fNTupleSpec
private

Definition at line 562 of file RNTupleProcessor.hxx.

◆ fPageSource

std::unique_ptr<ROOT::Internal::RPageSource> ROOT::Experimental::RNTupleSingleProcessor::fPageSource
private

Definition at line 563 of file RNTupleProcessor.hxx.

Libraries for ROOT::Experimental::RNTupleSingleProcessor:

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