Package ucar.nc2.iosp.hdf5
Class H5tiledLayoutBB
- java.lang.Object
-
- ucar.nc2.iosp.hdf5.H5tiledLayoutBB
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.iosp.LayoutBB
LayoutBB.Chunk
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebugFilter
-
Constructor Summary
Constructors Constructor Description H5tiledLayoutBB(Variable v2, Section wantSection, RandomAccessFile raf, ucar.nc2.iosp.hdf5.H5header.Filter[] filters, ByteOrder byteOrder)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 doLayoutBB.Chunknext()Get the next chunkStringtoString()
-
-
-
Constructor Detail
-
H5tiledLayoutBB
public H5tiledLayoutBB(Variable v2, Section wantSection, RandomAccessFile raf, ucar.nc2.iosp.hdf5.H5header.Filter[] filters, ByteOrder byteOrder) throws InvalidRangeException, IOException
Constructor. This is for HDF5 chunked data storage. The data is read by chunk, for efficency.- Parameters:
v2- Variable to index over; assumes that vinfo is the data objectwantSection- the wanted section of data, contains a List of Range objects. must be completeraf- the RandomAccessFilefilters- set of filters that have been applied to the data- Throws:
InvalidRangeException- if section invalid for this variableIOException- on io error
-
-
Method Detail
-
getTotalNelems
public long getTotalNelems()
Description copied from interface:LayoutBBGet total number of elements in the wanted subset.- Specified by:
getTotalNelemsin interfaceLayout- Specified by:
getTotalNelemsin interfaceLayoutBB- Returns:
- total number of elements in the wanted subset.
-
getElemSize
public int getElemSize()
Description copied from interface:LayoutBBGet size of each element in bytes.- Specified by:
getElemSizein interfaceLayout- Specified by:
getElemSizein interfaceLayoutBB- Returns:
- size of each element in bytes.
-
hasNext
public boolean hasNext()
Description copied from interface:LayoutBBIs there more to do
-
next
public LayoutBB.Chunk next()
Description copied from interface:LayoutBBGet the next chunk
-
-