public class LayoutBBTiled extends Object implements LayoutBB
Modifier and Type | Class and Description |
---|---|
static interface |
LayoutBBTiled.DataChunk
A data chunk
|
static interface |
LayoutBBTiled.DataChunkIterator
An iterator over the data chunks.
|
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
|
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 int getElemSize()
LayoutBB
getElemSize
in interface Layout
getElemSize
in interface LayoutBB
public long getTotalNelems()
LayoutBB
getTotalNelems
in interface Layout
getTotalNelems
in interface LayoutBB
public boolean hasNext()
LayoutBB
public LayoutBB.Chunk next()
LayoutBB