|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.nc2.iosp.LayoutSegmented
public class LayoutSegmented
LayoutSegmented has data stored in segments. Assume that each segment size is a multiple of elemSize.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ucar.nc2.iosp.Layout |
|---|
Layout.Chunk |
| Constructor Summary | |
|---|---|
LayoutSegmented(long[] segPos,
int[] segSize,
int elemSize,
int[] srcShape,
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 |
Layout.Chunk |
nextOuter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutSegmented(long[] segPos,
int[] segSize,
int elemSize,
int[] srcShape,
Section wantSection)
throws InvalidRangeException
segPos - starting address of each segment.segSize - number of bytes in each segment. Asume multiple of elemSizeelemSize - size of an element in bytes.srcShape - shape of the entire data array.wantSection - the wanted section of data
InvalidRangeException - if ranges are misformed| Method Detail |
|---|
public long getTotalNelems()
Layout
getTotalNelems in interface Layoutpublic int getElemSize()
Layout
getElemSize in interface Layoutpublic boolean hasNext()
Layout
hasNext in interface Layoutpublic Layout.Chunk next()
Layout
next in interface Layoutpublic Layout.Chunk nextOuter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||