public class ArrayStructure extends Object
| Constructor and Description | 
|---|
ArrayStructure(HDSObject hobj)
Creates an ArrayStructure from an existing HDS object. 
 | 
ArrayStructure(HDSObject struct,
              NDShape shape,
              HDSType htype)
Creates the components of a new SIMPLE array object in a suitable
 structure. 
 | 
ArrayStructure(HDSObject parent,
              String name,
              HDSType htype,
              NDShape shape)
Creates a new SIMPLE array object below the given parent HDS object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
HDSObject | 
getData()
Gets the HDS object representing the data array itself. 
 | 
HDSObject | 
getHDSObject()
Returns the HDS object at which this array resides. 
 | 
OrderedNDShape | 
getShape()
Gets the shape of the array. 
 | 
String | 
getStorage()
Gets the storage format; either "SIMPLE" or "PRIMITIVE". 
 | 
HDSType | 
getType()
Returns the HDS type of the primitives in the array. 
 | 
public ArrayStructure(HDSObject hobj) throws HDSException
hobj - the HDSObject at which the array object is to be found.HDSException - if an error occurred in traversing the HDS 
          tree or hobj does not represent an arraypublic ArrayStructure(HDSObject struct, NDShape shape, HDSType htype) throws HDSException
struct - an HDS structure scalar or array element of type ARRAY.shape - the shape of the new arrayhtype - the HDS primitive type of the new arrayHDSException - if an error occurs manipulating the HDS treepublic ArrayStructure(HDSObject parent, String name, HDSType htype, NDShape shape) throws HDSException
parent - the object below which the new array structure
                  will be createdname - the name of the new array structurehtype - the HDS primitive type of the new arrayshape - the shape of the new arrayHDSException - if an error occurs manipulating the HDS treepublic HDSObject getData()
getShape().getDims().public OrderedNDShape getShape()
Order.COLUMN_MAJOR.public String getStorage()
public HDSObject getHDSObject()
public HDSType getType()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.