|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.nc2.iosp.LayoutTiled
public class LayoutTiled
For datasets where the data are stored in chunks. "Tiled" means that all chunks are assumed to be equal size. Chunks have an offset into the complete array. Chunks do not necessarily cover the array, missing data is possible.
| Nested Class Summary | |
|---|---|
static class |
LayoutTiled.DataChunk
|
static interface |
LayoutTiled.DataChunkIterator
|
| Nested classes/interfaces inherited from interface ucar.nc2.iosp.Layout |
|---|
Layout.Chunk |
| Constructor Summary | |
|---|---|
LayoutTiled(LayoutTiled.DataChunkIterator chunkIterator,
int[] chunkSize,
int elemSize,
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 |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutTiled(LayoutTiled.DataChunkIterator chunkIterator,
int[] chunkSize,
int elemSize,
Section wantSection)
throws InvalidRangeException,
IOException
chunkIterator - iterator over all available data chunkschunkSize - all chunks assumed to be the same sizeelemSize - size of an element in bytes.wantSection - the wanted section of data, contains a List of Range objects. Must be complete
InvalidRangeException - if section invalid for this variable
IOException - on io error| Method Detail |
|---|
public long getTotalNelems()
Layout
getTotalNelems in interface Layoutpublic int getElemSize()
Layout
getElemSize in interface Layoutpublic boolean hasNext()
Layout
hasNext in interface Layout
public Layout.Chunk next()
throws IOException
Layout
next in interface LayoutIOException - on i/o errorpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||