Class H5Attribute

java.lang.Object
nz.org.riskscape.hdf5.H5Object
nz.org.riskscape.hdf5.H5Attribute
All Implemented Interfaces:
AutoCloseable

public class H5Attribute extends H5Object

A metadata attribute for a dataset

  • Constructor Details

  • Method Details

    • read

      public Object read()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class H5Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getName

      public String getName()
    • getDataType

      public H5Type getDataType()