Class H5ArrayType

All Implemented Interfaces:
AutoCloseable

public class H5ArrayType extends H5Type
  • Constructor Details

    • H5ArrayType

      protected H5ArrayType(long id)
  • Method Details

    • getDimensions

      public List<Long> getDimensions()
    • read

      public Object read(ByteBuffer outBuf, int offset)
      Specified by:
      read in class H5Type
      Returns:
      a java object that represents the data that was stored in the outBuf if it was of this data type. This java object should be coercable in to the type returned from H5Type.toType()
    • readFloats

      public float[] readFloats(ByteBuffer outBuf, int offset)

      Efficient alternative to read for returning whatever numeric value is held in in the super type in to an array of floats.

      Throws:
      ClassCastException - if h5 super type is not numeric
    • toType

      public nz.org.riskscape.engine.types.Type toType()
      Specified by:
      toType in class H5Type
      Returns:
      a Riskscape type that mirrors the HD5 data type
    • toString

      public String toString()
      Specified by:
      toString in class H5Type
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class H5Type
    • isVariableLength

      public boolean isVariableLength()
      Specified by:
      isVariableLength in class H5Type
      Returns:
      true if this type is, or contains something, of variable length. As yet, this H5 support in this plugin can not read datasets of variable length type
    • getSuperType

      public H5Type getSuperType()
    • getDimensionsSum

      public int getDimensionsSum()