![]() |
Project
|
#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. | |
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.
|
explicit |
Definition at line 50 of file Container.cxx.
| 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.
|
inline |
Definition at line 60 of file Container.h.
| 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.
| 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.
| 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.
Definition at line 313 of file Container.cxx.
|
inline |
The TTrees whose bytes keysOf() fetches along; all of them when empty.
Definition at line 73 of file Container.h.
|
inline |
Definition at line 61 of file Container.h.
|
inline |
Definition at line 62 of file Container.h.
| 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.