Package ubic.gemma.core.loader.util.hdf5
Class H5Dataset
java.lang.Object
ubic.gemma.core.loader.util.hdf5.H5Dataset
- All Implemented Interfaces:
AutoCloseable
Represents an HDF5 dataset.
- Author:
- poirigui
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getAttribute(String name) booleangetBoolean(long i) Obtain a single boolean value.doublegetDouble(long i) Obtain a single double value.intgetInteger(long i) Obtain a single integer value.long[]getShape()getStringAttribute(String name) getType()booleanhasAttribute(String name) longsize()slice(long start, long end) Obtain a 1D slice of the dataset.boolean[]double[]int[]long[]String[]
-
Method Details
-
getType
-
getAttribute
-
getStringAttribute
-
hasAttribute
-
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
Obtain a 1D slice of the dataset. -
toBooleanVector
-
toIntegerVector
-
toLongVector
-
toDoubleVector
-
toStringVector
-
size
public long size() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getShape
public long[] getShape()
-