Package ucar.nc2.iosp.hdf5
Class H5tiledLayout
- java.lang.Object
-
- ucar.nc2.iosp.hdf5.H5tiledLayout
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.iosp.Layout
Layout.Chunk
-
-
Constructor Summary
Constructors Constructor Description H5tiledLayout(H5header.Vinfo vinfo, DataType dtype, Section wantSection)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetElemSize()Get size of each element in bytes.longgetTotalNelems()Get total number of elements in the wanted subset.booleanhasNext()Is there more to doLayout.Chunknext()Get the next chunkStringtoString()
-
-
-
Constructor Detail
-
H5tiledLayout
public H5tiledLayout(H5header.Vinfo vinfo, DataType dtype, Section wantSection) throws IOException
Constructor. This is for HDF5 chunked data storage. The data is read by chunk, for efficency.- Parameters:
vinfo- the vinfo object for this variabledtype- type of data. may be different from v2.wantSection- the wanted section of data, contains a List of Range objects, must be complete- Throws:
IOException- on io error
-
-
Method Detail
-
getTotalNelems
public long getTotalNelems()
Description copied from interface:LayoutGet total number of elements in the wanted subset.- Specified by:
getTotalNelemsin interfaceLayout- Returns:
- total number of elements in the wanted subset.
-
getElemSize
public int getElemSize()
Description copied from interface:LayoutGet size of each element in bytes.- Specified by:
getElemSizein interfaceLayout- Returns:
- size of each element in bytes.
-
hasNext
public boolean hasNext()
Description copied from interface:LayoutIs there more to do
-
next
public Layout.Chunk next()
Description copied from interface:LayoutGet the next chunk
-
-