public class LayoutTiled extends java.lang.Object implements Layout
Modifier and Type | Class and Description |
---|---|
static class |
LayoutTiled.DataChunk |
static interface |
LayoutTiled.DataChunkIterator |
Layout.Chunk
Constructor and Description |
---|
LayoutTiled(LayoutTiled.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
|
Layout.Chunk |
next()
Get the next chunk
|
java.lang.String |
toString() |
public LayoutTiled(LayoutTiled.DataChunkIterator chunkIterator, int[] chunkSize, int elemSize, Section wantSection) throws InvalidRangeException, java.io.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 completeInvalidRangeException
- if section invalid for this variablejava.io.IOException
- on io errorpublic long getTotalNelems()
Layout
getTotalNelems
in interface Layout
public int getElemSize()
Layout
getElemSize
in interface Layout
public boolean hasNext()
Layout
public Layout.Chunk next() throws java.io.IOException
Layout
public java.lang.String toString()
toString
in class java.lang.Object