|
||||||||||
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 |
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, 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
IOException
- on io errorMethod Detail |
---|
public long getTotalNelems()
LayoutBB
getTotalNelems
in interface Layout
getTotalNelems
in interface LayoutBB
public int getElemSize()
LayoutBB
getElemSize
in interface Layout
getElemSize
in interface LayoutBB
public boolean hasNext()
LayoutBB
hasNext
in interface Layout
hasNext
in interface LayoutBB
public LayoutBB.Chunk next() throws IOException
LayoutBB
next
in interface Layout
next
in interface LayoutBB
IOException
- 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 |