|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.hdf5.hdf5objects.HDF5Object visad.data.hdf5.hdf5objects.HDF5Dataspace
public class HDF5Dataspace
This class provides provides a mechanism to describe the positions of the elements of a dataset.
A dataspace describes the locations that dataset elements are located at. A dataspace is either a regular N-dimensional array of data points, called a simple dataspace, or a more general collection of data points organized in another manner, called a complex dataspace.
For details of the HDF5 libraries, see the HDF5 Documentation at: http://hdf.ncsa.uiuc.edu/HDF5/doc/
Field Summary |
---|
Fields inherited from class visad.data.hdf5.hdf5objects.HDF5Object |
---|
ATTRIBUTE, DATASET, DATASPACE, DATATYPE, description, GROUP, HDF5FILE, id, LINK, name, shortName, type, UNKNOWN |
Constructor Summary | |
---|---|
HDF5Dataspace()
Constructs an HDF5Dataspace |
|
HDF5Dataspace(int space_type)
Creates a new HDF5Dataspace |
|
HDF5Dataspace(int rank,
long[] dims,
long[] maxdims)
Creates a new HDF5Dataspace |
Method Summary | |
---|---|
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. |
long[] |
getCount()
Returns the selected counts of the data |
long[] |
getDims()
Returns the dimensions of the dataspace |
long[] |
getMaxdims()
Returns the maximum dimensions of the dataspace |
int |
getRank()
Returns the rank of the dataspace |
void |
init()
initialize the HDF5Dataspace: open HDF5 library. |
void |
select(long[] start,
long[] stride,
long[] count)
select count[] points starting at start[] with stride[] |
String |
toString()
Converts this object to a String representation. |
Methods inherited from class visad.data.hdf5.hdf5objects.HDF5Object |
---|
getDescription, getID, getName, getShortName, getType, setID, setShortName, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HDF5Dataspace()
public HDF5Dataspace(int space_type)
space_type
- The type of dataspace to be created.public HDF5Dataspace(int rank, long[] dims, long[] maxdims)
rank
- Number of dimensions of dataspace.dims
- An array of the size of each dimension.maxdims
- An array of the maximum size of each dimension.Method Detail |
---|
public void init() throws HDF5Exception
init
in class HDF5Object
HDF5Exception
public void select(long[] start, long[] stride, long[] count) throws HDF5LibraryException, NullPointerException, IllegalArgumentException
start
- the starting points.stride
- the stridecount
- the number of points.
HDF5LibraryException
NullPointerException
IllegalArgumentException
public int getRank()
public long[] getDims()
public long[] getMaxdims()
public long[] getCount()
public String toString()
toString
in class HDF5Object
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |