A page is a slice of a column that is mapped into memory.
The page provides an opaque memory buffer for uncompressed, unpacked data. It does not interpret the contents but it does now about the size (and thus the number) of the elements inside as well as the element number range within the backing column/cluster. The memory buffer is not managed by the page. It is normally registered with the page pool and allocated/freed by the page storage.
Classes | |
class | RClusterInfo |
Stores information about the cluster in which this page resides. More... | |
Public Member Functions | |
RPage () | |
RPage (ColumnId_t columnId, void *buffer, ClusterSize_t::ValueType elementSize, ClusterSize_t::ValueType maxElements) | |
~RPage ()=default | |
void | ChangeIds (DescriptorId_t columnId, DescriptorId_t clusterId) |
Used by virtual page sources to map the physical column and cluster IDs to ther virtual counterparts. | |
bool | Contains (const RClusterIndex &clusterIndex) const |
bool | Contains (NTupleSize_t globalIndex) const |
void * | GetBuffer () const |
const RClusterInfo & | GetClusterInfo () const |
ClusterSize_t::ValueType | GetClusterRangeFirst () const |
ClusterSize_t::ValueType | GetClusterRangeLast () const |
ColumnId_t | GetColumnId () const |
ClusterSize_t::ValueType | GetElementSize () const |
NTupleSize_t | GetGlobalRangeFirst () const |
NTupleSize_t | GetGlobalRangeLast () const |
ClusterSize_t::ValueType | GetMaxElements () const |
ClusterSize_t::ValueType | GetNBytes () const |
The space taken by column elements in the buffer. | |
ClusterSize_t::ValueType | GetNElements () const |
void * | GrowUnchecked (ClusterSize_t::ValueType nElements) |
Called during writing: returns a pointer after the last element and increases the element counter in anticipation of the caller filling nElements in the page. | |
bool | IsEmpty () const |
bool | IsNull () const |
bool | operator!= (const RPage &other) const |
bool | operator== (const RPage &other) const |
void | Reset (NTupleSize_t rangeFirst) |
Forget all currently stored elements (size == 0) and set a new starting index. | |
void | ResetCluster (const RClusterInfo &clusterInfo) |
void | SetWindow (const NTupleSize_t rangeFirst, const RClusterInfo &clusterInfo) |
Seek the page to a certain position of the column. | |
Private Attributes | |
void * | fBuffer |
RClusterInfo | fClusterInfo |
ColumnId_t | fColumnId |
ClusterSize_t::ValueType | fElementSize |
ClusterSize_t::ValueType | fMaxElements |
The capacity of the page in number of elements. | |
ClusterSize_t::ValueType | fNElements |
NTupleSize_t | fRangeFirst |
#include <ROOT/RPage.hxx>
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Called during writing: returns a pointer after the last element and increases the element counter in anticipation of the caller filling nElements in the page.
It is the responsibility of the caller to prevent page overflows, i.e. that fNElements + nElements <= fMaxElements
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |