Class H5Dataset

java.lang.Object
ubic.gemma.core.loader.util.hdf5.H5Dataset
All Implemented Interfaces:
AutoCloseable

public class H5Dataset extends Object implements AutoCloseable
Represents an HDF5 dataset.
Author:
poirigui
  • Method Details

    • getType

      public H5Type getType()
    • getAttribute

      public Optional<H5Attribute> getAttribute(String name)
    • getStringAttribute

      @Nullable public String getStringAttribute(String name)
    • hasAttribute

      public boolean hasAttribute(String name)
    • getDouble

      public double getDouble(long i)
      Obtain a single double value.
    • getInteger

      public int getInteger(long i)
      Obtain a single integer value.
    • getBoolean

      public boolean getBoolean(long i)
      Obtain a single boolean value.
    • slice

      public H5Dataset.H5Dataspace slice(long start, long end)
      Obtain a 1D slice of the dataset.
    • toBooleanVector

      @WillClose public boolean[] toBooleanVector()
    • toIntegerVector

      @WillClose public int[] toIntegerVector()
    • toLongVector

      @WillClose public long[] toLongVector()
    • toDoubleVector

      @WillClose public double[] toDoubleVector()
    • toStringVector

      @WillClose public String[] toStringVector()
    • size

      public long size()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getShape

      public long[] getShape()