Given a set of RPageSources merge them into an RPageSink, optionally changing their compression.
This can also be used to change the compression of a single RNTuple by just passing a single source.
Definition at line 49 of file RNTupleMerger.hxx.
Classes | |
struct | RColumnInfo |
Public Member Functions | |
void | Merge (std::span< RPageSource * > sources, RPageSink &destination, const RNTupleMergeOptions &options=RNTupleMergeOptions()) |
Merge a given set of sources into the destination. | |
Private Member Functions | |
void | AddColumnsFromField (std::vector< RColumnInfo > &columns, const RNTupleDescriptor &desc, const RFieldDescriptor &fieldDesc, const std::string &prefix="") |
Recursively add columns from a given field. | |
void | BuildColumnIdMap (std::vector< RColumnInfo > &columns) |
Build the internal column id map from the first source This is where we assign the output ids for the first source. | |
void | CollectColumns (const RNTupleDescriptor &descriptor, std::vector< RColumnInfo > &columns) |
Recursively collect all the columns for all the fields rooted at field zero. | |
void | ValidateColumns (std::vector< RColumnInfo > &columns) |
Validate the columns against the internal map that is built from the first source This is where we assign the output ids for the remaining sources. | |
Private Attributes | |
std::unordered_map< std::string, DescriptorId_t > | fOutputIdMap |
#include <ROOT/RNTupleMerger.hxx>
|
private |
Recursively add columns from a given field.
Definition at line 164 of file RNTupleMerger.cxx.
|
private |
Build the internal column id map from the first source This is where we assign the output ids for the first source.
Definition at line 120 of file RNTupleMerger.cxx.
|
private |
Recursively collect all the columns for all the fields rooted at field zero.
Definition at line 149 of file RNTupleMerger.cxx.
void ROOT::Experimental::Internal::RNTupleMerger::Merge | ( | std::span< RPageSource * > | sources, |
RPageSink & | destination, | ||
const RNTupleMergeOptions & | options = RNTupleMergeOptions() |
||
) |
Merge a given set of sources into the destination.
Definition at line 183 of file RNTupleMerger.cxx.
|
private |
Validate the columns against the internal map that is built from the first source This is where we assign the output ids for the remaining sources.
Definition at line 130 of file RNTupleMerger.cxx.
|
private |
Definition at line 82 of file RNTupleMerger.hxx.