|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.iosp.LayoutBBTiled
public class LayoutBBTiled
For datasets where the data are stored in chunks, and must be processed, eg compressed or filtered. The data is read, processed, and placed in a ByteBuffer. Chunks have an offset into the ByteBuffer. "Tiled" means that all chunks are assumed to be equal size. Chunks do not necessarily cover the array, missing data is possible.
| Nested Class Summary | |
|---|---|
static interface |
LayoutBBTiled.DataChunk
A data chunk |
static interface |
LayoutBBTiled.DataChunkIterator
An iterator over the data chunks. |
| Constructor Summary | |
|---|---|
LayoutBBTiled(LayoutBBTiled.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 |
LayoutBB.Chunk |
next()
Get the next chunk |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutBBTiled(LayoutBBTiled.DataChunkIterator chunkIterator,
int[] chunkSize,
int elemSize,
Section wantSection)
throws InvalidRangeException,
java.io.IOException
chunkIterator - iterator over all 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
java.io.IOException - on io error| Method Detail |
|---|
public long getTotalNelems()
LayoutBB
getTotalNelems in interface LayoutBBpublic int getElemSize()
LayoutBB
getElemSize in interface LayoutBBpublic boolean hasNext()
LayoutBB
hasNext in interface LayoutBB
public LayoutBB.Chunk next()
throws java.io.IOException
LayoutBB
next in interface LayoutBBjava.io.IOException - on i/o errorpublic 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 | |||||||||