Project
Loading...
Searching...
No Matches
o2::aod::native::RootFile Class Reference

#include <Container.h>

Public Member Functions

 RootFile (std::shared_ptr< ByteSource >)
 
FileHeader const & header () const
 
ByteSource & source ()
 
std::shared_ptr< ByteSource > const & sourcePtr () const
 
const std::vector< KeyInfo > & topKeys ()
 All the keys of the top directory, every cycle, in on-disk order.
 
std::vector< std::string > dataFrames ()
 
std::vector< KeyInfo > keysOf (const std::string &df)
 
void setTreesToPrefetch (std::vector< std::string > names)
 The TTrees whose bytes keysOf() fetches along; all of them when empty.
 
TreeInfo readTree (const KeyInfo &)
 
std::map< std::string, std::string > readStringMap (const std::string &key)
 Empty map if the key does not exist. Read once per key.
 
std::vector< uint8_t > readPayload (const KeyInfo &)
 The uncompressed payload of a key.
 

Detailed Description

The container layer: file header, keys and directories. Only reads what is asked for, so opening a file costs a handful of small reads.

Definition at line 56 of file Container.h.

Constructor & Destructor Documentation

◆ RootFile()

o2::aod::native::RootFile::RootFile ( std::shared_ptr< ByteSource >  source)
explicit

Definition at line 50 of file Container.cxx.

Member Function Documentation

◆ dataFrames()

std::vector< std::string > o2::aod::native::RootFile::dataFrames ( )

DF_* directory names, deduplicated, ordered numerically, or by parent file path when a parentFiles map exists. Same order as DataInputDirector.

Definition at line 179 of file Container.cxx.

◆ header()

FileHeader const & o2::aod::native::RootFile::header ( ) const
inline

Definition at line 60 of file Container.h.

◆ keysOf()

std::vector< KeyInfo > o2::aod::native::RootFile::keysOf ( const std::string &  df)

The keys inside DF df, highest cycle only, read once per DF. Unless the file is mapped, the stored bytes of its TTrees are fetched along, in one read: each read is a round trip for a remote file.

Definition at line 213 of file Container.cxx.

◆ readPayload()

std::vector< uint8_t > o2::aod::native::RootFile::readPayload ( const KeyInfo &  key)

The uncompressed payload of a key.

Definition at line 297 of file Container.cxx.

◆ readStringMap()

std::map< std::string, std::string > o2::aod::native::RootFile::readStringMap ( const std::string &  key)

Empty map if the key does not exist. Read once per key.

Definition at line 340 of file Container.cxx.

◆ readTree()

TreeInfo o2::aod::native::RootFile::readTree ( const KeyInfo &  key)

Definition at line 313 of file Container.cxx.

◆ setTreesToPrefetch()

void o2::aod::native::RootFile::setTreesToPrefetch ( std::vector< std::string >  names)
inline

The TTrees whose bytes keysOf() fetches along; all of them when empty.

Definition at line 73 of file Container.h.

◆ source()

ByteSource & o2::aod::native::RootFile::source ( )
inline

Definition at line 61 of file Container.h.

◆ sourcePtr()

std::shared_ptr< ByteSource > const & o2::aod::native::RootFile::sourcePtr ( ) const
inline

Definition at line 62 of file Container.h.

◆ topKeys()

const std::vector< KeyInfo > & o2::aod::native::RootFile::topKeys ( )

All the keys of the top directory, every cycle, in on-disk order.

Definition at line 145 of file Container.cxx.


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