public interface IHDF5FileLevelReadWriteHandler extends IHDF5FileLevelReadOnlyHandler
Obtain an object implementing this interface by calling IHDF5Writer.file()
.
Modifier and Type | Method and Description |
---|---|
boolean |
addFlushable(java.io.Flushable flushable)
Adds a
Flushable to the set of flushables. |
void |
flush()
Flushes the cache to disk (without discarding it).
|
void |
flushSyncBlocking()
Flushes the cache to disk (without discarding it) and synchronizes the file with the
underlying storage using a method like
fsync(2) , regardless of what
IHDF5WriterConfigurator.SyncMode has been set for this file. |
IHDF5WriterConfigurator.FileFormatVersionBounds |
getFileFormatVersionBounds()
Returns the
IHDF5WriterConfigurator.FileFormatVersionBounds compatibility setting for this writer. |
boolean |
isUseExtendableDataTypes()
Returns
true , if the IHDF5WriterConfigurator was not configured
with IHDF5WriterConfigurator.dontUseExtendableDataTypes() , that is if extendable data
types are used for new data sets. |
boolean |
removeFlushable(java.io.Flushable flushable)
Removes a
Flushable from the set of flushables. |
close, getFile, getHouseKeepingNameSuffix, hasMDCImage, isClosed, isMDCImageGenerationEnabled, isPerformNumericConversions
boolean isUseExtendableDataTypes()
true
, if the IHDF5WriterConfigurator
was not configured
with IHDF5WriterConfigurator.dontUseExtendableDataTypes()
, that is if extendable data
types are used for new data sets.IHDF5WriterConfigurator.FileFormatVersionBounds getFileFormatVersionBounds()
IHDF5WriterConfigurator.FileFormatVersionBounds
compatibility setting for this writer.void flush()
fsync(2)
, depending on the IHDF5WriterConfigurator.SyncMode
used.void flushSyncBlocking()
fsync(2)
, regardless of what
IHDF5WriterConfigurator.SyncMode
has been set for this file.
This method blocks until fsync(2)
has returned.
boolean addFlushable(java.io.Flushable flushable)
Flushable
to the set of flushables. This set is flushed when flush()
or flushSyncBlocking()
are called and before the writer is closed.
This function is supposed to be used for in-memory caching structures that need to make it into the HDF5 file.
If the flushable implements
IErrorStrategy
, in case of an exception in
Flushable.flush()
, the method
IErrorStrategy.dealWithError(Throwable)
will be
called to decide how do deal with the exception.
flushable
- The Flushable
to add. Needs to fulfill the Object.hashCode()
contract.true
if the set of flushables did not already contain the specified
element.boolean removeFlushable(java.io.Flushable flushable)
Flushable
from the set of flushables.flushable
- The Flushable
to remove. Needs to fulfill the
Object.hashCode()
contract.true
if the set of flushables contained the specified element.