Class BundledParameters
java.lang.Object
nom.tam.fits.compression.provider.param.base.CompressParameters
nom.tam.fits.compression.provider.param.base.BundledParameters
- All Implemented Interfaces:
Cloneable,ICompressParameters
(for internal use) Compression parameters that are bundled together from distinct sets of component
parameters. For example, some tiled image compression methods will take parameters that consist of those specifically
for the compression algorithm (e.g. Rice vs HCompress) and a set of common parameters for the quantization
(floating-point to integer conversion). This class helps manage such composite parameter sets. The bundle behaves as
it it were a single set of all parameters across all its components.
- Since:
- 1.18
- Author:
- Attila Kovacs
-
Constructor Summary
ConstructorsConstructorDescriptionBundledParameters(ICompressParameters... components) Creates a new set of bundled compression parameters from the specified separate parameter components. -
Method Summary
Modifier and TypeMethodDescriptionprotected ICompressColumnParameter[]Retuens the subset of parameters from within, which are recorded in compressed table columns along with the compressed data.copy(ICompressOption option) create a copy of this parameter for another option (normally a copy of the current option).get(int index) Resturn the compression parameters for the specified component index.protected ICompressHeaderParameter[]Returns the subset of parameters from within, which are recorded in the header of the compressed HDU.voidsetTileIndex(int index) Initialize parameters for the given tile indexintsize()Returns the number of independent compression parameter components represented by this bundle.Methods inherited from class nom.tam.fits.compression.provider.param.base.CompressParameters
addColumnsToTable, clone, getValuesFromColumn, getValuesFromHeader, initializeColumns, initializeColumns, setValuesInColumn, setValuesInHeaderMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nom.tam.fits.compression.provider.param.api.ICompressParameters
setValueInColumn
-
Constructor Details
-
BundledParameters
Creates a new set of bundled compression parameters from the specified separate parameter components.- Parameters:
components- The components, which are to be bundled to provide a single set of parameters that span all of them.- See Also:
-
-
Method Details
-
size
public int size()Returns the number of independent compression parameter components represented by this bundle.- Returns:
- the number of component compression parameter sets in this bundle.
- See Also:
-
get
Resturn the compression parameters for the specified component index.- Parameters:
index- the index of the paramete set in the bundle.- Returns:
- the compression parameters for the particular bundle component.
- Throws:
IndexOutOfBoundsException- if the index it negative or beyond the index of the last component.- See Also:
-
copy
Description copied from interface:ICompressParameterscreate a copy of this parameter for another option (normally a copy of the current option).- Parameters:
option- the new option for the copied parameter- Returns:
- this (builder pattern)
-
columnParameters
Description copied from class:CompressParametersRetuens the subset of parameters from within, which are recorded in compressed table columns along with the compressed data.- Overrides:
columnParametersin classCompressParameters- Returns:
- the subset of parameters that are recorded in compressed table columns.
- See Also:
-
headerParameters
Description copied from class:CompressParametersReturns the subset of parameters from within, which are recorded in the header of the compressed HDU.- Specified by:
headerParametersin classCompressParameters- Returns:
- the subset of parameters that are recorded in the compressed HDU's header.
- See Also:
-
setTileIndex
public void setTileIndex(int index) Description copied from interface:ICompressParametersInitialize parameters for the given tile index- Specified by:
setTileIndexin interfaceICompressParameters- Overrides:
setTileIndexin classCompressParameters- Parameters:
index- the 0-based tile index
-