public final class HDF5DataBlock<T>
extends java.lang.Object
The pattern for using this class is:
for (HDF5DataBlock<int[]> block : reader.getIntNaturalBlocks(dsName1D)) { float[] naturalBlock = block.getData(); ... work on naturalBlock, use block.getIndex() and block.getOffset() where needed ... }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.
|
long |
getOffset()
Returns the offset of this block in the data set.
|
public T getData()
public long getOffset()
public long getIndex()