|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.netcdf.out.DataAccessor
The DataAccessor class provides the top-level abstraction for accessing the data in a VisAD data object via the netCDF variable API.
| Field Summary | |
protected Dimension[] |
localDims
The netCDF Dimensions of the VisAD data object in netCDF order (outermost dimension first). |
protected int[] |
localIndexes
The netCDF indexes for the local VisAD data object in netCDF order (outermost dimension first). |
protected int |
localRank
The number of netCDF dimensions in the VisAD data object. |
protected VisADAccessor |
outerAccessor
The VisADAccessor of the outer VisAD data object. |
protected int[] |
outerIndexes
The netCDF indexes for the outer VisAD data object in netCDF order (outermost dimension first). |
protected int |
outerRank
The number of netCDF dimensions in the outer VisAD data object. |
| Constructor Summary | |
protected |
DataAccessor(Dimension[] localDims,
VisADAccessor outerAccessor)
Construct from an outer VisADAccessor and netCDF Dimensions. |
| Method Summary | |
protected abstract Object |
get()
Return a datum given the split, netCDF indexes. |
Object |
get(int[] indexes)
Return a datum given its location as netCDF indexes. |
Dimension[] |
getDimensions()
Return the netCDF dimensions at the level of the data object. |
int[] |
getLengths()
Return the netCDF dimensional lengths. |
int |
getRank()
Return the number of netCDF dimensions at the current level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final int localRank
protected final Dimension[] localDims
protected volatile int[] localIndexes
protected final VisADAccessor outerAccessor
protected final int outerRank
protected volatile int[] outerIndexes
| Constructor Detail |
protected DataAccessor(Dimension[] localDims,
VisADAccessor outerAccessor)
localDims - The netCDF dimensions of the VisAD data
object being adapted (in netCDF API order).outerAccessor - The DataAccessor of the enclosing VisAD data
object (may not be null).| Method Detail |
public int getRank()
getRank in interface VisADAccessorpublic Dimension[] getDimensions()
getDimensions in interface VisADAccessorpublic int[] getLengths()
getLengths in interface VisADAccessor
public Object get(int[] indexes)
throws IOException
get in interface VisADAccessorindexes - The netCDF indexes for the datum.
Tuple) or Java
primitive (e.g. Double) corresponding to
the given position.
IOException - The corresponding datum couldn't be accessed.
protected abstract Object get()
throws IOException
Tuple) or Java
primitive (e.g. Double) corresponding to
outerIndexes and localIndexes.
IOException - The corresponding datum couldn't be accessed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||