Wrapper sink that coalesces cluster column page writes.
TODO(jblomer): The interplay of derived class and RPageSink is not yet optimally designed for page storage wrapper classes like this one. Header and footer serialization, e.g., are done twice. To be revised.
Definition at line 42 of file RPageSinkBuf.hxx.
|
| RPageSinkBuf (const RPageSinkBuf &)=delete |
|
| RPageSinkBuf (RPageSinkBuf &&)=default |
|
| RPageSinkBuf (std::unique_ptr< RPageSink > inner) |
|
| ~RPageSinkBuf () override=default |
|
RNTupleMetrics & | GetMetrics () final |
| Returns the default metrics object. Subclasses might alternatively provide their own metrics object by overriding this.
|
|
RPageSinkBuf & | operator= (const RPageSinkBuf &)=delete |
|
RPageSinkBuf & | operator= (RPageSinkBuf &&)=default |
|
void | ReleasePage (RPage &page) final |
| Every page store needs to be able to free pages it handed out.
|
|
RPage | ReservePage (ColumnHandle_t columnHandle, std::size_t nElements) final |
| Get a new, empty page for the given column that can be filled with up to nElements.
|
|
void | UpdateSchema (const RNTupleModelChangeset &changeset) final |
| Incorporate incremental changes to the model into the ntuple descriptor.
|
|
| RPageSink (const RPageSink &)=delete |
|
| RPageSink (RPageSink &&)=default |
|
| RPageSink (std::string_view ntupleName, const RNTupleWriteOptions &options) |
|
| ~RPageSink () override |
|
ColumnHandle_t | AddColumn (DescriptorId_t fieldId, const RColumn &column) final |
| Register a new column.
|
|
std::uint64_t | CommitCluster (NTupleSize_t nEntries) |
| Finalize the current cluster and create a new one for the following data.
|
|
void | CommitClusterGroup () |
| Write out the page locations (page list envelope) for all the committed clusters since the last call of CommitClusterGroup (or the beginning of writing).
|
|
void | CommitDataset () |
| Finalize the current cluster and the entrire data set.
|
|
void | CommitPage (ColumnHandle_t columnHandle, const RPage &page) |
| Write a page to the storage. The column must have been added before.
|
|
void | CommitSealedPage (DescriptorId_t physicalColumnId, const RPageStorage::RSealedPage &sealedPage) |
| Write a preprocessed page to storage. The column must have been added before.
|
|
void | CommitSealedPageV (std::span< RPageStorage::RSealedPageGroup > ranges) |
| Write a vector of preprocessed pages to storage. The corresponding columns must have been added before.
|
|
void | Create (RNTupleModel &model) |
| Physically creates the storage container to hold the ntuple (e.g., a keys a TFile or an S3 bucket) To do so, Create() calls CreateImpl() after updating the descriptor.
|
|
void | DropColumn (ColumnHandle_t) final |
| Unregisters a column.
|
|
RNTupleMetrics & | GetMetrics () override |
| Returns the default metrics object. Subclasses might alternatively provide their own metrics object by overriding this.
|
|
EPageStorageType | GetType () final |
| Whether the concrete implementation is a sink or a source.
|
|
const RNTupleWriteOptions & | GetWriteOptions () const |
| Returns the sink's write options.
|
|
RPageSink & | operator= (const RPageSink &)=delete |
|
RPageSink & | operator= (RPageSink &&)=default |
|
virtual RPage | ReservePage (ColumnHandle_t columnHandle, std::size_t nElements)=0 |
| Get a new, empty page for the given column that can be filled with up to nElements.
|
|
virtual void | UpdateSchema (const RNTupleModelChangeset &changeset) |
| Incorporate incremental changes to the model into the ntuple descriptor.
|
|
| 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 RNTupleMetrics & | GetMetrics ()=0 |
| Page storage implementations have their own metrics.
|
|
const std::string & | GetNTupleName () const |
| Returns the NTuple name.
|
|
virtual EPageStorageType | GetType ()=0 |
| Whether the concrete implementation is a sink or a source.
|
|
RPageStorage & | operator= (const RPageStorage &other)=delete |
|
RPageStorage & | operator= (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) |
|
|
RNTupleLocator | CommitClusterGroupImpl (unsigned char *serializedPageList, std::uint32_t length) final |
| Returns the locator of the page list envelope of the given buffer that contains the serialized page list.
|
|
std::uint64_t | CommitClusterImpl (NTupleSize_t nEntries) final |
| Returns the number of bytes written to storage (excluding metadata)
|
|
void | CommitDatasetImpl (unsigned char *serializedFooter, std::uint32_t length) final |
|
RNTupleLocator | CommitPageImpl (ColumnHandle_t columnHandle, const RPage &page) final |
|
RNTupleLocator | CommitSealedPageImpl (DescriptorId_t physicalColumnId, const RSealedPage &sealedPage) final |
|
void | CreateImpl (const RNTupleModel &model, unsigned char *serializedHeader, std::uint32_t length) final |
|
virtual RNTupleLocator | CommitClusterGroupImpl (unsigned char *serializedPageList, std::uint32_t length)=0 |
| Returns the locator of the page list envelope of the given buffer that contains the serialized page list.
|
|
virtual std::uint64_t | CommitClusterImpl (NTupleSize_t nEntries)=0 |
| Returns the number of bytes written to storage (excluding metadata)
|
|
virtual void | CommitDatasetImpl (unsigned char *serializedFooter, std::uint32_t length)=0 |
|
virtual RNTupleLocator | CommitPageImpl (ColumnHandle_t columnHandle, const RPage &page)=0 |
|
virtual RNTupleLocator | CommitSealedPageImpl (DescriptorId_t physicalColumnId, const RPageStorage::RSealedPage &sealedPage)=0 |
|
virtual std::vector< RNTupleLocator > | CommitSealedPageVImpl (std::span< RPageStorage::RSealedPageGroup > ranges) |
| Vector commit of preprocessed pages.
|
|
virtual void | CreateImpl (const RNTupleModel &model, unsigned char *serializedHeader, std::uint32_t length)=0 |
|
void | EnableDefaultMetrics (const std::string &prefix) |
| Enables the default set of metrics provided by RPageSink.
|
|
RSealedPage | SealPage (const RPage &page, const RColumnElementBase &element, int compressionSetting) |
| Helper for streaming a page.
|
|
void | WaitForAllTasks () |
|