|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.iosp.Indexer
ucar.nc2.iosp.RegularIndexer
public class RegularIndexer
Indexer into a regular array. This calculates byte lengths and offsets of the wanted data into the entire data. Assumes that the data is stored "regularly", like netcdf arrays and hdf5 continuous storage. Also handles netcdf3 record dimensions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.nc2.iosp.Indexer |
|---|
Indexer.Chunk |
| Constructor Summary | |
|---|---|
RegularIndexer(int[] varShape,
int elemSize,
long startPos,
java.util.List section,
int recSize)
Deprecated. Constructor. |
|
| Method Summary | |
|---|---|
int |
getChunkSize()
Deprecated. |
int |
getElemSize()
Deprecated. |
long |
getTotalNelems()
Deprecated. |
int[] |
getWantShape()
Deprecated. |
boolean |
hasNext()
Deprecated. |
Indexer.Chunk |
next()
Deprecated. Get the next chunk |
| Methods inherited from class ucar.nc2.iosp.Indexer |
|---|
printa, printa |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegularIndexer(int[] varShape,
int elemSize,
long startPos,
java.util.List section,
int recSize)
throws InvalidRangeException
varShape - shape of the entire data array.elemSize - size of on element in bytes.startPos - starting address of the entire data array.section - the wanted section of data: List of Range objects,
corresponding to each Dimension, else null means all.recSize - if > 0, then size of outer stride in bytes, else ignored
InvalidRangeException - is ranges are misformed| Method Detail |
|---|
public int getChunkSize()
public int[] getWantShape()
public long getTotalNelems()
getTotalNelems in class Indexerpublic int getElemSize()
getElemSize in class Indexerpublic boolean hasNext()
hasNext in class Indexerpublic Indexer.Chunk next()
Indexer
next in class Indexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||