Skip navigation links
ch.systemsx.cisd.hdf5

Interface IHDF5ShortReader

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      short[] getArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
      Reads a short[] attribute named attributeName from the data set objectPath.
      java.lang.Iterable<HDF5DataBlock<short[]>> getArrayNaturalBlocks(java.lang.String dataSetPath)
      Provides all natural blocks of this one-dimensional data set to iterate over.
      short getAttr(java.lang.String objectPath, java.lang.String attributeName)
      Reads a short attribute named attributeName from the data set objectPath.
      short[][] getMatrixAttr(java.lang.String objectPath, java.lang.String attributeName)
      Reads a short matrix attribute named attributeName from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray getMDArrayAttr(java.lang.String objectPath, java.lang.String attributeName)
      Reads a multi-dimensional array short attribute named attributeName from the data set objectPath.
      java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDShortArray>> getMDArrayNaturalBlocks(java.lang.String dataSetPath)
      Provides all natural blocks of this multi-dimensional data set to iterate over.
      short read(java.lang.String objectPath)
      Reads a short value from the data set objectPath.
      short[] readArray(java.lang.String objectPath)
      Reads a short array (of rank 1) from the data set objectPath.
      short[] readArrayBlock(HDF5DataSet dataSet, int blockSize, long blockNumber)
      Reads a block from a int array (of rank 1) from the dataSet.
      short[] readArrayBlock(java.lang.String objectPath, int blockSize, long blockNumber)
      Reads a block from a short array (of rank 1) from the data set objectPath.
      short[] readArrayBlockWithOffset(HDF5DataSet dataSet, int blockSize, long offset)
      Reads a block from int array (of rank 1) from the dataSet.
      short[] readArrayBlockWithOffset(java.lang.String objectPath, int blockSize, long offset)
      Reads a block from short array (of rank 1) from the data set objectPath.
      short[][] readMatrix(java.lang.String objectPath)
      Reads a short matrix (array of arrays) from the data set objectPath.
      short[][] readMatrixBlock(java.lang.String objectPath, int blockSizeX, int blockSizeY, long blockNumberX, long blockNumberY)
      Reads a short matrix (array of arrays) from the data set objectPath.
      short[][] readMatrixBlockWithOffset(java.lang.String objectPath, int blockSizeX, int blockSizeY, long offsetX, long offsetY)
      Reads a short matrix (array of arrays) from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArray(HDF5DataSet dataSet, HDF5ArrayBlockParams params)
      Reads part or all of a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArray(java.lang.String objectPath)
      Reads a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArray(java.lang.String objectPath, HDF5ArrayBlockParams params)
      Reads part or all of a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlock(HDF5DataSet dataSet, int[] blockDimensions, long[] blockNumber)
      Reads a block from a multi-dimensional short array from the data set dataSet.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber)
      Reads a block from a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlockWithOffset(HDF5DataSet dataSet, int[] blockDimensions, long[] offset)
      Reads a block from a multi-dimensional short array from the data set dataSet.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset)
      Reads a block from a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(HDF5DataSet dataSet, IndexMap boundIndices)
      Reads a slice of a multi-dimensional short array from the data set dataSet.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(HDF5DataSet dataSet, long[] boundIndices)
      Reads a slice of a multi-dimensional short array from the data set dataSet.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(java.lang.String objectPath, IndexMap boundIndices)
      Reads a slice of a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(java.lang.String objectPath, long[] boundIndices)
      Reads a slice of a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(HDF5DataSet dataSet, int[] blockDimensions, long[] blockNumber, IndexMap boundIndices)
      Reads a sliced block from a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(HDF5DataSet dataSet, int[] blockDimensions, long[] blockNumber, long[] boundIndices)
      Reads a sliced block from a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber, IndexMap boundIndices)
      Reads a sliced block from a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(java.lang.String objectPath, int[] blockDimensions, long[] blockNumber, long[] boundIndices)
      Reads a sliced block from a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(HDF5DataSet dataSet, int[] blockDimensions, long[] offset, IndexMap boundIndices)
      Reads a sliced block of a multi-dimensional short array from the data set dataSet.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(HDF5DataSet dataSet, int[] blockDimensions, long[] offset, long[] boundIndices)
      Reads a sliced block of a multi-dimensional short array from the data set dataSet.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset, IndexMap boundIndices)
      Reads a sliced block of a multi-dimensional short array from the data set objectPath.
      ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(java.lang.String objectPath, int[] blockDimensions, long[] offset, long[] boundIndices)
      Reads a sliced block of a multi-dimensional short array from the data set objectPath.
      int[] readToMDArrayBlockWithOffset(HDF5DataSet dataSet, ch.systemsx.cisd.base.mdarray.MDShortArray array, int[] blockDimensions, long[] offset, int[] memoryOffset)
      Reads a block of the multi-dimensional short array data set objectPath into a given array in memory.
      int[] readToMDArrayBlockWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDShortArray array, int[] blockDimensions, long[] offset, int[] memoryOffset)
      Reads a block of the multi-dimensional short array data set objectPath into a given array in memory.
      int[] readToMDArrayWithOffset(HDF5DataSet dataSet, ch.systemsx.cisd.base.mdarray.MDShortArray array, int[] memoryOffset)
      Reads a multi-dimensional short array data set objectPath into a given array in memory.
      int[] readToMDArrayWithOffset(java.lang.String objectPath, ch.systemsx.cisd.base.mdarray.MDShortArray array, int[] memoryOffset)
      Reads a multi-dimensional short array data set objectPath into a given array in memory.
    • Method Detail

      • getAttr

        short getAttr(java.lang.String objectPath,
                      java.lang.String attributeName)
        Reads a short attribute named attributeName from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        attributeName - The name of the attribute to read.
        Returns:
        The attribute value read from the data set.
      • getArrayAttr

        short[] getArrayAttr(java.lang.String objectPath,
                             java.lang.String attributeName)
        Reads a short[] attribute named attributeName from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        attributeName - The name of the attribute to read.
        Returns:
        The attribute value read from the data set.
      • getMDArrayAttr

        ch.systemsx.cisd.base.mdarray.MDShortArray getMDArrayAttr(java.lang.String objectPath,
                                                                  java.lang.String attributeName)
        Reads a multi-dimensional array short attribute named attributeName from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        attributeName - The name of the attribute to read.
        Returns:
        The attribute array value read from the data set.
      • getMatrixAttr

        short[][] getMatrixAttr(java.lang.String objectPath,
                                java.lang.String attributeName)
                         throws HDF5JavaException
        Reads a short matrix attribute named attributeName from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        attributeName - The name of the attribute to read.
        Returns:
        The attribute matrix value read from the data set.
        Throws:
        HDF5JavaException
      • read

        short read(java.lang.String objectPath)
        Reads a short value from the data set objectPath. This method doesn't check the data space but simply reads the first value.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        Returns:
        The value read from the data set.
      • readArray

        short[] readArray(java.lang.String objectPath)
        Reads a short array (of rank 1) from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        Returns:
        The data read from the data set.
      • readToMDArrayWithOffset

        int[] readToMDArrayWithOffset(java.lang.String objectPath,
                                      ch.systemsx.cisd.base.mdarray.MDShortArray array,
                                      int[] memoryOffset)
        Reads a multi-dimensional short array data set objectPath into a given array in memory.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        array - The array to read the data into.
        memoryOffset - The offset in the array to write the data to.
        Returns:
        The effective dimensions of the block in array that was filled.
      • readToMDArrayWithOffset

        int[] readToMDArrayWithOffset(HDF5DataSet dataSet,
                                      ch.systemsx.cisd.base.mdarray.MDShortArray array,
                                      int[] memoryOffset)
        Reads a multi-dimensional short array data set objectPath into a given array in memory.
        Parameters:
        dataSet - The data set to read from.
        array - The array to read the data into.
        memoryOffset - The offset in the array to write the data to.
        Returns:
        The effective dimensions of the block in array that was filled.
      • readToMDArrayBlockWithOffset

        int[] readToMDArrayBlockWithOffset(java.lang.String objectPath,
                                           ch.systemsx.cisd.base.mdarray.MDShortArray array,
                                           int[] blockDimensions,
                                           long[] offset,
                                           int[] memoryOffset)
        Reads a block of the multi-dimensional short array data set objectPath into a given array in memory.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        array - The array to read the data into.
        blockDimensions - The size of the block to read along each axis.
        offset - The offset of the block in the data set.
        memoryOffset - The offset of the block in the array to write the data to.
        Returns:
        The effective dimensions of the block in array that was filled.
      • readToMDArrayBlockWithOffset

        int[] readToMDArrayBlockWithOffset(HDF5DataSet dataSet,
                                           ch.systemsx.cisd.base.mdarray.MDShortArray array,
                                           int[] blockDimensions,
                                           long[] offset,
                                           int[] memoryOffset)
        Reads a block of the multi-dimensional short array data set objectPath into a given array in memory.
        Parameters:
        dataSet - The data set to read from.
        array - The array to read the data into.
        blockDimensions - The size of the block to read along each axis.
        offset - The offset of the block in the data set.
        memoryOffset - The offset of the block in the array to write the data to.
        Returns:
        The effective dimensions of the block in array that was filled.
      • readArrayBlock

        short[] readArrayBlock(java.lang.String objectPath,
                               int blockSize,
                               long blockNumber)
        Reads a block from a short array (of rank 1) from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockSize - The block size (this will be the length of the short[] returned if the data set is long enough).
        blockNumber - The number of the block to read (starting with 0, offset: multiply with blockSize).
        Returns:
        The data read from the data set. The length will be min(size - blockSize*blockNumber, blockSize).
      • readArrayBlock

        short[] readArrayBlock(HDF5DataSet dataSet,
                               int blockSize,
                               long blockNumber)
        Reads a block from a int array (of rank 1) from the dataSet.

        This method is faster than readArrayBlock(String, int, long) when called many times on the same data set.

        Parameters:
        dataSet - The data set to read from.
        blockSize - The block size (this will be the length of the int[] returned if the data set is long enough).
        blockNumber - The number of the block to read (starting with 0, offset: multiply with blockSize).
        Returns:
        The data read from the data set. The length will be min(size - blockSize*blockNumber, blockSize).
      • readArrayBlockWithOffset

        short[] readArrayBlockWithOffset(java.lang.String objectPath,
                                         int blockSize,
                                         long offset)
        Reads a block from short array (of rank 1) from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockSize - The block size (this will be the length of the short[] returned).
        offset - The offset of the block in the data set to start reading from (starting with 0).
        Returns:
        The data block read from the data set.
      • readArrayBlockWithOffset

        short[] readArrayBlockWithOffset(HDF5DataSet dataSet,
                                         int blockSize,
                                         long offset)
        Reads a block from int array (of rank 1) from the dataSet.

        This method is faster than readArrayBlockWithOffset(String, int, long) when called many times on the same data set.

        Parameters:
        dataSet - The data set to read from.
        blockSize - The block size (this will be the length of the int[] returned).
        offset - The offset of the block in the data set to start reading from (starting with 0).
        Returns:
        The data block read from the data set.
      • readMatrix

        short[][] readMatrix(java.lang.String objectPath)
                      throws HDF5JavaException
        Reads a short matrix (array of arrays) from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        Returns:
        The data read from the data set.
        Throws:
        HDF5JavaException - If the data set objectPath is not of rank 2.
      • readMatrixBlock

        short[][] readMatrixBlock(java.lang.String objectPath,
                                  int blockSizeX,
                                  int blockSizeY,
                                  long blockNumberX,
                                  long blockNumberY)
                           throws HDF5JavaException
        Reads a short matrix (array of arrays) from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockSizeX - The size of the block in the x dimension.
        blockSizeY - The size of the block in the y dimension.
        blockNumberX - The block number in the x dimension (offset: multiply with blockSizeX).
        blockNumberY - The block number in the y dimension (offset: multiply with blockSizeY).
        Returns:
        The data block read from the data set.
        Throws:
        HDF5JavaException - If the data set objectPath is not of rank 2.
      • readMatrixBlockWithOffset

        short[][] readMatrixBlockWithOffset(java.lang.String objectPath,
                                            int blockSizeX,
                                            int blockSizeY,
                                            long offsetX,
                                            long offsetY)
                                     throws HDF5JavaException
        Reads a short matrix (array of arrays) from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockSizeX - The size of the block in the x dimension.
        blockSizeY - The size of the block in the y dimension.
        offsetX - The offset in x dimension in the data set to start reading from.
        offsetY - The offset in y dimension in the data set to start reading from.
        Returns:
        The data block read from the data set.
        Throws:
        HDF5JavaException - If the data set objectPath is not of rank 2.
      • readMDArray

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArray(java.lang.String objectPath)
        Reads a multi-dimensional short array from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        Returns:
        The data read from the data set.
      • readMDArray

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArray(java.lang.String objectPath,
                                                               HDF5ArrayBlockParams params)
        Reads part or all of a multi-dimensional short array from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        params - The parameter block specifying the block or slice to read from the array.
        Returns:
        The data read from the data set.
      • readMDArray

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArray(HDF5DataSet dataSet,
                                                               HDF5ArrayBlockParams params)
        Reads part or all of a multi-dimensional short array from the data set objectPath.
        Parameters:
        dataSet - The data set to read from.
        params - The parameter block specifying the block or slice to read from the array.
        Returns:
        The data read from the data set.
      • readMDArraySlice

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(java.lang.String objectPath,
                                                                    IndexMap boundIndices)
        Reads a slice of a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        boundIndices - The mapping of indices to index values which should be bound. For example a map of new IndexMap().mapTo(2, 5).mapTo(4, 7) has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readMDArraySlice

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(HDF5DataSet dataSet,
                                                                    IndexMap boundIndices)
        Reads a slice of a multi-dimensional short array from the data set dataSet. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        dataSet - The data set to read from.
        boundIndices - The mapping of indices to index values which should be bound. For example a map of new IndexMap().mapTo(2, 5).mapTo(4, 7) has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readMDArraySlice

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(java.lang.String objectPath,
                                                                    long[] boundIndices)
        Reads a slice of a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        boundIndices - The array containing the values of the bound indices at the respective index positions, and -1 at the free index positions. For example an array of new long[] { -1, -1, 5, -1, 7, -1 } has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readMDArraySlice

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArraySlice(HDF5DataSet dataSet,
                                                                    long[] boundIndices)
        Reads a slice of a multi-dimensional short array from the data set dataSet. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        dataSet - The data set to read from.
        boundIndices - The array containing the values of the bound indices at the respective index positions, and -1 at the free index positions. For example an array of new long[] { -1, -1, 5, -1, 7, -1 } has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readMDArrayBlock

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlock(java.lang.String objectPath,
                                                                    int[] blockDimensions,
                                                                    long[] blockNumber)
        Reads a block from a multi-dimensional short array from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockDimensions - The extent of the block in each dimension.
        blockNumber - The block number in each dimension (offset: multiply with the blockDimensions in the according dimension).
        Returns:
        The data block read from the data set.
      • readMDArrayBlock

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlock(HDF5DataSet dataSet,
                                                                    int[] blockDimensions,
                                                                    long[] blockNumber)
        Reads a block from a multi-dimensional short array from the data set dataSet.
        Parameters:
        dataSet - The data set to read from.
        blockDimensions - The extent of the block in each dimension.
        blockNumber - The block number in each dimension (offset: multiply with the blockDimensions in the according dimension).
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlock

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(java.lang.String objectPath,
                                                                          int[] blockDimensions,
                                                                          long[] blockNumber,
                                                                          IndexMap boundIndices)
        Reads a sliced block from a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockDimensions - The extent of the block in each dimension.
        blockNumber - The block number in each dimension (offset: multiply with the blockDimensions in the according dimension).
        boundIndices - The mapping of indices to index values which should be bound. For example a map of new IndexMap().mapTo(2, 5).mapTo(4, 7) has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlock

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(HDF5DataSet dataSet,
                                                                          int[] blockDimensions,
                                                                          long[] blockNumber,
                                                                          IndexMap boundIndices)
        Reads a sliced block from a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        dataSet - The data set to read from.
        blockDimensions - The extent of the block in each dimension.
        blockNumber - The block number in each dimension (offset: multiply with the blockDimensions in the according dimension).
        boundIndices - The mapping of indices to index values which should be bound. For example a map of new IndexMap().mapTo(2, 5).mapTo(4, 7) has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlock

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(java.lang.String objectPath,
                                                                          int[] blockDimensions,
                                                                          long[] blockNumber,
                                                                          long[] boundIndices)
        Reads a sliced block from a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockDimensions - The extent of the block in each dimension.
        blockNumber - The block number in each dimension (offset: multiply with the blockDimensions in the according dimension).
        boundIndices - The array containing the values of the bound indices at the respective index positions, and -1 at the free index positions. For example an array of new long[] { -1, -1, 5, -1, 7, -1 } has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlock

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlock(HDF5DataSet dataSet,
                                                                          int[] blockDimensions,
                                                                          long[] blockNumber,
                                                                          long[] boundIndices)
        Reads a sliced block from a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        dataSet - The data set to read from.
        blockDimensions - The extent of the block in each dimension.
        blockNumber - The block number in each dimension (offset: multiply with the blockDimensions in the according dimension).
        boundIndices - The array containing the values of the bound indices at the respective index positions, and -1 at the free index positions. For example an array of new long[] { -1, -1, 5, -1, 7, -1 } has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readMDArrayBlockWithOffset

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlockWithOffset(java.lang.String objectPath,
                                                                              int[] blockDimensions,
                                                                              long[] offset)
        Reads a block from a multi-dimensional short array from the data set objectPath.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockDimensions - The extent of the block in each dimension.
        offset - The offset in the data set to start reading from in each dimension.
        Returns:
        The data block read from the data set.
      • readMDArrayBlockWithOffset

        ch.systemsx.cisd.base.mdarray.MDShortArray readMDArrayBlockWithOffset(HDF5DataSet dataSet,
                                                                              int[] blockDimensions,
                                                                              long[] offset)
        Reads a block from a multi-dimensional short array from the data set dataSet.
        Parameters:
        dataSet - The data set to read from.
        blockDimensions - The extent of the block in each dimension.
        offset - The offset in the data set to start reading from in each dimension.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlockWithOffset

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(java.lang.String objectPath,
                                                                                    int[] blockDimensions,
                                                                                    long[] offset,
                                                                                    IndexMap boundIndices)
        Reads a sliced block of a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockDimensions - The extent of the block in each dimension.
        offset - The offset in the data set to start reading from in each dimension.
        boundIndices - The mapping of indices to index values which should be bound. For example a map of new IndexMap().mapTo(2, 5).mapTo(4, 7) has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlockWithOffset

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(HDF5DataSet dataSet,
                                                                                    int[] blockDimensions,
                                                                                    long[] offset,
                                                                                    IndexMap boundIndices)
        Reads a sliced block of a multi-dimensional short array from the data set dataSet. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        dataSet - The data set to read from.
        blockDimensions - The extent of the block in each dimension.
        offset - The offset in the data set to start reading from in each dimension.
        boundIndices - The mapping of indices to index values which should be bound. For example a map of new IndexMap().mapTo(2, 5).mapTo(4, 7) has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlockWithOffset

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(java.lang.String objectPath,
                                                                                    int[] blockDimensions,
                                                                                    long[] offset,
                                                                                    long[] boundIndices)
        Reads a sliced block of a multi-dimensional short array from the data set objectPath. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        objectPath - The name (including path information) of the data set object in the file.
        blockDimensions - The extent of the block in each dimension.
        offset - The offset in the data set to start reading from in each dimension.
        boundIndices - The array containing the values of the bound indices at the respective index positions, and -1 at the free index positions. For example an array of new long[] { -1, -1, 5, -1, 7, -1 } has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • readSlicedMDArrayBlockWithOffset

        ch.systemsx.cisd.base.mdarray.MDShortArray readSlicedMDArrayBlockWithOffset(HDF5DataSet dataSet,
                                                                                    int[] blockDimensions,
                                                                                    long[] offset,
                                                                                    long[] boundIndices)
        Reads a sliced block of a multi-dimensional short array from the data set dataSet. The slice is defined by "bound indices", each of which is fixed to a given value. The returned data block only contains the free (i.e. non-fixed) indices.
        Parameters:
        dataSet - The data set to read from.
        blockDimensions - The extent of the block in each dimension.
        offset - The offset in the data set to start reading from in each dimension.
        boundIndices - The array containing the values of the bound indices at the respective index positions, and -1 at the free index positions. For example an array of new long[] { -1, -1, 5, -1, 7, -1 } has 2 and 4 as bound indices and binds them to the values 5 and 7, respectively.
        Returns:
        The data block read from the data set.
      • getArrayNaturalBlocks

        java.lang.Iterable<HDF5DataBlock<short[]>> getArrayNaturalBlocks(java.lang.String dataSetPath)
                                                                  throws HDF5JavaException
        Provides all natural blocks of this one-dimensional data set to iterate over.
        Throws:
        HDF5JavaException - If the data set is not of rank 1.
        See Also:
        HDF5DataBlock
      • getMDArrayNaturalBlocks

        java.lang.Iterable<HDF5MDDataBlock<ch.systemsx.cisd.base.mdarray.MDShortArray>> getMDArrayNaturalBlocks(java.lang.String dataSetPath)
        Provides all natural blocks of this multi-dimensional data set to iterate over.
        See Also:
        HDF5MDDataBlock