Class Hdf5Archive

    • Field Detail

      • MAX_BUFFER_SIZE_BYTES

        public static final int MAX_BUFFER_SIZE_BYTES
      • LOCK_OBJECT

        public static final Object LOCK_OBJECT
        HDF5 library is not thread safe - possible to crash if multiple reads etc are performed concurrently in multiple threads. This object is used for locking read etc activity using synchronized blocks
    • Constructor Detail

      • Hdf5Archive

        public Hdf5Archive​(String archiveFilename)
    • Method Detail

      • openGroups

        public org.bytedeco.hdf5.Group[] openGroups​(String... groups)
      • closeGroups

        public void closeGroups​(org.bytedeco.hdf5.Group[] groupArray)
      • hasAttribute

        public boolean hasAttribute​(String attributeName,
                                    String... groups)
        Check whether group path contains string attribute.
        Parameters:
        attributeName - Name of attribute
        groups - Array of zero or more ancestor groups from root to parent.
        Returns:
        Boolean indicating whether attribute exists in group path.
      • getDataSets

        public List<String> getDataSets​(String... groups)
        Get list of data sets from group path.
        Parameters:
        groups - Array of zero or more ancestor groups from root to parent.
        Returns:
        List of HDF5 data set names
      • getGroups

        public List<String> getGroups​(String... groups)
        Get list of groups from group path.
        Parameters:
        groups - Array of zero or more ancestor groups from root to parent.
        Returns:
        List of HDF5 groups