public class LayoutBBTiled extends Object implements LayoutBB
| Modifier and Type | Class and Description |
|---|---|
static interface |
LayoutBBTiled.DataChunk |
static interface |
LayoutBBTiled.DataChunkIterator |
| Constructor and Description |
|---|
LayoutBBTiled(LayoutBBTiled.DataChunkIterator chunkIterator,
int[] chunkSize,
int elemSize,
Section wantSection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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, not null if hasNext() is true.
|
String |
toString() |
public LayoutBBTiled(LayoutBBTiled.DataChunkIterator chunkIterator, int[] chunkSize, int elemSize, Section wantSection)
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.public long getTotalNelems()
LayoutgetTotalNelems in interface Layoutpublic int getElemSize()
LayoutgetElemSize in interface Layoutpublic boolean hasNext()
Layoutpublic LayoutBB.Chunk next()
Layout