Package nz.org.riskscape.hdf5
Class H5Attribute
java.lang.Object
nz.org.riskscape.hdf5.H5Object
nz.org.riskscape.hdf5.H5Attribute
- All Implemented Interfaces:
AutoCloseable
A metadata attribute for a dataset
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class nz.org.riskscape.hdf5.H5Object
getPointer
-
Constructor Details
-
H5Attribute
-
-
Method Details
-
read
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classH5Object
-
toString
-
readValue
public static <T> nz.org.riskscape.problem.ResultOrProblems<T> readValue(H5Object object, String attributeName, Class<T> expectedType) Helper to read an attribute's value from a given HDF5 object (e.g. dataset).
- Returns:
- the given value that the attribute holds, cast to the expected type
- Throws:
nz.org.riskscape.problem.ProblemException
- that must be handled by caller (at some point)
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getName
-
getDataType
-