public class HDF5Datatype extends HDF5Object
This class provides a mechanism to describe the storage format of individual data points of a data set.
A data type is a collection of data type properties, all of which can be stored on disk, and which when taken as a whole, provide complete information for data conversion to or from that data type. The interface provides functions to set and query properties of a data type.
A data point is an instance of a data type, which is an instance of a type class. We have defined a set of type classes and properties which can be extended at a later time. The atomic type classes are those which describe types which cannot be decomposed at the data type interface level; all other classes are compound.
For details of the HDF5 libraries, see the HDF5 Documentation at: http://hdf.ncsa.uiuc.edu/HDF5/doc/
Constructor and Description |
---|
HDF5Datatype()
Construct an HDF5Datatype
|
HDF5Datatype(int datatype_class,
int size)
Creates a new HDF5Datatype
|
HDF5Datatype(int loc_id,
String type_name)
Opens a named HDF5Datatype
|
Modifier and Type | Method and Description |
---|---|
Object |
defineData(long[] count)
define the data with specified data type.
|
protected void |
finalize()
finalize() is called by the garbage collector on the object when garbage
collection determines that there are no more references to the object.
|
int |
get_class()
Returns the datatype class identifier
|
int |
get_size()
Returns the size of a datatype in bytes
|
static String |
getDatatype(int data_type)
Gets the string representation of the data type
|
int |
H5Tcommit(int loc_id,
String type_name)
H5Tcommit commits a transient datatype to a file, turned it
into a named datatype.
|
getDescription, getID, getName, getShortName, getType, init, setID, setShortName, setType, toString
public HDF5Datatype()
public HDF5Datatype(int datatype_class, int size)
datatype_class
- Class of datatype to create.size
- The number of bytes in the datatype to create.public HDF5Datatype(int loc_id, String type_name)
loc_id
- A file, group, or datatype identifier.type_name
- A datatype name.public int H5Tcommit(int loc_id, String type_name) throws HDF5LibraryException, NullPointerException
loc_id
- A file or group identifier.type_name
- A datatype name.HDF5LibraryException
NullPointerException
public int get_class() throws HDF5LibraryException
HDF5LibraryException
public int get_size() throws HDF5LibraryException
HDF5LibraryException
public Object defineData(long[] count) throws HDF5Exception
count
- the number of points of dataHDF5Exception
public static String getDatatype(int data_type)
data_type
- the type of the data.protected void finalize() throws Throwable
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.