|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.LayoutRegular
public class LayoutRegular
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. 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 interface ucar.nc2.iosp.Layout |
---|
Layout.Chunk |
Constructor Summary | |
---|---|
LayoutRegular(long startPos,
int elemSize,
int[] varShape,
Section wantSection)
Constructor. |
Method Summary | |
---|---|
int |
getElemSize()
Get size of each element in bytes. |
long |
getTotalNelems()
Get total number of elements in the wanted subset. |
boolean |
hasNext()
Is there more to do |
Layout.Chunk |
next()
Get the next chunk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutRegular(long startPos, int elemSize, int[] varShape, Section wantSection) throws InvalidRangeException
startPos
- starting address of the entire data array.elemSize
- size of an element in bytes.varShape
- shape of the entire data array.wantSection
- the wanted section of data, contains a List of Range objects.
InvalidRangeException
- if ranges are misformedMethod Detail |
---|
public long getTotalNelems()
Layout
getTotalNelems
in interface Layout
public int getElemSize()
Layout
getElemSize
in interface Layout
public boolean hasNext()
Layout
hasNext
in interface Layout
public Layout.Chunk next()
Layout
next
in interface Layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |