Package ubic.gemma.core.loader.util.hdf5
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
H5Dataset.H5Dataspace
Represents a dataspace selection of aH5Dataset
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Optional<H5Attribute>
getAttribute(String name)
boolean
getBoolean(long i)
Obtain a single boolean value.double
getDouble(long i)
Obtain a single double value.int
getInteger(long i)
Obtain a single integer value.long[]
getShape()
String
getStringAttribute(String name)
H5Type
getType()
boolean
hasAttribute(String name)
long
size()
H5Dataset.H5Dataspace
slice(long start, long end)
Obtain a 1D slice of the dataset.boolean[]
toBooleanVector()
double[]
toDoubleVector()
int[]
toIntegerVector()
String[]
toStringVector()
-
-
-
Method Detail
-
getType
public H5Type getType()
-
getAttribute
public Optional<H5Attribute> getAttribute(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()
-
toDoubleVector
@WillClose public double[] toDoubleVector()
-
toStringVector
@WillClose public String[] toStringVector()
-
size
public long size()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getShape
public long[] getShape()
-
-