Return to “Advanced Topics.”
HDF5 natively interprets and understands library metadata. Library metadata is always present; even an otherwise-empty file must contain a superblock and a root group object header to be a valid HDF5 file.
HDF5 does not always natively understand user metadata; much of it must be understood and interpreted by the application. For example, the only thing the library understands in the dynamic user metadata list below is the extent of the dataset in the last bullet.
User metadata is technically optional but is almost universally used.
Examples of static user metadata include:
H5Pset_fapl_family
sets a file access property specifying that file I/O will
use the family driver.
Static user metadata does not usually change through the life of a file or object. In some cases, it can change but just doesn’t tend to to do so; for example, the name of a hard link to an object can be changed only by creating a new hard link and removing the old link. In the more general case, static user metadata can be changed only when making a new copy of an HDF5 file or object. For example, file creation and dataset creation properties can be changed only when making a new copy of a file or dataset, respectively.
The following are instances of dynamic user metadata:
Element | Where stored | How set | Interpreted by |
---|---|---|---|
|
|||
Library metadata | |||
|
|||
Superblock | Header block at beginning of file | Created with file; always present | HDF5 Library |
|
|||
File driver information | Superblock and driver information block | H5Pset_fapl_* |
HDF5 Library |
|
|||
B-trees | At various locations within file | Library | HDF5 Library |
|
|||
Object offsets | B-tree | Library | HDF5 Library |
|
|||
Object headers | Header block for each object in an HDF5 file | Created with object; present as long as object exists | HDF5 Library |
|
|||
Static user metadata | |||
|
|||
Dataset storage layout | Dataset object header | H5Pset_layout |
HDF5 Library |
|
|||
Shared object header messages | Superblock and global heap | H5Pset_shared_mesg_* |
HDF5 Library |
|
|||
Link names and hierarchical structure | Group symbol table entries | H5G, H5L interfaces | HDF5 Library |
|
|||
Permanent property lists | Dataset object header, data layout message, | H5P interface | HDF5 Library |
|
|||
Transient property lists | Not stored | H5P interface | HDF5 Library |
|
|||
Checksum | Dataset object header plus a checksum value accompanying each compressed dataset chunk | H5Pset_fletcher32 |
HDF5 Library and application |
|
|||
Datatype | Dataset object header | H5T interface | HDF5 Library |
|
|||
Dataspace | Dataset object header | H5S interface | HDF5 Library |
(contiguous dimensions or chunked maximum dimensions)
|
|||
Dynamic user metadata | |||
|
|||
Min/max dataset values | Attribute(s) | H5A interface | Application |
|
|||
Data collection conditions | Attribute(s) | H5A interface | Application |
|
|||
Data provenance | Attribute(s) | H5A interface | Application |
|
|||
Object relationships
(other than hierarchical structure) | Attributes | H5A interface | Application |
|
|||
Measurement scales | Attribute(s) | H5A interface | Application |
|
|||
Dataspace
(current chunked dimensions) |
Dataset object header | H5Dset_extent |
HDF5 Library and application |
|
Both static and dynamic user properties associated with the following classes of objects are discussed in specific chapters of the HDF5 User’s Guide:
|
Object | Chapter |
File properties | “The HDF5 File” | |
Group properties | “HDF5 Groups” | |
Dataset properties |
“HDF5 Datasets” |
The “H5P: Property List Interface” section in the HDF5 Reference Manual lists and describes the usage details for all of the interfaces used to manage the above types of properties and several additional types.
If a file’s structure is unknown, it can be determined through functions described in the “H5L: Link Interface,” “H5O: Object Interface,” and “H5G: Group Interface” sections of the HDF5 Reference Manual.
These issues are discussed in detail in “Metadata Caching in HDF5,” a document in the collection Advanced Topics in HDF5.
The HDF5 functions used to manage metadata caching are described in the
“H5F: File Interface” and
“H5P: Property List Interface”
sections of the
HDF5 Reference Manual.
Look for functions with names containing the string '_mdc'
.
In release 1.10, metadata journaling functions will be described in the HDF5 Reference Manual and a detailed discussion of their use is expected to be included in the collection Advanced Topics in HDF5.
Return to “Advanced Topics.”
The HDF Group Help Desk:
Describes HDF5 Release 1.10. | Copyright by The HDF Group |