|
ROOT
Reference Guide |
|
Go to the documentation of this file.
16 #ifndef ROOT7_RCluster
17 #define ROOT7_RCluster
23 #include <unordered_map>
24 #include <unordered_set>
29 namespace Experimental {
79 struct hash<
ROOT::Experimental::Detail::ROnDiskPage::Key>
84 return ((std::hash<ROOT::Experimental::DescriptorId_t>()(key.
fColumnId) ^
85 (hash<ROOT::Experimental::NTupleSize_t>()(key.
fPageNo) << 1)) >> 1);
92 namespace Experimental {
178 void Adopt(std::unique_ptr<ROnDiskPageMap> pageMap);
std::size_t fSize
The compressed and packed size of the page.
RCluster & operator=(const RCluster &other)=delete
Key(DescriptorId_t columnId, std::uint64_t pageNo)
std::vector< std::unique_ptr< ROnDiskPageMap > > fPageMaps
Multiple page maps can be combined in a single RCluster.
std::unordered_map< ROnDiskPage::Key, ROnDiskPage > fOnDiskPages
Lookup table for the on-disk pages.
const ROnDiskPage * GetOnDiskPage(const ROnDiskPage::Key &key) const
std::size_t GetSize() const
std::uint64_t DescriptorId_t
Distriniguishes elements of the same type within a descriptor, e.g. different fields.
An ROnDiskPageMap that is used for an fMemory allocated as an array of unsigned char.
friend bool operator==(const Key &lhs, const Key &rhs)
TRObject operator()(const T1 &t1) const
ROnDiskPageMap & operator=(const ROnDiskPageMap &other)=delete
ROnDiskPageMap(ROnDiskPageMap &&other)=default
const void * fAddress
The memory location of the bytes.
On-disk pages within a page source are identified by the column and page number.
void SetColumnAvailable(DescriptorId_t columnId)
Marks the column as complete; must be done for all columns, even empty ones without associated pages,...
virtual ~ROnDiskPageMap()
void Register(const ROnDiskPage::Key &key, const ROnDiskPage &onDiskPage)
Inserts information about a page stored in fMemory.
RCluster(DescriptorId_t clusterId)
std::unordered_set< DescriptorId_t > fAvailColumns
Set of the (complete) columns represented by the RCluster.
void Adopt(std::unique_ptr< ROnDiskPageMap > pageMap)
Move the given page map into this cluster; for on-disk pages that are present in both the cluster at ...
DescriptorId_t fClusterId
References the cluster identifier in the page source that created the cluster.
A page as being stored on disk, that is packed and compressed.
RCluster(RCluster &&other)=default
ROnDiskPageMapHeap(const ROnDiskPageMapHeap &other)=delete
const void * GetAddress() const
ROnDiskPageMapHeap & operator=(const ROnDiskPageMapHeap &other)=delete
ROnDiskPageMapHeap(ROnDiskPageMapHeap &&other)=default
ROnDiskPageMap(const ROnDiskPageMap &other)=delete
ROnDiskPage(void *address, std::size_t size)
ROnDiskPageMapHeap(std::unique_ptr< unsigned char[]> memory)
RCluster(const RCluster &other)=delete
std::unordered_map< ROnDiskPage::Key, ROnDiskPage > fOnDiskPages
std::unique_ptr< unsigned char[]> fMemory
The memory region containing the on-disk pages.
const std::unordered_set< DescriptorId_t > & GetAvailColumns() const
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
bool ContainsColumn(DescriptorId_t columnId) const
An in-memory subset of the packed and compressed pages of a cluster.
DescriptorId_t GetId() const
A memory region that contains packed and compressed pages.
size_t GetNOnDiskPages() const