All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.hdf5.HDF5LazySaver.html Maven / Gradle / Ivy






HDF5LazySaver (h5jan API)












org.eclipse.dawnsci.hdf5

Class HDF5LazySaver

  • All Implemented Interfaces:
    java.io.Serializable


    public class HDF5LazySaver
    extends HDF5LazyLoader
    implements java.io.Serializable
    Lazy saver for HDF5 files
    See Also:
    Serialized Form
    • Constructor Detail

      • HDF5LazySaver

        public HDF5LazySaver(java.lang.String hostname,
                             java.lang.String filename,
                             java.lang.String node,
                             java.lang.String name,
                             int[] trueShape,
                             int isize,
                             int dtype,
                             boolean extendUnsigned,
                             int[] maxShape,
                             int[] chunks,
                             java.lang.Object fill)
        Parameters:
        hostname -
        filename -
        node -
        name -
        trueShape -
        isize -
        dtype -
        extendUnsigned -
        maxShape -
        chunks -
        fill - null, a String or single value array
    • Method Detail

      • setCreateOnInitialization

        public void setCreateOnInitialization(boolean create)
        Set flag to create the dataset on file when the first slice is set
        Parameters:
        create - this is false by default (i.e. no dataset is created)
      • setAlreadyCreated

        public void setAlreadyCreated()
        Set flag to indicate the dataset has already been created on file
      • isFileWriteable

        public boolean isFileWriteable()
      • initialize

        public void initialize()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • setSlice

        public void setSlice(IMonitor mon,
                             IDataset data,
                             SliceND slice)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • setAsyncWriteableDataset

        public void setAsyncWriteableDataset(ILazyWriteableDataset dataset)
        Set to asynchronously write if lazy writeable dataset is not null

        The dataset must correspond to that held by this saver otherwise mismatches can occur between the shape

        Parameters:
        dataset -
      • setSliceAsync

        public void setSliceAsync(IMonitor mon,
                                  IDataset data,
                                  SliceND slice)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • expandShape

        protected boolean expandShape(SliceND slice)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy