Package hdf.object

Class CompoundDS

Object
hdf.object.HObject
hdf.object.Dataset
hdf.object.CompoundDS
All Implemented Interfaces:
CompoundDataFormat, DataFormat, Serializable
Direct Known Subclasses:
H4CompoundAttribute, H4Vdata, H5CompoundAttr, H5CompoundDS

public abstract class CompoundDS extends Dataset implements CompoundDataFormat
A CompoundDS is a dataset with compound datatype. A compound datatype is an aggregation of one or more datatypes. Each member of a compound type has a name which is unique within that type, and a datatype of that member in a compound datum. Compound datatypes can be nested, i.e. members of a compound datatype can be some other compound datatype. For more details on compound datatypes, See HDF5 Datatypes in HDF5 User Guide Since Java cannot handle C-structured compound data, data in a compound dataset is loaded in to an Java List. Each element of the list is a data array that corresponds to a compound field. The data is read/written by compound field. For example, if compound dataset "comp" has the following nested structure, and member datatypes
 comp --> m01 (int)
 comp --> m02 (float)
 comp --> nest1 --> m11 (char)
 comp --> nest1 --> m12 (String)
 comp --> nest1 --> nest2 --> m21 (long)
 comp --> nest1 --> nest2 --> m22 (double)
 
The data object is a Java list of six arrays: {int[], float[], char[], Stirng[], long[] and double[]}.
Version:
1.1 9/4/2007
Author:
Peter X. Cao
See Also: