I am trying to write an HDF5 for which I want to track the insertion order for all the groups. However, I can only see properties regarding insertion order for the groups, and not for the whole file.
Setting the approiate flags for the root group only affects that groups (as expected), and not the whole file.
Is there any way to create the file such that it tracks the insertion group for all the groups in the hierarchy?
When you say “the whole file,” do you mean the root group or all groups in the file? For the root group, this can be achieved by going through the file creation property list. Other than reusing the group creation property list (that has H5P_CRT_ORDER_TRACKED set), I’m unaware of a global setting/function to achieve this.
Yes, like @gheber wrote it is not possible to track the order of objects’ creation globally - in other words, it has to be done to every (sub)group you create so that this feature can be achieved.
That said, we were under the assumption that it is not possible to track the order of objects’ creation in the root group (of an HDF5 file). @gheber, would it be possible to share a code snippet that illustrates this as it would be interesting to extend HDFqlCREATE FILE operation with it. FYI, we just tested it at our side but without success unfortunately.