Logo ROOT  
Reference Guide
No Matches
ROOT::Experimental::Internal::RPageStorage Class Referenceabstract

Common functionality of an ntuple storage for both reading and writing.

The RPageStore provides access to a storage container that keeps the bits of pages and clusters comprising an ntuple. Concrete implementations can use a TFile, a raw file, an object store, and so on.

Definition at line 68 of file RPageStorage.hxx.


struct  RColumnHandle
struct  RSealedPage
 A sealed page contains the bytes of a page as written to storage (packed & compressed). More...
struct  RSealedPageGroup
 A range of sealed pages referring to the same column that can be used for vector commit. More...
class  RTaskScheduler
 The interface of a task scheduler to schedule page (de)compression tasks. More...

Public Types

using ColumnHandle_t = RColumnHandle
 The column handle identifies a column with the current open page storage.
using SealedPageSequence_t = std::deque< RSealedPage >

Public Member Functions

 RPageStorage (const RPageStorage &other)=delete
 RPageStorage (RPageStorage &&other)=default
 RPageStorage (std::string_view name)
virtual ~RPageStorage ()
virtual ColumnHandle_t AddColumn (DescriptorId_t fieldId, const RColumn &column)=0
 Register a new column.
virtual void DropColumn (ColumnHandle_t columnHandle)=0
 Unregisters a column.
virtual Detail::RNTupleMetricsGetMetrics ()
 Returns the default metrics object.
const std::string & GetNTupleName () const
 Returns the NTuple name.
virtual EPageStorageType GetType ()=0
 Whether the concrete implementation is a sink or a source.
RPageStorageoperator= (const RPageStorage &other)=delete
RPageStorageoperator= (RPageStorage &&other)=default
virtual void ReleasePage (RPage &page)=0
 Every page store needs to be able to free pages it handed out.
void SetTaskScheduler (RTaskScheduler *taskScheduler)

Protected Member Functions

void WaitForAllTasks ()

Protected Attributes

Detail::RNTupleMetrics fMetrics
std::string fNTupleName
RTaskSchedulerfTaskScheduler = nullptr

#include <ROOT/RPageStorage.hxx>

Inheritance diagram for ROOT::Experimental::Internal::RPageStorage:

Member Typedef Documentation

◆ ColumnHandle_t

The column handle identifies a column with the current open page storage.

Definition at line 142 of file RPageStorage.hxx.

◆ SealedPageSequence_t

Constructor & Destructor Documentation

◆ RPageStorage() [1/3]

ROOT::Experimental::Internal::RPageStorage::RPageStorage ( std::string_view  name)

Definition at line 37 of file RPageStorage.cxx.

◆ RPageStorage() [2/3]

ROOT::Experimental::Internal::RPageStorage::RPageStorage ( const RPageStorage other)

◆ RPageStorage() [3/3]

ROOT::Experimental::Internal::RPageStorage::RPageStorage ( RPageStorage &&  other)

◆ ~RPageStorage()

ROOT::Experimental::Internal::RPageStorage::~RPageStorage ( )

Definition at line 39 of file RPageStorage.cxx.

Member Function Documentation

◆ AddColumn()

virtual ColumnHandle_t ROOT::Experimental::Internal::RPageStorage::AddColumn ( DescriptorId_t  fieldId,
const RColumn column 
pure virtual

Register a new column.

When reading, the column must exist in the ntuple on disk corresponding to the meta-data. When writing, every column can only be attached once.

Implemented in ROOT::Experimental::Internal::RPageSinkBuf, ROOT::Experimental::Internal::RPageSourceFriends, ROOT::Experimental::Internal::RPagePersistentSink, ROOT::Experimental::Internal::RPageSource, and ROOT::Experimental::Internal::RPageNullSink.

◆ DropColumn()

virtual void ROOT::Experimental::Internal::RPageStorage::DropColumn ( ColumnHandle_t  columnHandle)
pure virtual

Unregisters a column.

A page source decreases the reference counter for the corresponding active column. For a page sink, dropping columns is currently a no-op.

Implemented in ROOT::Experimental::Internal::RPageSourceFriends, ROOT::Experimental::Internal::RPageSource, and ROOT::Experimental::Internal::RPageSink.

◆ GetMetrics()

virtual Detail::RNTupleMetrics & ROOT::Experimental::Internal::RPageStorage::GetMetrics ( )

Returns the default metrics object.

Subclasses might alternatively provide their own metrics object by overriding this.

Reimplemented in ROOT::Experimental::Internal::RPageSourceFriends.

Definition at line 157 of file RPageStorage.hxx.

◆ GetNTupleName()

const std::string & ROOT::Experimental::Internal::RPageStorage::GetNTupleName ( ) const

Returns the NTuple name.

Definition at line 160 of file RPageStorage.hxx.

◆ GetType()

virtual EPageStorageType ROOT::Experimental::Internal::RPageStorage::GetType ( )
pure virtual

Whether the concrete implementation is a sink or a source.

Implemented in ROOT::Experimental::Internal::RPageSink, and ROOT::Experimental::Internal::RPageSource.

◆ operator=() [1/2]

RPageStorage & ROOT::Experimental::Internal::RPageStorage::operator= ( const RPageStorage other)

◆ operator=() [2/2]

RPageStorage & ROOT::Experimental::Internal::RPageStorage::operator= ( RPageStorage &&  other)

◆ ReleasePage()

virtual void ROOT::Experimental::Internal::RPageStorage::ReleasePage ( RPage page)
pure virtual

◆ SetTaskScheduler()

void ROOT::Experimental::Internal::RPageStorage::SetTaskScheduler ( RTaskScheduler taskScheduler)

Definition at line 162 of file RPageStorage.hxx.

◆ WaitForAllTasks()

void ROOT::Experimental::Internal::RPageStorage::WaitForAllTasks ( )

Definition at line 115 of file RPageStorage.hxx.

Member Data Documentation

◆ fMetrics

Detail::RNTupleMetrics ROOT::Experimental::Internal::RPageStorage::fMetrics

Definition at line 111 of file RPageStorage.hxx.

◆ fNTupleName

std::string ROOT::Experimental::Internal::RPageStorage::fNTupleName

Definition at line 113 of file RPageStorage.hxx.

◆ fTaskScheduler

RTaskScheduler* ROOT::Experimental::Internal::RPageStorage::fTaskScheduler = nullptr

Definition at line 114 of file RPageStorage.hxx.

Libraries for ROOT::Experimental::Internal::RPageStorage:

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