![]() |
ATLAS Offline Software
|
#include <DefaultMerger.h>
Public Member Functions | |
| DefaultMerger (hsize_t mergeAxis=0, int chunkSize=-1, bool requireSameFormat=true, std::size_t bufferSize=-1, bool bufferInRows=false) | |
| Create the merger. | |
| ~DefaultMerger () | |
| void | merge (H5::Group &target, const H5::Group &source) override |
| Merge a source group into a target group. | |
| void | merge (H5::DataSet &target, const H5::DataSet &source) override |
| Merge a source dataset into a target dataset. | |
| H5::DataSet | createFrom (H5::H5Location &targetLocation, const H5::DataSet &source) override |
| Make a new dataset from information in a source dataset. | |
| virtual void | merge (H5::H5File &target, const H5::H5File &source) |
| Merge a source file into a target file. | |
| virtual H5::Group | createFrom (H5::H5Location &targetLocation, const H5::Group &source) |
| Make a new group from information in a source group. | |
Protected Attributes | |
| hsize_t | m_mergeAxis |
| The axis to merge along. | |
| int | m_chunkSize |
| The chunk size to apply. | |
| bool | m_requireSameFormat |
| Whether to require the same group structure. | |
| std::size_t | m_bufferSize |
| The size of the buffer. | |
| bool | m_measureBufferInRows |
| Whether to measure the buffer in bytes or rows. | |
Definition at line 21 of file DefaultMerger.h.
| H5Utils::DefaultMerger::DefaultMerger | ( | hsize_t | mergeAxis = 0, |
| int | chunkSize = -1, | ||
| bool | requireSameFormat = true, | ||
| std::size_t | bufferSize = -1, | ||
| bool | bufferInRows = false ) |
Create the merger.
| mergeAxis | The axis to merge along |
| chunkSize | The chunk size to apply. If negative then the value found in the input datasets will be used. |
| requireSameFormat | Require all input files to have the same groups and datasets. |
| bufferSize | The maximum size of the buffer to use while merging datasets |
| bufferInRows | Whether the buffer size is specified in rows or bytes |
Definition at line 12 of file DefaultMerger.cxx.
| H5Utils::DefaultMerger::~DefaultMerger | ( | ) |
Definition at line 24 of file DefaultMerger.cxx.
|
overridevirtual |
Make a new dataset from information in a source dataset.
| targetLocation | Where the new dataset will be created |
| source | The dataset to use to create the new dataset |
Implements H5Utils::IH5Merger.
Definition at line 113 of file DefaultMerger.cxx.
|
virtual |
Make a new group from information in a source group.
| targetLocation | Where the new group will be created |
| source | The group to use to create the new group |
The default implementation provided here just copies the source group's name then uses the merge function.
Reimplemented from H5Utils::IH5Merger.
Definition at line 61 of file IH5Merger.cxx.
|
overridevirtual |
Merge a source dataset into a target dataset.
| target | The dataset to merge into |
| source | The dataset to merge from |
Implements H5Utils::IH5Merger.
Definition at line 98 of file DefaultMerger.cxx.
|
overridevirtual |
Merge a source group into a target group.
| target | The group to merge into |
| source | The group to merge from |
Implements H5Utils::IH5Merger.
Definition at line 26 of file DefaultMerger.cxx.
|
virtual |
Merge a source file into a target file.
| target | The file to merge into |
| source | The file to merge from |
The default implementation provided here just forwards this to the group function.
Reimplemented from H5Utils::IH5Merger.
Definition at line 37 of file IH5Merger.cxx.
|
protected |
The size of the buffer.
Definition at line 79 of file DefaultMerger.h.
|
protected |
The chunk size to apply.
Definition at line 75 of file DefaultMerger.h.
|
protected |
Whether to measure the buffer in bytes or rows.
Definition at line 81 of file DefaultMerger.h.
|
protected |
The axis to merge along.
Definition at line 73 of file DefaultMerger.h.
|
protected |
Whether to require the same group structure.
Definition at line 77 of file DefaultMerger.h.