ATLAS Offline Software
Loading...
Searching...
No Matches
DefaultMerger.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HDF5Utils_DefaultMerger_H
6#define HDF5Utils_DefaultMerger_H
7
9
16
17namespace H5Utils {
21 class DefaultMerger : public IH5Merger {
22 public:
36 hsize_t mergeAxis = 0,
37 int chunkSize = -1,
38 bool requireSameFormat = true,
39 std::size_t bufferSize = -1,
40 bool bufferInRows = false);
41
43
44 using IH5Merger::merge;
46
52 void merge(H5::Group& target, const H5::Group& source) override;
53
59 void merge(H5::DataSet& target, const H5::DataSet& source) override;
60
61
67 H5::DataSet createFrom(
68 H5::H5Location& targetLocation,
69 const H5::DataSet& source) override;
70
71 protected:
73 hsize_t m_mergeAxis;
79 std::size_t m_bufferSize;
82 }; //> end class DefaultMerger
83} //> end namespace H5Utils
84
85#endif //> !HDF5Utils_DefaultMerger_H
hsize_t m_mergeAxis
The axis to merge along.
H5::DataSet createFrom(H5::H5Location &targetLocation, const H5::DataSet &source) override
Make a new dataset from information in a source dataset.
int m_chunkSize
The chunk size to apply.
DefaultMerger(hsize_t mergeAxis=0, int chunkSize=-1, bool requireSameFormat=true, std::size_t bufferSize=-1, bool bufferInRows=false)
Create the merger.
std::size_t m_bufferSize
The size of the buffer.
bool m_measureBufferInRows
Whether to measure the buffer in bytes or rows.
bool m_requireSameFormat
Whether to require the same group structure.
virtual void merge(H5::H5File &target, const H5::H5File &source)
Merge a source file into a target file.
Definition IH5Merger.cxx:11
virtual H5::Group createFrom(H5::H5Location &targetLocation, const H5::Group &source)
Make a new group from information in a source group.
Definition IH5Merger.cxx:18
HDF5 Tuple Writer.
Definition common.h:20
Definition merge.py:1