public class HDF5MDDataBlock<T extends ch.systemsx.cisd.base.mdarray.MDAbstractArray<?>>
extends java.lang.Object
The pattern for using this class is:
for (HDF5DataBlock<MDIntArray> block : reader.getIntMDNaturalBlocks(dsNameMD)) { MDIntArray naturalBlock = block.getData(); ... work on naturalBlock, use block.getIndex() or block.getOffset() where needed ... }The iteration in the multi-dimensional case will be in C-order, that is last-index is iterated over first.
Note: If the size of the data set is not an integer number of blocks, then the last block will be smaller than the natural block size.
Modifier and Type | Method and Description |
---|---|
T |
getData()
Returns the data block itself.
|
long[] |
getIndex()
Returns the iteration index of this block, starting with
{ 0, ..., 0 } . |
long[] |
getOffset()
Returns the offset in the data set for the current iteration in each dimension.
|
public T getData()
public long[] getOffset()
public long[] getIndex()
{ 0, ..., 0 }
.