Class H5tiledLayout

  • All Implemented Interfaces:
    Layout

    public class H5tiledLayout
    extends Object
    implements Layout
    Iterator to read/write subsets of an array. This calculates byte offsets for HD5 chunked datasets. Assumes that the data is stored in chunks, indexed by a Btree. for unfiltered data only
    • 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 variable
        dtype - 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: Layout
        Get total number of elements in the wanted subset.
        Specified by:
        getTotalNelems in interface Layout
        Returns:
        total number of elements in the wanted subset.
      • getElemSize

        public int getElemSize()
        Description copied from interface: Layout
        Get size of each element in bytes.
        Specified by:
        getElemSize in interface Layout
        Returns:
        size of each element in bytes.
      • hasNext

        public boolean hasNext()
        Description copied from interface: Layout
        Is there more to do
        Specified by:
        hasNext in interface Layout
        Returns:
        true if theres more to do
      • next

        public Layout.Chunk next()
        Description copied from interface: Layout
        Get the next chunk
        Specified by:
        next in interface Layout
        Returns:
        next chunk, or null if !hasNext()