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

Summarizes information about fields and the corresponding columns that were added after the header has been serialized.

Definition at line 979 of file RNTupleDescriptor.hxx.

Public Member Functions

const std::vector< DescriptorId_t > & GetExtendedColumnRepresentations () const
 
std::size_t GetNFields () const
 
std::size_t GetNLogicalColumns () const
 
std::size_t GetNPhysicalColumns () const
 
std::vector< DescriptorId_tGetTopLevelFields (const RNTupleDescriptor &desc) const
 Return a vector containing the IDs of the top-level fields defined in the extension header, in the order of their addition.
 

Private Member Functions

void AddExtendedColumn (const RColumnDescriptor &columnDesc)
 
void AddExtendedField (const RFieldDescriptor &fieldDesc)
 

Private Attributes

std::vector< DescriptorId_tfExtendedColumnRepresentations
 All logical column IDs of columns that extend, with additional column representations, fields of the regular header.
 
std::unordered_set< DescriptorId_tfFieldIdsLookup
 All field IDs of late model extensions for efficient lookup.
 
std::vector< DescriptorId_tfFieldIdsOrder
 All field IDs of late model extensions, in the order of field addition.
 
std::uint32_t fNLogicalColumns = 0
 Number of logical and physical columns; updated by the descriptor builder when columns are added.
 
std::uint32_t fNPhysicalColumns = 0
 

Friends

class Internal::RNTupleDescriptorBuilder
 

#include <ROOT/RNTupleDescriptor.hxx>

Member Function Documentation

◆ AddExtendedColumn()

void ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::AddExtendedColumn ( const RColumnDescriptor columnDesc)
inlineprivate

Definition at line 1004 of file RNTupleDescriptor.hxx.

◆ AddExtendedField()

void ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::AddExtendedField ( const RFieldDescriptor fieldDesc)
inlineprivate

Definition at line 998 of file RNTupleDescriptor.hxx.

◆ GetExtendedColumnRepresentations()

const std::vector< DescriptorId_t > & ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::GetExtendedColumnRepresentations ( ) const
inline

Definition at line 1018 of file RNTupleDescriptor.hxx.

◆ GetNFields()

std::size_t ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::GetNFields ( ) const
inline

Definition at line 1015 of file RNTupleDescriptor.hxx.

◆ GetNLogicalColumns()

std::size_t ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::GetNLogicalColumns ( ) const
inline

Definition at line 1016 of file RNTupleDescriptor.hxx.

◆ GetNPhysicalColumns()

std::size_t ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::GetNPhysicalColumns ( ) const
inline

Definition at line 1017 of file RNTupleDescriptor.hxx.

◆ GetTopLevelFields()

std::vector< ROOT::Experimental::DescriptorId_t > ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::GetTopLevelFields ( const RNTupleDescriptor desc) const

Return a vector containing the IDs of the top-level fields defined in the extension header, in the order of their addition.

We cannot create this vector when building the fFields because at the time when AddExtendedField is called, the field is not yet linked into the schema tree.

Definition at line 520 of file RNTupleDescriptor.cxx.

Friends And Related Symbol Documentation

◆ Internal::RNTupleDescriptorBuilder

Definition at line 980 of file RNTupleDescriptor.hxx.

Member Data Documentation

◆ fExtendedColumnRepresentations

std::vector<DescriptorId_t> ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::fExtendedColumnRepresentations
private

All logical column IDs of columns that extend, with additional column representations, fields of the regular header.

During serialization, these columns are not picked up as columns of fFieldIdsOrder. But instead these columns need to be serialized in the extension header without re-serializing the field.

Definition at line 993 of file RNTupleDescriptor.hxx.

◆ fFieldIdsLookup

std::unordered_set<DescriptorId_t> ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::fFieldIdsLookup
private

All field IDs of late model extensions for efficient lookup.

When a column gets added to the extension header, this enables us to determine if the column belongs to a field of the header extension of if it belongs to a field of the regular header that gets extended by additional column representations.

Definition at line 989 of file RNTupleDescriptor.hxx.

◆ fFieldIdsOrder

std::vector<DescriptorId_t> ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::fFieldIdsOrder
private

All field IDs of late model extensions, in the order of field addition.

This is necessary to serialize the the fields in that order.

Definition at line 985 of file RNTupleDescriptor.hxx.

◆ fNLogicalColumns

std::uint32_t ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::fNLogicalColumns = 0
private

Number of logical and physical columns; updated by the descriptor builder when columns are added.

Definition at line 995 of file RNTupleDescriptor.hxx.

◆ fNPhysicalColumns

std::uint32_t ROOT::Experimental::RNTupleDescriptor::RHeaderExtension::fNPhysicalColumns = 0
private

Definition at line 996 of file RNTupleDescriptor.hxx.

Libraries for ROOT::Experimental::RNTupleDescriptor::RHeaderExtension:

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