visad.data.hdf5.hdf5objects
Class HDF5Attribute
- java.lang.Object
-
- visad.data.hdf5.hdf5objects.HDF5Object
-
- visad.data.hdf5.hdf5objects.HDF5Dataset
-
- visad.data.hdf5.hdf5objects.HDF5Attribute
-
- All Implemented Interfaces:
- java.io.Serializable
public class HDF5Attribute extends HDF5Dataset
An HDF5 attribute is a small datasets attached to primary datasets as metadata information. Because attributes are intended to be small objects, large datasets intended as additional information for a primary dataset should be stored as supplemental datasets in a group with the primary dataset.
Attributes are not seperate objects in the file, they are always contained in the object header of the object they are attached to.
For details of the HDF5 libraries, see the HDF5 Documentation at: http://hdf.ncsa.uiuc.edu/HDF5/doc/
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description HDF5Attribute()cosntruct an HDF5AttributeHDF5Attribute(int loc_id, int idx)Opens an HDF5Attribute specified by its index.HDF5Attribute(int loc_id, java.lang.String attr_name)Opens an HDF5Attribute specified by its nameHDF5Attribute(int loc_id, java.lang.String attr_name, int type_id, int space_id, int create_plist)Creates a new HDF5Attribute
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinit()initialize the HDF5Attribute: Set up datatype and dataspace.-
Methods inherited from class visad.data.hdf5.hdf5objects.HDF5Dataset
convertUnsignedData, getCount, getData, getDataspace, getDatatype, getDims, getMaxdims, getRank, readData, readData, toString, writeData, writeData
-
Methods inherited from class visad.data.hdf5.hdf5objects.HDF5Object
getDescription, getID, getName, getShortName, getType, setID, setShortName, setType
-
-
-
-
Constructor Detail
-
HDF5Attribute
public HDF5Attribute()
cosntruct an HDF5Attribute
-
HDF5Attribute
public HDF5Attribute(int loc_id, java.lang.String attr_name, int type_id, int space_id, int create_plist)Creates a new HDF5Attribute- Parameters:
loc_id- The identifier of the object the attribute is attached to.attr_name- Name of attribute to create.type_id- The identifier of datatype for attribute.space_id- The identifier of dataspace for attribute.create_plist- The identifier of creation property list.
-
HDF5Attribute
public HDF5Attribute(int loc_id, java.lang.String attr_name)Opens an HDF5Attribute specified by its name- Parameters:
loc_id- The identifier of the object the attribute is attached to.attr_name- Name of attribute to create.
-
HDF5Attribute
public HDF5Attribute(int loc_id, int idx)Opens an HDF5Attribute specified by its index.- Parameters:
loc_id- The identifier of the object the attribute is attached to.idx- The index of the attribute to open.
-
-
Method Detail
-
init
public void init() throws ncsa.hdf.hdf5lib.exceptions.HDF5Exceptioninitialize the HDF5Attribute:- Set up datatype and dataspace.
- Set up data ranks and dimensions.
- Overrides:
initin classHDF5Dataset- Throws:
ncsa.hdf.hdf5lib.exceptions.HDF5Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG