|
||||||||||
| 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.RegularLayout
public class RegularLayout
Indexer into data that has a "regular" layout, like netcdf-3 and hdf5 compact and contiguous storage. The data is contiguous, with outer dimension varying fastest. Given a Section, this calculates the set of contiguous "chunks" of the wanted data into the stored data. Also handles netcdf3 record dimensions. The wanted section is always a subset of the data section (see RegularSectionLayout where thats not the case).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.nc2.iosp.Indexer |
|---|
Indexer.Chunk |
| Constructor Summary | |
|---|---|
RegularLayout(int[] varShape,
int elemSize,
long startPos,
java.util.List<Range> ranges,
int recSize)
Deprecated. Constructor: drop in replacement for old RegularIndexer. |
|
RegularLayout(long startPos,
int elemSize,
int recSize,
int[] varShape,
Section wantSection)
Deprecated. Constructor. |
|
| Method Summary | |
|---|---|
static Indexer |
factory(long startPos,
int elemSize,
int recSize,
int[] varShape,
Section wantSection)
Deprecated. |
int |
getChunkSize()
Deprecated. |
int |
getElemSize()
Deprecated. |
long |
getTotalNelems()
Deprecated. |
boolean |
hasNext()
Deprecated. |
Indexer.Chunk |
next()
Deprecated. Get the next chunk |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class ucar.nc2.iosp.Indexer |
|---|
printa, printa |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegularLayout(int[] varShape,
int elemSize,
long startPos,
java.util.List<Range> ranges,
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.ranges - 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
public RegularLayout(long startPos,
int elemSize,
int recSize,
int[] varShape,
Section wantSection)
throws InvalidRangeException
startPos - starting address of the entire data array.elemSize - size of an element in bytes.recSize - if > 0, then size of outer stride in bytes, else ignoredvarShape - shape of the entire data array.wantSection - the wanted section of data, contains a List of Range objects.
InvalidRangeException - if ranges are misformed| Method Detail |
|---|
public static Indexer factory(long startPos,
int elemSize,
int recSize,
int[] varShape,
Section wantSection)
throws InvalidRangeException
InvalidRangeExceptionpublic int getChunkSize()
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 Indexerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||