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

A column is a storage-backed array of a simple, fixed-size type, from which pages can be mapped into memory.

Definition at line 40 of file RColumn.hxx.

Public Types

enum class  EColumnType { kRead , kWrite }
 

Public Member Functions

 RColumn (const RColumn &)=delete
 
virtual ~RColumn ()=default
 
RReadColumn * ForReading ()
 
const RReadColumn * ForReading () const
 
RWriteColumn * ForWriting ()
 
const RWriteColumn * ForWriting () const
 
std::uint16_t GetBitsOnStorage () const
 
ROOT::Internal::RColumnElementBase * GetElement () const
 
std::uint32_t GetIndex () const
 
ROOT::DescriptorId_t GetOnDiskId () const
 
std::uint16_t GetRepresentationIndex () const
 
ROOT::ENTupleColumnType GetType () const
 
std::optional< std::pair< double, double > > GetValueRange () const
 
RColumn & operator= (const RColumn &)=delete
 
void SetBitsOnStorage (std::size_t bits)
 
void SetValueRange (double min, double max)
 

Protected Member Functions

 RColumn (ROOT::ENTupleColumnType type, std::uint32_t columnIndex, std::uint16_t representationIndex)
 
ROOT::Internal::RPageStorage::ColumnHandle_t MakeHandle ()
 

Protected Attributes

std::unique_ptr< ROOT::Internal::RColumnElementBase > fElement
 Used to pack and unpack pages on writing/reading.
 
std::uint32_t fIndex
 Columns belonging to the same field are distinguished by their order.
 
ROOT::DescriptorId_t fOnDiskId = ROOT::kInvalidDescriptorId
 The column id in the column descriptor, once connected to a sink or source.
 
std::uint16_t fRepresentationIndex
 Fields can have multiple column representations, distinguished by representation index.
 
ROOT::ENTupleColumnType fType
 

#include <ROOT/RColumn.hxx>

Inheritance diagram for ROOT::Internal::RColumn:
[legend]

Member Enumeration Documentation

◆ EColumnType

Enumerator
kRead 
kWrite 

Definition at line 61 of file RColumn.hxx.

Constructor & Destructor Documentation

◆ RColumn() [1/2]

ROOT::Internal::RColumn::RColumn ( ROOT::ENTupleColumnType type,
std::uint32_t columnIndex,
std::uint16_t representationIndex )
inlineprotected

Definition at line 53 of file RColumn.hxx.

◆ RColumn() [2/2]

ROOT::Internal::RColumn::RColumn ( const RColumn & )
delete

◆ ~RColumn()

virtual ROOT::Internal::RColumn::~RColumn ( )
virtualdefault

Member Function Documentation

◆ ForReading() [1/2]

RReadColumn * ROOT::Internal::RColumn::ForReading ( )
inline

Definition at line 413 of file RColumn.hxx.

◆ ForReading() [2/2]

const RReadColumn * ROOT::Internal::RColumn::ForReading ( ) const
inline

Definition at line 417 of file RColumn.hxx.

◆ ForWriting() [1/2]

RWriteColumn * ROOT::Internal::RColumn::ForWriting ( )
inline

Definition at line 421 of file RColumn.hxx.

◆ ForWriting() [2/2]

const RWriteColumn * ROOT::Internal::RColumn::ForWriting ( ) const
inline

Definition at line 425 of file RColumn.hxx.

◆ GetBitsOnStorage()

std::uint16_t ROOT::Internal::RColumn::GetBitsOnStorage ( ) const
inline

Definition at line 78 of file RColumn.hxx.

◆ GetElement()

ROOT::Internal::RColumnElementBase * ROOT::Internal::RColumn::GetElement ( ) const
inline

Definition at line 76 of file RColumn.hxx.

◆ GetIndex()

std::uint32_t ROOT::Internal::RColumn::GetIndex ( ) const
inline

Definition at line 88 of file RColumn.hxx.

◆ GetOnDiskId()

ROOT::DescriptorId_t ROOT::Internal::RColumn::GetOnDiskId ( ) const
inline

Definition at line 90 of file RColumn.hxx.

◆ GetRepresentationIndex()

std::uint16_t ROOT::Internal::RColumn::GetRepresentationIndex ( ) const
inline

Definition at line 89 of file RColumn.hxx.

◆ GetType()

ROOT::ENTupleColumnType ROOT::Internal::RColumn::GetType ( ) const
inline

Definition at line 77 of file RColumn.hxx.

◆ GetValueRange()

std::optional< std::pair< double, double > > ROOT::Internal::RColumn::GetValueRange ( ) const
inline

Definition at line 83 of file RColumn.hxx.

◆ MakeHandle()

ROOT::Internal::RPageStorage::ColumnHandle_t ROOT::Internal::RColumn::MakeHandle ( )
inlineprotected

Definition at line 58 of file RColumn.hxx.

◆ operator=()

RColumn & ROOT::Internal::RColumn::operator= ( const RColumn & )
delete

◆ SetBitsOnStorage()

void ROOT::Internal::RColumn::SetBitsOnStorage ( std::size_t bits)
inline

Definition at line 92 of file RColumn.hxx.

◆ SetValueRange()

void ROOT::Internal::RColumn::SetValueRange ( double min,
double max )
inline

Definition at line 93 of file RColumn.hxx.

Member Data Documentation

◆ fElement

std::unique_ptr<ROOT::Internal::RColumnElementBase> ROOT::Internal::RColumn::fElement
protected

Used to pack and unpack pages on writing/reading.

Definition at line 45 of file RColumn.hxx.

◆ fIndex

std::uint32_t ROOT::Internal::RColumn::fIndex
protected

Columns belonging to the same field are distinguished by their order.

E.g. for an std::string field, there is the offset column with index 0 and the character value column with index 1.

Definition at line 48 of file RColumn.hxx.

◆ fOnDiskId

ROOT::DescriptorId_t ROOT::Internal::RColumn::fOnDiskId = ROOT::kInvalidDescriptorId
protected

The column id in the column descriptor, once connected to a sink or source.

Definition at line 43 of file RColumn.hxx.

◆ fRepresentationIndex

std::uint16_t ROOT::Internal::RColumn::fRepresentationIndex
protected

Fields can have multiple column representations, distinguished by representation index.

Definition at line 50 of file RColumn.hxx.

◆ fType

ROOT::ENTupleColumnType ROOT::Internal::RColumn::fType
protected

Definition at line 51 of file RColumn.hxx.

Libraries for ROOT::Internal::RColumn:

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