generated.docs.javadoc.org.eclipse.dawnsci.hdf5.HDF5LazySaver.html Maven / Gradle / Ivy
HDF5LazySaver (h5jan API)
org.eclipse.dawnsci.hdf5
Class HDF5LazySaver
- java.lang.Object
-
- org.eclipse.dawnsci.hdf5.HDF5LazyLoader
-
- org.eclipse.dawnsci.hdf5.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 Summary
Constructors
Constructor and Description
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)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected boolean
expandShape(SliceND slice)
void
initialize()
boolean
isFileWriteable()
int[]
refreshShape()
void
setAlreadyCreated()
Set flag to indicate the dataset has already been created on file
void
setAsyncWriteableDataset(ILazyWriteableDataset dataset)
Set to asynchronously write if lazy writeable dataset is not null
void
setCreateOnInitialization(boolean create)
Set flag to create the dataset on file when the first slice is set
void
setSlice(IMonitor mon,
IDataset data,
SliceND slice)
void
setSliceAsync(IMonitor mon,
IDataset data,
SliceND slice)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.dawnsci.hdf5.HDF5LazyLoader
getDataset, isFileReadable
-
-
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)
-
refreshShape
public int[] refreshShape()
- Overrides:
refreshShape
in class HDF5LazyLoader
-
toString
public java.lang.String toString()
- Overrides:
toString
in class HDF5LazyLoader