public final class HDF5IntStorageFeatures
extends java.lang.Object
The ..._KEEP
variants denote that the specified storage features should only be
applied if a new data set has to be created. If the data set already exists, it will be kept with
whatever storage features it has.
Note that this may lead to an exception if the existing data set is non-extendable and the
dimensions of the new data set differ from the dimensions of the existing data set.
The ..._DELETE
variants denote that the specified storage features should always be
applied. If the data set already exists, it will be deleted before the new data set is written.
This is the default behavior. However, if the
IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting is given, the
..._DELETE
variant can be used to override this setting on a case-by-case basis.
The available storage layouts are HDF5StorageLayout.COMPACT
,
HDF5StorageLayout.CONTIGUOUS
or HDF5StorageLayout.CHUNKED
can be chosen. Only
HDF5StorageLayout.CHUNKED
is extendable and can be compressed.
Two types of compressions are supported: deflation (the method used by gzip
)
and scaling, which can be used if the accuracy of the values are smaller than what the
atomic data type can store. Note that scaling can be a lossy compression while
deflation is always lossless. Scaling compression is only available with HDF5 1.8
and newer. Trying to use scaling in strict HDF5 1.6 compatibility mode will throw an
IllegalStateException
.
For deflation the deflation level can be chosen to get the right balance between speed of
compression and compression ratio. Often the DEFAULT_DEFLATION_LEVEL
will be the right
choice.
For scaling, the scaling factor can be chosen that determines the accuracy of the values saved. For float values, the scaling factor determines the number of significant digits of the numbers. The algorithm used for scale compression is:
scalingFactor
scalineFactor >= ceil(log2(max(values) - min(values) + 1)
. This in made
sure when using INT_AUTO_SCALING
, thus INT_AUTO_SCALING
is always losless.
Contrary to float scaling compression, a lossy integer scaling compression is usually an error
as the most significant bits are chopped of! The option to specify the scaling factor is
meant to give you a way to use that you know the span of the values
max(values) - min(values)
rather than asking the library to waste time on
computing it for you.
Modifier and Type | Class and Description |
---|---|
static class |
ch.systemsx.cisd.hdf5.HDF5AbstractStorageFeatures.DataSetReplacementPolicy
The policy on how to deal with write access to existing datasets.
|
static class |
ch.systemsx.cisd.hdf5.HDF5AbstractStorageFeatures.HDF5AbstractStorageFeatureBuilder |
static class |
HDF5IntStorageFeatures.HDF5IntStorageFeatureBuilder
A builder for storage features.
|
Modifier and Type | Field and Description |
---|---|
static byte |
DEFAULT_DEFLATION_LEVEL
A constant that specifies the default deflation level (gzip compression).
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING
Represents automatic scaling for integer values.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DEFLATE
Represents automatic scaling for integer values combined with deflation with the default
deflation level.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DEFLATE_DELETE
Represents automatic scaling for integer values combined with deflation with the default
deflation level.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DEFLATE_KEEP
Represents automatic scaling for integer values combined with deflation with the default
deflation level.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DEFLATE_UNSIGNED
Represents automatic scaling for integer values combined with deflation with the default
deflation level, using unsigned integers.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DEFLATE_UNSIGNED_DELETE
Represents automatic scaling for integer values combined with deflation with the default
deflation level, using unsigned integers.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DEFLATE_UNSIGNED_KEEP
Represents automatic scaling for integer values combined with deflation with the default
deflation level, using unsigned integers.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_DELETE
Represents automatic scaling for integer values.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_KEEP
Represents automatic scaling for integer values.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_UNSIGNED
Represents automatic scaling for integer values with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_UNSIGNED_DELETE
Represents automatic scaling for integer values with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_AUTO_SCALING_UNSIGNED_KEEP
Represents automatic scaling for integer values with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_CHUNKED
Represents a chunked (extendable) storage layout.
|
static HDF5IntStorageFeatures |
INT_CHUNKED_DELETE
Represents a chunked (extendable) storage layout.
|
static HDF5IntStorageFeatures |
INT_CHUNKED_KEEP
Represents a chunked (extendable) storage layout.
|
static HDF5IntStorageFeatures |
INT_CHUNKED_UNSIGNED
Represents a chunked (extendable) storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_CHUNKED_UNSIGNED_DELETE
Represents a chunked (extendable) storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_CHUNKED_UNSIGNED_KEEP
Represents a chunked (extendable) storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_COMPACT
Represents a compact storage layout.
|
static HDF5IntStorageFeatures |
INT_COMPACT_DELETE
Represents a compact storage layout.
|
static HDF5IntStorageFeatures |
INT_COMPACT_KEEP
Represents a compact storage layout.
|
static HDF5IntStorageFeatures |
INT_COMPACT_UNSIGNED
Represents a compact storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_COMPACT_UNSIGNED_DELETE
Represents a compact storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_COMPACT_UNSIGNED_KEEP
Represents a compact storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_CONTIGUOUS
Represents a contiguous storage layout.
|
static HDF5IntStorageFeatures |
INT_CONTIGUOUS_DELETE
Represents a contiguous storage layout.
|
static HDF5IntStorageFeatures |
INT_CONTIGUOUS_KEEP
Represents a contiguous storage layout.
|
static HDF5IntStorageFeatures |
INT_CONTIGUOUS_UNSIGNED
Represents a contiguous storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_CONTIGUOUS_UNSIGNED_DELETE
Represents a contiguous storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_CONTIGUOUS_UNSIGNED_KEEP
Represents a contiguous storage layout with unsigned integers.
|
static HDF5IntStorageFeatures |
INT_DEFLATE
Represents 'standard compression', that is deflation with the default deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_DELETE
Represents 'standard compression', that is deflation with the default deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_KEEP
Represents 'standard compression', that is deflation with the default deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_MAX
Represents 'maximal compression', that is deflation with the maximal deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_MAX_DELETE
Represents 'maximal compression', that is deflation with the maximal deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_MAX_KEEP
Represents 'maximal compression', that is deflation with the maximal deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_MAX_UNSIGNED
Represents 'maximal compression' with unsigned integers, that is deflation with the maximal
deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_MAX_UNSIGNED_DELETE
Represents 'maximal compression' with unsigned integers, that is deflation with the maximal
deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_MAX_UNSIGNED_KEEP
Represents 'maximal compression' with unsigned integers, that is deflation with the maximal
deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_UNSIGNED
Represents 'standard compression' with unsigned integers, that is deflation with the default
deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_UNSIGNED_DELETE
Represents 'standard compression' with unsigned integers, that is deflation with the default
deflation level.
|
static HDF5IntStorageFeatures |
INT_DEFLATE_UNSIGNED_KEEP
Represents 'standard compression' with unsigned integers, that is deflation with the default
deflation level.
|
static HDF5IntStorageFeatures |
INT_NO_COMPRESSION
Represents 'no compression', signed integers, use default storage layout.
|
static HDF5IntStorageFeatures |
INT_NO_COMPRESSION_DELETE
Represents 'no compression', use default storage layout.
|
static HDF5IntStorageFeatures |
INT_NO_COMPRESSION_KEEP
Represents 'no compression', use default storage layout.
|
static HDF5IntStorageFeatures |
INT_NO_COMPRESSION_UNSIGNED
Represents 'no compression', unsigned integers, use default storage layout.
|
static HDF5IntStorageFeatures |
INT_NO_COMPRESSION_UNSIGNED_DELETE
Represents 'no compression', unsigned integers, use default storage layout.
|
static HDF5IntStorageFeatures |
INT_NO_COMPRESSION_UNSIGNED_KEEP
Represents 'no compression', unsigned integers, use default storage layout.
|
static HDF5IntStorageFeatures |
INT_SHUFFLE_DEFLATE
Represents 'standard compression' with a pre-filter shuffle, that is deflation with the
default deflation level.
|
static byte |
MAX_DEFLATION_LEVEL
A constant that specifies the maximal deflation level (gzip compression).
|
static byte |
NO_DEFLATION_LEVEL
A constant that specifies that no deflation should be used.
|
Modifier and Type | Method and Description |
---|---|
static HDF5IntStorageFeatures.HDF5IntStorageFeatureBuilder |
build()
Returns a new storage feature builder.
|
static HDF5IntStorageFeatures.HDF5IntStorageFeatureBuilder |
build(ch.systemsx.cisd.hdf5.HDF5AbstractStorageFeatures template)
Returns a new storage feature builder, initializing from template.
|
static HDF5IntStorageFeatures |
createDeflateAndIntegerScaling(int scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents deflation with the default
deflation level and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflateAndIntegerScaling(int deflateLevel,
byte scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflateAndIntegerScaling(int deflateLevel,
byte scalingFactor,
boolean keepDataSetIfExists)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflateAndIntegerScalingKeep(int scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents deflation with the default
deflation level and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflateAndIntegerScalingKeep(int deflateLevel,
byte scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflateAndIntegerScalingUnsigned(int deflateLevel,
byte scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflateAndIntegerScalingUnsigned(int deflateLevel,
byte scalingFactor,
boolean keepDataSetIfExists)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor. |
static HDF5IntStorageFeatures |
createDeflation(int deflationLevel)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflationLevel. |
static HDF5IntStorageFeatures |
createDeflationDelete(int deflationLevel)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflationLevel. |
static HDF5IntStorageFeatures |
createDeflationKeep(int deflationLevel)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflationLevel. |
static HDF5IntStorageFeatures |
createDeflationUnsigned(int deflationLevel)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflationLevel. |
static HDF5IntStorageFeatures |
createDeflationUnsignedDelete(int deflationLevel)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflationLevel for unsigned integers. |
static HDF5IntStorageFeatures |
createDeflationUnsignedKeep(int deflationLevel)
Creates a
HDF5IntStorageFeatures object that represents deflation with the given
deflationLevel for unsigned integers. |
static HDF5IntStorageFeatures |
createFromGeneric(HDF5GenericStorageFeatures storageFeatures)
Create a corresponding
HDF5IntStorageFeatures for the given
HDF5GenericStorageFeatures . |
static HDF5IntStorageFeatures |
createIntegerScaling(int scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents integer scaling with the
given scalingFactor. |
static HDF5IntStorageFeatures |
createIntegerScalingKeep(int scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents integer scaling with the
given scalingFactor. |
static HDF5IntStorageFeatures |
createIntegerScalingUnsigned(int scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents integer scaling with the
given scalingFactor. |
static HDF5IntStorageFeatures |
createIntegerScalingUnsignedKeep(int scalingFactor)
Creates a
HDF5IntStorageFeatures object that represents integer scaling with the
given scalingFactor. |
static HDF5IntStorageFeatures |
createUnsignedFromGeneric(HDF5GenericStorageFeatures storageFeatures)
Create a corresponding
HDF5IntStorageFeatures for the given
HDF5GenericStorageFeatures . |
ch.systemsx.cisd.hdf5.HDF5AbstractStorageFeatures.DataSetReplacementPolicy |
getDatasetReplacementPolicy()
Returns the policy of this storage feature object regarding replacing or keeping already
existing datasets.
|
byte |
getDeflateLevel()
Returns the deflate level of this storage feature object.
|
byte |
getScalingFactor()
Returns the scaling factor of this storage feature object.
|
boolean |
isDeflating()
Returns
true , if this storage feature object deflates data. |
boolean |
isScaling()
Returns
true , if this storage feature object scales data. |
boolean |
isShuffleBeforeDeflate()
Returns
true , if this storage feature object performs shuffling before deflating
the data. |
boolean |
isSigned()
Returns
true if signed integers should be stored, false otherwise. |
HDF5StorageLayout |
tryGetProposedLayout()
Returns the proposed storage layout, or
null , if no particular storage layout
should be proposed. |
public static final HDF5IntStorageFeatures INT_NO_COMPRESSION
public static final HDF5IntStorageFeatures INT_NO_COMPRESSION_UNSIGNED
public static final HDF5IntStorageFeatures INT_NO_COMPRESSION_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_NO_COMPRESSION_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_NO_COMPRESSION_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_NO_COMPRESSION_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_COMPACT
public static final HDF5IntStorageFeatures INT_COMPACT_UNSIGNED
public static final HDF5IntStorageFeatures INT_COMPACT_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_COMPACT_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_COMPACT_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_COMPACT_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_CONTIGUOUS
public static final HDF5IntStorageFeatures INT_CONTIGUOUS_UNSIGNED
public static final HDF5IntStorageFeatures INT_CONTIGUOUS_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_CONTIGUOUS_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_CONTIGUOUS_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_CONTIGUOUS_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_CHUNKED
public static final HDF5IntStorageFeatures INT_CHUNKED_UNSIGNED
public static final HDF5IntStorageFeatures INT_CHUNKED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_CHUNKED_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_CHUNKED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_CHUNKED_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_DEFLATE
public static final HDF5IntStorageFeatures INT_SHUFFLE_DEFLATE
public static final HDF5IntStorageFeatures INT_DEFLATE_UNSIGNED
public static final HDF5IntStorageFeatures INT_DEFLATE_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_DEFLATE_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_DEFLATE_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_DEFLATE_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_DEFLATE_MAX
public static final HDF5IntStorageFeatures INT_DEFLATE_MAX_UNSIGNED
public static final HDF5IntStorageFeatures INT_DEFLATE_MAX_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_DEFLATE_MAX_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_DEFLATE_MAX_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_DEFLATE_MAX_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_UNSIGNED
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DEFLATE
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DEFLATE_UNSIGNED
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DEFLATE_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DEFLATE_UNSIGNED_KEEP
Keep existing data set and apply only if a new data set has to be created.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DEFLATE_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final HDF5IntStorageFeatures INT_AUTO_SCALING_DEFLATE_UNSIGNED_DELETE
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static final byte NO_DEFLATION_LEVEL
public static final byte DEFAULT_DEFLATION_LEVEL
public static final byte MAX_DEFLATION_LEVEL
public static HDF5IntStorageFeatures.HDF5IntStorageFeatureBuilder build()
public static HDF5IntStorageFeatures.HDF5IntStorageFeatureBuilder build(ch.systemsx.cisd.hdf5.HDF5AbstractStorageFeatures template)
public static HDF5IntStorageFeatures createFromGeneric(HDF5GenericStorageFeatures storageFeatures)
HDF5IntStorageFeatures
for the given
HDF5GenericStorageFeatures
.public static HDF5IntStorageFeatures createUnsignedFromGeneric(HDF5GenericStorageFeatures storageFeatures)
HDF5IntStorageFeatures
for the given
HDF5GenericStorageFeatures
.public static HDF5IntStorageFeatures createDeflation(int deflationLevel)
HDF5IntStorageFeatures
object that represents deflation with the given
deflationLevel.public static HDF5IntStorageFeatures createDeflationKeep(int deflationLevel)
HDF5IntStorageFeatures
object that represents deflation with the given
deflationLevel.
Keep existing data set and apply only if a new data set has to be created.
public static HDF5IntStorageFeatures createDeflationDelete(int deflationLevel)
HDF5IntStorageFeatures
object that represents deflation with the given
deflationLevel.
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static HDF5IntStorageFeatures createDeflationUnsigned(int deflationLevel)
HDF5IntStorageFeatures
object that represents deflation with the given
deflationLevel.public static HDF5IntStorageFeatures createDeflationUnsignedKeep(int deflationLevel)
HDF5IntStorageFeatures
object that represents deflation with the given
deflationLevel for unsigned integers.
Keep existing data set and apply only if a new data set has to be created.
public static HDF5IntStorageFeatures createDeflationUnsignedDelete(int deflationLevel)
HDF5IntStorageFeatures
object that represents deflation with the given
deflationLevel for unsigned integers.
Delete an existing data set before writing the new one. Always apply the chosen settings.
This allows to overwrite the IHDF5WriterConfigurator.keepDataSetsIfTheyExist()
setting.
public static HDF5IntStorageFeatures createIntegerScaling(int scalingFactor)
HDF5IntStorageFeatures
object that represents integer scaling with the
given scalingFactor.public static HDF5IntStorageFeatures createIntegerScalingKeep(int scalingFactor)
HDF5IntStorageFeatures
object that represents integer scaling with the
given scalingFactor.
Keep existing data set and apply only if a new data set has to be created.
public static HDF5IntStorageFeatures createIntegerScalingUnsigned(int scalingFactor)
HDF5IntStorageFeatures
object that represents integer scaling with the
given scalingFactor.public static HDF5IntStorageFeatures createIntegerScalingUnsignedKeep(int scalingFactor)
HDF5IntStorageFeatures
object that represents integer scaling with the
given scalingFactor.
Keep existing data set and apply only if a new data set has to be created.
public static HDF5IntStorageFeatures createDeflateAndIntegerScaling(int scalingFactor)
HDF5IntStorageFeatures
object that represents deflation with the default
deflation level and integer scaling with the given scalingFactor.public static HDF5IntStorageFeatures createDeflateAndIntegerScalingKeep(int scalingFactor)
HDF5IntStorageFeatures
object that represents deflation with the default
deflation level and integer scaling with the given scalingFactor.
Keep existing data set and apply only if a new data set has to be created.
public static HDF5IntStorageFeatures createDeflateAndIntegerScaling(int deflateLevel, byte scalingFactor)
HDF5IntStorageFeatures
object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor.public static HDF5IntStorageFeatures createDeflateAndIntegerScalingUnsigned(int deflateLevel, byte scalingFactor)
HDF5IntStorageFeatures
object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor.public static HDF5IntStorageFeatures createDeflateAndIntegerScaling(int deflateLevel, byte scalingFactor, boolean keepDataSetIfExists)
HDF5IntStorageFeatures
object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor.public static HDF5IntStorageFeatures createDeflateAndIntegerScalingUnsigned(int deflateLevel, byte scalingFactor, boolean keepDataSetIfExists)
HDF5IntStorageFeatures
object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor.public static HDF5IntStorageFeatures createDeflateAndIntegerScalingKeep(int deflateLevel, byte scalingFactor)
HDF5IntStorageFeatures
object that represents deflation with the given
deflateLevel and integer scaling with the given scalingFactor.
Keep existing data set and apply only if a new data set has to be created.
public boolean isSigned()
true
if signed integers should be stored, false
otherwise.public HDF5StorageLayout tryGetProposedLayout()
null
, if no particular storage layout
should be proposed.public ch.systemsx.cisd.hdf5.HDF5AbstractStorageFeatures.DataSetReplacementPolicy getDatasetReplacementPolicy()
public boolean isDeflating()
true
, if this storage feature object deflates data.public boolean isScaling()
true
, if this storage feature object scales data.public boolean isShuffleBeforeDeflate()
true
, if this storage feature object performs shuffling before deflating
the data.public byte getDeflateLevel()
public byte getScalingFactor()